In [ ]:
. ./nbs_header.ps1
. ./core.ps1
In [ ]:
{ . "$ScriptDir/../apps/builder/build.ps1" } | Invoke-Block
── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ # DibParser (Polyglot) │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── #!import ../../lib/fsharp/Notebooks.dib #!import ../../lib/fsharp/Testing.dib ── fsharp - import ───────────────────────────────────────────────────────────── #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Asp NetCore.Html.Abstractions.dll" #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Dot Net.Interactive.dll" #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Dot Net.Interactive.FSharp.dll" #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Dot Net.Interactive.Formatting.dll" open System open System.IO open System.Text open Microsoft.DotNet.Interactive.Formatting ── fsharp - import ───────────────────────────────────────────────────────────── #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Dot Net.Interactive.FSharp.dll" open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Dot Net.Interactive.dll" open type Microsoft.DotNet.Interactive.Kernel ── fsharp - import ───────────────────────────────────────────────────────────── //// test Formatter.ListExpansionLimit <- 100 ── fsharp - import ───────────────────────────────────────────────────────────── #r @"../../../../../../../.nuget/packages/expecto/10.2.1/lib/net6.0/Expecto.dll" ── fsharp - import ───────────────────────────────────────────────────────────── //// test type AssertExceptionFormatter (ex) = member _.Text = ex.ToString() .Replace("32m", "<span style=\"color: green;\">") .Replace("36m", "</span>") .Replace("31m", "<span style=\"color: red;\">") .Replace("\n", "<br/>\n") Formatter.Register<AssertExceptionFormatter> ((fun (x : AssertExceptionFormatter) -> x.Text), "text/html") ── fsharp - import ───────────────────────────────────────────────────────────── //// test let inline __expect fn log expected actual = if log then printfn $"{actual.ToDisplayString ()}" try "Testing.__expect" |> fn actual expected with :? Expecto.AssertException as ex -> AssertExceptionFormatter(ex).Display () |> ignore failwith (ex.GetType().FullName) let inline __contains log expected actual = __expect Expecto.Expect.contains log expected actual let inline _contains expected actual = __contains true expected actual let inline __assertEqual log expected actual = __expect Expecto.Expect.equal log expected actual let inline _assertEqual expected actual = __assertEqual true expected actual let inline __isGreaterThan log expected actual = __expect Expecto.Expect.isGreaterThan log ex... ── fsharp - import ───────────────────────────────────────────────────────────── //// test let inline __isBetween log a b actual = let inline isBetween actual (a, b) _ = __isGreaterThanOrEqual log a actual __isLessThanOrEqual log b actual __expect isBetween log (a, b) actual let inline _isBetween a b actual = __isBetween true a b actual ── pwsh ──────────────────────────────────────────────────────────────────────── ls ~/.nuget/packages/argu ╭─[ 205.76ms - stdout ]────────────────────────────────────────────────────────╮ │ 6.2.2 │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── #r @"../../../../../../../.nuget/packages/fsharp.control.asyncseq/3.2.1/lib/netstan dard2.1/FSharp.Control.AsyncSeq.dll" #r @"../../../../../../../.nuget/packages/system.reactive/6.0.1-preview.1/lib/net6. 0/System.Reactive.dll" #r @"../../../../../../../.nuget/packages/system.reactive.linq/6.0.1-preview.1/lib/ netstandard2.0/System.Reactive.Linq.dll" #r @"../../../../../../../.nuget/packages/argu/6.2.2/lib/netstandard2.0/Argu.dll" #r @"../../../../../../../.nuget/packages/system.commandline/2.0.0-beta4.22272.1/li b/net6.0/System.CommandLine.dll" #r @"../../../../../../../.nuget/packages/fparsec/2.0.0-beta2/lib/netstandard2.1/FP arsec.dll" #r @"../../../../../../../.nuget/packages/fparsec/2.0.0-beta2/lib/netstandard2.1/FP arsecCS.dll" ── fsharp ────────────────────────────────────────────────────────────────────── #!import ../../lib/fsharp/Common.fs #!import ../../lib/fsharp/CommonFSharp.fs #!import ../../lib/fsharp/Async.fs #!import ../../lib/fsharp/AsyncSeq.fs #!import ../../lib/fsharp/Runtime.fs #!import ../../lib/fsharp/FileSystem.fs ── fsharp - import ───────────────────────────────────────────────────────────── #if !INTERACTIVE namespace Polyglot #endif module Common = let nl = System.Environment.NewLine let q = @"""" let inline cons head tail = head :: tail module String = let inline contains (value : string) (input : string) = input.Contains value let inline endsWith (value : string) (input : string) = input.EndsWith value let inline padLeft totalWidth paddingChar (input : string) = input.PadLeft (totalWidth, paddingChar) let inline replace (oldValue : string) (newValue : string) (input : string) = input.Replace (oldValue, newValue) let inline split separator (input : string) = input.Split separator let inline spli... ── fsharp - import ───────────────────────────────────────────────────────────── #if !INTERACTIVE namespace Polyglot #endif module CommonFSharp = open Common /// ## getUnionCaseName let inline getUnionCaseName<'T> (x: 'T) = match Reflection.FSharpValue.GetUnionFields(x, typeof<'T>) with | case, _ -> case.Name ── fsharp - import ───────────────────────────────────────────────────────────── #if !INTERACTIVE namespace Polyglot #endif module Async = open Common /// ## choice let inline choice asyncs = async { let e = Event<_> () use cts = new System.Threading.CancellationTokenSource () let fn = asyncs |> Seq.map (fun a -> async { let! x = a e.Trigger x }) |> Async.Parallel |> Async.Ignore Async.Start (fn, cts.Token) let! result = Async.AwaitEvent e.Publish cts.Cancel () return result } /// ## map let inline map fn a = async { let! x = a return fn x } /// ## catch let inline catch a = a |> Async.Catch ... ── fsharp - import ───────────────────────────────────────────────────────────── #if !INTERACTIVE namespace Polyglot #endif module AsyncSeq = open Common /// ## subscribeEvent let inline subscribeEvent (event: IEvent<'H, 'A>) map = let observable = System.Reactive.Linq.Observable.FromEventPattern<'H, 'A>(event.AddHandler, event.RemoveHandler) System.Reactive.Linq.Observable.Select (observable, fun event -> map event.EventArgs) |> FSharp.Control.AsyncSeq.ofObservableBuffered let subscribeToken (token : System.Threading.CancellationToken) = let tcs = new System.Threading.Tasks.TaskCompletionSource () System.Action tcs.SetResult |> token.Register |> ignore let start = System.DateTime.Now.Ticks FSharp.Control.AsyncSeq.unfoldAsync (fun (... ── fsharp - import ───────────────────────────────────────────────────────────── #if !INTERACTIVE namespace Polyglot #endif module Runtime = open Common /// ## isWindows let isWindows = fun () -> System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform System.Runtime.InteropServices.OSPlatform.Windows |> memoize /// ## getExecutableSuffix let inline getExecutableSuffix () = if isWindows () then ".exe" else "" /// ## splitCommand type private CommandParseStep = | Start | Path of quoted: bool | Arguments let splitCommand (command: string) = let rec loop (path, args) chars step = match chars, step with | ('"' | '\'') :: tail, _ when path = "" -> loop (pat... ── fsharp - import ───────────────────────────────────────────────────────────── #if !INTERACTIVE namespace Polyglot #endif module FileSystem = open Common /// ## Operators module Operators = let inline (</>) a b = System.IO.Path.Combine (a, b) open Operators /// ## createTempDirectoryName let inline createTempDirectoryName () = let root = System.Reflection.Assembly.GetEntryAssembly().GetName().Name System.IO.Path.GetTempPath () </> $"!{root}" </> string (newGuidFromDateTime System.DateTime.Now) /// ## createTempDirectory let inline createTempDirectory () = let tempFolder = createTempDirectoryName () let result = System.IO.Directory.CreateDirectory tempFolder if not result.Exists then let ge... ── fsharp ────────────────────────────────────────────────────────────────────── open Common open FParsec ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## escapeCell (test) │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── //// test let inline escapeCell input = input |> String.split [[| '\n' |]] |> Array.map (function | line when line |> String.startsWith "\\#!" || line |> String.startsWith "\\#r" -> System.Text.RegularExpressions.Regex.Replace (line, "^\\\\#", "#") | line -> line ) |> String.concat "\n" ── fsharp ────────────────────────────────────────────────────────────────────── //// test $"a{nl}\\#!magic{nl}b{nl}" |> escapeCell |> _assertEqual ( $"a{nl}#!magic{nl}b{nl}" ) ╭─[ 37.12ms - stdout ]─────────────────────────────────────────────────────────╮ │ a │ │ #!magic │ │ b │ │ │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## magicMarker │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let magicMarker : Parser<string, unit> = pstring "#!" ── fsharp ────────────────────────────────────────────────────────────────────── //// test "#!magic" |> run magicMarker |> _assertEqual ( Success ("#!", (), Position ("", 2, 1, 3)) ) ╭─[ 30.64ms - stdout ]─────────────────────────────────────────────────────────╮ │ Success │ │ Item1: #! │ │ Item2: <null> │ │ Item3: Position │ │ Index: 2 │ │ Line: 1 │ │ Column: 3 │ │ StreamName: │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── //// test "##!magic" |> run magicMarker |> _assertEqual ( Failure ( $"Error in Ln: 1 Col: 1{nl}##!magic{nl}^{nl}Expecting: '#!'{nl}", ParserError ( Position ("", 0, 1, 1), (), ErrorMessageList (ExpectedString "#!") ), () ) ) ╭─[ 41.91ms - stdout ]─────────────────────────────────────────────────────────╮ │ Failure │ │ Item1: Error in Ln: 1 Col: 1 │ │ ##!magic │ │ ^ │ │ Expecting: '#!' │ │ │ │ Item2: ParserError │ │ Position: Position │ │ Index: 0 │ │ Line: 1 │ │ Column: 1 │ │ StreamName: │ │ UserState: <null> │ │ Messages: ErrorMessageList │ │ Head: ExpectedString │ │ String: #! │ │ Type: ExpectedString │ │ Tail: <null> │ │ Item3: <null> │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## magicCommand │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let magicCommand = magicMarker >>. manyTill anyChar newline |>> (System.String.Concat >> String.trim) ── fsharp ────────────────────────────────────────────────────────────────────── //// test "#!magic a" |> run magicCommand |> _assertEqual ( Success ("magic", (), Position ("", 8, 2, 1)) ) ╭─[ 18.05ms - stdout ]─────────────────────────────────────────────────────────╮ │ Success │ │ Item1: magic │ │ Item2: <null> │ │ Item3: Position │ │ Index: 8 │ │ Line: 2 │ │ Column: 1 │ │ StreamName: │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── //// test " #!magic a" |> run magicCommand |> _assertEqual ( Failure ( $"Error in Ln: 1 Col: 1{nl} #!magic{nl}^{nl}Expecting: '#!'{nl}", ParserError ( Position ("", 0, 1, 1), (), ErrorMessageList (ExpectedString "#!") ), () ) ) ╭─[ 18.66ms - stdout ]─────────────────────────────────────────────────────────╮ │ Failure │ │ Item1: Error in Ln: 1 Col: 1 │ │ #!magic │ │ ^ │ │ Expecting: '#!' │ │ │ │ Item2: ParserError │ │ Position: Position │ │ Index: 0 │ │ Line: 1 │ │ Column: 1 │ │ StreamName: │ │ UserState: <null> │ │ Messages: ErrorMessageList │ │ Head: ExpectedString │ │ String: #! │ │ Type: ExpectedString │ │ Tail: <null> │ │ Item3: <null> │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## content │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let content = (newline >>. magicMarker) <|> (eof >>. preturn "") |> attempt |> lookAhead |> manyTill anyChar |>> (System.String.Concat >> String.trim) ── fsharp ────────────────────────────────────────────────────────────────────── //// test "#!magic a " |> run content |> _assertEqual ( Success ("#!magic a", (), Position ("", 14, 7, 1)) ) ╭─[ 16.06ms - stdout ]─────────────────────────────────────────────────────────╮ │ Success │ │ Item1: #!magic │ │ │ │ │ │ a │ │ Item2: <null> │ │ Item3: Position │ │ Index: 14 │ │ Line: 7 │ │ Column: 1 │ │ StreamName: │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## Block │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── type Block = { magic : string content : string } ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## block │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let block = pipe2 magicCommand content (fun magic content -> { magic = magic content = content }) ── fsharp ────────────────────────────────────────────────────────────────────── //// test "#!magic a " |> run block |> _assertEqual ( Success ( { magic = "magic"; content = "a" }, (), Position ("", 14, 7, 1) ) ) ╭─[ 20.24ms - stdout ]─────────────────────────────────────────────────────────╮ │ Success │ │ Item1: Block │ │ magic: magic │ │ content: a │ │ Item2: <null> │ │ Item3: Position │ │ Index: 14 │ │ Line: 7 │ │ Column: 1 │ │ StreamName: │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## blocks │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let blocks = skipMany newline >>. sepEndBy block (skipMany1 newline) ── fsharp ────────────────────────────────────────────────────────────────────── //// test "#!magic1 a \#!magic2 b " |> escapeCell |> run blocks |> _assertEqual ( Success ( [[ { magic = "magic1"; content = "a" } { magic = "magic2"; content = "b" } ]], (), Position ("", 26, 9, 1) ) ) ╭─[ 26.59ms - stdout ]─────────────────────────────────────────────────────────╮ │ Success │ │ Item1: FSharpList<Block> │ │ - magic: magic1 │ │ content: a │ │ - magic: magic2 │ │ content: b │ │ Item2: <null> │ │ Item3: Position │ │ Index: 26 │ │ Line: 9 │ │ Column: 1 │ │ StreamName: │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## Output │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── type Output = | Fs | Md | Spi | Spir let inline kernelOutputs magic = match magic with | "fsharp" -> [[ Fs ]] | "markdown" -> [[ Md ]] | "spiral" -> [[ Spi; Spir ]] | _ -> [[]] ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## formatBlock │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let inline formatBlock output (block : Block) = match output, block with | output, { magic = "markdown"; content = content } -> let markdownComment = match output with | Spi | Spir -> "// // " | Fs -> "/// " | _ -> "" content |> String.split [[| '\n' |]] |> Array.map (String.trimEnd [[||]]) |> Array.filter (String.endsWith " (test)" >> not) |> Array.map (function | "" -> markdownComment |> String.trim | line -> System.Text.RegularExpressions.Regex.Replace (line, "^\\s*", $"$&{markdownComment}") ) |> String.concat "\n" | Fs, { magic = "fsharp"; content = content } -> let trimmedContent = content |> String.trim if trimmedContent |> String.startsWith "//// test" || trimmedContent |> String.startsWith "//// ignore" then "" else content |> String.split [[| '\n' |]] |> Array.filter (String.trimStart [[||]] >> String.startsWith "#r" >> not) |> String.concat "\n" | (Spi | Spir), { magic = "spiral"; content = content } -> let trimmedContent = content |> String.trim if trimmedContent |> String.startsWith "// // test" || trimmedContent |> String.startsWith "// // ignore" then "" else content | _ -> "" ── fsharp ────────────────────────────────────────────────────────────────────── //// test "#!markdown a b c \#!markdown c \#!fsharp let a = 1" |> escapeCell |> run block |> function | Success (block, _, _) -> formatBlock Fs block | Failure (msg, _, _) -> failwith msg |> _assertEqual "/// a /// /// b /// /// c" ╭─[ 35.84ms - stdout ]─────────────────────────────────────────────────────────╮ │ /// a │ │ /// │ │ /// b │ │ /// │ │ /// c │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## formatBlocks │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let inline formatBlocks output blocks = blocks |> List.map (formatBlock output) |> List.filter ((<>) "") |> String.concat "\n\n" |> fun s -> s + "\n" ── fsharp ────────────────────────────────────────────────────────────────────── //// test "#!markdown a b \#!markdown c \#!fsharp let a = 1 \#!markdown d (test) \#!fsharp //// test let a = 2 \#!markdown e \#!fsharp let a = 3" |> escapeCell |> run blocks |> function | Success (blocks, _, _) -> formatBlocks Fs blocks | Failure (msg, _, _) -> failwith msg |> _assertEqual "/// a /// /// b /// c let a = 1 /// e let a = 3 " ╭─[ 36.87ms - stdout ]─────────────────────────────────────────────────────────╮ │ /// a │ │ /// │ │ /// b │ │ │ │ /// c │ │ │ │ let a = 1 │ │ │ │ /// e │ │ │ │ let a = 3 │ │ │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## parse │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let inline parse output input = match run blocks input with | Success (blocks, _, _) -> let blocks = blocks |> List.filter (fun block -> block.magic |> kernelOutputs |> List.contains output || block.magic = "markdown" ) match blocks with | { magic = "markdown"; content = content } :: _ when output = Fs && content |> String.startsWith "# " && content |> String.endsWith ")" -> let inline indentBlock (block : Block) = { block with content = block.content |> String.split [[| '\n' |]] |> Array.fold (fun (lines, isMultiline) line -> let trimmedLine = line |> String.trim if trimmedLine = "" then "" :: lines, isMultiline else let inline singleQuoteLine () = trimmedLine |> Seq.sumBy ((=) '"' >> System.Convert.ToInt32) = 1 && trimmedLine |> String.contains @"'""'" |> not && trimmedLine |> String.endsWith "{" |> not && trimmedLine |> String.endsWith "{|" |> not && trimmedLine |> String.startsWith "}" |> not && trimmedLine |> String.startsWith "|}" |> not match isMultiline, trimmedLine |> String.splitString [[| $"{q}{q}{q}" |]] with | false, [[| _; _ |]] -> $" {line}" :: lines, true | true, [[| _; _ |]] -> line :: lines, false | false, _ when singleQuoteLine () -> $" {line}" :: lines, true | false, _ when line |> String.startsWith "#" && block.magic = "fsharp" -> line :: lines, false | false, _ -> $" {line}" :: lines, false | true, _ when singleQuoteLine () && line |> String.startsWith " " -> $" {line}" :: lines, false | true, _ when singleQuoteLine () -> line :: lines, false | true, _ -> line :: lines, true ) ([[]], false) |> fst |> List.rev |> String.concat "\n" } let moduleName, namespaceName = System.Text.RegularExpressions.Regex.Match (content, @"# (.*) \((.*)\)$") |> fun m -> m.Groups.[[1]].Value, m.Groups.[[2]].Value let moduleBlock = { magic = "fsharp" content = $"#if !INTERACTIVE namespace {namespaceName} #endif module {moduleName} =" } blocks |> List.indexed |> List.fold (fun blocks (index, block) -> match index with | 0 -> blocks | 1 -> indentBlock block :: moduleBlock :: blocks | _ -> indentBlock block :: blocks ) [[]] |> List.rev | _ -> blocks |> Result.Ok | Failure (errorMsg, _, _) -> Result.Error errorMsg ── fsharp ────────────────────────────────────────────────────────────────────── //// test let example1 = $"""#!meta {{"kernelInfo":{{"defaultKernelName":"fsharp","items":[[{{"aliases":[[]],"name": "fsharp"}},{{"aliases":[[]],"name":"fsharp"}}]]}}}} \#!markdown # TestModule (TestNamespace) \#!fsharp \#!import file.dib \#!fsharp \#r "nuget:Expecto" \#!markdown ## ParserLibrary \#!fsharp open System \#!markdown ## x (test) \#!fsharp //// ignore let x = 1 \#!spiral // // test inl x = 0i32 \#!spiral inl x = 0i32 \#!markdown ### TextInput \#!fsharp let str1 = "abc def" let str2 = "abc\ def" let str3 = $"1{{ 1 }}1" let str4 = $"1{{({{| a = 1 |}}).a}}1" let str5 = "abc \ def" let x = match '"' with | '"' -> true | _ -> false let long1 = {q}{q}{q}a{q}{q}{q} let long2 = {q}{q}{q} a {q}{q}{q} \#!fsharp type Position = {{ #if INTERACTIVE line : string #else line : int #endif column : int }}""" |> escapeCell ── fsharp ────────────────────────────────────────────────────────────────────── //// test example1 |> parse Fs |> Result.toOption |> Option.get |> (formatBlocks Fs) |> _assertEqual $"""#if !INTERACTIVE namespace TestNamespace #endif module TestModule = /// ## ParserLibrary open System /// ### TextInput let str1 = "abc def" let str2 = "abc\ def" let str3 = $"1{{ 1 }}1" let str4 = $"1{{({{| a = 1 |}}).a}}1" let str5 = "abc \ def" let x = match '"' with | '"' -> true | _ -> false let long1 = {q}{q}{q}a{q}{q}{q} let long2 = {q}{q}{q} a {q}{q}{q} type Position = {{ #if INTERACTIVE line : string #else line : int #endif column : int }} """ ╭─[ 156.43ms - stdout ]────────────────────────────────────────────────────────╮ │ #if !INTERACTIVE │ │ namespace TestNamespace │ │ #endif │ │ │ │ module TestModule = │ │ │ │ /// ## ParserLibrary │ │ │ │ open System │ │ │ │ /// ### TextInput │ │ │ │ let str1 = "abc │ │ def" │ │ │ │ let str2 = │ │ "abc\ │ │ def" │ │ │ │ let str3 = │ │ $"1{ │ │ 1 │ │ }1" │ │ │ │ let str4 = │ │ $"1{({| │ │ a = 1 │ │ |}).a}1" │ │ │ │ let str5 = │ │ "abc \ │ │ def" │ │ │ │ let x = │ │ match '"' with │ │ | '"' -> true │ │ | _ -> false │ │ │ │ let long1 = """a""" │ │ │ │ let long2 = │ │ """ │ │ a │ │ """ │ │ │ │ type Position = │ │ { │ │ #if INTERACTIVE │ │ line : string │ │ #else │ │ line : int │ │ #endif │ │ column : int │ │ } │ │ │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── //// test example1 |> parse Md |> Result.toOption |> Option.get |> (formatBlocks Md) |> _assertEqual "# TestModule (TestNamespace) ## ParserLibrary ### TextInput " ╭─[ 94.47ms - stdout ]─────────────────────────────────────────────────────────╮ │ # TestModule (TestNamespace) │ │ │ │ ## ParserLibrary │ │ │ │ ### TextInput │ │ │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── //// test example1 |> parse Spi |> Result.toOption |> Option.get |> (formatBlocks Spi) |> _assertEqual "// // # TestModule (TestNamespace) // // ## ParserLibrary inl x = 0i32 // // ### TextInput " ╭─[ 94.06ms - stdout ]─────────────────────────────────────────────────────────╮ │ // // # TestModule (TestNamespace) │ │ │ │ // // ## ParserLibrary │ │ │ │ inl x = 0i32 │ │ │ │ // // ### TextInput │ │ │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## parseDibCode │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let inline parseDibCode output file = async { let getLocals () = $"output: {output} / file: {file} / {getLocals ()}" trace Debug (fun () -> "parseDibCode") getLocals let! input = file |> FileSystem.readAllTextAsync match parse output input with | Result.Ok blocks -> return blocks |> formatBlocks output | Result.Error msg -> return failwith msg } ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## writeDibCode │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let inline writeDibCode output path = async { let getLocals () = $"output: {output} / path: {path} / {getLocals ()}" trace Debug (fun () -> "writeDibCode") getLocals let! result = parseDibCode output path let outputPath = path |> String.replace ".dib" $".{output |> string |> String.toLower}" do! result |> FileSystem.writeAllTextAsync outputPath } ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## Arguments │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── [[<RequireQualifiedAccess>]] type Arguments = | [[<Argu.ArguAttributes.MainCommand; Argu.ArguAttributes.Mandatory>]] File of file : string * Output interface Argu.IArgParserTemplate with member s.Usage = match s with | File _ -> nameof File ── fsharp ────────────────────────────────────────────────────────────────────── //// test Argu.ArgumentParser.Create<Arguments>().PrintUsage () ╭─[ 78.49ms - return value ]───────────────────────────────────────────────────╮ │ USAGE: dotnet-repl [--help] <file> <fs|md|spi|spir> │ │ │ │ FILE: │ │ │ │ <file> <fs|md|spi|spir> │ │ File │ │ │ │ OPTIONS: │ │ │ │ --help display this list of options. │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## main │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let main args = let argsMap = args |> Runtime.parseArgsMap<Arguments> let files = argsMap.[[nameof Arguments.File]] |> List.map (function | Arguments.File (path, output) -> path, output ) files |> List.map (fun (path, output) -> path |> writeDibCode output) |> Async.Parallel |> Async.Ignore |> Async.runWithTimeout 30000 |> function | Some () -> 0 | None -> 1 ── fsharp ────────────────────────────────────────────────────────────────────── //// test let args = System.Environment.GetEnvironmentVariable "ARGS" |> Runtime.splitArgs |> Seq.toArray match args with | [[||]] -> 0 | args -> if main args = 0 then 0 else failwith "main failed" ╭─[ 108.54ms - return value ]──────────────────────────────────────────────────╮ │ <div class="dni-plaintext"><pre>0</pre></div><style> │ │ .dni-code-hint { │ │ font-style: italic; │ │ overflow: hidden; │ │ white-space: nowrap; │ │ } │ │ .dni-treeview { │ │ white-space: nowrap; │ │ } │ │ .dni-treeview td { │ │ vertical-align: top; │ │ text-align: start; │ │ } │ │ details.dni-treeview { │ │ padding-left: 1em; │ │ } │ │ table td { │ │ text-align: start; │ │ } │ │ table tr { │ │ vertical-align: top; │ │ margin: 0em 0px; │ │ } │ │ table tr td pre │ │ { │ │ vertical-align: top !important; │ │ margin: 0em 0px !important; │ │ } │ │ table th { │ │ text-align: start; │ │ } │ │ </style> │ ╰──────────────────────────────────────────────────────────────────────────────╯ ╭─[ 109.91ms - stdout ]────────────────────────────────────────────────────────╮ │ 00:00:00 #1 [Debug] writeDibCode / output: Fs / path: Builder.dib │ │ 00:00:00 #2 [Debug] parseDibCode / output: Fs / file: Builder.dib │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ # Builder (Polyglot) │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── #!import ../../lib/fsharp/Notebooks.dib #!import ../../lib/fsharp/Testing.dib ── fsharp - import ───────────────────────────────────────────────────────────── #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Asp NetCore.Html.Abstractions.dll" #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Dot Net.Interactive.dll" #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Dot Net.Interactive.FSharp.dll" #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Dot Net.Interactive.Formatting.dll" open System open System.IO open System.Text open Microsoft.DotNet.Interactive.Formatting ── fsharp - import ───────────────────────────────────────────────────────────── #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Dot Net.Interactive.FSharp.dll" open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Dot Net.Interactive.dll" open type Microsoft.DotNet.Interactive.Kernel ── fsharp - import ───────────────────────────────────────────────────────────── //// test Formatter.ListExpansionLimit <- 100 ── fsharp - import ───────────────────────────────────────────────────────────── #r @"../../../../../../../.nuget/packages/expecto/10.2.1/lib/net6.0/Expecto.dll" ── fsharp - import ───────────────────────────────────────────────────────────── //// test type AssertExceptionFormatter (ex) = member _.Text = ex.ToString() .Replace("32m", "<span style=\"color: green;\">") .Replace("36m", "</span>") .Replace("31m", "<span style=\"color: red;\">") .Replace("\n", "<br/>\n") Formatter.Register<AssertExceptionFormatter> ((fun (x : AssertExceptionFormatter) -> x.Text), "text/html") ── fsharp - import ───────────────────────────────────────────────────────────── //// test let inline __expect fn log expected actual = if log then printfn $"{actual.ToDisplayString ()}" try "Testing.__expect" |> fn actual expected with :? Expecto.AssertException as ex -> AssertExceptionFormatter(ex).Display () |> ignore failwith (ex.GetType().FullName) let inline __contains log expected actual = __expect Expecto.Expect.contains log expected actual let inline _contains expected actual = __contains true expected actual let inline __assertEqual log expected actual = __expect Expecto.Expect.equal log expected actual let inline _assertEqual expected actual = __assertEqual true expected actual let inline __isGreaterThan log expected actual = __expect Expecto.Expect.isGreaterThan log ex... ── fsharp - import ───────────────────────────────────────────────────────────── //// test let inline __isBetween log a b actual = let inline isBetween actual (a, b) _ = __isGreaterThanOrEqual log a actual __isLessThanOrEqual log b actual __expect isBetween log (a, b) actual let inline _isBetween a b actual = __isBetween true a b actual ── fsharp ────────────────────────────────────────────────────────────────────── #r @"../../../../../../../.nuget/packages/fsharp.control.asyncseq/3.2.1/lib/netstan dard2.1/FSharp.Control.AsyncSeq.dll" #r @"../../../../../../../.nuget/packages/system.reactive/6.0.1-preview.1/lib/net6. 0/System.Reactive.dll" #r @"../../../../../../../.nuget/packages/system.reactive.linq/6.0.1-preview.1/lib/ netstandard2.0/System.Reactive.Linq.dll" #r @"../../../../../../../.nuget/packages/argu/6.2.2/lib/netstandard2.0/Argu.dll" #r @"../../../../../../../.nuget/packages/system.commandline/2.0.0-beta4.22272.1/li b/net6.0/System.CommandLine.dll" ── fsharp ────────────────────────────────────────────────────────────────────── #!import ../../lib/fsharp/Common.fs #!import ../../lib/fsharp/CommonFSharp.fs #!import ../../lib/fsharp/Async.fs #!import ../../lib/fsharp/AsyncSeq.fs #!import ../../lib/fsharp/Networking.fs #!import ../../lib/fsharp/Runtime.fs #!import ../../lib/fsharp/FileSystem.fs ── fsharp - import ───────────────────────────────────────────────────────────── #if !INTERACTIVE namespace Polyglot #endif module Common = let nl = System.Environment.NewLine let q = @"""" let inline cons head tail = head :: tail module String = let inline contains (value : string) (input : string) = input.Contains value let inline endsWith (value : string) (input : string) = input.EndsWith value let inline padLeft totalWidth paddingChar (input : string) = input.PadLeft (totalWidth, paddingChar) let inline replace (oldValue : string) (newValue : string) (input : string) = input.Replace (oldValue, newValue) let inline split separator (input : string) = input.Split separator let inline spli... ── fsharp - import ───────────────────────────────────────────────────────────── #if !INTERACTIVE namespace Polyglot #endif module CommonFSharp = open Common /// ## getUnionCaseName let inline getUnionCaseName<'T> (x: 'T) = match Reflection.FSharpValue.GetUnionFields(x, typeof<'T>) with | case, _ -> case.Name ── fsharp - import ───────────────────────────────────────────────────────────── #if !INTERACTIVE namespace Polyglot #endif module Async = open Common /// ## choice let inline choice asyncs = async { let e = Event<_> () use cts = new System.Threading.CancellationTokenSource () let fn = asyncs |> Seq.map (fun a -> async { let! x = a e.Trigger x }) |> Async.Parallel |> Async.Ignore Async.Start (fn, cts.Token) let! result = Async.AwaitEvent e.Publish cts.Cancel () return result } /// ## map let inline map fn a = async { let! x = a return fn x } /// ## catch let inline catch a = a |> Async.Catch ... ── fsharp - import ───────────────────────────────────────────────────────────── #if !INTERACTIVE namespace Polyglot #endif module AsyncSeq = open Common /// ## subscribeEvent let inline subscribeEvent (event: IEvent<'H, 'A>) map = let observable = System.Reactive.Linq.Observable.FromEventPattern<'H, 'A>(event.AddHandler, event.RemoveHandler) System.Reactive.Linq.Observable.Select (observable, fun event -> map event.EventArgs) |> FSharp.Control.AsyncSeq.ofObservableBuffered let subscribeToken (token : System.Threading.CancellationToken) = let tcs = new System.Threading.Tasks.TaskCompletionSource () System.Action tcs.SetResult |> token.Register |> ignore let start = System.DateTime.Now.Ticks FSharp.Control.AsyncSeq.unfoldAsync (fun (... ── fsharp - import ───────────────────────────────────────────────────────────── #if !INTERACTIVE namespace Polyglot #endif module Networking = open Common /// ## testPortOpen let inline testPortOpen port = async { let! ct = Async.CancellationToken use client = new System.Net.Sockets.TcpClient () try do! client.ConnectAsync ("127.0.0.1", port, ct) |> Async.awaitValueTaskUnit return true with ex -> trace Verbose (fun () -> $"testPortOpen / ex: {ex |> printException}") getLocals return false } let inline testPortOpenTimeout timeout port = async { let! result = testPortOpen port |> Async.runWithTimeoutAsync timeout return match result with | None -> false ... ── fsharp - import ───────────────────────────────────────────────────────────── #if !INTERACTIVE namespace Polyglot #endif module Runtime = open Common /// ## isWindows let isWindows = fun () -> System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform System.Runtime.InteropServices.OSPlatform.Windows |> memoize /// ## getExecutableSuffix let inline getExecutableSuffix () = if isWindows () then ".exe" else "" /// ## splitCommand type private CommandParseStep = | Start | Path of quoted: bool | Arguments let splitCommand (command: string) = let rec loop (path, args) chars step = match chars, step with | ('"' | '\'') :: tail, _ when path = "" -> loop (pat... ── fsharp - import ───────────────────────────────────────────────────────────── #if !INTERACTIVE namespace Polyglot #endif module FileSystem = open Common /// ## Operators module Operators = let inline (</>) a b = System.IO.Path.Combine (a, b) open Operators /// ## createTempDirectoryName let inline createTempDirectoryName () = let root = System.Reflection.Assembly.GetEntryAssembly().GetName().Name System.IO.Path.GetTempPath () </> $"!{root}" </> string (newGuidFromDateTime System.DateTime.Now) /// ## createTempDirectory let inline createTempDirectory () = let tempFolder = createTempDirectoryName () let result = System.IO.Directory.CreateDirectory tempFolder if not result.Exists then let ge... ── fsharp ────────────────────────────────────────────────────────────────────── open Common open FileSystem.Operators ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## buildProject │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let inline buildProject runtime outputDir path = async { let fullPath = path |> System.IO.Path.GetFullPath let fileDir = fullPath |> System.IO.Path.GetDirectoryName let extension = fullPath |> System.IO.Path.GetExtension let getLocals () = $"fullPath: {fullPath} / {getLocals ()}" trace Debug (fun () -> "buildProject") getLocals match extension with | ".fsproj" -> () | _ -> failwith "Invalid project file" let runtimes = runtime |> Option.map List.singleton |> Option.defaultValue [[ "linux-x64"; "win-x64" ]] let outputDir = outputDir |> Option.defaultValue "dist" return! runtimes |> List.map (fun runtime -> async { let! exitCode, _result = Runtime.executeWithOptionsAsync { Command = $@"dotnet publish ""{path}"" --configuration Release --output ""{outputDir}"" --runtime {runtime}" CancellationToken = None OnLine = None WorkingDirectory = Some fileDir } return exitCode }) |> Async.Sequential |> Async.map Array.sum } ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## persistCodeProject │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let inline persistCodeProject packages modules name code = async { let getLocals () = $"packages: {packages} / modules: {modules} / name: {name} / code.Length: {code |> String.length} / {getLocals ()}" trace Debug (fun () -> "persistCodeProject") getLocals let repositoryRoot = FileSystem.getSourceDirectory () |> FileSystem.findParent ".paket" false let targetDir = repositoryRoot </> "target/polyglot/builder" </> name System.IO.Directory.CreateDirectory targetDir |> ignore let filePath = targetDir </> $"{name}.fs" |> System.IO.Path.GetFullPath do! code |> FileSystem.writeAllTextExists filePath let modulesCode = modules |> List.map (fun path -> $"""<Compile Include="{repositoryRoot </> path}" />""") |> String.concat "\n " let fsprojPath = targetDir </> $"{name}.fsproj" let fsprojCode = $"""<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <TargetFramework>net9.0</TargetFramework> <LangVersion>preview</LangVersion> <RollForward>Major</RollForward> <TargetLatestRuntimePatch>true</TargetLatestRuntimePatch> <PublishAot>false</PublishAot> <PublishTrimmed>false</PublishTrimmed> <PublishSingleFile>true</PublishSingleFile> <SelfContained>true</SelfContained> <Version>0.0.1-alpha.1</Version> <OutputType>Exe</OutputType> </PropertyGroup> <ItemGroup> {modulesCode} <Compile Include="{filePath}" /> </ItemGroup> <Import Project="{repositoryRoot}/.paket/Paket.Restore.targets" /> </Project> """ do! fsprojCode |> FileSystem.writeAllTextExists fsprojPath let paketReferencesPath = targetDir </> "paket.references" let paketReferencesCode = "FSharp.Core" :: packages |> String.concat "\n" do! paketReferencesCode |> FileSystem.writeAllTextExists paketReferencesPath return fsprojPath } ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## buildCode │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let inline buildCode runtime packages modules outputDir name code = async { let! fsprojPath = code |> persistCodeProject packages modules name return! fsprojPath |> buildProject runtime outputDir } ── fsharp ────────────────────────────────────────────────────────────────────── //// test "1 + 1 |> ignore" |> buildCode None [[]] [[]] None "test1" |> Async.runWithTimeout 180000 |> _assertEqual (Some 0) ╭─[ 7.46s - stdout ]───────────────────────────────────────────────────────────╮ │ 00:00:00 #1 [Debug] persistCodeProject / packages: [] / modules: [] / name: │ │ test1 / code.Length: 15 │ │ 00:00:00 #2 [Debug] buildProject / fullPath: │ │ /home/runner/work/polyglot/polyglot/target/polyglot/builder/test1/test1.fspr │ │ oj │ │ 00:00:00 #3 [Debug] executeAsync / options: { Command = │ │ "dotnet publish │ │ "/home/runner/work/polyglot/polyglot/target/polyglot/builder/test1/test1.fsp │ │ roj" --configuration Release --output "dist" --runtime linux-x64" │ │ WorkingDirectory = │ │ Some "/home/runner/work/polyglot/polyglot/target/polyglot/builder/test1" │ │ CancellationToken = None │ │ OnLine = None } │ │ 00:00:00 #4 [Verbose] > MSBuild version 17.10.0-preview-24101-01+07fd5d51f │ │ for .NET │ │ 00:00:00 #5 [Verbose] > Determining projects to restore... │ │ 00:00:01 #6 [Verbose] > Restored │ │ /home/runner/work/polyglot/polyglot/target/polyglot/builder/test1/test1.fspr │ │ oj (in 325 ms). │ │ 00:00:01 #7 [Verbose] > │ │ /usr/share/dotnet/sdk/9.0.100-preview.1.24101.2/Sdks/Microsoft.NET.Sdk/targe │ │ ts/Microsoft.NET.RuntimeIdentifierInference.targets(313,5): message │ │ NETSDK1057: You are using a preview version of .NET. See: │ │ https://aka.ms/dotnet-support-policy [ │ │ /home/runner/work/polyglot/polyglot/target/polyglot/builder/test1/test1.fspr │ │ oj] │ │ 00:00:02 #8 [Verbose] > │ │ /home/runner/work/polyglot/polyglot/target/polyglot/builder/test1/test1.fs(1 │ │ ,16): warning FS0988: Main module of program is empty: nothing will happen │ │ when it is run [ │ │ /home/runner/work/polyglot/polyglot/target/polyglot/builder/test1/test1.fspr │ │ oj] │ │ 00:00:03 #9 [Verbose] > test1 -> │ │ /home/runner/work/polyglot/polyglot/target/polyglot/builder/test1/bin/Releas │ │ e/net9.0/linux-x64/test1.dll │ │ 00:00:03 #10 [Verbose] > test1 -> │ │ /home/runner/work/polyglot/polyglot/target/polyglot/builder/test1/dist │ │ 00:00:03 #11 [Debug] executeAsync / exitCode: 0 / output.Length: 965 │ │ 00:00:03 #12 [Debug] executeAsync / options: { Command = │ │ "dotnet publish │ │ "/home/runner/work/polyglot/polyglot/target/polyglot/builder/test1/test1.fsp │ │ roj" --configuration Release --output "dist" --runtime win-x64" │ │ WorkingDirectory = │ │ Some "/home/runner/work/polyglot/polyglot/target/polyglot/builder/test1" │ │ CancellationToken = None │ │ OnLine = None } │ │ 00:00:03 #13 [Verbose] > MSBuild version 17.10.0-preview-24101-01+07fd5d51f │ │ for .NET │ │ 00:00:04 #14 [Verbose] > Determining projects to restore... │ │ 00:00:04 #15 [Verbose] > Restored │ │ /home/runner/work/polyglot/polyglot/target/polyglot/builder/test1/test1.fspr │ │ oj (in 296 ms). │ │ 00:00:04 #16 [Verbose] > │ │ /usr/share/dotnet/sdk/9.0.100-preview.1.24101.2/Sdks/Microsoft.NET.Sdk/targe │ │ ts/Microsoft.NET.RuntimeIdentifierInference.targets(313,5): message │ │ NETSDK1057: You are using a preview version of .NET. See: │ │ https://aka.ms/dotnet-support-policy [ │ │ /home/runner/work/polyglot/polyglot/target/polyglot/builder/test1/test1.fspr │ │ oj] │ │ 00:00:06 #17 [Verbose] > │ │ /home/runner/work/polyglot/polyglot/target/polyglot/builder/test1/test1.fs(1 │ │ ,16): warning FS0988: Main module of program is empty: nothing will happen │ │ when it is run [ │ │ /home/runner/work/polyglot/polyglot/target/polyglot/builder/test1/test1.fspr │ │ oj] │ │ 00:00:06 #18 [Verbose] > test1 -> │ │ /home/runner/work/polyglot/polyglot/target/polyglot/builder/test1/bin/Releas │ │ e/net9.0/win-x64/test1.dll │ │ 00:00:06 #19 [Verbose] > test1 -> │ │ /home/runner/work/polyglot/polyglot/target/polyglot/builder/test1/dist │ │ 00:00:06 #20 [Debug] executeAsync / exitCode: 0 / output.Length: 963 │ │ FSharpOption<Int32> │ │ Value: 0 │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── //// test "1 + a |> ignore" |> buildCode None [[]] [[]] None "test2" |> Async.runWithTimeout 180000 |> _assertEqual (Some 2) ╭─[ 5.00s - stdout ]───────────────────────────────────────────────────────────╮ │ 00:00:07 #21 [Debug] persistCodeProject / packages: [] / modules: [] / name: │ │ test2 / code.Length: 15 │ │ 00:00:07 #22 [Debug] buildProject / fullPath: │ │ /home/runner/work/polyglot/polyglot/target/polyglot/builder/test2/test2.fspr │ │ oj │ │ 00:00:07 #23 [Debug] executeAsync / options: { Command = │ │ "dotnet publish │ │ "/home/runner/work/polyglot/polyglot/target/polyglot/builder/test2/test2.fsp │ │ roj" --configuration Release --output "dist" --runtime linux-x64" │ │ WorkingDirectory = │ │ Some "/home/runner/work/polyglot/polyglot/target/polyglot/builder/test2" │ │ CancellationToken = None │ │ OnLine = None } │ │ 00:00:07 #24 [Verbose] > MSBuild version 17.10.0-preview-24101-01+07fd5d51f │ │ for .NET │ │ 00:00:07 #25 [Verbose] > Determining projects to restore... │ │ 00:00:08 #26 [Verbose] > Restored │ │ /home/runner/work/polyglot/polyglot/target/polyglot/builder/test2/test2.fspr │ │ oj (in 259 ms). │ │ 00:00:08 #27 [Verbose] > │ │ /usr/share/dotnet/sdk/9.0.100-preview.1.24101.2/Sdks/Microsoft.NET.Sdk/targe │ │ ts/Microsoft.NET.RuntimeIdentifierInference.targets(313,5): message │ │ NETSDK1057: You are using a preview version of .NET. See: │ │ https://aka.ms/dotnet-support-policy [ │ │ /home/runner/work/polyglot/polyglot/target/polyglot/builder/test2/test2.fspr │ │ oj] │ │ 00:00:09 #28 [Verbose] > │ │ /home/runner/work/polyglot/polyglot/target/polyglot/builder/test2/test2.fs(1 │ │ ,5): error FS0039: The value or constructor 'a' is not defined. [ │ │ /home/runner/work/polyglot/polyglot/target/polyglot/builder/test2/test2.fspr │ │ oj] │ │ 00:00:09 #29 [Debug] executeAsync / exitCode: 1 / output.Length: 740 │ │ 00:00:09 #30 [Debug] executeAsync / options: { Command = │ │ "dotnet publish │ │ "/home/runner/work/polyglot/polyglot/target/polyglot/builder/test2/test2.fsp │ │ roj" --configuration Release --output "dist" --runtime win-x64" │ │ WorkingDirectory = │ │ Some "/home/runner/work/polyglot/polyglot/target/polyglot/builder/test2" │ │ CancellationToken = None │ │ OnLine = None } │ │ 00:00:09 #31 [Verbose] > MSBuild version 17.10.0-preview-24101-01+07fd5d51f │ │ for .NET │ │ 00:00:10 #32 [Verbose] > Determining projects to restore... │ │ 00:00:10 #33 [Verbose] > Restored │ │ /home/runner/work/polyglot/polyglot/target/polyglot/builder/test2/test2.fspr │ │ oj (in 253 ms). │ │ 00:00:10 #34 [Verbose] > │ │ /usr/share/dotnet/sdk/9.0.100-preview.1.24101.2/Sdks/Microsoft.NET.Sdk/targe │ │ ts/Microsoft.NET.RuntimeIdentifierInference.targets(313,5): message │ │ NETSDK1057: You are using a preview version of .NET. See: │ │ https://aka.ms/dotnet-support-policy [ │ │ /home/runner/work/polyglot/polyglot/target/polyglot/builder/test2/test2.fspr │ │ oj] │ │ 00:00:11 #35 [Verbose] > │ │ /home/runner/work/polyglot/polyglot/target/polyglot/builder/test2/test2.fs(1 │ │ ,5): error FS0039: The value or constructor 'a' is not defined. [ │ │ /home/runner/work/polyglot/polyglot/target/polyglot/builder/test2/test2.fspr │ │ oj] │ │ 00:00:11 #36 [Debug] executeAsync / exitCode: 1 / output.Length: 740 │ │ FSharpOption<Int32> │ │ Value: 2 │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## readFile │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let inline readFile path = async { let! code = path |> FileSystem.readAllTextAsync let code = System.Text.RegularExpressions.Regex.Replace ( code, @"( *)(let\s+main\s+.*?\s*=)", fun m -> m.Groups.[[1]].Value + "[[<EntryPoint>]]\n" + m.Groups.[[1]].Value + m.Groups.[[2]].Value ) let codeTrim = code |> String.trimEnd [[||]] return if codeTrim |> String.endsWith "\n()" then codeTrim |> String.substring 0 ((codeTrim |> String.length) - 2) else code } ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## buildFile │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let inline buildFile runtime packages modules path = async { let fullPath = path |> System.IO.Path.GetFullPath let dir = fullPath |> System.IO.Path.GetDirectoryName let name = fullPath |> System.IO.Path.GetFileNameWithoutExtension let! code = fullPath |> readFile return! code |> buildCode runtime packages modules (dir </> "dist" |> Some) name } ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## persistFile │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let inline persistFile packages modules path = async { let fullPath = path |> System.IO.Path.GetFullPath let name = fullPath |> System.IO.Path.GetFileNameWithoutExtension let! code = fullPath |> readFile return! code |> persistCodeProject packages modules name } ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## Arguments │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── [[<RequireQualifiedAccess>]] type Arguments = | [[<Argu.ArguAttributes.MainCommand; Argu.ArguAttributes.ExactlyOnce>]] Path of path : string | [[<Argu.ArguAttributes.Unique>]] Packages of packages : string list | [[<Argu.ArguAttributes.Unique>]] Modules of modules : string list | [[<Argu.ArguAttributes.Unique>]] Runtime of runtime : string | [[<Argu.ArguAttributes.Unique>]] Persist_Only interface Argu.IArgParserTemplate with member s.Usage = match s with | Path _ -> nameof Path | Packages _ -> nameof Packages | Modules _ -> nameof Modules | Runtime _ -> nameof Runtime | Persist_Only -> nameof Persist_Only ── fsharp ────────────────────────────────────────────────────────────────────── //// test Argu.ArgumentParser.Create<Arguments>().PrintUsage () ╭─[ 81.41ms - return value ]───────────────────────────────────────────────────╮ │ USAGE: dotnet-repl [--help] [--packages [<packages>...]] │ │ [--modules [<modules>...]] [--runtime <runtime>] │ │ [--persist-only] <path> │ │ │ │ PATH: │ │ │ │ <path> Path │ │ │ │ OPTIONS: │ │ │ │ --packages [<packages>...] │ │ Packages │ │ --modules [<modules>...] │ │ Modules │ │ --runtime <runtime> Runtime │ │ --persist-only Persist_Only │ │ --help display this list of options. │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## main │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let main args = let argsMap = args |> Runtime.parseArgsMap<Arguments> let path = match argsMap.[[nameof Arguments.Path]] with | [[ Arguments.Path path ]] -> Some path | _ -> None |> Option.get let packages = match argsMap |> Map.tryFind (nameof Arguments.Packages) with | Some [[ Arguments.Packages packages ]] -> packages | _ -> [[]] let modules = match argsMap |> Map.tryFind (nameof Arguments.Modules) with | Some [[ Arguments.Modules modules ]] -> modules | _ -> [[]] let runtime = match argsMap |> Map.tryFind (nameof Arguments.Runtime) with | Some [[ Arguments.Runtime runtime ]] -> Some runtime | _ -> None let persistOnly = argsMap |> Map.containsKey (nameof Arguments.Persist_Only) if persistOnly then path |> persistFile packages modules |> Async.map (fun _ -> 0) else path |> buildFile runtime packages modules |> Async.runWithTimeout (60000 * 60) |> function | Some exitCode -> exitCode | None -> 1 ── fsharp ────────────────────────────────────────────────────────────────────── //// test let args = System.Environment.GetEnvironmentVariable "ARGS" |> Runtime.splitArgs |> Seq.toArray match args with | [[||]] -> 0 | args -> if main args = 0 then 0 else failwith "main failed" ╭─[ 5.67s - return value ]─────────────────────────────────────────────────────╮ │ <div class="dni-plaintext"><pre>0</pre></div><style> │ │ .dni-code-hint { │ │ font-style: italic; │ │ overflow: hidden; │ │ white-space: nowrap; │ │ } │ │ .dni-treeview { │ │ white-space: nowrap; │ │ } │ │ .dni-treeview td { │ │ vertical-align: top; │ │ text-align: start; │ │ } │ │ details.dni-treeview { │ │ padding-left: 1em; │ │ } │ │ table td { │ │ text-align: start; │ │ } │ │ table tr { │ │ vertical-align: top; │ │ margin: 0em 0px; │ │ } │ │ table tr td pre │ │ { │ │ vertical-align: top !important; │ │ margin: 0em 0px !important; │ │ } │ │ table th { │ │ text-align: start; │ │ } │ │ </style> │ ╰──────────────────────────────────────────────────────────────────────────────╯ ╭─[ 5.67s - stdout ]───────────────────────────────────────────────────────────╮ │ 00:00:13 #37 [Debug] persistCodeProject / packages: [Argu; │ │ FSharp.Control.AsyncSeq; System.CommandLine; ... ] / modules: [ │ │ lib/fsharp/Common.fs; lib/fsharp/CommonFSharp.fs; lib/fsharp/Async.fs; ... ] │ │ / name: Builder / code.Length: 7086 │ │ 00:00:13 #38 [Debug] buildProject / fullPath: │ │ /home/runner/work/polyglot/polyglot/target/polyglot/builder/Builder/Builder. │ │ fsproj │ │ 00:00:13 #39 [Debug] executeAsync / options: { Command = │ │ "dotnet publish │ │ "/home/runner/work/polyglot/polyglot/target/polyglot/builder/Builder/Builder │ │ .fsproj" --configuration Release --output │ │ "/home/runner/work/polyglot/polyglot/apps/builder/dist" --runtime linux-x64" │ │ WorkingDirectory = │ │ Some │ │ "/home/runner/work/polyglot/polyglot/target/polyglot/builder/Builder" │ │ CancellationToken = None │ │ OnLine = None } │ │ 00:00:13 #40 [Verbose] > MSBuild version 17.10.0-preview-24101-01+07fd5d51f │ │ for .NET │ │ 00:00:13 #41 [Verbose] > Determining projects to restore... │ │ 00:00:13 #42 [Verbose] > All projects are up-to-date for restore. │ │ 00:00:13 #43 [Verbose] > │ │ /usr/share/dotnet/sdk/9.0.100-preview.1.24101.2/Sdks/Microsoft.NET.Sdk/targe │ │ ts/Microsoft.NET.RuntimeIdentifierInference.targets(313,5): message │ │ NETSDK1057: You are using a preview version of .NET. See: │ │ https://aka.ms/dotnet-support-policy [ │ │ /home/runner/work/polyglot/polyglot/target/polyglot/builder/Builder/Builder. │ │ fsproj] │ │ 00:00:18 #44 [Verbose] > Builder -> │ │ /home/runner/work/polyglot/polyglot/target/polyglot/builder/Builder/bin/Rele │ │ ase/net9.0/linux-x64/Builder.dll │ │ 00:00:18 #45 [Verbose] > Builder -> │ │ /home/runner/work/polyglot/polyglot/apps/builder/dist │ │ 00:00:18 #46 [Debug] executeAsync / exitCode: 0 / output.Length: 653 │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ [NbConvertApp] Converting notebook Builder.dib.ipynb to html /opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/nbformat/__init__.py:96: MissingIDFieldWarning: Cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future. validate(nb) /opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/nbconvert/filters/highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3 return _pygments_highlight( [NbConvertApp] Writing 326553 bytes to Builder.dib.html
In [ ]:
{ . "$ScriptDir/../apps/parser/build.ps1" } | Invoke-Block
── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ # DibParser (Polyglot) │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── #!import ../../lib/fsharp/Notebooks.dib #!import ../../lib/fsharp/Testing.dib ── fsharp - import ───────────────────────────────────────────────────────────── #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Asp NetCore.Html.Abstractions.dll" #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Dot Net.Interactive.dll" #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Dot Net.Interactive.FSharp.dll" #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Dot Net.Interactive.Formatting.dll" open System open System.IO open System.Text open Microsoft.DotNet.Interactive.Formatting ── fsharp - import ───────────────────────────────────────────────────────────── #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Dot Net.Interactive.FSharp.dll" open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Dot Net.Interactive.dll" open type Microsoft.DotNet.Interactive.Kernel ── fsharp - import ───────────────────────────────────────────────────────────── //// test Formatter.ListExpansionLimit <- 100 ── fsharp - import ───────────────────────────────────────────────────────────── #r @"../../../../../../../.nuget/packages/expecto/10.2.1/lib/net6.0/Expecto.dll" ── fsharp - import ───────────────────────────────────────────────────────────── //// test type AssertExceptionFormatter (ex) = member _.Text = ex.ToString() .Replace("32m", "<span style=\"color: green;\">") .Replace("36m", "</span>") .Replace("31m", "<span style=\"color: red;\">") .Replace("\n", "<br/>\n") Formatter.Register<AssertExceptionFormatter> ((fun (x : AssertExceptionFormatter) -> x.Text), "text/html") ── fsharp - import ───────────────────────────────────────────────────────────── //// test let inline __expect fn log expected actual = if log then printfn $"{actual.ToDisplayString ()}" try "Testing.__expect" |> fn actual expected with :? Expecto.AssertException as ex -> AssertExceptionFormatter(ex).Display () |> ignore failwith (ex.GetType().FullName) let inline __contains log expected actual = __expect Expecto.Expect.contains log expected actual let inline _contains expected actual = __contains true expected actual let inline __assertEqual log expected actual = __expect Expecto.Expect.equal log expected actual let inline _assertEqual expected actual = __assertEqual true expected actual let inline __isGreaterThan log expected actual = __expect Expecto.Expect.isGreaterThan log ex... ── fsharp - import ───────────────────────────────────────────────────────────── //// test let inline __isBetween log a b actual = let inline isBetween actual (a, b) _ = __isGreaterThanOrEqual log a actual __isLessThanOrEqual log b actual __expect isBetween log (a, b) actual let inline _isBetween a b actual = __isBetween true a b actual ── pwsh ──────────────────────────────────────────────────────────────────────── ls ~/.nuget/packages/argu ╭─[ 203.24ms - stdout ]────────────────────────────────────────────────────────╮ │ 6.2.2 │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── #r @"../../../../../../../.nuget/packages/fsharp.control.asyncseq/3.2.1/lib/netstan dard2.1/FSharp.Control.AsyncSeq.dll" #r @"../../../../../../../.nuget/packages/system.reactive/6.0.1-preview.1/lib/net6. 0/System.Reactive.dll" #r @"../../../../../../../.nuget/packages/system.reactive.linq/6.0.1-preview.1/lib/ netstandard2.0/System.Reactive.Linq.dll" #r @"../../../../../../../.nuget/packages/argu/6.2.2/lib/netstandard2.0/Argu.dll" #r @"../../../../../../../.nuget/packages/system.commandline/2.0.0-beta4.22272.1/li b/net6.0/System.CommandLine.dll" #r @"../../../../../../../.nuget/packages/fparsec/2.0.0-beta2/lib/netstandard2.1/FP arsec.dll" #r @"../../../../../../../.nuget/packages/fparsec/2.0.0-beta2/lib/netstandard2.1/FP arsecCS.dll" ── fsharp ────────────────────────────────────────────────────────────────────── #!import ../../lib/fsharp/Common.fs #!import ../../lib/fsharp/CommonFSharp.fs #!import ../../lib/fsharp/Async.fs #!import ../../lib/fsharp/AsyncSeq.fs #!import ../../lib/fsharp/Runtime.fs #!import ../../lib/fsharp/FileSystem.fs ── fsharp - import ───────────────────────────────────────────────────────────── #if !INTERACTIVE namespace Polyglot #endif module Common = let nl = System.Environment.NewLine let q = @"""" let inline cons head tail = head :: tail module String = let inline contains (value : string) (input : string) = input.Contains value let inline endsWith (value : string) (input : string) = input.EndsWith value let inline padLeft totalWidth paddingChar (input : string) = input.PadLeft (totalWidth, paddingChar) let inline replace (oldValue : string) (newValue : string) (input : string) = input.Replace (oldValue, newValue) let inline split separator (input : string) = input.Split separator let inline spli... ── fsharp - import ───────────────────────────────────────────────────────────── #if !INTERACTIVE namespace Polyglot #endif module CommonFSharp = open Common /// ## getUnionCaseName let inline getUnionCaseName<'T> (x: 'T) = match Reflection.FSharpValue.GetUnionFields(x, typeof<'T>) with | case, _ -> case.Name ── fsharp - import ───────────────────────────────────────────────────────────── #if !INTERACTIVE namespace Polyglot #endif module Async = open Common /// ## choice let inline choice asyncs = async { let e = Event<_> () use cts = new System.Threading.CancellationTokenSource () let fn = asyncs |> Seq.map (fun a -> async { let! x = a e.Trigger x }) |> Async.Parallel |> Async.Ignore Async.Start (fn, cts.Token) let! result = Async.AwaitEvent e.Publish cts.Cancel () return result } /// ## map let inline map fn a = async { let! x = a return fn x } /// ## catch let inline catch a = a |> Async.Catch ... ── fsharp - import ───────────────────────────────────────────────────────────── #if !INTERACTIVE namespace Polyglot #endif module AsyncSeq = open Common /// ## subscribeEvent let inline subscribeEvent (event: IEvent<'H, 'A>) map = let observable = System.Reactive.Linq.Observable.FromEventPattern<'H, 'A>(event.AddHandler, event.RemoveHandler) System.Reactive.Linq.Observable.Select (observable, fun event -> map event.EventArgs) |> FSharp.Control.AsyncSeq.ofObservableBuffered let subscribeToken (token : System.Threading.CancellationToken) = let tcs = new System.Threading.Tasks.TaskCompletionSource () System.Action tcs.SetResult |> token.Register |> ignore let start = System.DateTime.Now.Ticks FSharp.Control.AsyncSeq.unfoldAsync (fun (... ── fsharp - import ───────────────────────────────────────────────────────────── #if !INTERACTIVE namespace Polyglot #endif module Runtime = open Common /// ## isWindows let isWindows = fun () -> System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform System.Runtime.InteropServices.OSPlatform.Windows |> memoize /// ## getExecutableSuffix let inline getExecutableSuffix () = if isWindows () then ".exe" else "" /// ## splitCommand type private CommandParseStep = | Start | Path of quoted: bool | Arguments let splitCommand (command: string) = let rec loop (path, args) chars step = match chars, step with | ('"' | '\'') :: tail, _ when path = "" -> loop (pat... ── fsharp - import ───────────────────────────────────────────────────────────── #if !INTERACTIVE namespace Polyglot #endif module FileSystem = open Common /// ## Operators module Operators = let inline (</>) a b = System.IO.Path.Combine (a, b) open Operators /// ## createTempDirectoryName let inline createTempDirectoryName () = let root = System.Reflection.Assembly.GetEntryAssembly().GetName().Name System.IO.Path.GetTempPath () </> $"!{root}" </> string (newGuidFromDateTime System.DateTime.Now) /// ## createTempDirectory let inline createTempDirectory () = let tempFolder = createTempDirectoryName () let result = System.IO.Directory.CreateDirectory tempFolder if not result.Exists then let ge... ── fsharp ────────────────────────────────────────────────────────────────────── open Common open FParsec ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## escapeCell (test) │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── //// test let inline escapeCell input = input |> String.split [[| '\n' |]] |> Array.map (function | line when line |> String.startsWith "\\#!" || line |> String.startsWith "\\#r" -> System.Text.RegularExpressions.Regex.Replace (line, "^\\\\#", "#") | line -> line ) |> String.concat "\n" ── fsharp ────────────────────────────────────────────────────────────────────── //// test $"a{nl}\\#!magic{nl}b{nl}" |> escapeCell |> _assertEqual ( $"a{nl}#!magic{nl}b{nl}" ) ╭─[ 35.19ms - stdout ]─────────────────────────────────────────────────────────╮ │ a │ │ #!magic │ │ b │ │ │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## magicMarker │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let magicMarker : Parser<string, unit> = pstring "#!" ── fsharp ────────────────────────────────────────────────────────────────────── //// test "#!magic" |> run magicMarker |> _assertEqual ( Success ("#!", (), Position ("", 2, 1, 3)) ) ╭─[ 28.11ms - stdout ]─────────────────────────────────────────────────────────╮ │ Success │ │ Item1: #! │ │ Item2: <null> │ │ Item3: Position │ │ Index: 2 │ │ Line: 1 │ │ Column: 3 │ │ StreamName: │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── //// test "##!magic" |> run magicMarker |> _assertEqual ( Failure ( $"Error in Ln: 1 Col: 1{nl}##!magic{nl}^{nl}Expecting: '#!'{nl}", ParserError ( Position ("", 0, 1, 1), (), ErrorMessageList (ExpectedString "#!") ), () ) ) ╭─[ 34.99ms - stdout ]─────────────────────────────────────────────────────────╮ │ Failure │ │ Item1: Error in Ln: 1 Col: 1 │ │ ##!magic │ │ ^ │ │ Expecting: '#!' │ │ │ │ Item2: ParserError │ │ Position: Position │ │ Index: 0 │ │ Line: 1 │ │ Column: 1 │ │ StreamName: │ │ UserState: <null> │ │ Messages: ErrorMessageList │ │ Head: ExpectedString │ │ String: #! │ │ Type: ExpectedString │ │ Tail: <null> │ │ Item3: <null> │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## magicCommand │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let magicCommand = magicMarker >>. manyTill anyChar newline |>> (System.String.Concat >> String.trim) ── fsharp ────────────────────────────────────────────────────────────────────── //// test "#!magic a" |> run magicCommand |> _assertEqual ( Success ("magic", (), Position ("", 8, 2, 1)) ) ╭─[ 67.87ms - stdout ]─────────────────────────────────────────────────────────╮ │ Success │ │ Item1: magic │ │ Item2: <null> │ │ Item3: Position │ │ Index: 8 │ │ Line: 2 │ │ Column: 1 │ │ StreamName: │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── //// test " #!magic a" |> run magicCommand |> _assertEqual ( Failure ( $"Error in Ln: 1 Col: 1{nl} #!magic{nl}^{nl}Expecting: '#!'{nl}", ParserError ( Position ("", 0, 1, 1), (), ErrorMessageList (ExpectedString "#!") ), () ) ) ╭─[ 21.44ms - stdout ]─────────────────────────────────────────────────────────╮ │ Failure │ │ Item1: Error in Ln: 1 Col: 1 │ │ #!magic │ │ ^ │ │ Expecting: '#!' │ │ │ │ Item2: ParserError │ │ Position: Position │ │ Index: 0 │ │ Line: 1 │ │ Column: 1 │ │ StreamName: │ │ UserState: <null> │ │ Messages: ErrorMessageList │ │ Head: ExpectedString │ │ String: #! │ │ Type: ExpectedString │ │ Tail: <null> │ │ Item3: <null> │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## content │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let content = (newline >>. magicMarker) <|> (eof >>. preturn "") |> attempt |> lookAhead |> manyTill anyChar |>> (System.String.Concat >> String.trim) ── fsharp ────────────────────────────────────────────────────────────────────── //// test "#!magic a " |> run content |> _assertEqual ( Success ("#!magic a", (), Position ("", 14, 7, 1)) ) ╭─[ 15.76ms - stdout ]─────────────────────────────────────────────────────────╮ │ Success │ │ Item1: #!magic │ │ │ │ │ │ a │ │ Item2: <null> │ │ Item3: Position │ │ Index: 14 │ │ Line: 7 │ │ Column: 1 │ │ StreamName: │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## Block │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── type Block = { magic : string content : string } ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## block │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let block = pipe2 magicCommand content (fun magic content -> { magic = magic content = content }) ── fsharp ────────────────────────────────────────────────────────────────────── //// test "#!magic a " |> run block |> _assertEqual ( Success ( { magic = "magic"; content = "a" }, (), Position ("", 14, 7, 1) ) ) ╭─[ 18.64ms - stdout ]─────────────────────────────────────────────────────────╮ │ Success │ │ Item1: Block │ │ magic: magic │ │ content: a │ │ Item2: <null> │ │ Item3: Position │ │ Index: 14 │ │ Line: 7 │ │ Column: 1 │ │ StreamName: │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## blocks │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let blocks = skipMany newline >>. sepEndBy block (skipMany1 newline) ── fsharp ────────────────────────────────────────────────────────────────────── //// test "#!magic1 a \#!magic2 b " |> escapeCell |> run blocks |> _assertEqual ( Success ( [[ { magic = "magic1"; content = "a" } { magic = "magic2"; content = "b" } ]], (), Position ("", 26, 9, 1) ) ) ╭─[ 25.79ms - stdout ]─────────────────────────────────────────────────────────╮ │ Success │ │ Item1: FSharpList<Block> │ │ - magic: magic1 │ │ content: a │ │ - magic: magic2 │ │ content: b │ │ Item2: <null> │ │ Item3: Position │ │ Index: 26 │ │ Line: 9 │ │ Column: 1 │ │ StreamName: │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## Output │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── type Output = | Fs | Md | Spi | Spir let inline kernelOutputs magic = match magic with | "fsharp" -> [[ Fs ]] | "markdown" -> [[ Md ]] | "spiral" -> [[ Spi; Spir ]] | _ -> [[]] ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## formatBlock │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let inline formatBlock output (block : Block) = match output, block with | output, { magic = "markdown"; content = content } -> let markdownComment = match output with | Spi | Spir -> "// // " | Fs -> "/// " | _ -> "" content |> String.split [[| '\n' |]] |> Array.map (String.trimEnd [[||]]) |> Array.filter (String.endsWith " (test)" >> not) |> Array.map (function | "" -> markdownComment |> String.trim | line -> System.Text.RegularExpressions.Regex.Replace (line, "^\\s*", $"$&{markdownComment}") ) |> String.concat "\n" | Fs, { magic = "fsharp"; content = content } -> let trimmedContent = content |> String.trim if trimmedContent |> String.startsWith "//// test" || trimmedContent |> String.startsWith "//// ignore" then "" else content |> String.split [[| '\n' |]] |> Array.filter (String.trimStart [[||]] >> String.startsWith "#r" >> not) |> String.concat "\n" | (Spi | Spir), { magic = "spiral"; content = content } -> let trimmedContent = content |> String.trim if trimmedContent |> String.startsWith "// // test" || trimmedContent |> String.startsWith "// // ignore" then "" else content | _ -> "" ── fsharp ────────────────────────────────────────────────────────────────────── //// test "#!markdown a b c \#!markdown c \#!fsharp let a = 1" |> escapeCell |> run block |> function | Success (block, _, _) -> formatBlock Fs block | Failure (msg, _, _) -> failwith msg |> _assertEqual "/// a /// /// b /// /// c" ╭─[ 33.08ms - stdout ]─────────────────────────────────────────────────────────╮ │ /// a │ │ /// │ │ /// b │ │ /// │ │ /// c │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## formatBlocks │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let inline formatBlocks output blocks = blocks |> List.map (formatBlock output) |> List.filter ((<>) "") |> String.concat "\n\n" |> fun s -> s + "\n" ── fsharp ────────────────────────────────────────────────────────────────────── //// test "#!markdown a b \#!markdown c \#!fsharp let a = 1 \#!markdown d (test) \#!fsharp //// test let a = 2 \#!markdown e \#!fsharp let a = 3" |> escapeCell |> run blocks |> function | Success (blocks, _, _) -> formatBlocks Fs blocks | Failure (msg, _, _) -> failwith msg |> _assertEqual "/// a /// /// b /// c let a = 1 /// e let a = 3 " ╭─[ 35.61ms - stdout ]─────────────────────────────────────────────────────────╮ │ /// a │ │ /// │ │ /// b │ │ │ │ /// c │ │ │ │ let a = 1 │ │ │ │ /// e │ │ │ │ let a = 3 │ │ │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## parse │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let inline parse output input = match run blocks input with | Success (blocks, _, _) -> let blocks = blocks |> List.filter (fun block -> block.magic |> kernelOutputs |> List.contains output || block.magic = "markdown" ) match blocks with | { magic = "markdown"; content = content } :: _ when output = Fs && content |> String.startsWith "# " && content |> String.endsWith ")" -> let inline indentBlock (block : Block) = { block with content = block.content |> String.split [[| '\n' |]] |> Array.fold (fun (lines, isMultiline) line -> let trimmedLine = line |> String.trim if trimmedLine = "" then "" :: lines, isMultiline else let inline singleQuoteLine () = trimmedLine |> Seq.sumBy ((=) '"' >> System.Convert.ToInt32) = 1 && trimmedLine |> String.contains @"'""'" |> not && trimmedLine |> String.endsWith "{" |> not && trimmedLine |> String.endsWith "{|" |> not && trimmedLine |> String.startsWith "}" |> not && trimmedLine |> String.startsWith "|}" |> not match isMultiline, trimmedLine |> String.splitString [[| $"{q}{q}{q}" |]] with | false, [[| _; _ |]] -> $" {line}" :: lines, true | true, [[| _; _ |]] -> line :: lines, false | false, _ when singleQuoteLine () -> $" {line}" :: lines, true | false, _ when line |> String.startsWith "#" && block.magic = "fsharp" -> line :: lines, false | false, _ -> $" {line}" :: lines, false | true, _ when singleQuoteLine () && line |> String.startsWith " " -> $" {line}" :: lines, false | true, _ when singleQuoteLine () -> line :: lines, false | true, _ -> line :: lines, true ) ([[]], false) |> fst |> List.rev |> String.concat "\n" } let moduleName, namespaceName = System.Text.RegularExpressions.Regex.Match (content, @"# (.*) \((.*)\)$") |> fun m -> m.Groups.[[1]].Value, m.Groups.[[2]].Value let moduleBlock = { magic = "fsharp" content = $"#if !INTERACTIVE namespace {namespaceName} #endif module {moduleName} =" } blocks |> List.indexed |> List.fold (fun blocks (index, block) -> match index with | 0 -> blocks | 1 -> indentBlock block :: moduleBlock :: blocks | _ -> indentBlock block :: blocks ) [[]] |> List.rev | _ -> blocks |> Result.Ok | Failure (errorMsg, _, _) -> Result.Error errorMsg ── fsharp ────────────────────────────────────────────────────────────────────── //// test let example1 = $"""#!meta {{"kernelInfo":{{"defaultKernelName":"fsharp","items":[[{{"aliases":[[]],"name": "fsharp"}},{{"aliases":[[]],"name":"fsharp"}}]]}}}} \#!markdown # TestModule (TestNamespace) \#!fsharp \#!import file.dib \#!fsharp \#r "nuget:Expecto" \#!markdown ## ParserLibrary \#!fsharp open System \#!markdown ## x (test) \#!fsharp //// ignore let x = 1 \#!spiral // // test inl x = 0i32 \#!spiral inl x = 0i32 \#!markdown ### TextInput \#!fsharp let str1 = "abc def" let str2 = "abc\ def" let str3 = $"1{{ 1 }}1" let str4 = $"1{{({{| a = 1 |}}).a}}1" let str5 = "abc \ def" let x = match '"' with | '"' -> true | _ -> false let long1 = {q}{q}{q}a{q}{q}{q} let long2 = {q}{q}{q} a {q}{q}{q} \#!fsharp type Position = {{ #if INTERACTIVE line : string #else line : int #endif column : int }}""" |> escapeCell ── fsharp ────────────────────────────────────────────────────────────────────── //// test example1 |> parse Fs |> Result.toOption |> Option.get |> (formatBlocks Fs) |> _assertEqual $"""#if !INTERACTIVE namespace TestNamespace #endif module TestModule = /// ## ParserLibrary open System /// ### TextInput let str1 = "abc def" let str2 = "abc\ def" let str3 = $"1{{ 1 }}1" let str4 = $"1{{({{| a = 1 |}}).a}}1" let str5 = "abc \ def" let x = match '"' with | '"' -> true | _ -> false let long1 = {q}{q}{q}a{q}{q}{q} let long2 = {q}{q}{q} a {q}{q}{q} type Position = {{ #if INTERACTIVE line : string #else line : int #endif column : int }} """ ╭─[ 146.97ms - stdout ]────────────────────────────────────────────────────────╮ │ #if !INTERACTIVE │ │ namespace TestNamespace │ │ #endif │ │ │ │ module TestModule = │ │ │ │ /// ## ParserLibrary │ │ │ │ open System │ │ │ │ /// ### TextInput │ │ │ │ let str1 = "abc │ │ def" │ │ │ │ let str2 = │ │ "abc\ │ │ def" │ │ │ │ let str3 = │ │ $"1{ │ │ 1 │ │ }1" │ │ │ │ let str4 = │ │ $"1{({| │ │ a = 1 │ │ |}).a}1" │ │ │ │ let str5 = │ │ "abc \ │ │ def" │ │ │ │ let x = │ │ match '"' with │ │ | '"' -> true │ │ | _ -> false │ │ │ │ let long1 = """a""" │ │ │ │ let long2 = │ │ """ │ │ a │ │ """ │ │ │ │ type Position = │ │ { │ │ #if INTERACTIVE │ │ line : string │ │ #else │ │ line : int │ │ #endif │ │ column : int │ │ } │ │ │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── //// test example1 |> parse Md |> Result.toOption |> Option.get |> (formatBlocks Md) |> _assertEqual "# TestModule (TestNamespace) ## ParserLibrary ### TextInput " ╭─[ 85.83ms - stdout ]─────────────────────────────────────────────────────────╮ │ # TestModule (TestNamespace) │ │ │ │ ## ParserLibrary │ │ │ │ ### TextInput │ │ │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── //// test example1 |> parse Spi |> Result.toOption |> Option.get |> (formatBlocks Spi) |> _assertEqual "// // # TestModule (TestNamespace) // // ## ParserLibrary inl x = 0i32 // // ### TextInput " ╭─[ 86.67ms - stdout ]─────────────────────────────────────────────────────────╮ │ // // # TestModule (TestNamespace) │ │ │ │ // // ## ParserLibrary │ │ │ │ inl x = 0i32 │ │ │ │ // // ### TextInput │ │ │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## parseDibCode │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let inline parseDibCode output file = async { let getLocals () = $"output: {output} / file: {file} / {getLocals ()}" trace Debug (fun () -> "parseDibCode") getLocals let! input = file |> FileSystem.readAllTextAsync match parse output input with | Result.Ok blocks -> return blocks |> formatBlocks output | Result.Error msg -> return failwith msg } ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## writeDibCode │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let inline writeDibCode output path = async { let getLocals () = $"output: {output} / path: {path} / {getLocals ()}" trace Debug (fun () -> "writeDibCode") getLocals let! result = parseDibCode output path let outputPath = path |> String.replace ".dib" $".{output |> string |> String.toLower}" do! result |> FileSystem.writeAllTextAsync outputPath } ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## Arguments │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── [[<RequireQualifiedAccess>]] type Arguments = | [[<Argu.ArguAttributes.MainCommand; Argu.ArguAttributes.Mandatory>]] File of file : string * Output interface Argu.IArgParserTemplate with member s.Usage = match s with | File _ -> nameof File ── fsharp ────────────────────────────────────────────────────────────────────── //// test Argu.ArgumentParser.Create<Arguments>().PrintUsage () ╭─[ 79.02ms - return value ]───────────────────────────────────────────────────╮ │ USAGE: dotnet-repl [--help] <file> <fs|md|spi|spir> │ │ │ │ FILE: │ │ │ │ <file> <fs|md|spi|spir> │ │ File │ │ │ │ OPTIONS: │ │ │ │ --help display this list of options. │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## main │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let main args = let argsMap = args |> Runtime.parseArgsMap<Arguments> let files = argsMap.[[nameof Arguments.File]] |> List.map (function | Arguments.File (path, output) -> path, output ) files |> List.map (fun (path, output) -> path |> writeDibCode output) |> Async.Parallel |> Async.Ignore |> Async.runWithTimeout 30000 |> function | Some () -> 0 | None -> 1 ── fsharp ────────────────────────────────────────────────────────────────────── //// test let args = System.Environment.GetEnvironmentVariable "ARGS" |> Runtime.splitArgs |> Seq.toArray match args with | [[||]] -> 0 | args -> if main args = 0 then 0 else failwith "main failed" ╭─[ 113.08ms - return value ]──────────────────────────────────────────────────╮ │ <div class="dni-plaintext"><pre>0</pre></div><style> │ │ .dni-code-hint { │ │ font-style: italic; │ │ overflow: hidden; │ │ white-space: nowrap; │ │ } │ │ .dni-treeview { │ │ white-space: nowrap; │ │ } │ │ .dni-treeview td { │ │ vertical-align: top; │ │ text-align: start; │ │ } │ │ details.dni-treeview { │ │ padding-left: 1em; │ │ } │ │ table td { │ │ text-align: start; │ │ } │ │ table tr { │ │ vertical-align: top; │ │ margin: 0em 0px; │ │ } │ │ table tr td pre │ │ { │ │ vertical-align: top !important; │ │ margin: 0em 0px !important; │ │ } │ │ table th { │ │ text-align: start; │ │ } │ │ </style> │ ╰──────────────────────────────────────────────────────────────────────────────╯ ╭─[ 114.35ms - stdout ]────────────────────────────────────────────────────────╮ │ 00:00:00 #1 [Debug] writeDibCode / output: Fs / path: DibParser.dib │ │ 00:00:00 #2 [Debug] parseDibCode / output: Fs / file: DibParser.dib │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ [NbConvertApp] Converting notebook DibParser.dib.ipynb to html /opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/nbformat/__init__.py:96: MissingIDFieldWarning: Cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future. validate(nb) /opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/nbconvert/filters/highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3 return _pygments_highlight( [NbConvertApp] Writing 367662 bytes to DibParser.dib.html 00:00:00 #1 [Debug] persistCodeProject / packages: [Argu; FParsec; FSharp.Control.AsyncSeq; ... ] / modules: [lib/fsharp/Common.fs; lib/fsharp/CommonFSharp.fs; lib/fsharp/Async.fs; ... ] / name: DibParser / code.Length: 9066 00:00:00 #2 [Debug] buildProject / fullPath: /home/runner/work/polyglot/polyglot/target/polyglot/builder/DibParser/DibParser.fsproj 00:00:00 #3 [Debug] executeAsync / options: { Command = "dotnet publish "/home/runner/work/polyglot/polyglot/target/polyglot/builder/DibParser/DibParser.fsproj" --configuration Release --output "/home/runner/work/polyglot/polyglot/apps/parser/dist" --runtime linux-x64" WorkingDirectory = Some "/home/runner/work/polyglot/polyglot/target/polyglot/builder/DibParser" CancellationToken = None OnLine = None } 00:00:00 #4 [Verbose] > MSBuild version 17.10.0-preview-24101-01+07fd5d51f for .NET 00:00:00 #5 [Verbose] > Determining projects to restore... 00:00:00 #6 [Verbose] > All projects are up-to-date for restore. 00:00:01 #7 [Verbose] > /usr/share/dotnet/sdk/9.0.100-preview.1.24101.2/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.RuntimeIdentifierInference.targets(313,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [/home/runner/work/polyglot/polyglot/target/polyglot/builder/DibParser/DibParser.fsproj] 00:00:05 #8 [Verbose] > DibParser -> /home/runner/work/polyglot/polyglot/target/polyglot/builder/DibParser/bin/Release/net9.0/linux-x64/DibParser.dll 00:00:05 #9 [Verbose] > DibParser -> /home/runner/work/polyglot/polyglot/apps/parser/dist 00:00:05 #10 [Debug] executeAsync / exitCode: 0 / output.Length: 664 ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ # JsonParser (Polyglot) │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── #!import ../../lib/fsharp/Notebooks.dib #!import ../../lib/fsharp/Testing.dib ── fsharp - import ───────────────────────────────────────────────────────────── #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Asp NetCore.Html.Abstractions.dll" #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Dot Net.Interactive.dll" #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Dot Net.Interactive.FSharp.dll" #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Dot Net.Interactive.Formatting.dll" open System open System.IO open System.Text open Microsoft.DotNet.Interactive.Formatting ── fsharp - import ───────────────────────────────────────────────────────────── #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Dot Net.Interactive.FSharp.dll" open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Dot Net.Interactive.dll" open type Microsoft.DotNet.Interactive.Kernel ── fsharp - import ───────────────────────────────────────────────────────────── //// test Formatter.ListExpansionLimit <- 100 ── fsharp - import ───────────────────────────────────────────────────────────── #r @"../../../../../../../.nuget/packages/expecto/10.2.1/lib/net6.0/Expecto.dll" ── fsharp - import ───────────────────────────────────────────────────────────── //// test type AssertExceptionFormatter (ex) = member _.Text = ex.ToString() .Replace("32m", "<span style=\"color: green;\">") .Replace("36m", "</span>") .Replace("31m", "<span style=\"color: red;\">") .Replace("\n", "<br/>\n") Formatter.Register<AssertExceptionFormatter> ((fun (x : AssertExceptionFormatter) -> x.Text), "text/html") ── fsharp - import ───────────────────────────────────────────────────────────── //// test let inline __expect fn log expected actual = if log then printfn $"{actual.ToDisplayString ()}" try "Testing.__expect" |> fn actual expected with :? Expecto.AssertException as ex -> AssertExceptionFormatter(ex).Display () |> ignore failwith (ex.GetType().FullName) let inline __contains log expected actual = __expect Expecto.Expect.contains log expected actual let inline _contains expected actual = __contains true expected actual let inline __assertEqual log expected actual = __expect Expecto.Expect.equal log expected actual let inline _assertEqual expected actual = __assertEqual true expected actual let inline __isGreaterThan log expected actual = __expect Expecto.Expect.isGreaterThan log ex... ── fsharp - import ───────────────────────────────────────────────────────────── //// test let inline __isBetween log a b actual = let inline isBetween actual (a, b) _ = __isGreaterThanOrEqual log a actual __isLessThanOrEqual log b actual __expect isBetween log (a, b) actual let inline _isBetween a b actual = __isBetween true a b actual ── fsharp ────────────────────────────────────────────────────────────────────── #!import ../../lib/fsharp/Common.fs #!import Parser.fs ── fsharp - import ───────────────────────────────────────────────────────────── #if !INTERACTIVE namespace Polyglot #endif module Common = let nl = System.Environment.NewLine let q = @"""" let inline cons head tail = head :: tail module String = let inline contains (value : string) (input : string) = input.Contains value let inline endsWith (value : string) (input : string) = input.EndsWith value let inline padLeft totalWidth paddingChar (input : string) = input.PadLeft (totalWidth, paddingChar) let inline replace (oldValue : string) (newValue : string) (input : string) = input.Replace (oldValue, newValue) let inline split separator (input : string) = input.Split separator let inline spli... ── fsharp - import ───────────────────────────────────────────────────────────── #if !INTERACTIVE namespace Polyglot #endif module Parser = open Common /// ### TextInput type Position = { line : int column : int } let initialPos = { line = 0; column = 0 } let inline incrCol (pos : Position) = { pos with column = pos.column + 1 } let inline incrLine pos = { line = pos.line + 1; column = 0 } type InputState = { lines : string[[]] position : Position } let inline fromStr str = { lines = if str |> String.IsNullOrEmpty then [[||]] else str |> String.splitString [[| "\r\n"; "\n" |]] position = initialPos } ... ── fsharp ────────────────────────────────────────────────────────────────────── open Common open Parser ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## JsonParser │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── (* // -------------------------------- JSON spec from http://www.json.org/ // -------------------------------- The JSON spec is available at [[json.org]](http://www.json.org/). I'll paraphase it here: * A `value` can be a `string` or a `number` or a `bool` or `null` or an `object` or an `array`. * These structures can be nested. * A `string` is a sequence of zero or more Unicode characters, wrapped in double quotes, using backslash escapes. * A `number` is very much like a C or Java number, except that the octal and hexadecimal formats are not used. * A `boolean` is the literal `true` or `false` * A `null` is the literal `null` * An `object` is an unordered set of name/value pairs. * An object begins with { (left brace) and ends with } (right brace). * Each name is followed by : (colon) and the name/value pairs are separated by , (comma). * An `array` is an ordered collection of values. * An array begins with [[ (left bracket) and ends with ]] (right bracket). * Values are separated by , (comma). * Whitespace can be inserted between any pair of tokens. *) ── fsharp ────────────────────────────────────────────────────────────────────── //// test let inline parserEqual (expected : ParseResult<'a>) (actual : ParseResult<'a * Input>) = match actual, expected with | Success (_actual, _), Success _expected -> printResult actual _actual |> _assertEqual _expected | Failure (l1, e1, p1), Failure (l2, e2, p2) when l1 = l2 && e1 = e2 && p1 = p2 -> printResult actual | _ -> printfn $"Actual: {actual}" printfn $"Expected: {expected}" failwith "Parse failed" actual ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ### JValue │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── type JValue = | JString of string | JNumber of float | JBool of bool | JNull | JObject of Map<string, JValue> | JArray of JValue list ── fsharp ────────────────────────────────────────────────────────────────────── let jValue, jValueRef = createParserForwardedToRef<JValue> () ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ### jNull │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let jNull = pstring "null" >>% JNull <?> "null" ── fsharp ────────────────────────────────────────────────────────────────────── //// test jValueRef <| choice [[ jNull ]] ── fsharp ────────────────────────────────────────────────────────────────────── //// test run jValue "null" |> parserEqual (Success JNull) ╭─[ 174.29ms - return value ]──────────────────────────────────────────────────╮ │ <details open="open" class="dni-treeview"><summary><span │ │ class="dni-code-hint"><code>Success (JNull, { lines = [ │ │ |"null"|]<br/> position = { line = 0<br/> │ │ column = 4 } │ │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │ │ >Item</td><td><details class="dni-treeview"><summary><span │ │ class="dni-code-hint"><code>(JNull, { lines = [|"null"|]<br/> │ │ position = { line = 0<br/> column = 4 } │ │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │ │ >Item1</td><td><details class="dni-treeview"><summary><span │ │ class="dni-code-hint"><code>JNull</code></span></summary><div><table><thead> │ │ <tr></tr></thead><tbody><tr><td>IsJString</td><td><d... │ ╰──────────────────────────────────────────────────────────────────────────────╯ ╭─[ 177.61ms - stdout ]────────────────────────────────────────────────────────╮ │ JNull │ │ JValue │ │ IsJString: False │ │ IsJNumber: False │ │ IsJBool: False │ │ IsJNull: True │ │ IsJObject: False │ │ IsJArray: False │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── //// test run jNull "nulp" |> parserEqual ( Failure ( "null", "Unexpected 'p'", { currentLine = "nulp"; line = 0; column = 3 } ) ) ╭─[ 37.32ms - return value ]───────────────────────────────────────────────────╮ │ <details open="open" class="dni-treeview"><summary><span │ │ class="dni-code-hint"><code>Failure ("null", "Unexpected │ │ 'p'", { currentLine = "nulp"<br/> │ │ line = 0<br/> column = 3 │ │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │ │ >Item1</td><td><div │ │ class="dni-plaintext"><pre>null</pre></div></td></tr><tr><td>Item2</td><td>< │ │ div class="dni-plaintext"><pre>Unexpected │ │ 'p'</pre></div></td></tr><tr><td>Item3</td><td><details │ │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ │ │ currentLine = "nulp"<br/> line = 0<br/> column = 3 │ │ }</code></span></summary><div><table><thead><tr></tr></thead... │ ╰──────────────────────────────────────────────────────────────────────────────╯ ╭─[ 38.50ms - stdout ]─────────────────────────────────────────────────────────╮ │ Line:0 Col:3 Error parsing null │ │ nulp │ │ ^Unexpected 'p' │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ### jBool │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let jBool = let jtrue = pstring "true" >>% JBool true let jfalse = pstring "false" >>% JBool false jtrue <|> jfalse <?> "bool" ── fsharp ────────────────────────────────────────────────────────────────────── //// test jValueRef <| choice [[ jNull jBool ]] ── fsharp ────────────────────────────────────────────────────────────────────── //// test run jBool "true" |> parserEqual (Success (JBool true)) ╭─[ 33.20ms - return value ]───────────────────────────────────────────────────╮ │ <details open="open" class="dni-treeview"><summary><span │ │ class="dni-code-hint"><code>Success (JBool true, { lines = [ │ │ |"true"|]<br/> position = { line = 0<br/> │ │ column = 4 } │ │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │ │ >Item</td><td><details class="dni-treeview"><summary><span │ │ class="dni-code-hint"><code>(JBool true, { lines = [|"true"|]<br/> │ │ position = { line = 0<br/> column = 4 } │ │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │ │ >Item1</td><td><details class="dni-treeview"><summary><span │ │ class="dni-code-hint"><code>JBool │ │ true</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr.. │ │ . │ ╰──────────────────────────────────────────────────────────────────────────────╯ ╭─[ 34.53ms - stdout ]─────────────────────────────────────────────────────────╮ │ JBool true │ │ JBool │ │ Item: True │ │ IsJString: False │ │ IsJNumber: False │ │ IsJBool: True │ │ IsJNull: False │ │ IsJObject: False │ │ IsJArray: False │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── //// test run jBool "false" |> parserEqual (Success (JBool false)) ╭─[ 23.12ms - return value ]───────────────────────────────────────────────────╮ │ <details open="open" class="dni-treeview"><summary><span │ │ class="dni-code-hint"><code>Success (JBool false, { lines = [ │ │ |"false"|]<br/> position = { line = 0<br/> │ │ column = 5 } │ │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │ │ >Item</td><td><details class="dni-treeview"><summary><span │ │ class="dni-code-hint"><code>(JBool false, { lines = [ │ │ |"false"|]<br/> position = { line = 0<br/> column = │ │ 5 } │ │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │ │ >Item1</td><td><details class="dni-treeview"><summary><span │ │ class="dni-code-hint"><code>JBool │ │ false</code></span></summary><div><table><thead><tr></tr></thead><tb... │ ╰──────────────────────────────────────────────────────────────────────────────╯ ╭─[ 24.36ms - stdout ]─────────────────────────────────────────────────────────╮ │ JBool false │ │ JBool │ │ Item: False │ │ IsJString: False │ │ IsJNumber: False │ │ IsJBool: True │ │ IsJNull: False │ │ IsJObject: False │ │ IsJArray: False │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── //// test run jBool "truX" |> parserEqual ( Failure ( "bool", "Unexpected 't'", { currentLine = "truX"; line = 0; column = 0 } ) ) ╭─[ 18.79ms - return value ]───────────────────────────────────────────────────╮ │ <details open="open" class="dni-treeview"><summary><span │ │ class="dni-code-hint"><code>Failure ("bool", "Unexpected │ │ 't'", { currentLine = "truX"<br/> │ │ line = 0<br/> column = 0 │ │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │ │ >Item1</td><td><div │ │ class="dni-plaintext"><pre>bool</pre></div></td></tr><tr><td>Item2</td><td>< │ │ div class="dni-plaintext"><pre>Unexpected │ │ 't'</pre></div></td></tr><tr><td>Item3</td><td><details │ │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ │ │ currentLine = "truX"<br/> line = 0<br/> column = 0 │ │ }</code></span></summary><div><table><thead><tr></tr></thead... │ ╰──────────────────────────────────────────────────────────────────────────────╯ ╭─[ 19.87ms - stdout ]─────────────────────────────────────────────────────────╮ │ Line:0 Col:0 Error parsing bool │ │ truX │ │ ^Unexpected 't' │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ### jUnescapedChar │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let jUnescapedChar = satisfy (fun ch -> ch <> '\\' && ch <> '\"') "char" ── fsharp ────────────────────────────────────────────────────────────────────── //// test run jUnescapedChar "a" |> parserEqual (Success 'a') ╭─[ 38.51ms - return value ]───────────────────────────────────────────────────╮ │ <details open="open" class="dni-treeview"><summary><span │ │ class="dni-code-hint"><code>Success ('a', { lines = [ │ │ |"a"|]<br/> position = { line = 0<br/> │ │ column = 1 } │ │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │ │ >Item</td><td><details class="dni-treeview"><summary><span │ │ class="dni-code-hint"><code>(a, { lines = [|"a"|]<br/> position = │ │ { line = 0<br/> column = 1 } │ │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │ │ >Item1</td><td><div │ │ class="dni-plaintext"><pre>a</pre></div></td></tr><tr><td>Item2</td><td><det │ │ ails class="dni-treeview"><summary><span class="dni-code-hint"><code>{ lines │ │ = [|"a"|]<br/... │ ╰──────────────────────────────────────────────────────────────────────────────╯ ╭─[ 39.71ms - stdout ]─────────────────────────────────────────────────────────╮ │ 'a' │ │ a │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── //// test run jUnescapedChar "\\" |> parserEqual ( Failure ( "char", "Unexpected '\\'", { currentLine = "\\"; line = 0; column = 0 } ) ) ╭─[ 27.20ms - return value ]───────────────────────────────────────────────────╮ │ <details open="open" class="dni-treeview"><summary><span │ │ class="dni-code-hint"><code>Failure ("char", "Unexpected │ │ '\'", { currentLine = "\"<br/> │ │ line = 0<br/> column = 0 │ │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │ │ >Item1</td><td><div │ │ class="dni-plaintext"><pre>char</pre></div></td></tr><tr><td>Item2</td><td>< │ │ div class="dni-plaintext"><pre>Unexpected │ │ '\'</pre></div></td></tr><tr><td>Item3</td><td><details │ │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ │ │ currentLine = "\"<br/> line = 0<br/> column = 0 │ │ }</code></span></summary><div><table><thead><tr></tr></thead><tbod... │ ╰──────────────────────────────────────────────────────────────────────────────╯ ╭─[ 28.60ms - stdout ]─────────────────────────────────────────────────────────╮ │ Line:0 Col:0 Error parsing char │ │ \ │ │ ^Unexpected '\' │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ### jEscapedChar │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let jEscapedChar = [[ ("\\\"",'\"') ("\\\\",'\\') ("\\/",'/') ("\\b",'\b') ("\\f",'\f') ("\\n",'\n') ("\\r",'\r') ("\\t",'\t') ]] |> List.map (fun (toMatch, result) -> pstring toMatch >>% result ) |> choice <?> "escaped char" ── fsharp ────────────────────────────────────────────────────────────────────── //// test run jEscapedChar "\\\\" |> parserEqual (Success '\\') ╭─[ 23.20ms - return value ]───────────────────────────────────────────────────╮ │ <details open="open" class="dni-treeview"><summary><span │ │ class="dni-code-hint"><code>Success ('\\', { lines = [ │ │ |"\\"|]<br/> position = { line = 0<br/> │ │ column = 2 } │ │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │ │ >Item</td><td><details class="dni-treeview"><summary><span │ │ class="dni-code-hint"><code>(\, { lines = [|"\\"|]<br/> position │ │ = { line = 0<br/> column = 2 } │ │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │ │ >Item1</td><td><div │ │ class="dni-plaintext"><pre>\</pre></div></td></tr><tr><td>Item2</td><td><det │ │ ails class="dni-treeview"><summary><span class="dni-code-hint"><code>{ lines │ │ = [|"\\"... │ ╰──────────────────────────────────────────────────────────────────────────────╯ ╭─[ 24.55ms - stdout ]─────────────────────────────────────────────────────────╮ │ '\\' │ │ \ │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── //// test run jEscapedChar "\\t" |> parserEqual (Success '\t') ╭─[ 20.18ms - return value ]───────────────────────────────────────────────────╮ │ <details open="open" class="dni-treeview"><summary><span │ │ class="dni-code-hint"><code>Success ('\009', { lines = [ │ │ |"\t"|]<br/> position = { line = 0<br/> │ │ column = 2 } │ │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │ │ >Item</td><td><details class="dni-treeview"><summary><span │ │ class="dni-code-hint"><code>( , { lines = [|"\t"|]<br/> position = │ │ { line = 0<br/> column = 2 } │ │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │ │ >Item1</td><td><div class="dni-plaintext"><pre> │ │ </pre></div></td></tr><tr><td>Item2</td><td><details │ │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ lines = [ │ │ |"\t... │ ╰──────────────────────────────────────────────────────────────────────────────╯ ╭─[ 21.48ms - stdout ]─────────────────────────────────────────────────────────╮ │ '\009' │ │ │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── //// test run jEscapedChar @"\\" |> parserEqual (Success '\\') ╭─[ 20.37ms - return value ]───────────────────────────────────────────────────╮ │ <details open="open" class="dni-treeview"><summary><span │ │ class="dni-code-hint"><code>Success ('\\', { lines = [ │ │ |"\\"|]<br/> position = { line = 0<br/> │ │ column = 2 } │ │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │ │ >Item</td><td><details class="dni-treeview"><summary><span │ │ class="dni-code-hint"><code>(\, { lines = [|"\\"|]<br/> position │ │ = { line = 0<br/> column = 2 } │ │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │ │ >Item1</td><td><div │ │ class="dni-plaintext"><pre>\</pre></div></td></tr><tr><td>Item2</td><td><det │ │ ails class="dni-treeview"><summary><span class="dni-code-hint"><code>{ lines │ │ = [|"\\"... │ ╰──────────────────────────────────────────────────────────────────────────────╯ ╭─[ 21.67ms - stdout ]─────────────────────────────────────────────────────────╮ │ '\\' │ │ \ │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── //// test run jEscapedChar @"\n" |> parserEqual (Success '\n') ╭─[ 20.41ms - return value ]───────────────────────────────────────────────────╮ │ <details open="open" class="dni-treeview"><summary><span │ │ class="dni-code-hint"><code>Success ('\010', { lines = [ │ │ |"<br/>"|]<br/> position = { line = 0<br/> │ │ column = 2 } │ │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │ │ >Item</td><td><details class="dni-treeview"><summary><span │ │ class="dni-code-hint"><code>(<br/>, { lines = [|"<br/>"|]<br/> │ │ position = { line = 0<br/> column = 2 } │ │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │ │ >Item1</td><td><div class="dni-plaintext"><pre> │ │ </pre></div></td></tr><tr><td>Item2</td><td><details │ │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ lines = │ │ ... │ ╰──────────────────────────────────────────────────────────────────────────────╯ ╭─[ 21.69ms - stdout ]─────────────────────────────────────────────────────────╮ │ '\010' │ │ │ │ │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── //// test run jEscapedChar "a" |> parserEqual ( Failure ( "escaped char", "Unexpected 'a'", { currentLine = "a"; line = 0; column = 0 } ) ) ╭─[ 18.97ms - return value ]───────────────────────────────────────────────────╮ │ <details open="open" class="dni-treeview"><summary><span │ │ class="dni-code-hint"><code>Failure ("escaped char", │ │ "Unexpected 'a'", { currentLine = "a"<br/> │ │ line = 0<br/> column = 0 │ │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │ │ >Item1</td><td><div class="dni-plaintext"><pre>escaped │ │ char</pre></div></td></tr><tr><td>Item2</td><td><div │ │ class="dni-plaintext"><pre>Unexpected │ │ 'a'</pre></div></td></tr><tr><td>Item3</td><td><details │ │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ │ │ currentLine = "a"<br/> line = 0<br/> column = 0 │ │ }</code></span></summary><div><tab... │ ╰──────────────────────────────────────────────────────────────────────────────╯ ╭─[ 20.09ms - stdout ]─────────────────────────────────────────────────────────╮ │ Line:0 Col:0 Error parsing escaped char │ │ a │ │ ^Unexpected 'a' │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ### jUnicodeChar │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let jUnicodeChar = let backslash = pchar '\\' let uChar = pchar 'u' let hexdigit = anyOf ([[ '0' .. '9' ]] @ [[ 'A' .. 'F' ]] @ [[ 'a' .. 'f' ]]) let fourHexDigits = hexdigit .>>. hexdigit .>>. hexdigit .>>. hexdigit let inline convertToChar (((h1, h2), h3), h4) = let str = $"%c{h1}%c{h2}%c{h3}%c{h4}" Int32.Parse (str, Globalization.NumberStyles.HexNumber) |> char backslash >>. uChar >>. fourHexDigits |>> convertToChar ── fsharp ────────────────────────────────────────────────────────────────────── //// test run jUnicodeChar "\\u263A" |> parserEqual (Success '☺') ╭─[ 30.60ms - return value ]───────────────────────────────────────────────────╮ │ <details open="open" class="dni-treeview"><summary><span │ │ class="dni-code-hint"><code>Success ('☺', { lines = [ │ │ |"\u263A"|]<br/> position = { line = 0<br/> │ │ column = 6 } │ │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │ │ >Item</td><td><details class="dni-treeview"><summary><span │ │ class="dni-code-hint"><code>(☺, { lines = [|"\u263A"|]<br/> │ │ position = { line = 0<br/> column = 6 } │ │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │ │ >Item1</td><td><div │ │ class="dni-plaintext"><pre>☺</pre></div></td></tr><tr><td>Item2</td><td><det │ │ ails class="dni-treeview"><summary><span class="dni-code-hint"><code>{ lines │ │ = [|"\u2... │ ╰──────────────────────────────────────────────────────────────────────────────╯ ╭─[ 31.84ms - stdout ]─────────────────────────────────────────────────────────╮ │ '☺' │ │ ☺ │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ### jString │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let quotedString = let quote = pchar '\"' <?> "quote" let jchar = jUnescapedChar <|> jEscapedChar <|> jUnicodeChar quote >>. manyChars jchar .>> quote ── fsharp ────────────────────────────────────────────────────────────────────── let jString = quotedString |>> JString <?> "quoted string" ── fsharp ────────────────────────────────────────────────────────────────────── //// test jValueRef <| choice [[ jNull jBool jString ]] ── fsharp ────────────────────────────────────────────────────────────────────── //// test run jString "\"\"" |> parserEqual (Success (JString "")) ╭─[ 33.83ms - return value ]───────────────────────────────────────────────────╮ │ <details open="open" class="dni-treeview"><summary><span │ │ class="dni-code-hint"><code>Success (JString "", { lines = [ │ │ |""""|]<br/> position = { line = │ │ 0<br/> column = 2 } │ │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │ │ >Item</td><td><details class="dni-treeview"><summary><span │ │ class="dni-code-hint"><code>(JString "", { lines = [ │ │ |""""|]<br/> position = { line = 0<br/> │ │ column = 2 } │ │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │ │ >Item1</td><td><details class="dni-treeview"><summary><span │ │ class="dni-code-hint"><code>JString ""</code></span></summary>... │ ╰──────────────────────────────────────────────────────────────────────────────╯ ╭─[ 35.12ms - stdout ]─────────────────────────────────────────────────────────╮ │ JString "" │ │ JString │ │ Item: │ │ IsJString: True │ │ IsJNumber: False │ │ IsJBool: False │ │ IsJNull: False │ │ IsJObject: False │ │ IsJArray: False │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── //// test run jString "\"a\"" |> parserEqual (Success (JString "a")) ╭─[ 22.37ms - return value ]───────────────────────────────────────────────────╮ │ <details open="open" class="dni-treeview"><summary><span │ │ class="dni-code-hint"><code>Success (JString "a", { lines = [ │ │ |""a""|]<br/> position = { line = │ │ 0<br/> column = 3 } │ │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │ │ >Item</td><td><details class="dni-treeview"><summary><span │ │ class="dni-code-hint"><code>(JString "a", { lines = [ │ │ |""a""|]<br/> position = { line = 0<br/> │ │ column = 3 } │ │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │ │ >Item1</td><td><details class="dni-treeview"><summary><span │ │ class="dni-code-hint"><code>JString "a"</code></span></s... │ ╰──────────────────────────────────────────────────────────────────────────────╯ ╭─[ 23.73ms - stdout ]─────────────────────────────────────────────────────────╮ │ JString "a" │ │ JString │ │ Item: a │ │ IsJString: True │ │ IsJNumber: False │ │ IsJBool: False │ │ IsJNull: False │ │ IsJObject: False │ │ IsJArray: False │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── //// test run jString "\"ab\"" |> parserEqual (Success (JString "ab")) ╭─[ 21.68ms - return value ]───────────────────────────────────────────────────╮ │ <details open="open" class="dni-treeview"><summary><span │ │ class="dni-code-hint"><code>Success (JString "ab", { lines = [ │ │ |""ab""|]<br/> position = { line │ │ = 0<br/> column = 4 } │ │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │ │ >Item</td><td><details class="dni-treeview"><summary><span │ │ class="dni-code-hint"><code>(JString "ab", { lines = [ │ │ |""ab""|]<br/> position = { line = 0<br/> │ │ column = 4 } │ │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │ │ >Item1</td><td><details class="dni-treeview"><summary><span │ │ class="dni-code-hint"><code>JString "ab"</code></s... │ ╰──────────────────────────────────────────────────────────────────────────────╯ ╭─[ 23.12ms - stdout ]─────────────────────────────────────────────────────────╮ │ JString "ab" │ │ JString │ │ Item: ab │ │ IsJString: True │ │ IsJNumber: False │ │ IsJBool: False │ │ IsJNull: False │ │ IsJObject: False │ │ IsJArray: False │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── //// test run jString "\"ab\\tde\"" |> parserEqual (Success (JString "ab\tde")) ╭─[ 22.18ms - return value ]───────────────────────────────────────────────────╮ │ <details open="open" class="dni-treeview"><summary><span │ │ class="dni-code-hint"><code>Success (JString "ab de", { lines = [ │ │ |""ab\tde""|]<br/> position = │ │ { line = 0<br/> column = 8 } │ │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │ │ >Item</td><td><details class="dni-treeview"><summary><span │ │ class="dni-code-hint"><code>(JString "ab de", { lines = [ │ │ |""ab\tde""|]<br/> position = { line = 0<br/> │ │ column = 8 } │ │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │ │ >Item1</td><td><details class="dni-treeview"><summary><span │ │ class="dni-code-hint"><code>JString &quo... │ ╰──────────────────────────────────────────────────────────────────────────────╯ ╭─[ 23.43ms - stdout ]─────────────────────────────────────────────────────────╮ │ JString "ab de" │ │ JString │ │ Item: ab de │ │ IsJString: True │ │ IsJNumber: False │ │ IsJBool: False │ │ IsJNull: False │ │ IsJObject: False │ │ IsJArray: False │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── //// test run jString "\"ab\\u263Ade\"" |> parserEqual (Success (JString "ab☺de")) ╭─[ 29.01ms - return value ]───────────────────────────────────────────────────╮ │ <details open="open" class="dni-treeview"><summary><span │ │ class="dni-code-hint"><code>Success (JString "ab☺de", { lines = [ │ │ |""ab\u263Ade""|]<br/> │ │ position = { line = 0<br/> column = │ │ 12 } │ │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │ │ >Item</td><td><details class="dni-treeview"><summary><span │ │ class="dni-code-hint"><code>(JString "ab☺de", { lines = [ │ │ |""ab\u263Ade""|]<br/> position = { line = 0<br/> │ │ column = 12 } │ │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │ │ >Item1</td><td><details class="dni-treeview"><summary><span │ │ class="dni-code-hint"><code>JS... │ ╰──────────────────────────────────────────────────────────────────────────────╯ ╭─[ 30.34ms - stdout ]─────────────────────────────────────────────────────────╮ │ JString "ab☺de" │ │ JString │ │ Item: ab☺de │ │ IsJString: True │ │ IsJNumber: False │ │ IsJBool: False │ │ IsJNull: False │ │ IsJObject: False │ │ IsJArray: False │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ### jNumber │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let jNumber = let optSign = opt (pchar '-') let zero = pstring "0" let digitOneNine = satisfy (fun ch -> Char.IsDigit ch && ch <> '0') "1-9" let digit = satisfy Char.IsDigit "digit" let point = pchar '.' let e = pchar 'e' <|> pchar 'E' let optPlusMinus = opt (pchar '-' <|> pchar '+') let nonZeroInt = digitOneNine .>>. manyChars digit |>> fun (first, rest) -> string first + rest let intPart = zero <|> nonZeroInt let fractionPart = point >>. manyChars1 digit let exponentPart = e >>. optPlusMinus .>>. manyChars1 digit let inline (|>?) opt f = match opt with | None -> "" | Some x -> f x let inline convertToJNumber (((optSign, intPart), fractionPart), expPart) = let signStr = optSign |>? string let fractionPartStr = fractionPart |>? (fun digits -> "." + digits) let expPartStr = expPart |>? fun (optSign, digits) -> let sign = optSign |>? string "e" + sign + digits (signStr + intPart + fractionPartStr + expPartStr) |> float |> JNumber optSign .>>. intPart .>>. opt fractionPart .>>. opt exponentPart |>> convertToJNumber <?> "number" ── fsharp ────────────────────────────────────────────────────────────────────── //// test jValueRef <| choice [[ jNull jBool jString jNumber ]] ── fsharp ────────────────────────────────────────────────────────────────────── //// test run jNumber "123" |> parserEqual (Success (JNumber 123.0)) ╭─[ 45.89ms - return value ]───────────────────────────────────────────────────╮ │ <details open="open" class="dni-treeview"><summary><span │ │ class="dni-code-hint"><code>Success (JNumber 123.0, { lines = [ │ │ |"123"|]<br/> position = { line = 0<br/> │ │ column = 3 } │ │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │ │ >Item</td><td><details class="dni-treeview"><summary><span │ │ class="dni-code-hint"><code>(JNumber 123.0, { lines = [ │ │ |"123"|]<br/> position = { line = 0<br/> column = 3 │ │ } │ │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │ │ >Item1</td><td><details class="dni-treeview"><summary><span │ │ class="dni-code-hint"><code>JNumber │ │ 123.0</code></span></summary><div><table><thead><tr></tr></the... │ ╰──────────────────────────────────────────────────────────────────────────────╯ ╭─[ 47.27ms - stdout ]─────────────────────────────────────────────────────────╮ │ JNumber 123.0 │ │ JNumber │ │ Item: 123 │ │ IsJString: False │ │ IsJNumber: True │ │ IsJBool: False │ │ IsJNull: False │ │ IsJObject: False │ │ IsJArray: False │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── //// test run jNumber "-123" |> parserEqual (Success (JNumber -123.0)) ╭─[ 25.33ms - return value ]───────────────────────────────────────────────────╮ │ <details open="open" class="dni-treeview"><summary><span │ │ class="dni-code-hint"><code>Success (JNumber -123.0, { lines = [ │ │ |"-123"|]<br/> position = { line = │ │ 0<br/> column = 4 } │ │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │ │ >Item</td><td><details class="dni-treeview"><summary><span │ │ class="dni-code-hint"><code>(JNumber -123.0, { lines = [ │ │ |"-123"|]<br/> position = { line = 0<br/> column = │ │ 4 } │ │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │ │ >Item1</td><td><details class="dni-treeview"><summary><span │ │ class="dni-code-hint"><code>JNumber │ │ -123.0</code></span></summary><div><table><thead><tr></t... │ ╰──────────────────────────────────────────────────────────────────────────────╯ ╭─[ 26.55ms - stdout ]─────────────────────────────────────────────────────────╮ │ JNumber -123.0 │ │ JNumber │ │ Item: -123 │ │ IsJString: False │ │ IsJNumber: True │ │ IsJBool: False │ │ IsJNull: False │ │ IsJObject: False │ │ IsJArray: False │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── //// test run jNumber "123.4" |> parserEqual (Success (JNumber 123.4)) ╭─[ 24.78ms - return value ]───────────────────────────────────────────────────╮ │ <details open="open" class="dni-treeview"><summary><span │ │ class="dni-code-hint"><code>Success (JNumber 123.4, { lines = [ │ │ |"123.4"|]<br/> position = { line = │ │ 0<br/> column = 5 } │ │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │ │ >Item</td><td><details class="dni-treeview"><summary><span │ │ class="dni-code-hint"><code>(JNumber 123.4, { lines = [ │ │ |"123.4"|]<br/> position = { line = 0<br/> column = │ │ 5 } │ │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │ │ >Item1</td><td><details class="dni-treeview"><summary><span │ │ class="dni-code-hint"><code>JNumber │ │ 123.4</code></span></summary><div><table><thead><tr></tr><... │ ╰──────────────────────────────────────────────────────────────────────────────╯ ╭─[ 25.98ms - stdout ]─────────────────────────────────────────────────────────╮ │ JNumber 123.4 │ │ JNumber │ │ Item: 123.4 │ │ IsJString: False │ │ IsJNumber: True │ │ IsJBool: False │ │ IsJNull: False │ │ IsJObject: False │ │ IsJArray: False │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── //// test run jNumber "-123." |> parserEqual (Success (JNumber -123.0)) ╭─[ 22.99ms - return value ]───────────────────────────────────────────────────╮ │ <details open="open" class="dni-treeview"><summary><span │ │ class="dni-code-hint"><code>Success (JNumber -123.0, { lines = [ │ │ |"-123."|]<br/> position = { line = │ │ 0<br/> column = 4 } │ │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │ │ >Item</td><td><details class="dni-treeview"><summary><span │ │ class="dni-code-hint"><code>(JNumber -123.0, { lines = [ │ │ |"-123."|]<br/> position = { line = 0<br/> column = │ │ 4 } │ │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │ │ >Item1</td><td><details class="dni-treeview"><summary><span │ │ class="dni-code-hint"><code>JNumber │ │ -123.0</code></span></summary><div><table><thead><tr><... │ ╰──────────────────────────────────────────────────────────────────────────────╯ ╭─[ 24.22ms - stdout ]─────────────────────────────────────────────────────────╮ │ JNumber -123.0 │ │ JNumber │ │ Item: -123 │ │ IsJString: False │ │ IsJNumber: True │ │ IsJBool: False │ │ IsJNull: False │ │ IsJObject: False │ │ IsJArray: False │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── //// test run jNumber "00.1" |> parserEqual (Success (JNumber 0.0)) ╭─[ 23.15ms - return value ]───────────────────────────────────────────────────╮ │ <details open="open" class="dni-treeview"><summary><span │ │ class="dni-code-hint"><code>Success (JNumber 0.0, { lines = [ │ │ |"00.1"|]<br/> position = { line = 0<br/> │ │ column = 1 } │ │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │ │ >Item</td><td><details class="dni-treeview"><summary><span │ │ class="dni-code-hint"><code>(JNumber 0.0, { lines = [ │ │ |"00.1"|]<br/> position = { line = 0<br/> column = │ │ 1 } │ │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │ │ >Item1</td><td><details class="dni-treeview"><summary><span │ │ class="dni-code-hint"><code>JNumber │ │ 0.0</code></span></summary><div><table><thead><tr></tr></thead><tbod... │ ╰──────────────────────────────────────────────────────────────────────────────╯ ╭─[ 24.37ms - stdout ]─────────────────────────────────────────────────────────╮ │ JNumber 0.0 │ │ JNumber │ │ Item: 0 │ │ IsJString: False │ │ IsJNumber: True │ │ IsJBool: False │ │ IsJNull: False │ │ IsJObject: False │ │ IsJArray: False │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── //// test let jNumber_ = jNumber .>> spaces1 ── fsharp ────────────────────────────────────────────────────────────────────── //// test run jNumber_ "123" |> parserEqual (Success (JNumber 123.0)) ╭─[ 24.17ms - return value ]───────────────────────────────────────────────────╮ │ <details open="open" class="dni-treeview"><summary><span │ │ class="dni-code-hint"><code>Success (JNumber 123.0, { lines = [ │ │ |"123"|]<br/> position = { line = 1<br/> │ │ column = 0 } │ │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │ │ >Item</td><td><details class="dni-treeview"><summary><span │ │ class="dni-code-hint"><code>(JNumber 123.0, { lines = [ │ │ |"123"|]<br/> position = { line = 1<br/> column = 0 │ │ } │ │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │ │ >Item1</td><td><details class="dni-treeview"><summary><span │ │ class="dni-code-hint"><code>JNumber │ │ 123.0</code></span></summary><div><table><thead><tr></tr></the... │ ╰──────────────────────────────────────────────────────────────────────────────╯ ╭─[ 25.36ms - stdout ]─────────────────────────────────────────────────────────╮ │ JNumber 123.0 │ │ JNumber │ │ Item: 123 │ │ IsJString: False │ │ IsJNumber: True │ │ IsJBool: False │ │ IsJNull: False │ │ IsJObject: False │ │ IsJArray: False │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── //// test run jNumber_ "-123" |> parserEqual (Success (JNumber -123.0)) ╭─[ 22.28ms - return value ]───────────────────────────────────────────────────╮ │ <details open="open" class="dni-treeview"><summary><span │ │ class="dni-code-hint"><code>Success (JNumber -123.0, { lines = [ │ │ |"-123"|]<br/> position = { line = │ │ 1<br/> column = 0 } │ │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │ │ >Item</td><td><details class="dni-treeview"><summary><span │ │ class="dni-code-hint"><code>(JNumber -123.0, { lines = [ │ │ |"-123"|]<br/> position = { line = 1<br/> column = │ │ 0 } │ │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │ │ >Item1</td><td><details class="dni-treeview"><summary><span │ │ class="dni-code-hint"><code>JNumber │ │ -123.0</code></span></summary><div><table><thead><tr></t... │ ╰──────────────────────────────────────────────────────────────────────────────╯ ╭─[ 23.53ms - stdout ]─────────────────────────────────────────────────────────╮ │ JNumber -123.0 │ │ JNumber │ │ Item: -123 │ │ IsJString: False │ │ IsJNumber: True │ │ IsJBool: False │ │ IsJNull: False │ │ IsJObject: False │ │ IsJArray: False │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── //// test run jNumber_ "-123." |> parserEqual ( Failure ( "number andThen many1 whitespace", "Unexpected '.'", { currentLine = "-123."; line = 0; column = 4 } ) ) ╭─[ 19.09ms - return value ]───────────────────────────────────────────────────╮ │ <details open="open" class="dni-treeview"><summary><span │ │ class="dni-code-hint"><code>Failure<br/> ("number andThen many1 │ │ whitespace", "Unexpected '.'", { currentLine = │ │ "-123."<br/> │ │ line = 0<br/> │ │ column = 4 │ │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │ │ >Item1</td><td><div class="dni-plaintext"><pre>number andThen many1 │ │ whitespace</pre></div></td></tr><tr><td>Item2</td><td><div │ │ class="dni-plaintext"><pre>Unexpected │ │ '.'</pre></div></td></tr><tr><td>Item3</td><td><details │ │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ │ │ currentLine = "... │ ╰──────────────────────────────────────────────────────────────────────────────╯ ╭─[ 20.07ms - stdout ]─────────────────────────────────────────────────────────╮ │ Line:0 Col:4 Error parsing number andThen many1 whitespace │ │ -123. │ │ ^Unexpected '.' │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── //// test run jNumber_ "123.4" |> parserEqual (Success (JNumber 123.4)) ╭─[ 21.96ms - return value ]───────────────────────────────────────────────────╮ │ <details open="open" class="dni-treeview"><summary><span │ │ class="dni-code-hint"><code>Success (JNumber 123.4, { lines = [ │ │ |"123.4"|]<br/> position = { line = │ │ 1<br/> column = 0 } │ │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │ │ >Item</td><td><details class="dni-treeview"><summary><span │ │ class="dni-code-hint"><code>(JNumber 123.4, { lines = [ │ │ |"123.4"|]<br/> position = { line = 1<br/> column = │ │ 0 } │ │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │ │ >Item1</td><td><details class="dni-treeview"><summary><span │ │ class="dni-code-hint"><code>JNumber │ │ 123.4</code></span></summary><div><table><thead><tr></tr><... │ ╰──────────────────────────────────────────────────────────────────────────────╯ ╭─[ 23.25ms - stdout ]─────────────────────────────────────────────────────────╮ │ JNumber 123.4 │ │ JNumber │ │ Item: 123.4 │ │ IsJString: False │ │ IsJNumber: True │ │ IsJBool: False │ │ IsJNull: False │ │ IsJObject: False │ │ IsJArray: False │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── //// test run jNumber_ "00.4" |> parserEqual ( Failure ( "number andThen many1 whitespace", "Unexpected '0'", { currentLine = "00.4"; line = 0; column = 1 } ) ) ╭─[ 19.05ms - return value ]───────────────────────────────────────────────────╮ │ <details open="open" class="dni-treeview"><summary><span │ │ class="dni-code-hint"><code>Failure<br/> ("number andThen many1 │ │ whitespace", "Unexpected '0'", { currentLine = │ │ "00.4"<br/> │ │ line = 0<br/> │ │ column = 1 │ │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │ │ >Item1</td><td><div class="dni-plaintext"><pre>number andThen many1 │ │ whitespace</pre></div></td></tr><tr><td>Item2</td><td><div │ │ class="dni-plaintext"><pre>Unexpected │ │ '0'</pre></div></td></tr><tr><td>Item3</td><td><details │ │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ │ │ currentLine = "0... │ ╰──────────────────────────────────────────────────────────────────────────────╯ ╭─[ 20.16ms - stdout ]─────────────────────────────────────────────────────────╮ │ Line:0 Col:1 Error parsing number andThen many1 whitespace │ │ 00.4 │ │ ^Unexpected '0' │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── //// test run jNumber_ "123e4" |> parserEqual (Success (JNumber 1230000.0)) ╭─[ 24.92ms - return value ]───────────────────────────────────────────────────╮ │ <details open="open" class="dni-treeview"><summary><span │ │ class="dni-code-hint"><code>Success (JNumber 1230000.0, { lines = [ │ │ |"123e4"|]<br/> position = { line = │ │ 1<br/> column = 0 } │ │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │ │ >Item</td><td><details class="dni-treeview"><summary><span │ │ class="dni-code-hint"><code>(JNumber 1230000.0, { lines = [ │ │ |"123e4"|]<br/> position = { line = 1<br/> column = │ │ 0 } │ │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │ │ >Item1</td><td><details class="dni-treeview"><summary><span │ │ class="dni-code-hint"><code>JNumber │ │ 1230000.0</code></span></summary><div><tab... │ ╰──────────────────────────────────────────────────────────────────────────────╯ ╭─[ 26.09ms - stdout ]─────────────────────────────────────────────────────────╮ │ JNumber 1230000.0 │ │ JNumber │ │ Item: 1230000 │ │ IsJString: False │ │ IsJNumber: True │ │ IsJBool: False │ │ IsJNull: False │ │ IsJObject: False │ │ IsJArray: False │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── //// test run jNumber_ "123.4e5" |> parserEqual (Success (JNumber 12340000.0)) ╭─[ 23.21ms - return value ]───────────────────────────────────────────────────╮ │ <details open="open" class="dni-treeview"><summary><span │ │ class="dni-code-hint"><code>Success (JNumber 12340000.0, { lines = [ │ │ |"123.4e5"|]<br/> position = { line │ │ = 1<br/> column = 0 } │ │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │ │ >Item</td><td><details class="dni-treeview"><summary><span │ │ class="dni-code-hint"><code>(JNumber 12340000.0, { lines = [ │ │ |"123.4e5"|]<br/> position = { line = 1<br/> column │ │ = 0 } │ │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │ │ >Item1</td><td><details class="dni-treeview"><summary><span │ │ class="dni-code-hint"><code>JNumber 12340000.0</code></span></summary>... │ ╰──────────────────────────────────────────────────────────────────────────────╯ ╭─[ 24.40ms - stdout ]─────────────────────────────────────────────────────────╮ │ JNumber 12340000.0 │ │ JNumber │ │ Item: 12340000 │ │ IsJString: False │ │ IsJNumber: True │ │ IsJBool: False │ │ IsJNull: False │ │ IsJObject: False │ │ IsJArray: False │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── //// test run jNumber_ "123.4e-5" |> parserEqual (Success (JNumber 0.001234)) ╭─[ 23.49ms - return value ]───────────────────────────────────────────────────╮ │ <details open="open" class="dni-treeview"><summary><span │ │ class="dni-code-hint"><code>Success (JNumber 0.001234, { lines = [ │ │ |"123.4e-5"|]<br/> position = { line = │ │ 1<br/> column = 0 } │ │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │ │ >Item</td><td><details class="dni-treeview"><summary><span │ │ class="dni-code-hint"><code>(JNumber 0.001234, { lines = [ │ │ |"123.4e-5"|]<br/> position = { line = 1<br/> │ │ column = 0 } │ │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │ │ >Item1</td><td><details class="dni-treeview"><summary><span │ │ class="dni-code-hint"><code>JNumber │ │ 0.001234</code></span></summary><div><ta... │ ╰──────────────────────────────────────────────────────────────────────────────╯ ╭─[ 24.64ms - stdout ]─────────────────────────────────────────────────────────╮ │ JNumber 0.001234 │ │ JNumber │ │ Item: 0.001234 │ │ IsJString: False │ │ IsJNumber: True │ │ IsJBool: False │ │ IsJNull: False │ │ IsJObject: False │ │ IsJArray: False │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ### jArray │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let jArray = let left = pchar '[[' .>> spaces let right = pchar ']]' .>> spaces let comma = pchar ',' .>> spaces let value = jValue .>> spaces let values = sepBy value comma between left values right |>> JArray <?> "array" ── fsharp ────────────────────────────────────────────────────────────────────── //// test jValueRef <| choice [[ jNull jBool jString jNumber jArray ]] ── fsharp ────────────────────────────────────────────────────────────────────── //// test run jArray "[[ 1, 2 ]]" |> parserEqual (Success (JArray [[ JNumber 1.0; JNumber 2.0 ]])) ╭─[ 64.39ms - return value ]───────────────────────────────────────────────────╮ │ <details open="open" class="dni-treeview"><summary><span │ │ class="dni-code-hint"><code>Success (JArray [JNumber 1.0; JNumber 2.0], { │ │ lines = [|"[ 1, 2 ]"|]<br/> │ │ position = { line = 1<br/> │ │ column = 0 } │ │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │ │ >Item</td><td><details class="dni-treeview"><summary><span │ │ class="dni-code-hint"><code>(JArray [JNumber 1.0; JNumber 2.0], { lines = [ │ │ |"[ 1, 2 ]"|]<br/> position = { line = 1<br/> │ │ column = 0 } │ │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │ │ >Item1</td><td><details class="dni-treeview"><summary><span class="d... │ ╰──────────────────────────────────────────────────────────────────────────────╯ ╭─[ 65.85ms - stdout ]─────────────────────────────────────────────────────────╮ │ JArray [JNumber 1.0; JNumber 2.0] │ │ JArray │ │ Item: FSharpList<JValue> │ │ - Item: 1 │ │ IsJString: False │ │ IsJNumber: True │ │ IsJBool: False │ │ IsJNull: False │ │ IsJObject: False │ │ IsJArray: False │ │ - Item: 2 │ │ IsJString: False │ │ IsJNumber: True │ │ IsJBool: False │ │ IsJNull: False │ │ IsJObject: False │ │ IsJArray: False │ │ IsJString: False │ │ IsJNumber: False │ │ IsJBool: False │ │ IsJNull: False │ │ IsJObject: False │ │ IsJArray: True │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── //// test run jArray "[[ 1, 2, ]]" |> parserEqual ( Failure ( "array", "Unexpected ','", { currentLine = "[[ 1, 2, ]]"; line = 0; column = 6 } ) ) ╭─[ 24.83ms - return value ]───────────────────────────────────────────────────╮ │ <details open="open" class="dni-treeview"><summary><span │ │ class="dni-code-hint"><code>Failure ("array", "Unexpected │ │ ','", { currentLine = "[ 1, 2, ]"<br/> │ │ line = 0<br/> column = 6 │ │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │ │ >Item1</td><td><div │ │ class="dni-plaintext"><pre>array</pre></div></td></tr><tr><td>Item2</td><td> │ │ <div class="dni-plaintext"><pre>Unexpected │ │ ','</pre></div></td></tr><tr><td>Item3</td><td><details │ │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ │ │ currentLine = "[ 1, 2, ]"<br/> line = 0<br/> column = 6 │ │ }</code></span></summary><div><table><thead><t... │ ╰──────────────────────────────────────────────────────────────────────────────╯ ╭─[ 25.92ms - stdout ]─────────────────────────────────────────────────────────╮ │ Line:0 Col:6 Error parsing array │ │ [ 1, 2, ] │ │ ^Unexpected ',' │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ### jObject │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let jObject = let left = spaces >>. pchar '{' .>> spaces let right = pchar '}' .>> spaces let colon = pchar ':' .>> spaces let comma = pchar ',' .>> spaces let key = quotedString .>> spaces let value = jValue .>> spaces let keyValue = (key .>> colon) .>>. value let keyValues = sepBy keyValue comma between left keyValues right |>> Map.ofList |>> JObject <?> "object" ── fsharp ────────────────────────────────────────────────────────────────────── jValueRef <| choice [[ jNull jBool jString jNumber jArray jObject ]] ── fsharp ────────────────────────────────────────────────────────────────────── //// test run jObject """{ "a":1, "b" : 2 }""" |> parserEqual ( Success ( JObject ( Map.ofList [[ "a", JNumber 1.0 "b", JNumber 2.0 ]] ) ) ) ╭─[ 75.12ms - return value ]───────────────────────────────────────────────────╮ │ <details open="open" class="dni-treeview"><summary><span │ │ class="dni-code-hint"><code>Success<br/> (JObject (map [("a", │ │ JNumber 1.0); ("b", JNumber 2.0)]),<br/> { lines = [|"{ │ │ "a":1, "b" : 2 }"|]<br/> position = { line = │ │ 1<br/> column = 0 } │ │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │ │ >Item</td><td><details class="dni-treeview"><summary><span │ │ class="dni-code-hint"><code>(JObject (map [("a", JNumber 1.0); │ │ ("b", JNumber 2.0)]), { lines = [|"{ "a":1, │ │ "b" : 2 }"|]<br/> position = { line = 1<br/> │ │ column = 0 } │ │ })</code></span></summary><div><table><thead><tr></tr></thead><tbod... │ ╰──────────────────────────────────────────────────────────────────────────────╯ ╭─[ 76.74ms - stdout ]─────────────────────────────────────────────────────────╮ │ JObject (map [("a", JNumber 1.0); ("b", JNumber 2.0)]) │ │ JObject │ │ Item: FSharpMap<String,JValue> │ │ - Key: a │ │ Value: JNumber │ │ Item: 1 │ │ IsJString: False │ │ IsJNumber: True │ │ IsJBool: False │ │ IsJNull: False │ │ IsJObject: False │ │ IsJArray: False │ │ - Key: b │ │ Value: JNumber │ │ Item: 2 │ │ IsJString: False │ │ IsJNumber: True │ │ IsJBool: False │ │ IsJNull: False │ │ IsJObject: False │ │ IsJArray: False │ │ IsJString: False │ │ IsJNumber: False │ │ IsJBool: False │ │ IsJNull: False │ │ IsJObject: True │ │ IsJArray: False │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── //// test run jObject """{ "a":1, "b" : 2, }""" |> parserEqual ( Failure ( "object", "Unexpected ','", { currentLine = """{ "a":1, "b" : 2, }"""; line = 0; column = 18 } ) ) ╭─[ 27.33ms - return value ]───────────────────────────────────────────────────╮ │ <details open="open" class="dni-treeview"><summary><span │ │ class="dni-code-hint"><code>Failure ("object", "Unexpected │ │ ','", { currentLine = "{ "a":1, "b" : │ │ 2, }"<br/> line = 0<br/> │ │ column = 18 │ │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │ │ >Item1</td><td><div │ │ class="dni-plaintext"><pre>object</pre></div></td></tr><tr><td>Item2</td><td │ │ ><div class="dni-plaintext"><pre>Unexpected │ │ ','</pre></div></td></tr><tr><td>Item3</td><td><details │ │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ │ │ currentLine = "{ "a":1, "b" : 2, }"<br/> │ │ lin... │ ╰──────────────────────────────────────────────────────────────────────────────╯ ╭─[ 28.37ms - stdout ]─────────────────────────────────────────────────────────╮ │ Line:0 Col:18 Error parsing object │ │ { "a":1, "b" : 2, } │ │ ^Unexpected ',' │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ### jValue │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── //// test let example1 = """{ "name" : "Scott", "isMale" : true, "bday" : {"year":2001, "month":12, "day":25 }, "favouriteColors" : [["blue", "green"]], "emptyArray" : [[]], "emptyObject" : {} }""" run jValue example1 |> parserEqual ( Success ( JObject ( Map.ofList [[ "name", JString "Scott" "isMale", JBool true "bday", JObject ( Map.ofList [[ "year", JNumber 2001.0 "month", JNumber 12.0 "day", JNumber 25.0 ]] ) "favouriteColors", JArray [[ JString "blue"; JString "green" ]] "emptyArray", JArray [[]] "emptyObject", JObject Map.empty ]] ) ) ) ╭─[ 117.54ms - return value ]──────────────────────────────────────────────────╮ │ <details open="open" class="dni-treeview"><summary><span │ │ class="dni-code-hint"><code>Success<br/> (JObject<br/> (map<br/> │ │ [("bday",<br/> JObject<br/> (map<br/> │ │ [("day", JNumber 25.0); ("month", JNumber 12.0);<br/> │ │ ("year", JNumber 2001.0)])); ("emptyArray", JArray [ │ │ ]);<br/> ("emptyObject", JObject (map []));<br/> │ │ ("favouriteColors", │ │ ...</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><t │ │ d>Item</td><td><details class="dni-treeview"><summary><span │ │ class="dni-code-hint"><code>(JObject<br/> (map<br/> [ │ │ ("bday",<br/> JObject<br/> (map<br/> [ │ │ (... │ ╰──────────────────────────────────────────────────────────────────────────────╯ ╭─[ 119.37ms - stdout ]────────────────────────────────────────────────────────╮ │ JObject │ │ (map │ │ [("bday", │ │ JObject │ │ (map │ │ [("day", JNumber 25.0); ("month", JNumber 12.0); │ │ ("year", JNumber 2001.0)])); ("emptyArray", JArray []); │ │ ("emptyObject", JObject (map [])); │ │ ("favouriteColors", JArray [JString "blue"; JString "green"]); │ │ ("isMale", JBool true); ("name", JString "Scott")]) │ │ JObject │ │ Item: FSharpMap<String,JValue> │ │ - Key: bday │ │ Value: JObject │ │ Item: FSharpMap<String,JValue> │ │ - Key: day │ │ Value: JNumber 25.0 │ │ - Key: month │ │ Value: JNumber 12.0 │ │ - Key: year │ │ Value: JNumber 2001.0 │ │ IsJString: False │ │ IsJNumber: False │ │ IsJBool: False │ │ IsJNull: False │ │ IsJObject: True │ │ IsJArray: False │ │ - Key: emptyArray │ │ Value: JArray │ │ Item: FSharpList<JValue> │ │ │ │ IsJString: False │ │ IsJNumber: False │ │ IsJBool: False │ │ IsJNull: False │ │ IsJObject: False │ │ IsJArray: True │ │ - Key: emptyObject │ │ Value: JObject │ │ Item: FSharpMap<String,JValue> │ │ │ │ IsJString: False │ │ IsJNumber: False │ │ IsJBool: False │ │ IsJNull: False │ │ IsJObject: True │ │ IsJArray: False │ │ - Key: favouriteColors │ │ Value: JArray │ │ Item: FSharpList<JValue> │ │ - Item: blue │ │ IsJString: True │ │ IsJNumber: False │ │ IsJBool: False │ │ IsJNull: False │ │ IsJObject: False │ │ IsJArray: False │ │ - Item: green │ │ IsJString: True │ │ IsJNumber: False │ │ IsJBool: False │ │ IsJNull: False │ │ IsJObject: False │ │ IsJArray: False │ │ IsJString: False │ │ IsJNumber: False │ │ IsJBool: False │ │ IsJNull: False │ │ IsJObject: False │ │ IsJArray: True │ │ - Key: isMale │ │ Value: JBool │ │ Item: True │ │ IsJString: False │ │ IsJNumber: False │ │ IsJBool: True │ │ IsJNull: False │ │ IsJObject: False │ │ IsJArray: False │ │ - Key: name │ │ Value: JString │ │ Item: Scott │ │ IsJString: True │ │ IsJNumber: False │ │ IsJBool: False │ │ IsJNull: False │ │ IsJObject: False │ │ IsJArray: False │ │ IsJString: False │ │ IsJNumber: False │ │ IsJBool: False │ │ IsJNull: False │ │ IsJObject: True │ │ IsJArray: False │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── //// test let example2 = """{"widget": { "debug": "on", "window": { "title": "Sample Konfabulator Widget", "name": "main_window", "width": 500, "height": 500 }, "image": { "src": "Images/Sun.png", "name": "sun1", "hOffset": 250, "vOffset": 250, "alignment": "center" }, "text": { "data": "Click Here", "size": 36, "style": "bold", "name": "text1", "hOffset": 250, "vOffset": 100, "alignment": "center", "onMouseUp": "sun1.opacity = (sun1.opacity / 100) * 90;" } }}""" run jValue example2 |> parserEqual ( Success ( JObject ( Map.ofList [[ "widget", JObject ( Map.ofList [[ "debug", JString "on" "window", JObject ( Map.ofList [[ "title", JString "Sample Konfabulator Widget" "name", JString "main_window" "width", JNumber 500.0 "height", JNumber 500.0 ]] ) "image", JObject ( Map.ofList [[ "src", JString "Images/Sun.png" "name", JString "sun1" "hOffset", JNumber 250.0 "vOffset", JNumber 250.0 "alignment", JString "center" ]] ) "text", JObject ( Map.ofList [[ "data", JString "Click Here" "size", JNumber 36.0 "style", JString "bold" "name", JString "text1" "hOffset", JNumber 250.0 "vOffset", JNumber 100.0 "alignment", JString "center" "onMouseUp", JString "sun1.opacity = (sun1.opacity / 100) * 90;" ]] ) ]] ) ]] ) ) ) ╭─[ 262.96ms - return value ]──────────────────────────────────────────────────╮ │ <details open="open" class="dni-treeview"><summary><span │ │ class="dni-code-hint"><code>Success<br/> (JObject<br/> (map<br/> │ │ [("widget",<br/> JObject<br/> (map<br/> │ │ [("debug", JString "on");<br/> │ │ ("image",<br/> JObject<br/> │ │ (map<br/> [("alignment", JString │ │ "center");<br/> │ │ ("hOffset"...</code></span></summary><div><table><thead><tr></tr>< │ │ /thead><tbody><tr><td>Item</td><td><details │ │ class="dni-treeview"><summary><span │ │ class="dni-code-hint"><code>(JObject<br/> (map<br/> [ │ │ ("widget",<br/> JObject<br/> (map<br/> ... │ ╰──────────────────────────────────────────────────────────────────────────────╯ ╭─[ 264.63ms - stdout ]────────────────────────────────────────────────────────╮ │ JObject │ │ (map │ │ [("widget", │ │ JObject │ │ (map │ │ [("debug", JString "on"); │ │ ("image", │ │ JObject │ │ (map │ │ [("alignment", JString "center"); ("hOffset", JNumber │ │ 250.0); │ │ ("name", JString "sun1"); ("src", JString │ │ "Images/Sun.png"); │ │ ("vOffset", JNumber 250.0)])); │ │ ("text", │ │ JObject │ │ (map │ │ [("alignment", JString "center"); │ │ ("data", JString "Click Here"); ("hOffset", JNumber │ │ 250.0); │ │ ("name", JString "text1"); │ │ ("onMouseUp", │ │ JString "sun1.opacity = (sun1.opacity / 100) * 90;"); │ │ ("size", JNumber 36.0); ("style", JString "bold"); │ │ ("vOffset", JNumber 100.0)])); │ │ ("window", │ │ JObject │ │ (map │ │ [("height", JNumber 500.0); ("name", JString │ │ "main_window"); │ │ ("title", JString "Sample Konfabulator Widget"); │ │ ("width", JNumber 500.0)]))]))]) │ │ JObject │ │ Item: FSharpMap<String,JValue> │ │ - Key: widget │ │ Value: JObject │ │ Item: FSharpMap<String,JValue> │ │ - Key: debug │ │ Value: JString "on" │ │ - Key: image │ │ Value: JObject │ │ (map │ │ [("alignment", JString "center"); ("hOffset", JNumber 250.0); │ │ ("name", JString "sun1"); ("src", JString "Images/Sun.png"); │ │ ("vOffset", JNumber 250.0)]) │ │ - Key: text │ │ Value: JObject │ │ (map │ │ [("alignment", JString "center"); ("data", JString "Click Here"); │ │ ("hOffset", JNumber 250.0); ("name", JString "text1"); │ │ ("onMouseUp", JString "sun1.opacity = (sun1.opacity / 100) * 90;"); │ │ ("size", JNumber 36.0); ("style", JString "bold"); │ │ ("vOffset", JNumber 100.0)]) │ │ - Key: window │ │ Value: JObject │ │ (map │ │ [("height", JNumber 500.0); ("name", JString "main_window"); │ │ ("title", JString "Sample Konfabulator Widget"); ("width", JNumber │ │ 500.0)]) │ │ IsJString: False │ │ IsJNumber: False │ │ IsJBool: False │ │ IsJNull: False │ │ IsJObject: True │ │ IsJArray: False │ │ IsJString: False │ │ IsJNumber: False │ │ IsJBool: False │ │ IsJNull: False │ │ IsJObject: True │ │ IsJArray: False │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── //// test let example3 = """{ "string": "Hello, \"World\"!", "escapedString": "This string contains \\/\\\\\\b\\f\\n\\r\\t\\\"\\'", "number": 42, "scientificNumber": 3.14e-10, "boolean": true, "nullValue": null, "array": [[1, 2, 3, 4, 5]], "unicodeString1": "프리마", "unicodeString2": "\u0048\u0065\u006C\u006C\u006F, \u0022\u0057\u006F\u0072\u006C\u0064\u0022!", "specialCharacters": "!@#$%^&*()", "emptyArray": [[]], "emptyObject": {}, "nestedArrays": [[[[1, 2, 3]], [[4, 5, 6]]]], "object": { "nestedString": "Nested Value", "nestedNumber": 3.14, "nestedBoolean": false, "nestedNull": null, "nestedArray": [["a", "b", "c"]], "nestedObject": { "nestedProperty": "Nested Object Value" } }, "nestedObjects": [[ {"name": "Alice", "age": 25}, {"name": "Bob", "age": 30} ]] }""" run jValue example3 |> parserEqual ( Success ( JObject ( Map.ofList [[ "string", JString @"Hello, ""World""!" "escapedString", JString @"This string contains \/\\\b\f\n\r\t\""\'" "number", JNumber 42.0 "scientificNumber", JNumber 3.14e-10 "boolean", JBool true "nullValue", JNull "array", JArray [[ JNumber 1.0; JNumber 2.0; JNumber 3.0; JNumber 4.0; JNumber 5.0 ]] "unicodeString1", JString "프리마" "unicodeString2", JString @"Hello, ""World""!" "specialCharacters", JString "!@#$%^&*()" "emptyArray", JArray [[]] "emptyObject", JObject Map.empty "nestedArrays", JArray [[ JArray [[ JNumber 1.0; JNumber 2.0; JNumber 3.0 ]] JArray [[ JNumber 4.0; JNumber 5.0; JNumber 6.0 ]] ]] "object", JObject ( Map.ofList [[ "nestedString", JString "Nested Value" "nestedNumber", JNumber 3.14 "nestedBoolean", JBool false "nestedNull", JNull "nestedArray", JArray [[JString "a"; JString "b"; JString "c"]] "nestedObject", JObject ( Map.ofList [[ "nestedProperty", JString "Nested Object Value" ]] ) ]] ) "nestedObjects", JArray [[ JObject (Map.ofList [[ "name", JString "Alice"; "age", JNumber 25.0 ]]) JObject (Map.ofList [[ "name", JString "Bob"; "age", JNumber 30.0 ]]) ]] ]] ) ) ) ╭─[ 283.34ms - return value ]──────────────────────────────────────────────────╮ │ <details open="open" class="dni-treeview"><summary><span │ │ class="dni-code-hint"><code>Success<br/> (JObject<br/> (map<br/> │ │ [("array",<br/> JArray<br/> [JNumber 1.0; │ │ JNumber 2.0; JNumber 3.0; JNumber 4.0; JNumber 5.0]);<br/> │ │ ("boolean", JBool true); ("emptyArray", JArray []);<br/> │ │ ("emptyObject", JObject (map []));<br/> │ │ ("escapedString", JString "This │ │ s...</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr>< │ │ td>Item</td><td><details class="dni-treeview"><summary><span │ │ class="dni-code-hint"><code>(JObject<br/> (map<br/> [ │ │ ("array",<br/> JArray [JNumber 1.0; JNumber 2.0; JNumber │ │ 3.0; JNumber 4.0; J... │ ╰──────────────────────────────────────────────────────────────────────────────╯ ╭─[ 286.08ms - stdout ]────────────────────────────────────────────────────────╮ │ JObject │ │ (map │ │ [("array", │ │ JArray [JNumber 1.0; JNumber 2.0; JNumber 3.0; JNumber 4.0; JNumber │ │ 5.0]); │ │ ("boolean", JBool true); ("emptyArray", JArray []); │ │ ("emptyObject", JObject (map [])); │ │ ("escapedString", JString "This string contains \/\\\b\f\n\r\t\"\'"); │ │ ("nestedArrays", │ │ JArray │ │ [JArray [JNumber 1.0; JNumber 2.0; JNumber 3.0]; │ │ JArray [JNumber 4.0; JNumber 5.0; JNumber 6.0]]); │ │ ("nestedObjects", │ │ JArray │ │ [JObject (map [("age", JNumber 25.0); ("name", JString "Alice")]); │ │ JObject (map [("age", JNumber 30.0); ("name", JString "Bob")])]); │ │ ("nullValue", JNull); ("number", JNumber 42.0); ...]) │ │ JObject │ │ Item: FSharpMap<String,JValue> │ │ - Key: array │ │ Value: JArray │ │ Item: FSharpList<JValue> │ │ - Item: 1 │ │ IsJString: False │ │ IsJNumber: True │ │ IsJBool: False │ │ IsJNull: False │ │ IsJObject: False │ │ IsJArray: False │ │ - Item: 2 │ │ IsJString: False │ │ IsJNumber: True │ │ IsJBool: False │ │ IsJNull: False │ │ IsJObject: False │ │ IsJArray: False │ │ - Item: 3 │ │ IsJString: False │ │ IsJNumber: True │ │ IsJBool: False │ │ IsJNull: False │ │ IsJObject: False │ │ IsJArray: False │ │ - Item: 4 │ │ IsJString: False │ │ IsJNumber: True │ │ IsJBool: False │ │ IsJNull: False │ │ IsJObject: False │ │ IsJArray: False │ │ - Item: 5 │ │ IsJString: False │ │ IsJNumber: True │ │ IsJBool: False │ │ IsJNull: False │ │ IsJObject: False │ │ IsJArray: False │ │ IsJString: False │ │ IsJNumber: False │ │ IsJBool: False │ │ IsJNull: False │ │ IsJObject: False │ │ IsJArray: True │ │ - Key: boolean │ │ Value: JBool │ │ Item: True │ │ IsJString: False │ │ IsJNumber: False │ │ IsJBool: True │ │ IsJNull: False │ │ IsJObject: False │ │ IsJArray: False │ │ - Key: emptyArray │ │ Value: JArray │ │ Item: FSharpList<JValue> │ │ │ │ IsJString: False │ │ IsJNumber: False │ │ IsJBool: False │ │ IsJNull: False │ │ IsJObject: False │ │ IsJArray: True │ │ - Key: emptyObject │ │ Value: JObject │ │ Item: FSharpMap<String,JValue> │ │ │ │ IsJString: False │ │ IsJNumber: False │ │ IsJBool: False │ │ IsJNull: False │ │ IsJObject: True │ │ IsJArray: False │ │ - Key: escapedString │ │ Value: JString │ │ Item: This string contains \/\\\b\f\n\r\t\"\' │ │ IsJString: True │ │ IsJNumber: False │ │ IsJBool: False │ │ IsJNull: False │ │ IsJObject: False │ │ IsJArray: False │ │ - Key: nestedArrays │ │ Value: JArray │ │ Item: FSharpList<JValue> │ │ - Item: [ JNumber 1.0, JNumber 2.0, JNumber 3.0 ] │ │ IsJString: False │ │ IsJNumber: False │ │ IsJBool: False │ │ IsJNull: False │ │ IsJObject: False │ │ IsJArray: True │ │ - Item: [ JNumber 4.0, JNumber 5.0, JNumber 6.0 ] │ │ IsJString: False │ │ IsJNumber: False │ │ IsJBool: False │ │ IsJNull: False │ │ IsJObject: False │ │ IsJArray: True │ │ IsJString: False │ │ IsJNumber: False │ │ IsJBool: False │ │ IsJNull: False │ │ IsJObject: False │ │ IsJArray: True │ │ - Key: nestedObjects │ │ Value: JArray │ │ Item: FSharpList<JValue> │ │ - Item: [ [age, JNumber 25.0], [name, JString "Alice"] ] │ │ IsJString: False │ │ IsJNumber: False │ │ IsJBool: False │ │ IsJNull: False │ │ IsJObject: True │ │ IsJArray: False │ │ - Item: [ [age, JNumber 30.0], [name, JString "Bob"] ] │ │ IsJString: False │ │ IsJNumber: False │ │ IsJBool: False │ │ IsJNull: False │ │ IsJObject: True │ │ IsJArray: False │ │ IsJString: False │ │ IsJNumber: False │ │ IsJBool: False │ │ IsJNull: False │ │ IsJObject: False │ │ IsJArray: True │ │ - Key: nullValue │ │ Value: JValue │ │ IsJString: False │ │ IsJNumber: False │ │ IsJBool: False │ │ IsJNull: True │ │ IsJObject: False │ │ IsJArray: False │ │ - Key: number │ │ Value: JNumber │ │ Item: 42 │ │ IsJString: False │ │ IsJNumber: True │ │ IsJBool: False │ │ IsJNull: False │ │ IsJObject: False │ │ IsJArray: False │ │ - Key: object │ │ Value: JObject │ │ Item: FSharpMap<String,JValue> │ │ - Key: nestedArray │ │ Value: JArray [JString "a"; JString "b"; JString "c"] │ │ - Key: nestedBoolean │ │ Value: JBool false │ │ - Key: nestedNull │ │ Value: JNull │ │ - Key: nestedNumber │ │ Value: JNumber 3.14 │ │ - Key: nestedObject │ │ Value: JObject (map [("nestedProperty", JString "Nested │ │ Object Value")]) │ │ - Key: nestedString │ │ Value: JString "Nested Value" │ │ IsJString: False │ │ IsJNumber: False │ │ IsJBool: False │ │ IsJNull: False │ │ IsJObject: True │ │ IsJArray: False │ │ - Key: scientificNumber │ │ Value: JNumber │ │ Item: 3.14E-10 │ │ IsJString: False │ │ IsJNumber: True │ │ IsJBool: False │ │ IsJNull: False │ │ IsJObject: False │ │ IsJArray: False │ │ - Key: specialCharacters │ │ Value: JString │ │ Item: !@#$%^&*() │ │ IsJString: True │ │ IsJNumber: False │ │ IsJBool: False │ │ IsJNull: False │ │ IsJObject: False │ │ IsJArray: False │ │ - Key: string │ │ Value: JString │ │ Item: Hello, "World"! │ │ IsJString: True │ │ IsJNumber: False │ │ IsJBool: False │ │ IsJNull: False │ │ IsJObject: False │ │ IsJArray: False │ │ - Key: unicodeString1 │ │ Value: JString │ │ Item: 프리마 │ │ IsJString: True │ │ IsJNumber: False │ │ IsJBool: False │ │ IsJNull: False │ │ IsJObject: False │ │ IsJArray: False │ │ - Key: unicodeString2 │ │ Value: JString │ │ Item: Hello, "World"! │ │ IsJString: True │ │ IsJNumber: False │ │ IsJBool: False │ │ IsJNull: False │ │ IsJObject: False │ │ IsJArray: False │ │ IsJString: False │ │ IsJNumber: False │ │ IsJBool: False │ │ IsJNull: False │ │ IsJObject: True │ │ IsJArray: False │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ [NbConvertApp] Converting notebook JsonParser.dib.ipynb to html /opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/nbformat/__init__.py:96: MissingIDFieldWarning: Cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future. validate(nb) /opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/nbconvert/filters/highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3 return _pygments_highlight( [NbConvertApp] Writing 543704 bytes to JsonParser.dib.html ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ # Parser (Polyglot) │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── #!import ../../lib/fsharp/Notebooks.dib #!import ../../lib/fsharp/Testing.dib ── fsharp - import ───────────────────────────────────────────────────────────── #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Asp NetCore.Html.Abstractions.dll" #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Dot Net.Interactive.dll" #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Dot Net.Interactive.FSharp.dll" #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Dot Net.Interactive.Formatting.dll" open System open System.IO open System.Text open Microsoft.DotNet.Interactive.Formatting ── fsharp - import ───────────────────────────────────────────────────────────── #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Dot Net.Interactive.FSharp.dll" open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Dot Net.Interactive.dll" open type Microsoft.DotNet.Interactive.Kernel ── fsharp - import ───────────────────────────────────────────────────────────── //// test Formatter.ListExpansionLimit <- 100 ── fsharp - import ───────────────────────────────────────────────────────────── #r @"../../../../../../../.nuget/packages/expecto/10.2.1/lib/net6.0/Expecto.dll" ── fsharp - import ───────────────────────────────────────────────────────────── //// test type AssertExceptionFormatter (ex) = member _.Text = ex.ToString() .Replace("32m", "<span style=\"color: green;\">") .Replace("36m", "</span>") .Replace("31m", "<span style=\"color: red;\">") .Replace("\n", "<br/>\n") Formatter.Register<AssertExceptionFormatter> ((fun (x : AssertExceptionFormatter) -> x.Text), "text/html") ── fsharp - import ───────────────────────────────────────────────────────────── //// test let inline __expect fn log expected actual = if log then printfn $"{actual.ToDisplayString ()}" try "Testing.__expect" |> fn actual expected with :? Expecto.AssertException as ex -> AssertExceptionFormatter(ex).Display () |> ignore failwith (ex.GetType().FullName) let inline __contains log expected actual = __expect Expecto.Expect.contains log expected actual let inline _contains expected actual = __contains true expected actual let inline __assertEqual log expected actual = __expect Expecto.Expect.equal log expected actual let inline _assertEqual expected actual = __assertEqual true expected actual let inline __isGreaterThan log expected actual = __expect Expecto.Expect.isGreaterThan log ex... ── fsharp - import ───────────────────────────────────────────────────────────── //// test let inline __isBetween log a b actual = let inline isBetween actual (a, b) _ = __isGreaterThanOrEqual log a actual __isLessThanOrEqual log b actual __expect isBetween log (a, b) actual let inline _isBetween a b actual = __isBetween true a b actual ── fsharp ────────────────────────────────────────────────────────────────────── #!import ../../lib/fsharp/Common.fs ── fsharp - import ───────────────────────────────────────────────────────────── #if !INTERACTIVE namespace Polyglot #endif module Common = let nl = System.Environment.NewLine let q = @"""" let inline cons head tail = head :: tail module String = let inline contains (value : string) (input : string) = input.Contains value let inline endsWith (value : string) (input : string) = input.EndsWith value let inline padLeft totalWidth paddingChar (input : string) = input.PadLeft (totalWidth, paddingChar) let inline replace (oldValue : string) (newValue : string) (input : string) = input.Replace (oldValue, newValue) let inline split separator (input : string) = input.Split separator let inline spli... ── fsharp ────────────────────────────────────────────────────────────────────── open Common ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ### TextInput │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── type Position = { line : int column : int } ── fsharp ────────────────────────────────────────────────────────────────────── let initialPos = { line = 0; column = 0 } ── fsharp ────────────────────────────────────────────────────────────────────── let inline incrCol (pos : Position) = { pos with column = pos.column + 1 } ── fsharp ────────────────────────────────────────────────────────────────────── let inline incrLine pos = { line = pos.line + 1; column = 0 } ── fsharp ────────────────────────────────────────────────────────────────────── type InputState = { lines : string[[]] position : Position } ── fsharp ────────────────────────────────────────────────────────────────────── let inline fromStr str = { lines = if str |> String.IsNullOrEmpty then [[||]] else str |> String.splitString [[| "\r\n"; "\n" |]] position = initialPos } ── fsharp ────────────────────────────────────────────────────────────────────── //// test fromStr "" |> _assertEqual { lines = [[||]] position = { line = 0; column = 0 } } ╭─[ 34.68ms - stdout ]─────────────────────────────────────────────────────────╮ │ InputState │ │ lines: [ ] │ │ position: Position │ │ line: 0 │ │ column: 0 │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── //// test fromStr "Hello \n World" |> _assertEqual { lines = [[| "Hello "; " World" |]] position = { line = 0; column = 0 } } ╭─[ 11.24ms - stdout ]─────────────────────────────────────────────────────────╮ │ InputState │ │ lines: [ Hello , World ] │ │ position: Position │ │ line: 0 │ │ column: 0 │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let inline currentLine inputState = let linePos = inputState.position.line if linePos < inputState.lines.Length then inputState.lines.[[linePos]] else "end of file" ── fsharp ────────────────────────────────────────────────────────────────────── let inline nextChar input = let linePos = input.position.line let colPos = input.position.column if linePos >= input.lines.Length then input, None else let currentLine = currentLine input if colPos < currentLine.Length then let char = currentLine.[[colPos]] let newPos = incrCol input.position let newState = { input with position = newPos } newState, Some char else let char = '\n' let newPos = incrLine input.position let newState = { input with position = newPos } newState, Some char ── fsharp ────────────────────────────────────────────────────────────────────── //// test let newInput, charOpt = fromStr "Hello World" |> nextChar newInput |> _assertEqual { lines = [[| "Hello World" |]] position = { line = 0; column = 1 } } charOpt |> _assertEqual (Some 'H') ╭─[ 26.46ms - stdout ]─────────────────────────────────────────────────────────╮ │ InputState │ │ lines: [ Hello World ] │ │ position: Position │ │ line: 0 │ │ column: 1 │ │ FSharpOption<Char> │ │ Value: H │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── //// test let newInput, charOpt = fromStr "Hello\n\nWorld" |> nextChar newInput |> _assertEqual { lines = [[| "Hello"; ""; "World" |]] position = { line = 0; column = 1 } } charOpt |> _assertEqual (Some 'H') ╭─[ 19.09ms - stdout ]─────────────────────────────────────────────────────────╮ │ InputState │ │ lines: [ Hello, , World ] │ │ position: Position │ │ line: 0 │ │ column: 1 │ │ FSharpOption<Char> │ │ Value: H │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ### Parser │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── type Input = InputState type ParserLabel = string type ParserError = string type ParserPosition = { currentLine : string line : int column : int } type ParseResult<'a> = | Success of 'a | Failure of ParserLabel * ParserError * ParserPosition type Parser<'a> = { label : ParserLabel parseFn : Input -> ParseResult<'a * Input> } ── fsharp ────────────────────────────────────────────────────────────────────── let inline printResult result = match result with | Success (value, input) -> printfn $"%A{value}" | Failure (label, error, parserPos) -> let errorLine = parserPos.currentLine let colPos = parserPos.column let linePos = parserPos.line let failureCaret = $"{' ' |> string |> String.replicate colPos}^{error}" printfn $"Line:%i{linePos} Col:%i{colPos} Error parsing %s{label}\n%s{errorLine}\n%s{failureCaret}" ── fsharp ────────────────────────────────────────────────────────────────────── let inline runOnInput parser input = parser.parseFn input ── fsharp ────────────────────────────────────────────────────────────────────── let inline run parser inputStr = runOnInput parser (fromStr inputStr) ── fsharp ────────────────────────────────────────────────────────────────────── let inline parserPositionFromInputState (inputState : Input) = { currentLine = currentLine inputState line = inputState.position.line column = inputState.position.column } ── fsharp ────────────────────────────────────────────────────────────────────── let inline getLabel parser = parser.label ── fsharp ────────────────────────────────────────────────────────────────────── let inline setLabel parser newLabel = { label = newLabel parseFn = fun input -> match parser.parseFn input with | Success s -> Success s | Failure (oldLabel, err, pos) -> Failure (newLabel, err, pos) } ── fsharp ────────────────────────────────────────────────────────────────────── let (<?>) = setLabel ── fsharp ────────────────────────────────────────────────────────────────────── let inline satisfy predicate label = { label = label parseFn = fun input -> let remainingInput, charOpt = nextChar input match charOpt with | None -> let err = "No more input" let pos = parserPositionFromInputState input Failure (label, err, pos) | Some first -> if predicate first then Success (first, remainingInput) else let err = $"Unexpected '%c{first}'" let pos = parserPositionFromInputState input Failure (label, err, pos) } ── fsharp ────────────────────────────────────────────────────────────────────── //// test let input = fromStr "Hello" let parser = satisfy (fun c -> c = 'H') "H" runOnInput parser input |> _assertEqual ( Success ( 'H', { lines = [[| "Hello" |]] position = { line = 0; column = 1 } } ) ) ╭─[ 69.79ms - stdout ]─────────────────────────────────────────────────────────╮ │ Success │ │ Item: - H │ │ - InputState │ │ lines: [ Hello ] │ │ position: Position │ │ line: 0 │ │ column: 1 │ │ - IsSuccess: True │ │ IsFailure: False │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── //// test let input = fromStr "World" let parser = satisfy (fun c -> c = 'H') "H" runOnInput parser input |> _assertEqual ( Failure ( "H", "Unexpected 'W'", { currentLine = "World" line = 0 column = 0 } ) ) ╭─[ 21.16ms - stdout ]─────────────────────────────────────────────────────────╮ │ Failure │ │ Item1: H │ │ Item2: Unexpected 'W' │ │ Item3: ParserPosition │ │ currentLine: World │ │ line: 0 │ │ column: 0 │ │ IsSuccess: False │ │ IsFailure: True │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let inline bindP f p = { label = "unknown" parseFn = fun input -> match runOnInput p input with | Failure (label, err, pos) -> Failure (label, err, pos) | Success (value1, remainingInput) -> runOnInput (f value1) remainingInput } ── fsharp ────────────────────────────────────────────────────────────────────── let inline (>>=) p f = bindP f p ── fsharp ────────────────────────────────────────────────────────────────────── //// test let input = fromStr "Hello" let parser = satisfy (fun c -> c = 'H') "H" let parser2 = parser >>= fun c -> satisfy (fun c -> c = 'e') "e" runOnInput parser2 input |> _assertEqual ( Success ( 'e', { lines = [[| "Hello" |]] position = { line = 0; column = 2 } } ) ) ╭─[ 26.59ms - stdout ]─────────────────────────────────────────────────────────╮ │ Success │ │ Item: - e │ │ - InputState │ │ lines: [ Hello ] │ │ position: Position │ │ line: 0 │ │ column: 2 │ │ - IsSuccess: True │ │ IsFailure: False │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── //// test let input = fromStr "World" let parser = satisfy (fun c -> c = 'W') "W" let parser2 = parser >>= fun c -> satisfy (fun c -> c = 'e') "e" runOnInput parser2 input |> _assertEqual ( Failure ( "e", "Unexpected 'o'", { currentLine = "World" line = 0 column = 1 } ) ) ╭─[ 27.06ms - stdout ]─────────────────────────────────────────────────────────╮ │ Failure │ │ Item1: e │ │ Item2: Unexpected 'o' │ │ Item3: ParserPosition │ │ currentLine: World │ │ line: 0 │ │ column: 1 │ │ IsSuccess: False │ │ IsFailure: True │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let inline returnP x = { label = $"%A{x}" parseFn = fun input -> Success (x, input) } ── fsharp ────────────────────────────────────────────────────────────────────── //// test let input = fromStr "Hello" let parser = returnP "Hello" runOnInput parser input |> _assertEqual ( Success ( "Hello", { lines = [[| "Hello" |]] position = { line = 0; column = 0 } } ) ) ╭─[ 22.76ms - stdout ]─────────────────────────────────────────────────────────╮ │ Success │ │ Item: - Hello │ │ - InputState │ │ lines: [ Hello ] │ │ position: Position │ │ line: 0 │ │ column: 0 │ │ - IsSuccess: True │ │ IsFailure: False │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let inline mapP f = bindP (f >> returnP) ── fsharp ────────────────────────────────────────────────────────────────────── let (<!>) = mapP ── fsharp ────────────────────────────────────────────────────────────────────── let inline (|>>) x f = f <!> x ── fsharp ────────────────────────────────────────────────────────────────────── //// test let input = fromStr "Hello" let parser = satisfy (fun c -> c = 'H') "H" let parser2 = parser |>> string runOnInput parser2 input |> _assertEqual ( Success ( "H", { lines = [[| "Hello" |]] position = { line = 0; column = 1 } } ) ) ╭─[ 22.10ms - stdout ]─────────────────────────────────────────────────────────╮ │ Success │ │ Item: - H │ │ - InputState │ │ lines: [ Hello ] │ │ position: Position │ │ line: 0 │ │ column: 1 │ │ - IsSuccess: True │ │ IsFailure: False │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let inline applyP fP xP = fP >>= fun f -> xP >>= fun x -> returnP (f x) ── fsharp ────────────────────────────────────────────────────────────────────── let (<*>) = applyP ── fsharp ────────────────────────────────────────────────────────────────────── let inline lift2 f xP yP = returnP f <*> xP <*> yP ── fsharp ────────────────────────────────────────────────────────────────────── //// test let input = fromStr "Hello" let parser = satisfy (fun c -> c = 'H') "H" let parser2 = satisfy (fun c -> c = 'e') "e" let parser3 = lift2 (fun c1 c2 -> string c1 + string c2) parser parser2 runOnInput parser3 input |> _assertEqual ( Success ( "He", { lines = [[| "Hello" |]] position = { line = 0; column = 2 } } ) ) ╭─[ 38.86ms - stdout ]─────────────────────────────────────────────────────────╮ │ Success │ │ Item: - He │ │ - InputState │ │ lines: [ Hello ] │ │ position: Position │ │ line: 0 │ │ column: 2 │ │ - IsSuccess: True │ │ IsFailure: False │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let inline andThen p1 p2 = p1 >>= fun p1Result -> p2 >>= fun p2Result -> returnP (p1Result, p2Result) <?> $"{getLabel p1} andThen {getLabel p2}" ── fsharp ────────────────────────────────────────────────────────────────────── let (.>>.) = andThen ── fsharp ────────────────────────────────────────────────────────────────────── //// test let input = fromStr "Hello" let parser = satisfy (fun c -> c = 'H') "H" let parser2 = satisfy (fun c -> c = 'e') "e" let parser3 = parser .>>. parser2 runOnInput parser3 input |> _assertEqual ( Success ( ('H', 'e'), { lines = [[| "Hello" |]] position = { line = 0; column = 2 } } ) ) ╭─[ 45.56ms - stdout ]─────────────────────────────────────────────────────────╮ │ Success │ │ Item: - ( H, e ) │ │ - InputState │ │ lines: [ Hello ] │ │ position: Position │ │ line: 0 │ │ column: 2 │ │ - IsSuccess: True │ │ IsFailure: False │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let inline orElse p1 p2 = { label = $"{getLabel p1} orElse {getLabel p2}" parseFn = fun input -> match runOnInput p1 input with | Success _ as result -> result | Failure _ -> runOnInput p2 input } ── fsharp ────────────────────────────────────────────────────────────────────── let (<|>) = orElse ── fsharp ────────────────────────────────────────────────────────────────────── //// test let input = fromStr "hello" let parser = satisfy (fun c -> c = 'H') "H" let parser2 = satisfy (fun c -> c = 'h') "h" let parser3 = parser <|> parser2 runOnInput parser3 input |> _assertEqual ( Success ( 'h', { lines = [[| "hello" |]] position = { line = 0; column = 1 } } ) ) ╭─[ 24.50ms - stdout ]─────────────────────────────────────────────────────────╮ │ Success │ │ Item: - h │ │ - InputState │ │ lines: [ hello ] │ │ position: Position │ │ line: 0 │ │ column: 1 │ │ - IsSuccess: True │ │ IsFailure: False │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let inline choice listOfParsers = listOfParsers |> List.reduce (<|>) ── fsharp ────────────────────────────────────────────────────────────────────── //// test let input = fromStr "hello" let parser = satisfy (fun c -> c = 'H') "H" let parser2 = satisfy (fun c -> c = 'h') "h" let parser3 = choice [[ parser; parser2 ]] runOnInput parser3 input |> _assertEqual ( Success ( 'h', { lines = [[| "hello" |]] position = { line = 0; column = 1 } } ) ) ╭─[ 24.86ms - stdout ]─────────────────────────────────────────────────────────╮ │ Success │ │ Item: - h │ │ - InputState │ │ lines: [ hello ] │ │ position: Position │ │ line: 0 │ │ column: 1 │ │ - IsSuccess: True │ │ IsFailure: False │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let rec sequence parserList = match parserList with | [[]] -> returnP [[]] | head :: tail -> (lift2 cons) head (sequence tail) ── fsharp ────────────────────────────────────────────────────────────────────── //// test let input = fromStr "Hello" let parser = satisfy (fun c -> c = 'H') "H" let parser2 = satisfy (fun c -> c = 'e') "e" let parser3 = sequence [[ parser; parser2 ]] runOnInput parser3 input |> _assertEqual ( Success ( [[ 'H'; 'e' ]], { lines = [[| "Hello" |]] position = { line = 0; column = 2 } } ) ) ╭─[ 39.87ms - stdout ]─────────────────────────────────────────────────────────╮ │ Success │ │ Item: - [ H, e ] │ │ - InputState │ │ lines: [ Hello ] │ │ position: Position │ │ line: 0 │ │ column: 2 │ │ - IsSuccess: True │ │ IsFailure: False │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let rec parseZeroOrMore parser input = match runOnInput parser input with | Failure (_, _, _) -> [[]], input | Success (firstValue, inputAfterFirstParse) -> let subsequentValues, remainingInput = parseZeroOrMore parser inputAfterFirstParse firstValue :: subsequentValues, remainingInput ── fsharp ────────────────────────────────────────────────────────────────────── let inline many parser = { label = $"many {getLabel parser}" parseFn = fun input -> Success (parseZeroOrMore parser input) } ── fsharp ────────────────────────────────────────────────────────────────────── //// test let input = fromStr "hello" let parser = satisfy (fun c -> c = 'H') "H" let parser2 = many parser runOnInput parser2 input |> _assertEqual ( Success ( [[]], { lines = [[| "hello" |]] position = { line = 0; column = 0 } } ) ) ╭─[ 21.46ms - stdout ]─────────────────────────────────────────────────────────╮ │ Success │ │ Item: - [ ] │ │ - InputState │ │ lines: [ hello ] │ │ position: Position │ │ line: 0 │ │ column: 0 │ │ - IsSuccess: True │ │ IsFailure: False │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let inline many1 p = p >>= fun head -> many p >>= fun tail -> returnP (head :: tail) <?> $"many1 {getLabel p}" ── fsharp ────────────────────────────────────────────────────────────────────── //// test let input = fromStr "hello" let parser = satisfy (fun c -> c = 'H') "H" let parser2 = many1 parser runOnInput parser2 input |> _assertEqual ( Failure ( "many1 H", "Unexpected 'h'", { currentLine = "hello" line = 0 column = 0 } ) ) ╭─[ 31.81ms - stdout ]─────────────────────────────────────────────────────────╮ │ Failure │ │ Item1: many1 H │ │ Item2: Unexpected 'h' │ │ Item3: ParserPosition │ │ currentLine: hello │ │ line: 0 │ │ column: 0 │ │ IsSuccess: False │ │ IsFailure: True │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let inline opt p = let some = p |>> Some let none = returnP None (some <|> none) <?> $"opt {getLabel p}" ── fsharp ────────────────────────────────────────────────────────────────────── //// test let input = fromStr "hello" let parser = satisfy (fun c -> c = 'H') "H" let parser2 = opt parser runOnInput parser2 input |> _assertEqual ( Success ( None, { lines = [[| "hello" |]] position = { line = 0; column = 0 } } ) ) ╭─[ 59.45ms - stdout ]─────────────────────────────────────────────────────────╮ │ Success │ │ Item: - <null> │ │ - InputState │ │ lines: [ hello ] │ │ position: Position │ │ line: 0 │ │ column: 0 │ │ - IsSuccess: True │ │ IsFailure: False │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let inline (.>>) p1 p2 = p1 .>>. p2 |> mapP fst ── fsharp ────────────────────────────────────────────────────────────────────── let inline (>>.) p1 p2 = p1 .>>. p2 |> mapP snd ── fsharp ────────────────────────────────────────────────────────────────────── let inline between p1 p2 p3 = p1 >>. p2 .>> p3 ── fsharp ────────────────────────────────────────────────────────────────────── //// test let input = fromStr "[[Hello]]" let parser = between (satisfy (fun c -> c = '[[') "[[") (many (satisfy (fun c -> [[ 'a' .. 'z' ]] @ [[ 'A' .. 'Z' ]] |> List.contains c) "letter")) (satisfy (fun c -> c = ']]') "]]") runOnInput parser input |> _assertEqual ( Success ( [[ 'H'; 'e'; 'l'; 'l'; 'o' ]], { lines = [[| "[[Hello]]" |]] position = { line = 0; column = 7 } } ) ) ╭─[ 79.10ms - stdout ]─────────────────────────────────────────────────────────╮ │ Success │ │ Item: - [ H, e, l, l, o ] │ │ - InputState │ │ lines: [ [Hello] ] │ │ position: Position │ │ line: 0 │ │ column: 7 │ │ - IsSuccess: True │ │ IsFailure: False │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let inline sepBy1 p sep = let sepThenP = sep >>. p p .>>. many sepThenP |>> fun (p, pList) -> p :: pList ── fsharp ────────────────────────────────────────────────────────────────────── let inline sepBy p sep = sepBy1 p sep <|> returnP [[]] ── fsharp ────────────────────────────────────────────────────────────────────── //// test let input = fromStr "Hello,World" let parser = sepBy (many (satisfy (fun c -> c <> ',') "not comma")) (satisfy (fun c -> c = ',') "comma") runOnInput parser input |> _assertEqual ( Success ( [[ [[ 'H'; 'e'; 'l'; 'l'; 'o' ]]; [[ 'W'; 'o'; 'r'; 'l'; 'd'; '\n' ]] ]], { lines = [[| "Hello,World" |]] position = { line = 1; column = 0 } } ) ) ╭─[ 57.87ms - stdout ]─────────────────────────────────────────────────────────╮ │ Success │ │ Item: - FSharpList<FSharpList<Char>> │ │ [ H, e, l, l, o ] │ │ [ W, o, r, l, d, │ │ ] │ │ - InputState │ │ lines: [ Hello,World ] │ │ position: Position │ │ line: 1 │ │ column: 0 │ │ - IsSuccess: True │ │ IsFailure: False │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let inline pchar charToMatch = satisfy ((=) charToMatch) $"%c{charToMatch}" ── fsharp ────────────────────────────────────────────────────────────────────── let inline anyOf listOfChars = listOfChars |> List.map pchar |> choice <?> $"anyOf %A{listOfChars}" ── fsharp ────────────────────────────────────────────────────────────────────── //// test let input = fromStr "Hello" let parser = anyOf [[ 'H'; 'e'; 'l'; 'o' ]] |> many runOnInput parser input |> _assertEqual ( Success ( [[ 'H'; 'e'; 'l'; 'l'; 'o' ]], { lines = [[| "Hello" |]] position = { line = 0; column = 5 } } ) ) ╭─[ 26.81ms - stdout ]─────────────────────────────────────────────────────────╮ │ Success │ │ Item: - [ H, e, l, l, o ] │ │ - InputState │ │ lines: [ Hello ] │ │ position: Position │ │ line: 0 │ │ column: 5 │ │ - IsSuccess: True │ │ IsFailure: False │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let inline charListToStr charList = charList |> List.toArray |> String ── fsharp ────────────────────────────────────────────────────────────────────── let inline manyChars cp = many cp |>> charListToStr ── fsharp ────────────────────────────────────────────────────────────────────── let inline manyChars1 cp = many1 cp |>> charListToStr ── fsharp ────────────────────────────────────────────────────────────────────── //// test let input = fromStr "Hello" let parser = manyChars1 (anyOf [[ 'H'; 'e'; 'l'; 'o' ]]) runOnInput parser input |> _assertEqual ( Success ( "Hello", { lines = [[| "Hello" |]] position = { line = 0; column = 5 } } ) ) ╭─[ 36.13ms - stdout ]─────────────────────────────────────────────────────────╮ │ Success │ │ Item: - Hello │ │ - InputState │ │ lines: [ Hello ] │ │ position: Position │ │ line: 0 │ │ column: 5 │ │ - IsSuccess: True │ │ IsFailure: False │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let inline pstring str = str |> List.ofSeq |> List.map pchar |> sequence |> mapP charListToStr <?> str ── fsharp ────────────────────────────────────────────────────────────────────── //// test let input = fromStr "Hello" let parser = pstring "Hello" runOnInput parser input |> _assertEqual ( Success ( "Hello", { lines = [[| "Hello" |]] position = { line = 0; column = 5 } } ) ) ╭─[ 30.08ms - stdout ]─────────────────────────────────────────────────────────╮ │ Success │ │ Item: - Hello │ │ - InputState │ │ lines: [ Hello ] │ │ position: Position │ │ line: 0 │ │ column: 5 │ │ - IsSuccess: True │ │ IsFailure: False │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let whitespaceChar = satisfy Char.IsWhiteSpace "whitespace" ── fsharp ────────────────────────────────────────────────────────────────────── let spaces = many whitespaceChar ── fsharp ────────────────────────────────────────────────────────────────────── let spaces1 = many1 whitespaceChar ── fsharp ────────────────────────────────────────────────────────────────────── //// test let input = fromStr " Hello" let parser = spaces1 .>>. pstring "Hello" runOnInput parser input |> _assertEqual ( Success ( ([[ ' '; ' ' ]], "Hello"), { lines = [[| " Hello" |]] position = { line = 0; column = 7 } } ) ) ╭─[ 36.31ms - stdout ]─────────────────────────────────────────────────────────╮ │ Success │ │ Item: - - [ , ] │ │ - Hello │ │ - InputState │ │ lines: [ Hello ] │ │ position: Position │ │ line: 0 │ │ column: 7 │ │ - IsSuccess: True │ │ IsFailure: False │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let digitChar = satisfy Char.IsDigit "digit" ── fsharp ────────────────────────────────────────────────────────────────────── //// test let input = fromStr "Hello" let parser = digitChar runOnInput parser input |> _assertEqual ( Failure ( "digit", "Unexpected 'H'", { currentLine = "Hello" line = 0 column = 0 } ) ) ╭─[ 12.35ms - stdout ]─────────────────────────────────────────────────────────╮ │ Failure │ │ Item1: digit │ │ Item2: Unexpected 'H' │ │ Item3: ParserPosition │ │ currentLine: Hello │ │ line: 0 │ │ column: 0 │ │ IsSuccess: False │ │ IsFailure: True │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let pint = let inline resultToInt (sign, digits) = let i = int digits match sign with | Some ch -> -i | None -> i let digits = manyChars1 digitChar opt (pchar '-') .>>. digits |> mapP resultToInt <?> "integer" ── fsharp ────────────────────────────────────────────────────────────────────── //// test run pint "-123" |> _assertEqual ( Success ( -123, { lines = [[| "-123" |]] position = { line = 0; column = 4 } } ) ) ╭─[ 23.38ms - stdout ]─────────────────────────────────────────────────────────╮ │ Success │ │ Item: - -123 │ │ - InputState │ │ lines: [ -123 ] │ │ position: Position │ │ line: 0 │ │ column: 4 │ │ - IsSuccess: True │ │ IsFailure: False │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let pfloat = let inline resultToFloat (((sign, digits1), point), digits2) = let fl = float $"{digits1}.{digits2}" match sign with | Some ch -> -fl | None -> fl let digits = manyChars1 digitChar opt (pchar '-') .>>. digits .>>. pchar '.' .>>. digits |> mapP resultToFloat <?> "float" ── fsharp ────────────────────────────────────────────────────────────────────── //// test run pfloat "-123.45" |> _assertEqual ( Success ( -123.45, { lines = [[| "-123.45" |]] position = { line = 0; column = 7 } } ) ) ╭─[ 27.09ms - stdout ]─────────────────────────────────────────────────────────╮ │ Success │ │ Item: - -123.45 │ │ - InputState │ │ lines: [ -123.45 ] │ │ position: Position │ │ line: 0 │ │ column: 7 │ │ - IsSuccess: True │ │ IsFailure: False │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let inline createParserForwardedToRef<'a> () = let mutable parserRef : Parser<'a> = { label = "unknown" parseFn = fun _ -> failwith "unfixed forwarded parser" } let wrapperParser = { parserRef with parseFn = fun input -> runOnInput parserRef input } wrapperParser, (fun v -> parserRef <- v) ── fsharp ────────────────────────────────────────────────────────────────────── let inline (>>%) p x = p |>> fun _ -> x [NbConvertApp] Converting notebook Parser.dib.ipynb to html /opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/nbformat/__init__.py:96: MissingIDFieldWarning: Cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future. validate(nb) /opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/nbconvert/filters/highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3 return _pygments_highlight( [NbConvertApp] Writing 415036 bytes to Parser.dib.html 00:00:00 #1 [Debug] writeDibCode / output: Fs / path: JsonParser.dib 00:00:00 #1 [Debug] writeDibCode / output: Fs / path: Parser.dib 00:00:00 #3 [Debug] parseDibCode / output: Fs / file: Parser.dib 00:00:00 #3 [Debug] parseDibCode / output: Fs / file: JsonParser.dib
In [ ]:
{ . "$ScriptDir/../lib/fsharp/build.ps1" } | Invoke-Block
── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ # Async (Polyglot) │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── #!import ../../lib/fsharp/Notebooks.dib #!import ../../lib/fsharp/Testing.dib ── fsharp - import ───────────────────────────────────────────────────────────── #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Asp NetCore.Html.Abstractions.dll" #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Dot Net.Interactive.dll" #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Dot Net.Interactive.FSharp.dll" #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Dot Net.Interactive.Formatting.dll" open System open System.IO open System.Text open Microsoft.DotNet.Interactive.Formatting ── fsharp - import ───────────────────────────────────────────────────────────── #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Dot Net.Interactive.FSharp.dll" open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Dot Net.Interactive.dll" open type Microsoft.DotNet.Interactive.Kernel ── fsharp - import ───────────────────────────────────────────────────────────── //// test Formatter.ListExpansionLimit <- 100 ── fsharp - import ───────────────────────────────────────────────────────────── #r @"../../../../../../../.nuget/packages/expecto/10.2.1/lib/net6.0/Expecto.dll" ── fsharp - import ───────────────────────────────────────────────────────────── //// test type AssertExceptionFormatter (ex) = member _.Text = ex.ToString() .Replace("32m", "<span style=\"color: green;\">") .Replace("36m", "</span>") .Replace("31m", "<span style=\"color: red;\">") .Replace("\n", "<br/>\n") Formatter.Register<AssertExceptionFormatter> ((fun (x : AssertExceptionFormatter) -> x.Text), "text/html") ── fsharp - import ───────────────────────────────────────────────────────────── //// test let inline __expect fn log expected actual = if log then printfn $"{actual.ToDisplayString ()}" try "Testing.__expect" |> fn actual expected with :? Expecto.AssertException as ex -> AssertExceptionFormatter(ex).Display () |> ignore failwith (ex.GetType().FullName) let inline __contains log expected actual = __expect Expecto.Expect.contains log expected actual let inline _contains expected actual = __contains true expected actual let inline __assertEqual log expected actual = __expect Expecto.Expect.equal log expected actual let inline _assertEqual expected actual = __assertEqual true expected actual let inline __isGreaterThan log expected actual = __expect Expecto.Expect.isGreaterThan log ex... ── fsharp - import ───────────────────────────────────────────────────────────── //// test let inline __isBetween log a b actual = let inline isBetween actual (a, b) _ = __isGreaterThanOrEqual log a actual __isLessThanOrEqual log b actual __expect isBetween log (a, b) actual let inline _isBetween a b actual = __isBetween true a b actual ── fsharp ────────────────────────────────────────────────────────────────────── #!import ../../lib/fsharp/Common.fs ── fsharp - import ───────────────────────────────────────────────────────────── #if !INTERACTIVE namespace Polyglot #endif module Common = let nl = System.Environment.NewLine let q = @"""" let inline cons head tail = head :: tail module String = let inline contains (value : string) (input : string) = input.Contains value let inline endsWith (value : string) (input : string) = input.EndsWith value let inline padLeft totalWidth paddingChar (input : string) = input.PadLeft (totalWidth, paddingChar) let inline replace (oldValue : string) (newValue : string) (input : string) = input.Replace (oldValue, newValue) let inline split separator (input : string) = input.Split separator let inline spli... ── fsharp ────────────────────────────────────────────────────────────────────── open Common ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## choice │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let inline choice asyncs = async { let e = Event<_> () use cts = new System.Threading.CancellationTokenSource () let fn = asyncs |> Seq.map (fun a -> async { let! x = a e.Trigger x }) |> Async.Parallel |> Async.Ignore Async.Start (fn, cts.Token) let! result = Async.AwaitEvent e.Publish cts.Cancel () return result } ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## map │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let inline map fn a = async { let! x = a return fn x } ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## catch │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let inline catch a = a |> Async.Catch |> map (function | Choice1Of2 result -> Ok result | Choice2Of2 ex -> Error ex ) ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## runWithTimeoutAsync │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let inline runWithTimeoutAsync (timeout : int) fn = let getLocals () = $"timeout: {timeout} / {getLocals ()}" let timeoutTask = async { do! Async.Sleep timeout trace Debug (fun () -> "runWithTimeoutAsync") getLocals return None } let task = async { try let! result = fn return Some result with | :? System.AggregateException as ex when ex.InnerExceptions |> Seq.exists (function :? System.Threading.Tasks.TaskCanceledException -> true | _ -> false) -> let getLocals () = $"ex: {ex |> printException} / {getLocals ()}" trace Warning (fun () -> "runWithTimeoutAsync") getLocals return None | ex -> trace Critical (fun () -> $"runWithTimeoutAsync** / ex: {ex |> printException}") getLocals return None } [[ timeoutTask; task ]] |> choice ── fsharp ────────────────────────────────────────────────────────────────────── let inline runWithTimeout timeout fn = fn |> runWithTimeoutAsync timeout |> Async.RunSynchronously ── fsharp ────────────────────────────────────────────────────────────────────── //// test Async.Sleep 60 |> runWithTimeout 10 |> _assertEqual None ╭─[ 114.28ms - stdout ]────────────────────────────────────────────────────────╮ │ 00:00:00 #1 [Debug] runWithTimeoutAsync / timeout: 10 │ │ <null> │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── //// test Async.Sleep 10 |> runWithTimeout 60 |> _assertEqual (Some ()) ╭─[ 124.68ms - stdout ]────────────────────────────────────────────────────────╮ │ FSharpOption<Unit> │ │ Value: <null> │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── //// test async { raise (exn "error") } |> runWithTimeout 60 |> _assertEqual None ╭─[ 66.21ms - stdout ]─────────────────────────────────────────────────────────╮ │ 00:00:00 #2 [Critical] runWithTimeoutAsync** / ex: System.Exception: error / │ │ timeout: 60 │ │ <null> │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## runWithTimeoutChildAsync │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let inline runWithTimeoutChildAsync (timeout : int) fn = async { let getLocals () = $"timeout: {timeout} / {getLocals ()}" let! child = Async.StartChild (fn, timeout) return! child |> catch |> map (function | Ok result -> Some result | Error (:? System.TimeoutException as ex) -> trace Debug (fun () -> $"runWithTimeoutChildAsync") getLocals None | Error ex -> trace Critical (fun () -> $"runWithTimeoutChildAsync** / ex: {ex |> printException}") getLocals None ) } ── fsharp ────────────────────────────────────────────────────────────────────── let inline runWithTimeoutChild timeout fn = fn |> runWithTimeoutChildAsync timeout |> Async.RunSynchronously ── fsharp ────────────────────────────────────────────────────────────────────── //// test Async.Sleep 60 |> runWithTimeoutChild 10 |> _assertEqual None ╭─[ 62.11ms - stdout ]─────────────────────────────────────────────────────────╮ │ 00:00:00 #3 [Debug] runWithTimeoutChildAsync / timeout: 10 │ │ <null> │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── //// test Async.Sleep 10 |> runWithTimeoutChild 60 |> _assertEqual (Some ()) ╭─[ 51.55ms - stdout ]─────────────────────────────────────────────────────────╮ │ FSharpOption<Unit> │ │ Value: <null> │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── //// test async { raise (exn "error") } |> runWithTimeoutChild 60 |> _assertEqual None ╭─[ 48.68ms - stdout ]─────────────────────────────────────────────────────────╮ │ 00:00:00 #4 [Critical] runWithTimeoutChildAsync** / ex: System.Exception: │ │ error / timeout: 60 │ │ <null> │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## runWithTimeoutStrict │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let inline runWithTimeoutStrict (timeout : int) fn = let getLocals () = $"timeout: {timeout} / {getLocals ()}" let timeoutTask = async { do! Async.Sleep timeout return None, getLocals } let task = async { try return Async.RunSynchronously (fn, timeout) |> Some, getLocals with | :? System.TimeoutException as ex -> let getLocals () = $"ex: {ex |> printException} / {getLocals ()}" return None, getLocals | ex -> trace Critical (fun () -> $"runWithTimeoutStrict / ex: {ex |> printException}") getLocals return raise ex } try [[| timeoutTask; task |]] |> Array.map Async.StartAsTask |> System.Threading.Tasks.Task.WhenAny |> fun task -> match task.Result.Result with | None, getLocals -> trace Debug (fun () -> "runWithTimeoutStrict") getLocals None | result, _ -> result with | :? System.AggregateException as ex when ex.InnerExceptions |> Seq.exists (function :? System.Threading.Tasks.TaskCanceledException -> true | _ -> false) -> let getLocals () = $"ex: {ex |> printException} / {getLocals ()}" trace Warning (fun () -> "runWithTimeoutStrict") getLocals None | ex -> let getLocals () = $"ex: {ex |> printException} / {getLocals ()}" trace Critical (fun () -> "runWithTimeoutStrict**") getLocals None ── fsharp ────────────────────────────────────────────────────────────────────── //// test Async.Sleep 60 |> runWithTimeoutStrict 10 |> _assertEqual None ╭─[ 69.23ms - stdout ]─────────────────────────────────────────────────────────╮ │ 00:00:00 #5 [Debug] runWithTimeoutStrict / timeout: 10 │ │ <null> │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── //// test Async.Sleep 10 |> runWithTimeoutStrict 60 |> _assertEqual (Some ()) ╭─[ 65.34ms - stdout ]─────────────────────────────────────────────────────────╮ │ FSharpOption<Unit> │ │ Value: <null> │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── //// test async { raise (exn "error") } |> runWithTimeoutStrict 60 |> _assertEqual None ╭─[ 93.35ms - stdout ]─────────────────────────────────────────────────────────╮ │ 00:00:00 #6 [Critical] runWithTimeoutStrict / ex: System.Exception: error / │ │ timeout: 60 │ │ 00:00:00 #7 [Critical] runWithTimeoutStrict** / ex: │ │ System.AggregateException: One or more errors occurred. (error) / timeout: │ │ 60 │ │ <null> │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## awaitValueTask │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let inline awaitValueTaskUnit (task : System.Threading.Tasks.ValueTask) = task.AsTask () |> Async.AwaitTask let inline awaitValueTask (task : System.Threading.Tasks.ValueTask<_>) = task.AsTask () |> Async.AwaitTask ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## init │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let inline init x = async { return x } ── fsharp ────────────────────────────────────────────────────────────────────── //// test init 1 |> Async.RunSynchronously |> _assertEqual 1 ╭─[ 16.27ms - stdout ]─────────────────────────────────────────────────────────╮ │ 1 │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## mergeCancellationTokenWithDefaultAsync │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let inline mergeCancellationTokenWithDefaultAsync (token : System.Threading.CancellationToken) = async { let! ct = Async.CancellationToken let dct = Async.DefaultCancellationToken let cts = System.Threading.CancellationTokenSource.CreateLinkedTokenSource [[| ct; dct; token |]] return cts.Token } ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## withCancellationToken │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let inline withCancellationToken (ct : System.Threading.CancellationToken) fn = Async.StartImmediateAsTask (fn, ct) |> Async.AwaitTask ── fsharp ────────────────────────────────────────────────────────────────────── //// test let cts = new System.Threading.CancellationTokenSource () async { let run = async { do! Async.Sleep 100 return 1 } let! child = run |> withCancellationToken cts.Token |> catch |> Async.StartChild do! Async.Sleep 50 cts.Cancel () return! child } |> Async.RunSynchronously |> Result.mapError _.Message |> _assertEqual (Error ("A task was canceled.")) ╭─[ 135.88ms - stdout ]────────────────────────────────────────────────────────╮ │ FSharpResult<Int32,String> │ │ ResultValue: 0 │ │ ErrorValue: A task was canceled. │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## withTraceLevel │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let inline withTraceLevel level fn = async { let oldTraceLevel = traceLevel try traceLevel <- level return! fn finally traceLevel <- oldTraceLevel } [NbConvertApp] Converting notebook Async.dib.ipynb to html /opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/nbformat/__init__.py:96: MissingIDFieldWarning: Cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future. validate(nb) /opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/nbconvert/filters/highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3 return _pygments_highlight( [NbConvertApp] Writing 324683 bytes to Async.dib.html ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ # AsyncSeq (Polyglot) │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── #!import ../../lib/fsharp/Notebooks.dib #!import ../../lib/fsharp/Testing.dib ── fsharp - import ───────────────────────────────────────────────────────────── #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Asp NetCore.Html.Abstractions.dll" #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Dot Net.Interactive.dll" #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Dot Net.Interactive.FSharp.dll" #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Dot Net.Interactive.Formatting.dll" open System open System.IO open System.Text open Microsoft.DotNet.Interactive.Formatting ── fsharp - import ───────────────────────────────────────────────────────────── #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Dot Net.Interactive.FSharp.dll" open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Dot Net.Interactive.dll" open type Microsoft.DotNet.Interactive.Kernel ── fsharp - import ───────────────────────────────────────────────────────────── //// test Formatter.ListExpansionLimit <- 100 ── fsharp - import ───────────────────────────────────────────────────────────── #r @"../../../../../../../.nuget/packages/expecto/10.2.1/lib/net6.0/Expecto.dll" ── fsharp - import ───────────────────────────────────────────────────────────── //// test type AssertExceptionFormatter (ex) = member _.Text = ex.ToString() .Replace("32m", "<span style=\"color: green;\">") .Replace("36m", "</span>") .Replace("31m", "<span style=\"color: red;\">") .Replace("\n", "<br/>\n") Formatter.Register<AssertExceptionFormatter> ((fun (x : AssertExceptionFormatter) -> x.Text), "text/html") ── fsharp - import ───────────────────────────────────────────────────────────── //// test let inline __expect fn log expected actual = if log then printfn $"{actual.ToDisplayString ()}" try "Testing.__expect" |> fn actual expected with :? Expecto.AssertException as ex -> AssertExceptionFormatter(ex).Display () |> ignore failwith (ex.GetType().FullName) let inline __contains log expected actual = __expect Expecto.Expect.contains log expected actual let inline _contains expected actual = __contains true expected actual let inline __assertEqual log expected actual = __expect Expecto.Expect.equal log expected actual let inline _assertEqual expected actual = __assertEqual true expected actual let inline __isGreaterThan log expected actual = __expect Expecto.Expect.isGreaterThan log ex... ── fsharp - import ───────────────────────────────────────────────────────────── //// test let inline __isBetween log a b actual = let inline isBetween actual (a, b) _ = __isGreaterThanOrEqual log a actual __isLessThanOrEqual log b actual __expect isBetween log (a, b) actual let inline _isBetween a b actual = __isBetween true a b actual ── fsharp ────────────────────────────────────────────────────────────────────── #r @"../../../../../../../.nuget/packages/fsharp.control.asyncseq/3.2.1/lib/netstan dard2.1/FSharp.Control.AsyncSeq.dll" #r @"../../../../../../../.nuget/packages/system.reactive/6.0.1-preview.1/lib/net6. 0/System.Reactive.dll" #r @"../../../../../../../.nuget/packages/system.reactive.linq/6.0.1-preview.1/lib/ netstandard2.0/System.Reactive.Linq.dll" ── fsharp ────────────────────────────────────────────────────────────────────── #!import ../../lib/fsharp/Common.fs #!import ../../lib/fsharp/Async.fs ── fsharp - import ───────────────────────────────────────────────────────────── #if !INTERACTIVE namespace Polyglot #endif module Common = let nl = System.Environment.NewLine let q = @"""" let inline cons head tail = head :: tail module String = let inline contains (value : string) (input : string) = input.Contains value let inline endsWith (value : string) (input : string) = input.EndsWith value let inline padLeft totalWidth paddingChar (input : string) = input.PadLeft (totalWidth, paddingChar) let inline replace (oldValue : string) (newValue : string) (input : string) = input.Replace (oldValue, newValue) let inline split separator (input : string) = input.Split separator let inline spli... ── fsharp - import ───────────────────────────────────────────────────────────── #if !INTERACTIVE namespace Polyglot #endif module Async = open Common /// ## choice let inline choice asyncs = async { let e = Event<_> () use cts = new System.Threading.CancellationTokenSource () let fn = asyncs |> Seq.map (fun a -> async { let! x = a e.Trigger x }) |> Async.Parallel |> Async.Ignore Async.Start (fn, cts.Token) let! result = Async.AwaitEvent e.Publish cts.Cancel () return result } /// ## map let inline map fn a = async { let! x = a return fn x } /// ## catch let inline catch a = a |> Async.Catch ... ── fsharp ────────────────────────────────────────────────────────────────────── open Common ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## subscribeEvent │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let inline subscribeEvent (event: IEvent<'H, 'A>) map = let observable = System.Reactive.Linq.Observable.FromEventPattern<'H, 'A>(event.AddHandler, event.RemoveHandler) System.Reactive.Linq.Observable.Select (observable, fun event -> map event.EventArgs) |> FSharp.Control.AsyncSeq.ofObservableBuffered ── fsharp ────────────────────────────────────────────────────────────────────── //// test type TestEvent () as self = member val Calls = [[]] with get, set member val Event = Event<ErrorEventHandler, ErrorEventArgs> () with get member _.AddCall text = self.Calls <- self.Calls @ [[ text ]] member _.EventInterface = { new IEvent<ErrorEventHandler, ErrorEventArgs> with member _.AddHandler handler = self.AddCall "AddHandler" self.Event.Publish.AddHandler handler member _.RemoveHandler handler = self.AddCall "RemoveHandler" self.Event.Publish.RemoveHandler handler member _.Subscribe observer = self.AddCall "IObservable.Subscribe" let disposable = self.Event.Publish.Subscribe observer newDisposable (fun () -> self.AddCall "IObservable.Dispose" disposable.Dispose () ) } member _.Subscribe () = subscribeEvent self.EventInterface (fun args -> let result = args.GetException () |> printException self.AddCall $"TestEvent.Subscribe({result})" result ) member _.Iter subscription = subscription |> FSharp.Control.AsyncSeq.iteriAsync (fun i error -> async { self.AddCall $"TestEvent.Iter({i}: {error})" }) member _.WaitCall text = async { while self.Calls |> List.last <> text do do! Async.SwitchToThreadPool () } ── fsharp ────────────────────────────────────────────────────────────────────── //// test let testEvent = TestEvent () async { testEvent.AddCall "1" let! child = testEvent.Subscribe () |> testEvent.Iter |> Async.StartChild do! testEvent.WaitCall "AddHandler" testEvent.AddCall "2" do! child testEvent.AddCall "3" } |> Async.runWithTimeout 300 |> _assertEqual None testEvent.Calls |> Seq.toList |> _assertEqual [[ "1"; "AddHandler"; "2"; "RemoveHandler" ]] ╭─[ 447.48ms - stdout ]────────────────────────────────────────────────────────╮ │ 00:00:00 #1 [Debug] runWithTimeoutAsync / timeout: 300 │ │ <null> │ │ [ 1, AddHandler, 2, RemoveHandler ] │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── //// test let testEvent = TestEvent () async { testEvent.AddCall "1" let! child = testEvent.Subscribe () |> testEvent.Iter |> Async.StartChild do! testEvent.WaitCall "AddHandler" testEvent.AddCall "2" use _ = testEvent.EventInterface.Subscribe (fun args -> testEvent.AddCall $"testEvent.EventInterface.Subscribe({args})" ) testEvent.AddCall "3" do! child testEvent.AddCall "4" } |> Async.runWithTimeout 300 |> _assertEqual None testEvent.Calls |> _assertEqual [[ "1"; "AddHandler"; "2"; "IObservable.Subscribe"; "3"; "RemoveHandler"; "IObservable.Dispose" ]] ╭─[ 393.12ms - stdout ]────────────────────────────────────────────────────────╮ │ 00:00:00 #2 [Debug] runWithTimeoutAsync / timeout: 300 │ │ <null> │ │ [ 1, AddHandler, 2, IObservable.Subscribe, 3, RemoveHandler, │ │ IObservable.Dispose ] │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── //// test let testEvent = TestEvent () async { testEvent.AddCall "1" let! child = testEvent.Subscribe () |> testEvent.Iter |> Async.StartChild do! testEvent.WaitCall "AddHandler" testEvent.AddCall "2" use _ = testEvent.EventInterface.Subscribe (fun args -> async { do! testEvent.WaitCall "TestEvent.Iter(0: System.Exception: error)" testEvent.AddCall $"testEvent.EventInterface.Subscribe({args.GetException () |> printException})" } |> Async.RunSynchronously ) testEvent.AddCall "3" testEvent.Event.Trigger (null, ErrorEventArgs (Exception "error")) testEvent.AddCall "4" do! child testEvent.AddCall "5" } |> Async.runWithTimeout 300 |> _assertEqual None testEvent.Calls |> _assertEqual [[ "1" "AddHandler" "2" "IObservable.Subscribe" "3" "TestEvent.Subscribe(System.Exception: error)" "TestEvent.Iter(0: System.Exception: error)" "testEvent.EventInterface.Subscribe(System.Exception: error)" "4" "RemoveHandler" "IObservable.Dispose" ]] ╭─[ 409.84ms - stdout ]────────────────────────────────────────────────────────╮ │ 00:00:00 #3 [Debug] runWithTimeoutAsync / timeout: 300 │ │ <null> │ │ [ 1, AddHandler, 2, IObservable.Subscribe, 3, │ │ TestEvent.Subscribe(System.Exception: error), TestEvent.Iter(0: │ │ System.Exception: error), │ │ testEvent.EventInterface.Subscribe(System.Exception: error), 4, │ │ RemoveHandler, IObservable.Dispose ] │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let subscribeToken (token : System.Threading.CancellationToken) = let tcs = new System.Threading.Tasks.TaskCompletionSource () System.Action tcs.SetResult |> token.Register |> ignore let start = System.DateTime.Now.Ticks FSharp.Control.AsyncSeq.unfoldAsync (fun () -> async { do! tcs.Task |> Async.AwaitTask return Some (System.DateTime.Now.Ticks - start, ()) }) () ── fsharp ────────────────────────────────────────────────────────────────────── //// test let cts = new System.Threading.CancellationTokenSource () async { let! child = cts.Token |> subscribeToken |> FSharp.Control.AsyncSeq.tryFirst |> Async.StartChild do! Async.Sleep 100 cts.Cancel () return! child } |> Async.RunSynchronously |> Option.get |> _isGreaterThan 900000 ╭─[ 151.13ms - stdout ]────────────────────────────────────────────────────────╮ │ 1020526 │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ [NbConvertApp] Converting notebook AsyncSeq.dib.ipynb to html /opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/nbformat/__init__.py:96: MissingIDFieldWarning: Cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future. validate(nb) /opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/nbconvert/filters/highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3 return _pygments_highlight( [NbConvertApp] Writing 301489 bytes to AsyncSeq.dib.html ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ # Common (Polyglot) │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── #!import ../../lib/fsharp/Notebooks.dib #!import ../../lib/fsharp/Testing.dib ── fsharp - import ───────────────────────────────────────────────────────────── #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Asp NetCore.Html.Abstractions.dll" #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Dot Net.Interactive.dll" #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Dot Net.Interactive.FSharp.dll" #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Dot Net.Interactive.Formatting.dll" open System open System.IO open System.Text open Microsoft.DotNet.Interactive.Formatting ── fsharp - import ───────────────────────────────────────────────────────────── #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Dot Net.Interactive.FSharp.dll" open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Dot Net.Interactive.dll" open type Microsoft.DotNet.Interactive.Kernel ── fsharp - import ───────────────────────────────────────────────────────────── //// test Formatter.ListExpansionLimit <- 100 ── fsharp - import ───────────────────────────────────────────────────────────── #r @"../../../../../../../.nuget/packages/expecto/10.2.1/lib/net6.0/Expecto.dll" ── fsharp - import ───────────────────────────────────────────────────────────── //// test type AssertExceptionFormatter (ex) = member _.Text = ex.ToString() .Replace("32m", "<span style=\"color: green;\">") .Replace("36m", "</span>") .Replace("31m", "<span style=\"color: red;\">") .Replace("\n", "<br/>\n") Formatter.Register<AssertExceptionFormatter> ((fun (x : AssertExceptionFormatter) -> x.Text), "text/html") ── fsharp - import ───────────────────────────────────────────────────────────── //// test let inline __expect fn log expected actual = if log then printfn $"{actual.ToDisplayString ()}" try "Testing.__expect" |> fn actual expected with :? Expecto.AssertException as ex -> AssertExceptionFormatter(ex).Display () |> ignore failwith (ex.GetType().FullName) let inline __contains log expected actual = __expect Expecto.Expect.contains log expected actual let inline _contains expected actual = __contains true expected actual let inline __assertEqual log expected actual = __expect Expecto.Expect.equal log expected actual let inline _assertEqual expected actual = __assertEqual true expected actual let inline __isGreaterThan log expected actual = __expect Expecto.Expect.isGreaterThan log ex... ── fsharp - import ───────────────────────────────────────────────────────────── //// test let inline __isBetween log a b actual = let inline isBetween actual (a, b) _ = __isGreaterThanOrEqual log a actual __isLessThanOrEqual log b actual __expect isBetween log (a, b) actual let inline _isBetween a b actual = __isBetween true a b actual ── fsharp ────────────────────────────────────────────────────────────────────── let nl = System.Environment.NewLine let q = @"""" ── fsharp ────────────────────────────────────────────────────────────────────── let inline cons head tail = head :: tail ── fsharp ────────────────────────────────────────────────────────────────────── module String = let inline contains (value : string) (input : string) = input.Contains value let inline endsWith (value : string) (input : string) = input.EndsWith value let inline padLeft totalWidth paddingChar (input : string) = input.PadLeft (totalWidth, paddingChar) let inline replace (oldValue : string) (newValue : string) (input : string) = input.Replace (oldValue, newValue) let inline split separator (input : string) = input.Split separator let inline splitString (separator : string array) (input : string) = input.Split (separator, System.StringSplitOptions.None) let inline startsWith (value : string) (input : string) = input.StartsWith value let inline substring startIndex length (input : string) = input.Substring (startIndex, length) let inline toLower (input : string) = input.ToLower () let inline toUpper (input : string) = input.ToUpper () let inline trim (input : string) = input.Trim () let inline trimEnd (trimChars : char array) (input : string) = input.TrimEnd trimChars let inline trimStart (trimChars : char array) (input : string) = input.TrimStart trimChars let ellipsis max value = if value |> String.length <= max then value else $"{value |> substring 0 max}..." ── fsharp ────────────────────────────────────────────────────────────────────── type TicksGuid = System.Guid type DateTimeGuid = System.Guid ── fsharp ────────────────────────────────────────────────────────────────────── //// test let testGuid = Guid "FEDCBA98-7654-3210-FEDC-BA9876543210" ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## dateTimeGuidFromDateTime │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let inline dateTimeGuidFromDateTime (guid: System.Guid) (dateTime: System.DateTime) = let guid = guid |> string let prefix = dateTime.ToString "yyyyMMdd-HHmm-ssff-ffff-f" DateTimeGuid $"{prefix}{guid.[[prefix.Length..]]}" ── fsharp ────────────────────────────────────────────────────────────────────── //// test dateTimeGuidFromDateTime testGuid DateTime.MinValue |> _assertEqual (DateTimeGuid "00010101-0000-0000-0000-0a9876543210") ╭─[ 49.78ms - stdout ]─────────────────────────────────────────────────────────╮ │ 00010101-0000-0000-0000-0a9876543210 │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── //// test dateTimeGuidFromDateTime testGuid DateTime.MaxValue |> _assertEqual (DateTimeGuid $"99991231-2359-5999-9999-9{(testGuid |> string).[[^10..]]}") ╭─[ 28.22ms - stdout ]─────────────────────────────────────────────────────────╮ │ 99991231-2359-5999-9999-9a9876543210 │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── //// test dateTimeGuidFromDateTime testGuid DateTime.UnixEpoch |> _assertEqual (DateTimeGuid $"19700101-0000-0000-0000-0{(testGuid |> string).[[^10..]]}") ╭─[ 117.62ms - stdout ]────────────────────────────────────────────────────────╮ │ 19700101-0000-0000-0000-0a9876543210 │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## dateTimeFromGuid │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let inline dateTimeFromGuid (dateTimeGuid: DateTimeGuid) = let dateTimeGuid = dateTimeGuid |> string System.DateTime.ParseExact (dateTimeGuid.[[..24]] |> String.replace "-" "", "yyyyMMddHHmmssfffffff", null) ── fsharp ────────────────────────────────────────────────────────────────────── //// test dateTimeFromGuid (DateTimeGuid "00010101-0000-0000-0000-0a9876543210") |> _assertEqual DateTime.MinValue ╭─[ 16.85ms - stdout ]─────────────────────────────────────────────────────────╮ │ 0001-01-01 00:00:00Z │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── //// test dateTimeFromGuid (DateTimeGuid $"99991231-2359-5999-9999-9{(testGuid |> string).[[^10..]]}") |> _assertEqual DateTime.MaxValue ╭─[ 20.26ms - stdout ]─────────────────────────────────────────────────────────╮ │ 9999-12-31 23:59:59Z │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── //// test dateTimeFromGuid (DateTimeGuid $"19700101-0000-0000-0000-0{(testGuid |> string).[[^10..]]}") |> _assertEqual DateTime.UnixEpoch ╭─[ 19.72ms - stdout ]─────────────────────────────────────────────────────────╮ │ 1970-01-01 00:00:00Z │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## ticksGuidFromTicks │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let inline ticksGuidFromTicks (guid: System.Guid) (ticks: int64) = let guid = guid |> string let ticks = ticks |> string |> String.padLeft 18 '0' TicksGuid $"{ticks.[[0..7]]}-{ticks.[[8..11]]}-{ticks.[[12..15]]}-{ticks.[[16..17]]}{guid. [[21..]]}" ── fsharp ────────────────────────────────────────────────────────────────────── //// test ticksGuidFromTicks testGuid 0L |> _assertEqual (TicksGuid "00000000-0000-0000-00dc-ba9876543210") ╭─[ 18.81ms - stdout ]─────────────────────────────────────────────────────────╮ │ 00000000-0000-0000-00dc-ba9876543210 │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── //// test ticksGuidFromTicks testGuid 999999999999999999L |> _assertEqual (TicksGuid $"99999999-9999-9999-99dc-b{(testGuid |> string).[[^10..]]}") ╭─[ 25.73ms - stdout ]─────────────────────────────────────────────────────────╮ │ 99999999-9999-9999-99dc-ba9876543210 │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## ticksFromGuid │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let inline ticksFromGuid (ticksGuid: DateTimeGuid) = let ticks = ticksGuid |> string int64 $"{ticks.[[0..7]]}{ticks.[[9..12]]}{ticks.[[14..17]]}{ticks.[[19..20]]}" ── fsharp ────────────────────────────────────────────────────────────────────── //// test ticksFromGuid (TicksGuid "00000000-0000-0000-00dc-ba9876543210") |> _assertEqual 0L ╭─[ 17.70ms - stdout ]─────────────────────────────────────────────────────────╮ │ 0 │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── //// test ticksFromGuid (TicksGuid $"99999999-9999-9999-99{(testGuid |> string).[[^14..]]}") |> _assertEqual 999999999999999999L ╭─[ 23.94ms - stdout ]─────────────────────────────────────────────────────────╮ │ 999999999999999999 │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## newGuidFromDateTime │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let inline newGuidFromDateTime (dateTime: System.DateTime) = let guid = System.Guid.NewGuid () dateTimeGuidFromDateTime guid dateTime ── fsharp ────────────────────────────────────────────────────────────────────── //// test newGuidFromDateTime System.DateTime.UtcNow |> dateTimeFromGuid |> fun dateTime -> (dateTime - System.DateTime.UtcNow).TotalSeconds |> int |> _assertEqual 0 ╭─[ 35.51ms - stdout ]─────────────────────────────────────────────────────────╮ │ 0 │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## newGuidFromTicks │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let inline newGuidFromTicks (ticks: int64) = let guid = System.Guid.NewGuid () ticksGuidFromTicks guid ticks ── fsharp ────────────────────────────────────────────────────────────────────── //// test newGuidFromTicks System.DateTime.UtcNow.Ticks |> ticksFromGuid |> fun ticks -> (ticks - System.DateTime.UtcNow.Ticks) / 100000L |> _assertEqual 0L ╭─[ 30.68ms - stdout ]─────────────────────────────────────────────────────────╮ │ 0 │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## memoize │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let inline memoize fn = let result = lazy fn () fun () -> result.Value ── fsharp ────────────────────────────────────────────────────────────────────── //// test let mutable count = 0 let add = fun () -> count <- count + 1 |> memoize add () add () add () count |> _assertEqual 1 ╭─[ 17.72ms - stdout ]─────────────────────────────────────────────────────────╮ │ 1 │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## printException │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let inline printException (ex : System.Exception) = $"{ex.GetType ()}: {ex.Message}" ── fsharp ────────────────────────────────────────────────────────────────────── //// test fun () -> failwith "test" |> _throwsC (fun ex _ -> printException ex |> _assertEqual "System.Exception: test" ) ╭─[ 30.62ms - stdout ]─────────────────────────────────────────────────────────╮ │ FSI_0034+it@3-1 │ │ System.Exception: test │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## TraceLevel │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── type TraceLevel = | Verbose | Debug | Info | Warning | Critical let inline getLocals () = "" let mutable traceEnabled = true let mutable traceCount = 0 let mutable traceLevel = Verbose let mutable traceDump = false ── fsharp ────────────────────────────────────────────────────────────────────── let testTraceLevel level = traceEnabled && level >= traceLevel ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## traceRaw │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let rec traceRaw level fn = if level |> testTraceLevel then traceCount <- traceCount + 1 let text = $"%s{fn ()}" #if FABLE_COMPILER_RUST Fable.Core.RustInterop.emitRustExpr () @"println!(""{}"", text)" #else System.Console.WriteLine text #endif #if !WASM && !FABLE_COMPILER if traceDump then try let tmpPath = System.IO.Path.GetTempPath () let logDir = System.IO.Path.Combine (tmpPath, "!polyglot") System.IO.Directory.CreateDirectory logDir |> ignore let logFile = System.IO.Path.Combine (logDir, $"{newGuidFromDateTime System.DateTime.Now}.txt") System.IO.File.WriteAllTextAsync (logFile, text) |> Async.AwaitTask |> Async.RunSynchronously with ex -> traceRaw Critical (fun () -> $"trace / ex: {ex |> printException}") #endif ── fsharp ────────────────────────────────────────────────────────────────────── //// test traceRaw Debug (fun () -> "test") ╭─[ 5.86ms - stdout ]──────────────────────────────────────────────────────────╮ │ test │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## trace │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let private replStart = #if INTERACTIVE || !FABLE_COMPILER fun () -> if System.Reflection.Assembly.GetEntryAssembly().GetName().Name <> "Microsoft.DotNet.Interactive.App" then Some System.DateTime.Now.Ticks else None |> memoize #else fun () -> None : int64 option #endif let trace level fn getLocals = fun () -> let time = #if WASM "" #else match replStart () with | Some replStart -> let t = System.DateTime.Now.Ticks - replStart |> System.TimeSpan System.DateTime (1, 1, 1, t.Hours, t.Minutes, t.Seconds, t.Milliseconds) | None -> System.DateTime.Now |> fun dateTime -> #if FABLE_COMPILER_RUST "hh:mm:ss" #else "HH:mm:ss" #endif |> dateTime.ToString #endif $"{time} #{traceCount} [[%A{level}]] %s{fn ()} / %s{getLocals ()}" |> String.trimStart [[||]] |> String.trimEnd [[| ' '; '/' |]] |> traceRaw level let inline withTrace enabled fn = let oldTraceEnabled = traceEnabled try traceEnabled <- enabled fn () finally traceEnabled <- oldTraceEnabled let inline withTraceEnabled fn = withTrace true fn let inline withTraceDisabled fn = withTrace false fn let inline withTraceLevel level fn = let oldTraceLevel = traceLevel try traceLevel <- level fn () finally traceLevel <- oldTraceLevel let inline withTraceDump dump fn = let oldTraceDump = traceDump try traceDump <- dump fn () finally traceDump <- oldTraceDump ── fsharp ────────────────────────────────────────────────────────────────────── //// test trace Debug (fun () -> "test") getLocals ╭─[ 18.17ms - stdout ]─────────────────────────────────────────────────────────╮ │ 00:00:00 #2 [Debug] test │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## newDisposable │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let inline newDisposable fn = { new System.IDisposable with member _.Dispose () = fn () } ── fsharp ────────────────────────────────────────────────────────────────────── //// test let mutable newDisposableTest = 0 newDisposable (fun () -> newDisposableTest <- newDisposableTest + 1) |> _.Dispose() newDisposableTest |> _assertEqual 1 ╭─[ 12.84ms - stdout ]─────────────────────────────────────────────────────────╮ │ 1 │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── //// test let mutable newDisposableTest = 0 fun () -> task { use x = newDisposable (fun () -> newDisposableTest <- newDisposableTest + 1) () } |> fun x -> x () |> Async.AwaitTask |> Async.RunSynchronously newDisposableTest |> _assertEqual 1 ╭─[ 80.73ms - stdout ]─────────────────────────────────────────────────────────╮ │ 1 │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── //// test let mutable newDisposableTest = 0 async { use x = newDisposable (fun () -> newDisposableTest <- newDisposableTest + 1) () } |> Async.RunSynchronously newDisposableTest |> _assertEqual 1 ╭─[ 24.57ms - stdout ]─────────────────────────────────────────────────────────╮ │ 1 │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── //// test let mutable newDisposableTest = 0 async { let x = newDisposable (fun () -> newDisposableTest <- newDisposableTest + 1) () } |> Async.RunSynchronously newDisposableTest |> _assertEqual 0 ╭─[ 23.27ms - stdout ]─────────────────────────────────────────────────────────╮ │ 0 │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## retryFn │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let inline retryFn retries fn = let rec loop retry = try if retry < retries then fn () |> Some else None with ex -> let getLocals () = $"retry: {retry} / ex: {ex |> printException} / {getLocals ()}" trace Warning (fun () -> "retryFn") getLocals System.Threading.Thread.Sleep 1 loop (retry + 1) loop 0 ── fsharp ────────────────────────────────────────────────────────────────────── //// test let mutable retryFnTest = 0 fun () -> retryFnTest <- retryFnTest + 1 retryFnTest |> retryFn 3 |> _assertEqual (Some 1) ╭─[ 17.89ms - stdout ]─────────────────────────────────────────────────────────╮ │ FSharpOption<Int32> │ │ Value: 1 │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── //// test fun () -> failwith "test" |> retryFn 3 |> _assertEqual None ╭─[ 18.62ms - stdout ]─────────────────────────────────────────────────────────╮ │ 00:00:00 #3 [Warning] retryFn / retry: 0 / ex: System.Exception: test │ │ 00:00:00 #4 [Warning] retryFn / retry: 1 / ex: System.Exception: test │ │ 00:00:00 #5 [Warning] retryFn / retry: 2 / ex: System.Exception: test │ │ <null> │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── //// test let mutable retryFnTest = 0 fun () -> if retryFnTest >= 2 then retryFnTest else retryFnTest <- retryFnTest + 1 failwith "test" |> retryFn 3 |> _assertEqual (Some 2) ╭─[ 19.60ms - stdout ]─────────────────────────────────────────────────────────╮ │ 00:00:00 #6 [Warning] retryFn / retry: 0 / ex: System.Exception: test │ │ 00:00:00 #7 [Warning] retryFn / retry: 1 / ex: System.Exception: test │ │ FSharpOption<Int32> │ │ Value: 2 │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ [NbConvertApp] Converting notebook Common.dib.ipynb to html /opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/nbformat/__init__.py:96: MissingIDFieldWarning: Cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future. validate(nb) /opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/nbconvert/filters/highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3 return _pygments_highlight( [NbConvertApp] Writing 353901 bytes to Common.dib.html ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ # CommonFSharp (Polyglot) │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── #!import ../../lib/fsharp/Notebooks.dib #!import ../../lib/fsharp/Testing.dib ── fsharp - import ───────────────────────────────────────────────────────────── #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Asp NetCore.Html.Abstractions.dll" #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Dot Net.Interactive.dll" #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Dot Net.Interactive.FSharp.dll" #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Dot Net.Interactive.Formatting.dll" open System open System.IO open System.Text open Microsoft.DotNet.Interactive.Formatting ── fsharp - import ───────────────────────────────────────────────────────────── #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Dot Net.Interactive.FSharp.dll" open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Dot Net.Interactive.dll" open type Microsoft.DotNet.Interactive.Kernel ── fsharp - import ───────────────────────────────────────────────────────────── //// test Formatter.ListExpansionLimit <- 100 ── fsharp - import ───────────────────────────────────────────────────────────── #r @"../../../../../../../.nuget/packages/expecto/10.2.1/lib/net6.0/Expecto.dll" ── fsharp - import ───────────────────────────────────────────────────────────── //// test type AssertExceptionFormatter (ex) = member _.Text = ex.ToString() .Replace("32m", "<span style=\"color: green;\">") .Replace("36m", "</span>") .Replace("31m", "<span style=\"color: red;\">") .Replace("\n", "<br/>\n") Formatter.Register<AssertExceptionFormatter> ((fun (x : AssertExceptionFormatter) -> x.Text), "text/html") ── fsharp - import ───────────────────────────────────────────────────────────── //// test let inline __expect fn log expected actual = if log then printfn $"{actual.ToDisplayString ()}" try "Testing.__expect" |> fn actual expected with :? Expecto.AssertException as ex -> AssertExceptionFormatter(ex).Display () |> ignore failwith (ex.GetType().FullName) let inline __contains log expected actual = __expect Expecto.Expect.contains log expected actual let inline _contains expected actual = __contains true expected actual let inline __assertEqual log expected actual = __expect Expecto.Expect.equal log expected actual let inline _assertEqual expected actual = __assertEqual true expected actual let inline __isGreaterThan log expected actual = __expect Expecto.Expect.isGreaterThan log ex... ── fsharp - import ───────────────────────────────────────────────────────────── //// test let inline __isBetween log a b actual = let inline isBetween actual (a, b) _ = __isGreaterThanOrEqual log a actual __isLessThanOrEqual log b actual __expect isBetween log (a, b) actual let inline _isBetween a b actual = __isBetween true a b actual ── fsharp ────────────────────────────────────────────────────────────────────── #!import ../../lib/fsharp/Common.fs ── fsharp - import ───────────────────────────────────────────────────────────── #if !INTERACTIVE namespace Polyglot #endif module Common = let nl = System.Environment.NewLine let q = @"""" let inline cons head tail = head :: tail module String = let inline contains (value : string) (input : string) = input.Contains value let inline endsWith (value : string) (input : string) = input.EndsWith value let inline padLeft totalWidth paddingChar (input : string) = input.PadLeft (totalWidth, paddingChar) let inline replace (oldValue : string) (newValue : string) (input : string) = input.Replace (oldValue, newValue) let inline split separator (input : string) = input.Split separator let inline spli... ── fsharp ────────────────────────────────────────────────────────────────────── open Common ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## getUnionCaseName │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let inline getUnionCaseName<'T> (x: 'T) = match Reflection.FSharpValue.GetUnionFields(x, typeof<'T>) with | case, _ -> case.Name ── fsharp ────────────────────────────────────────────────────────────────────── //// test TraceLevel.Critical |> getUnionCaseName |> _assertEqual (nameof TraceLevel.Critical) ╭─[ 39.00ms - stdout ]─────────────────────────────────────────────────────────╮ │ Critical │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ [NbConvertApp] Converting notebook CommonFSharp.dib.ipynb to html /opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/nbformat/__init__.py:96: MissingIDFieldWarning: Cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future. validate(nb) /opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/nbconvert/filters/highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3 return _pygments_highlight( [NbConvertApp] Writing 275587 bytes to CommonFSharp.dib.html ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ # Threading (Polyglot) │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── #!import ../../lib/fsharp/Notebooks.dib #!import ../../lib/fsharp/Testing.dib ── fsharp - import ───────────────────────────────────────────────────────────── #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Asp NetCore.Html.Abstractions.dll" #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Dot Net.Interactive.dll" #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Dot Net.Interactive.FSharp.dll" #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Dot Net.Interactive.Formatting.dll" open System open System.IO open System.Text open Microsoft.DotNet.Interactive.Formatting ── fsharp - import ───────────────────────────────────────────────────────────── #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Dot Net.Interactive.FSharp.dll" open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Dot Net.Interactive.dll" open type Microsoft.DotNet.Interactive.Kernel ── fsharp - import ───────────────────────────────────────────────────────────── //// test Formatter.ListExpansionLimit <- 100 ── fsharp - import ───────────────────────────────────────────────────────────── #r @"../../../../../../../.nuget/packages/expecto/10.2.1/lib/net6.0/Expecto.dll" ── fsharp - import ───────────────────────────────────────────────────────────── //// test type AssertExceptionFormatter (ex) = member _.Text = ex.ToString() .Replace("32m", "<span style=\"color: green;\">") .Replace("36m", "</span>") .Replace("31m", "<span style=\"color: red;\">") .Replace("\n", "<br/>\n") Formatter.Register<AssertExceptionFormatter> ((fun (x : AssertExceptionFormatter) -> x.Text), "text/html") ── fsharp - import ───────────────────────────────────────────────────────────── //// test let inline __expect fn log expected actual = if log then printfn $"{actual.ToDisplayString ()}" try "Testing.__expect" |> fn actual expected with :? Expecto.AssertException as ex -> AssertExceptionFormatter(ex).Display () |> ignore failwith (ex.GetType().FullName) let inline __contains log expected actual = __expect Expecto.Expect.contains log expected actual let inline _contains expected actual = __contains true expected actual let inline __assertEqual log expected actual = __expect Expecto.Expect.equal log expected actual let inline _assertEqual expected actual = __assertEqual true expected actual let inline __isGreaterThan log expected actual = __expect Expecto.Expect.isGreaterThan log ex... ── fsharp - import ───────────────────────────────────────────────────────────── //// test let inline __isBetween log a b actual = let inline isBetween actual (a, b) _ = __isGreaterThanOrEqual log a actual __isLessThanOrEqual log b actual __expect isBetween log (a, b) actual let inline _isBetween a b actual = __isBetween true a b actual ── fsharp ────────────────────────────────────────────────────────────────────── #!import ../../lib/fsharp/Common.fs ── fsharp - import ───────────────────────────────────────────────────────────── #if !INTERACTIVE namespace Polyglot #endif module Common = let nl = System.Environment.NewLine let q = @"""" let inline cons head tail = head :: tail module String = let inline contains (value : string) (input : string) = input.Contains value let inline endsWith (value : string) (input : string) = input.EndsWith value let inline padLeft totalWidth paddingChar (input : string) = input.PadLeft (totalWidth, paddingChar) let inline replace (oldValue : string) (newValue : string) (input : string) = input.Replace (oldValue, newValue) let inline split separator (input : string) = input.Split separator let inline spli... ── fsharp ────────────────────────────────────────────────────────────────────── open Common ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## newDisposableToken │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let inline newDisposableToken (mergeToken: System.Threading.CancellationToken option) = let cts = new System.Threading.CancellationTokenSource () let cts = match mergeToken with | None -> cts | Some mergeToken -> System.Threading.CancellationTokenSource.CreateLinkedTokenSource [[| cts.Token; mergeToken |]] let disposable = newDisposable cts.Cancel cts.Token, disposable ── fsharp ────────────────────────────────────────────────────────────────────── //// test let mutable counter = 0 let inline run fn = let token, disposable = newDisposableToken None use _ = disposable fn token async { fn token } |> Async.Start let inline fn (token : System.Threading.CancellationToken) = counter <- counter + (if token.IsCancellationRequested then 10 else 1) async { run fn do! Async.Sleep 10 return counter } |> Async.RunSynchronously |> _assertEqual 11 ╭─[ 228.75ms - stdout ]────────────────────────────────────────────────────────╮ │ 11 │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ [NbConvertApp] Converting notebook Threading.dib.ipynb to html /opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/nbformat/__init__.py:96: MissingIDFieldWarning: Cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future. validate(nb) /opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/nbconvert/filters/highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3 return _pygments_highlight( [NbConvertApp] Writing 278604 bytes to Threading.dib.html ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ # Crypto (Polyglot) │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── #!import ../../lib/fsharp/Notebooks.dib #!import ../../lib/fsharp/Testing.dib ── fsharp - import ───────────────────────────────────────────────────────────── #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Asp NetCore.Html.Abstractions.dll" #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Dot Net.Interactive.dll" #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Dot Net.Interactive.FSharp.dll" #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Dot Net.Interactive.Formatting.dll" open System open System.IO open System.Text open Microsoft.DotNet.Interactive.Formatting ── fsharp - import ───────────────────────────────────────────────────────────── #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Dot Net.Interactive.FSharp.dll" open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Dot Net.Interactive.dll" open type Microsoft.DotNet.Interactive.Kernel ── fsharp - import ───────────────────────────────────────────────────────────── //// test Formatter.ListExpansionLimit <- 100 ── fsharp - import ───────────────────────────────────────────────────────────── #r @"../../../../../../../.nuget/packages/expecto/10.2.1/lib/net6.0/Expecto.dll" ── fsharp - import ───────────────────────────────────────────────────────────── //// test type AssertExceptionFormatter (ex) = member _.Text = ex.ToString() .Replace("32m", "<span style=\"color: green;\">") .Replace("36m", "</span>") .Replace("31m", "<span style=\"color: red;\">") .Replace("\n", "<br/>\n") Formatter.Register<AssertExceptionFormatter> ((fun (x : AssertExceptionFormatter) -> x.Text), "text/html") ── fsharp - import ───────────────────────────────────────────────────────────── //// test let inline __expect fn log expected actual = if log then printfn $"{actual.ToDisplayString ()}" try "Testing.__expect" |> fn actual expected with :? Expecto.AssertException as ex -> AssertExceptionFormatter(ex).Display () |> ignore failwith (ex.GetType().FullName) let inline __contains log expected actual = __expect Expecto.Expect.contains log expected actual let inline _contains expected actual = __contains true expected actual let inline __assertEqual log expected actual = __expect Expecto.Expect.equal log expected actual let inline _assertEqual expected actual = __assertEqual true expected actual let inline __isGreaterThan log expected actual = __expect Expecto.Expect.isGreaterThan log ex... ── fsharp - import ───────────────────────────────────────────────────────────── //// test let inline __isBetween log a b actual = let inline isBetween actual (a, b) _ = __isGreaterThanOrEqual log a actual __isLessThanOrEqual log b actual __expect isBetween log (a, b) actual let inline _isBetween a b actual = __isBetween true a b actual ── fsharp ────────────────────────────────────────────────────────────────────── #!import ../../lib/fsharp/Common.fs ── fsharp - import ───────────────────────────────────────────────────────────── #if !INTERACTIVE namespace Polyglot #endif module Common = let nl = System.Environment.NewLine let q = @"""" let inline cons head tail = head :: tail module String = let inline contains (value : string) (input : string) = input.Contains value let inline endsWith (value : string) (input : string) = input.EndsWith value let inline padLeft totalWidth paddingChar (input : string) = input.PadLeft (totalWidth, paddingChar) let inline replace (oldValue : string) (newValue : string) (input : string) = input.Replace (oldValue, newValue) let inline split separator (input : string) = input.Split separator let inline spli... ── fsharp ────────────────────────────────────────────────────────────────────── open Common ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## hashText │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let hashText (input : string) = use sha256 = System.Security.Cryptography.SHA256.Create () input |> System.Text.Encoding.UTF8.GetBytes |> sha256.ComputeHash |> Array.map (fun b -> b.ToString "x2") |> String.concat "" ── fsharp ────────────────────────────────────────────────────────────────────── //// test "" |> hashText |> _assertEqual "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" ╭─[ 33.40ms - stdout ]─────────────────────────────────────────────────────────╮ │ e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── //// test " " |> hashText |> _assertEqual "36a9e7f1c95b82ffb99743e0c5c4ce95d83c9a430aac59f84ef3cbfab6145068" ╭─[ 10.68ms - stdout ]─────────────────────────────────────────────────────────╮ │ 36a9e7f1c95b82ffb99743e0c5c4ce95d83c9a430aac59f84ef3cbfab6145068 │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ [NbConvertApp] Converting notebook Crypto.dib.ipynb to html /opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/nbformat/__init__.py:96: MissingIDFieldWarning: Cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future. validate(nb) /opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/nbconvert/filters/highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3 return _pygments_highlight( [NbConvertApp] Writing 277426 bytes to Crypto.dib.html ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ # FileSystem (Polyglot) │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── #!import ../../lib/fsharp/Notebooks.dib #!import ../../lib/fsharp/Testing.dib ── fsharp - import ───────────────────────────────────────────────────────────── #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Asp NetCore.Html.Abstractions.dll" #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Dot Net.Interactive.dll" #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Dot Net.Interactive.FSharp.dll" #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Dot Net.Interactive.Formatting.dll" open System open System.IO open System.Text open Microsoft.DotNet.Interactive.Formatting ── fsharp - import ───────────────────────────────────────────────────────────── #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Dot Net.Interactive.FSharp.dll" open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Dot Net.Interactive.dll" open type Microsoft.DotNet.Interactive.Kernel ── fsharp - import ───────────────────────────────────────────────────────────── //// test Formatter.ListExpansionLimit <- 100 ── fsharp - import ───────────────────────────────────────────────────────────── #r @"../../../../../../../.nuget/packages/expecto/10.2.1/lib/net6.0/Expecto.dll" ── fsharp - import ───────────────────────────────────────────────────────────── //// test type AssertExceptionFormatter (ex) = member _.Text = ex.ToString() .Replace("32m", "<span style=\"color: green;\">") .Replace("36m", "</span>") .Replace("31m", "<span style=\"color: red;\">") .Replace("\n", "<br/>\n") Formatter.Register<AssertExceptionFormatter> ((fun (x : AssertExceptionFormatter) -> x.Text), "text/html") ── fsharp - import ───────────────────────────────────────────────────────────── //// test let inline __expect fn log expected actual = if log then printfn $"{actual.ToDisplayString ()}" try "Testing.__expect" |> fn actual expected with :? Expecto.AssertException as ex -> AssertExceptionFormatter(ex).Display () |> ignore failwith (ex.GetType().FullName) let inline __contains log expected actual = __expect Expecto.Expect.contains log expected actual let inline _contains expected actual = __contains true expected actual let inline __assertEqual log expected actual = __expect Expecto.Expect.equal log expected actual let inline _assertEqual expected actual = __assertEqual true expected actual let inline __isGreaterThan log expected actual = __expect Expecto.Expect.isGreaterThan log ex... ── fsharp - import ───────────────────────────────────────────────────────────── //// test let inline __isBetween log a b actual = let inline isBetween actual (a, b) _ = __isGreaterThanOrEqual log a actual __isLessThanOrEqual log b actual __expect isBetween log (a, b) actual let inline _isBetween a b actual = __isBetween true a b actual ── fsharp ────────────────────────────────────────────────────────────────────── #r @"../../../../../../../.nuget/packages/fsharp.control.asyncseq/3.2.1/lib/netstan dard2.1/FSharp.Control.AsyncSeq.dll" #r @"../../../../../../../.nuget/packages/system.reactive/6.0.1-preview.1/lib/net6. 0/System.Reactive.dll" #r @"../../../../../../../.nuget/packages/system.reactive.linq/6.0.1-preview.1/lib/ netstandard2.0/System.Reactive.Linq.dll" #r @"../../../../../../../.nuget/packages/argu/6.2.2/lib/netstandard2.0/Argu.dll" #r @"../../../../../../../.nuget/packages/system.commandline/2.0.0-beta4.22272.1/li b/net6.0/System.CommandLine.dll" ── fsharp ────────────────────────────────────────────────────────────────────── #!import ../../lib/fsharp/Common.fs #!import ../../lib/fsharp/CommonFSharp.fs #!import ../../lib/fsharp/Async.fs #!import ../../lib/fsharp/AsyncSeq.fs #!import ../../lib/fsharp/Runtime.fs ── fsharp - import ───────────────────────────────────────────────────────────── #if !INTERACTIVE namespace Polyglot #endif module Common = let nl = System.Environment.NewLine let q = @"""" let inline cons head tail = head :: tail module String = let inline contains (value : string) (input : string) = input.Contains value let inline endsWith (value : string) (input : string) = input.EndsWith value let inline padLeft totalWidth paddingChar (input : string) = input.PadLeft (totalWidth, paddingChar) let inline replace (oldValue : string) (newValue : string) (input : string) = input.Replace (oldValue, newValue) let inline split separator (input : string) = input.Split separator let inline spli... ── fsharp - import ───────────────────────────────────────────────────────────── #if !INTERACTIVE namespace Polyglot #endif module CommonFSharp = open Common /// ## getUnionCaseName let inline getUnionCaseName<'T> (x: 'T) = match Reflection.FSharpValue.GetUnionFields(x, typeof<'T>) with | case, _ -> case.Name ── fsharp - import ───────────────────────────────────────────────────────────── #if !INTERACTIVE namespace Polyglot #endif module Async = open Common /// ## choice let inline choice asyncs = async { let e = Event<_> () use cts = new System.Threading.CancellationTokenSource () let fn = asyncs |> Seq.map (fun a -> async { let! x = a e.Trigger x }) |> Async.Parallel |> Async.Ignore Async.Start (fn, cts.Token) let! result = Async.AwaitEvent e.Publish cts.Cancel () return result } /// ## map let inline map fn a = async { let! x = a return fn x } /// ## catch let inline catch a = a |> Async.Catch ... ── fsharp - import ───────────────────────────────────────────────────────────── #if !INTERACTIVE namespace Polyglot #endif module AsyncSeq = open Common /// ## subscribeEvent let inline subscribeEvent (event: IEvent<'H, 'A>) map = let observable = System.Reactive.Linq.Observable.FromEventPattern<'H, 'A>(event.AddHandler, event.RemoveHandler) System.Reactive.Linq.Observable.Select (observable, fun event -> map event.EventArgs) |> FSharp.Control.AsyncSeq.ofObservableBuffered let subscribeToken (token : System.Threading.CancellationToken) = let tcs = new System.Threading.Tasks.TaskCompletionSource () System.Action tcs.SetResult |> token.Register |> ignore let start = System.DateTime.Now.Ticks FSharp.Control.AsyncSeq.unfoldAsync (fun (... ── fsharp - import ───────────────────────────────────────────────────────────── #if !INTERACTIVE namespace Polyglot #endif module Runtime = open Common /// ## isWindows let isWindows = fun () -> System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform System.Runtime.InteropServices.OSPlatform.Windows |> memoize /// ## getExecutableSuffix let inline getExecutableSuffix () = if isWindows () then ".exe" else "" /// ## splitCommand type private CommandParseStep = | Start | Path of quoted: bool | Arguments let splitCommand (command: string) = let rec loop (path, args) chars step = match chars, step with | ('"' | '\'') :: tail, _ when path = "" -> loop (pat... ── fsharp ────────────────────────────────────────────────────────────────────── open Common ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## Operators │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── module Operators = let inline (</>) a b = System.IO.Path.Combine (a, b) ── fsharp ────────────────────────────────────────────────────────────────────── open Operators ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## createTempDirectoryName │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let inline createTempDirectoryName () = let root = System.Reflection.Assembly.GetEntryAssembly().GetName().Name System.IO.Path.GetTempPath () </> $"!{root}" </> string (newGuidFromDateTime System.DateTime.Now) ── fsharp ────────────────────────────────────────────────────────────────────── //// test createTempDirectoryName () |> _contains System.IO.Path.DirectorySeparatorChar ╭─[ 31.28ms - stdout ]─────────────────────────────────────────────────────────╮ │ /tmp/!dotnet-repl/20240325-2017-3180-8055-84893c5e6675 │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## createTempDirectory │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let inline createTempDirectory () = let tempFolder = createTempDirectoryName () let result = System.IO.Directory.CreateDirectory tempFolder if not result.Exists then let getLocals () = $"tempFolder: {tempFolder} / result: {({| Exists = result.Exists CreationTime = result.CreationTime |})} {getLocals ()}" trace Debug (fun () -> "createTempDirectory") getLocals tempFolder ── fsharp ────────────────────────────────────────────────────────────────────── //// test let tempDirectory = createTempDirectory () Directory.Exists tempDirectory |> _assertEqual true ╭─[ 22.05ms - stdout ]─────────────────────────────────────────────────────────╮ │ True │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## getSourceDirectory │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let getSourceDirectory = fun () -> __SOURCE_DIRECTORY__ |> memoize ── fsharp ────────────────────────────────────────────────────────────────────── //// test getSourceDirectory () |> System.IO.DirectoryInfo |> fun dir -> dir.Name |> _assertEqual "fsharp" ╭─[ 20.62ms - stdout ]─────────────────────────────────────────────────────────╮ │ fsharp │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## findParent │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let inline findParent name isFile rootDir = let rec loop dir = if dir </> name |> (if isFile then System.IO.File.Exists else System.IO.Directory.Exists) then dir else dir |> System.IO.Directory.GetParent |> function | null -> failwith $"""No parent for {if isFile then "file" else "dir"} '{name}' at '{rootDir}'""" | parent -> parent.FullName |> loop loop rootDir ── fsharp ────────────────────────────────────────────────────────────────────── //// test getSourceDirectory () |> findParent ".paket" false |> System.IO.DirectoryInfo |> fun dir -> dir.Name |> _assertEqual "polyglot" ╭─[ 13.82ms - stdout ]─────────────────────────────────────────────────────────╮ │ polyglot │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── //// test getSourceDirectory () |> findParent "paket.dependencies" true |> System.IO.DirectoryInfo |> fun dir -> dir.Name |> _assertEqual "polyglot" ╭─[ 18.86ms - stdout ]─────────────────────────────────────────────────────────╮ │ polyglot │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## readAllTextAsync │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let inline readAllTextAsync path = path |> System.IO.File.ReadAllTextAsync |> Async.AwaitTask ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## fileExistsContent │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let inline fileExistsContent path content = async { if path |> System.IO.File.Exists |> not then return false else let! existingContent = path |> readAllTextAsync return content = existingContent } ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## writeAllTextAsync │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let inline writeAllTextAsync path contents = System.IO.File.WriteAllTextAsync (path, contents) |> Async.AwaitTask ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## writeAllTextExists │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let inline writeAllTextExists path contents = async { let! exists = contents |> fileExistsContent path if not exists then do! contents |> writeAllTextAsync path } ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## waitForFileAccess │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let inline waitForFileAccess access path = let fileAccess, fileShare = access |> Option.defaultValue (System.IO.FileAccess.ReadWrite, System.IO.FileShare.Read) let rec loop retry = async { try use _ = new System.IO.FileStream ( path, System.IO.FileMode.Open, fileAccess, fileShare ) return retry with ex -> if retry % 100 = 0 then let getLocals () = $"path: {path |> System.IO.Path.GetFileName} / ex: {ex |> printException} / {getLocals ()}" trace Debug (fun () -> "waitForFileAccess") getLocals do! Async.Sleep 10 return! loop (retry + 1) } loop 0 ── fsharp ────────────────────────────────────────────────────────────────────── //// test let tempFolder = createTempDirectory () let path = tempFolder </> "test.txt" let inline lockFile () = async { trace Debug (fun () -> "_1") getLocals use stream = new System.IO.FileStream ( path, System.IO.FileMode.Open, System.IO.FileAccess.ReadWrite, System.IO.FileShare.None ) trace Debug (fun () -> "_2") getLocals do! Async.Sleep 2000 trace Debug (fun () -> "_3") getLocals stream.Seek (0L, SeekOrigin.Begin) |> ignore trace Debug (fun () -> "_4") getLocals stream.WriteByte 49uy trace Debug (fun () -> "_5") getLocals stream.Flush () trace Debug (fun () -> "_6") getLocals } async { trace Debug (fun () -> "1") getLocals do! "0" |> writeAllTextAsync path trace Debug (fun () -> "2") getLocals let! child = lockFile () |> Async.StartChild trace Debug (fun () -> "3") getLocals do! Async.Sleep 1 trace Debug (fun () -> "4") getLocals let! retries = path |> waitForFileAccess None trace Debug (fun () -> "5") getLocals let! text = path |> readAllTextAsync trace Debug (fun () -> "6") getLocals do! child trace Debug (fun () -> "7") getLocals return retries, text } |> Async.runWithTimeout 3000 |> function | Some (retries, text) -> retries |> _isBetween (if Runtime.isWindows () then 100 else 100) (if Runtime.isWindows () then 150 else 200) text |> _assertEqual "1" true | _ -> false |> _assertEqual true ╭─[ 2.33s - stdout ]───────────────────────────────────────────────────────────╮ │ 00:00:00 #1 [Debug] 1 │ │ 00:00:00 #2 [Debug] 2 │ │ 00:00:00 #3 [Debug] _1 │ │ 00:00:00 #4 [Debug] 3 │ │ 00:00:00 #5 [Debug] _2 │ │ 00:00:00 #6 [Debug] 4 │ │ 00:00:00 #7 [Debug] waitForFileAccess / path: test.txt / ex: │ │ System.IO.IOException: The process cannot access the file │ │ '/tmp/!dotnet-repl/20240325-2017-3237-3753-36c495e25904/test.txt' because it │ │ is being used by another process. │ │ 00:00:01 #8 [Debug] waitForFileAccess / path: test.txt / ex: │ │ System.IO.IOException: The process cannot access the file │ │ '/tmp/!dotnet-repl/20240325-2017-3237-3753-36c495e25904/test.txt' because it │ │ is being used by another process. │ │ 00:00:02 #9 [Debug] _3 │ │ 00:00:02 #10 [Debug] _4 │ │ 00:00:02 #11 [Debug] _5 │ │ 00:00:02 #12 [Debug] _6 │ │ 00:00:02 #13 [Debug] 5 │ │ 00:00:02 #14 [Debug] 6 │ │ 00:00:02 #15 [Debug] 7 │ │ 167 │ │ 167 │ │ 167 │ │ 1 │ │ True │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## readAllTextRetryAsync │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let inline readAllTextRetryAsync fullPath = let rec loop retry = async { try if retry > 0 then do! fullPath |> waitForFileAccess (Some ( System.IO.FileAccess.Read, System.IO.FileShare.Read )) |> Async.runWithTimeoutAsync 1000 |> Async.Ignore return! fullPath |> readAllTextAsync |> Async.map Some with ex -> let getLocals () = $"retry: {retry} / ex: {ex |> printException} / {getLocals ()}" trace Debug (fun () -> $"watchWithFilter / readContent") getLocals if retry = 0 then return! loop (retry + 1) else return None } loop 0 ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## deleteDirectoryAsync │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let inline deleteDirectoryAsync path = let rec loop retry = async { try System.IO.Directory.Delete (path, true) return retry with ex -> if retry % 100 = 0 then let getLocals () = $"path: {path |> System.IO.Path.GetFileName} / ex: {ex |> printException} / {getLocals ()}" trace Debug (fun () -> "deleteDirectoryAsync") getLocals do! Async.Sleep 10 return! loop (retry + 1) } loop 0 ── fsharp ────────────────────────────────────────────────────────────────────── //// test let tempFolder = createTempDirectory () let path = tempFolder </> "test" let inline lockDirectory () = async { trace Debug (fun () -> "_1") getLocals System.IO.File.WriteAllText (path </> "test.txt", "0") use _ = new System.IO.FileStream ( path </> "test.txt", System.IO.FileMode.Open, System.IO.FileAccess.ReadWrite, System.IO.FileShare.None ) trace Debug (fun () -> "_2") getLocals do! Async.Sleep 2000 trace Debug (fun () -> "_3") getLocals } async { trace Debug (fun () -> "1") getLocals Directory.CreateDirectory path |> ignore trace Debug (fun () -> "2") getLocals let! child = lockDirectory () |> Async.StartChild trace Debug (fun () -> "3") getLocals do! Async.Sleep 60 trace Debug (fun () -> "4") getLocals let! retries = deleteDirectoryAsync path trace Debug (fun () -> "5") getLocals do! child trace Debug (fun () -> "6") getLocals return retries } |> Async.runWithTimeout 3000 |> function | Some retries -> retries |> _isBetween (if Runtime.isWindows () then 100 else 0) (if Runtime.isWindows () then 150 else 0) true | _ -> false |> _assertEqual true ╭─[ 2.25s - stdout ]───────────────────────────────────────────────────────────╮ │ 00:00:02 #16 [Debug] 1 │ │ 00:00:02 #17 [Debug] 2 │ │ 00:00:02 #18 [Debug] 3 │ │ 00:00:02 #19 [Debug] _1 │ │ 00:00:02 #20 [Debug] _2 │ │ 00:00:02 #21 [Debug] 4 │ │ 00:00:02 #22 [Debug] 5 │ │ 00:00:04 #23 [Debug] _3 │ │ 00:00:04 #24 [Debug] 6 │ │ 0 │ │ 0 │ │ 0 │ │ True │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## deleteFileAsync │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let inline deleteFileAsync path = let rec loop retry = async { try System.IO.File.Delete path return retry with ex -> if retry % 100 = 0 then let getLocals () = $"path: {path |> System.IO.Path.GetFileName} / ex: {ex |> printException} / {getLocals ()}" trace Warning (fun () -> "deleteFileAsync") getLocals do! Async.Sleep 10 return! loop (retry + 1) } loop 0 ── fsharp ────────────────────────────────────────────────────────────────────── //// test let tempFolder = createTempDirectory () let path = tempFolder </> "test.txt" let inline lockFile () = async { trace Debug (fun () -> "_1") getLocals use _ = new System.IO.FileStream ( path, System.IO.FileMode.Open, System.IO.FileAccess.ReadWrite, System.IO.FileShare.None ) trace Debug (fun () -> "_2") getLocals do! Async.Sleep 2000 trace Debug (fun () -> "_3") getLocals } async { trace Debug (fun () -> "1") getLocals do! "0" |> writeAllTextAsync path trace Debug (fun () -> "2") getLocals let! child = lockFile () |> Async.StartChild trace Debug (fun () -> "3") getLocals do! Async.Sleep 1 trace Debug (fun () -> "4") getLocals let! retries = deleteFileAsync path trace Debug (fun () -> "5") getLocals do! child trace Debug (fun () -> "6") getLocals return retries } |> Async.runWithTimeout 3000 |> function | Some retries -> retries |> _isBetween (if Runtime.isWindows () then 100 else 0) (if Runtime.isWindows () then 150 else 0) true | _ -> false |> _assertEqual true ╭─[ 2.11s - stdout ]───────────────────────────────────────────────────────────╮ │ 00:00:04 #25 [Debug] 1 │ │ 00:00:04 #26 [Debug] 2 │ │ 00:00:04 #27 [Debug] 3 │ │ 00:00:04 #28 [Debug] _1 │ │ 00:00:04 #29 [Debug] _2 │ │ 00:00:04 #30 [Debug] 4 │ │ 00:00:04 #31 [Debug] 5 │ │ 00:00:06 #32 [Debug] _3 │ │ 00:00:06 #33 [Debug] 6 │ │ 0 │ │ 0 │ │ 0 │ │ True │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## moveFileAsync │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let inline moveFileAsync newPath oldPath = let rec loop retry = async { try System.IO.File.Move (oldPath, newPath) return retry with ex -> if retry % 100 = 0 then let getLocals () = $"oldPath: {oldPath |> System.IO.Path.GetFileName} / newPath: {newPath |> System.IO.Path.GetFileName} / ex: {ex |> printException} / {getLocals ()}" trace Warning (fun () -> "moveFileAsync") getLocals do! Async.Sleep 10 return! loop (retry + 1) } loop 0 ── fsharp ────────────────────────────────────────────────────────────────────── //// test let tempFolder = createTempDirectory () let path = tempFolder </> "test.txt" let newPath = tempFolder </> "test2.txt" let inline lockFile () = async { trace Debug (fun () -> "_1") getLocals use _ = new System.IO.FileStream ( path, System.IO.FileMode.Open, System.IO.FileAccess.ReadWrite, System.IO.FileShare.None ) trace Debug (fun () -> "_2") getLocals do! Async.Sleep 2000 trace Debug (fun () -> "_3") getLocals } async { trace Debug (fun () -> "1") getLocals do! "0" |> writeAllTextAsync path trace Debug (fun () -> "2") getLocals let! child = lockFile () |> Async.StartChild trace Debug (fun () -> "3") getLocals do! Async.Sleep 1 trace Debug (fun () -> "4") getLocals let! retries1 = path |> moveFileAsync newPath trace Debug (fun () -> "5") getLocals let! retries2 = newPath |> waitForFileAccess None trace Debug (fun () -> "6") getLocals let! text = newPath |> readAllTextAsync trace Debug (fun () -> "7") getLocals do! child trace Debug (fun () -> "8") getLocals return retries1, retries2, text } |> Async.runWithTimeout 3000 |> function | Some (retries1, retries2, text) -> retries1 |> _isBetween (if Runtime.isWindows () then 100 else 0) (if Runtime.isWindows () then 150 else 0) retries2 |> _isBetween (if Runtime.isWindows () then 0 else 100) (if Runtime.isWindows () then 0 else 200) text |> _assertEqual "0" true | _ -> false |> _assertEqual true ╭─[ 2.19s - stdout ]───────────────────────────────────────────────────────────╮ │ 00:00:06 #34 [Debug] 1 │ │ 00:00:06 #35 [Debug] 2 │ │ 00:00:06 #36 [Debug] 3 │ │ 00:00:06 #37 [Debug] _1 │ │ 00:00:06 #38 [Debug] _2 │ │ 00:00:06 #39 [Debug] 4 │ │ 00:00:06 #40 [Debug] 5 │ │ 00:00:06 #41 [Debug] waitForFileAccess / path: test2.txt / ex: │ │ System.IO.IOException: The process cannot access the file │ │ '/tmp/!dotnet-repl/20240325-2017-3922-2205-2bdeac745b9d/test2.txt' because │ │ it is being used by another process. │ │ 00:00:08 #42 [Debug] waitForFileAccess / path: test2.txt / ex: │ │ System.IO.IOException: The process cannot access the file │ │ '/tmp/!dotnet-repl/20240325-2017-3922-2205-2bdeac745b9d/test2.txt' because │ │ it is being used by another process. │ │ 00:00:08 #43 [Debug] _3 │ │ 00:00:08 #44 [Debug] 6 │ │ 00:00:08 #45 [Debug] 7 │ │ 00:00:08 #46 [Debug] 8 │ │ 0 │ │ 0 │ │ 0 │ │ 167 │ │ 167 │ │ 167 │ │ 0 │ │ True │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## watchDirectory │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── [[<RequireQualifiedAccess>]] type FileSystemChangeType = | Failure | Changed | Created | Deleted | Renamed [[<RequireQualifiedAccess>]] type FileSystemChange = | Failure of exn: exn | Changed of path: string * content: string option | Created of path: string * content: string option | Deleted of path: string | Renamed of oldPath: string * (string * string option) let inline watchDirectoryWithFilter filter shouldReadContent path = let fullPath = path |> System.IO.Path.GetFullPath let getLocals () = $"filter: {filter} / {getLocals ()}" let watcher = new System.IO.FileSystemWatcher ( Path = fullPath, NotifyFilter = filter, EnableRaisingEvents = true, IncludeSubdirectories = true ) let inline getEventPath (path : string) = path |> String.trim |> String.replace fullPath "" |> String.trimStart [[| '/'; '\\' |]] let inline ticks () = System.DateTime.UtcNow.Ticks let changedStream = AsyncSeq.subscribeEvent watcher.Changed (fun event -> ticks (), [[ FileSystemChange.Changed (getEventPath event.FullPath, None) ]] ) let deletedStream = AsyncSeq.subscribeEvent watcher.Deleted (fun event -> ticks (), [[ FileSystemChange.Deleted (getEventPath event.FullPath) ]] ) let createdStream = AsyncSeq.subscribeEvent watcher.Created (fun event -> let path = getEventPath event.FullPath ticks (), [[ FileSystemChange.Created (path, None) if Runtime.isWindows () then FileSystemChange.Changed (path, None) ]]) let renamedStream = AsyncSeq.subscribeEvent watcher.Renamed (fun event -> ticks (), [[ FileSystemChange.Renamed ( getEventPath event.OldFullPath, (getEventPath event.FullPath, None) ) ]] ) let failureStream = AsyncSeq.subscribeEvent watcher.Error (fun event -> ticks (), [[ FileSystemChange.Failure (event.GetException ()) ]]) let stream = [[ changedStream deletedStream createdStream renamedStream failureStream ]] |> FSharp.Control.AsyncSeq.mergeAll |> FSharp.Control.AsyncSeq.map (fun (t, events) -> events |> List.fold (fun (i, events) event -> i + 1L, (t + i, event) :: events) (0L, [[]]) |> snd |> List.rev ) |> FSharp.Control.AsyncSeq.concatSeq |> FSharp.Control.AsyncSeq.mapAsyncParallel (fun (t, event) -> async { match shouldReadContent event, event with | true, FileSystemChange.Changed (path, _) -> do! Async.Sleep 5 let! content = fullPath </> path |> readAllTextRetryAsync return t, FileSystemChange.Changed (path, content) | true, FileSystemChange.Created (path, _) -> do! Async.Sleep 5 let! content = fullPath </> path |> readAllTextRetryAsync return t, FileSystemChange.Created (path, content) | true, FileSystemChange.Renamed (oldPath, (newPath, _)) -> let! content = fullPath </> newPath |> readAllTextRetryAsync return t, FileSystemChange.Renamed (oldPath, (newPath, content)) | _ -> return t, event }) let disposable = newDisposable (fun () -> trace Debug (fun () -> "watchWithFilter / Disposing watch stream") getLocals watcher.EnableRaisingEvents <- false watcher.Dispose () ) stream, disposable let inline watchDirectory path = watchDirectoryWithFilter (System.IO.NotifyFilters.FileName // ||| System.IO.NotifyFilters.DirectoryName // ||| System.IO.NotifyFilters.Attributes //// ||| System.IO.NotifyFilters.Size ||| System.IO.NotifyFilters.LastWrite //// ||| System.IO.NotifyFilters.LastAccess // ||| System.IO.NotifyFilters.CreationTime // ||| System.IO.NotifyFilters.Security ) path ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ### testEventsRaw (test) │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── //// test let inline testEventsRaw (watchFn : (_ -> bool) -> string -> FSharp.Control.AsyncSeq<int64 * FileSystemChange> * IDisposable) write = let tempDirectory = createTempDirectory () let stream, disposable = watchFn (fun _ -> true) tempDirectory let events = System.Collections.Concurrent.ConcurrentBag () let inline iter () = stream |> FSharp.Control.AsyncSeq.iterAsyncParallel (fun event -> async { events.Add event }) let run = async { let! _ = iter () |> Async.StartChild do! Async.Sleep 250 return! write tempDirectory } try run |> Async.runWithTimeout 60000 |> _assertEqual (Some ()) finally disposable.Dispose () deleteDirectoryAsync tempDirectory |> Async.Ignore |> Async.RunSynchronously let eventsLog = events |> Seq.toList |> List.sortBy fst |> List.fold (fun (prev, acc) (ticks, event) -> ticks, (ticks, (if prev = 0L then 0L else ticks - prev), event) :: acc ) (0L, [[]]) |> snd |> List.rev |> List.map (fun (diff, n, event) -> let text = $"{n} / {diff} / {event}" if text |> String.length <= 100 then text else text |> String.substring 0 100 |> String.replace "\n" "" ) |> String.concat "\n" let getLocals () = $"eventsLog: \n{eventsLog} / {getLocals ()}" trace Debug (fun () -> "testEventsRaw") getLocals events |> Seq.toList |> List.sortBy fst |> List.map snd |> List.fold (fun acc event -> match acc, event with | FileSystemChange.Changed (lastPath, Some lastContent) as lastEvent :: acc, FileSystemChange.Changed (path, Some content) when lastPath = path && content |> String.startsWith lastContent -> event :: acc | _ -> event :: acc ) [[]] |> List.rev ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ #### fast (test) │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── //// test let inline write path = async { let n = 2 for i = 1 to n do do! $"a{i}" |> writeAllTextAsync (path </> $"file{i}.txt") do! Async.Sleep 250 for i = 1 to n do do! $"b{i}" |> writeAllTextAsync (path </> $"file{i}.txt") do! Async.Sleep 250 for i = 1 to n do do! path </> $"file{i}.txt" |> moveFileAsync (path </> $"file_{i}.txt") |> Async.Ignore do! Async.Sleep 250 for i = 1 to n do do! $"c{i}" |> writeAllTextAsync (path </> $"file_{i}.txt") do! Async.Sleep 250 for i = 1 to n do do! deleteFileAsync (path </> $"file_{i}.txt") |> Async.Ignore do! Async.Sleep 250 } let inline run () = let events = testEventsRaw watchDirectory write events |> _sequenceEqual [[ FileSystemChange.Created ("file1.txt", Some "a1") FileSystemChange.Changed ("file1.txt", Some "a1") FileSystemChange.Created ("file2.txt", Some "a2") FileSystemChange.Changed ("file2.txt", Some "a2") FileSystemChange.Changed ("file1.txt", Some "b1") FileSystemChange.Changed ("file2.txt", Some "b2") FileSystemChange.Renamed ("file1.txt", ("file_1.txt", Some "b1")) FileSystemChange.Renamed ("file2.txt", ("file_2.txt", Some "b2")) FileSystemChange.Changed ("file_1.txt", Some "c1") FileSystemChange.Changed ("file_2.txt", Some "c2") FileSystemChange.Deleted "file_1.txt" FileSystemChange.Deleted "file_2.txt" ]] run |> retryFn 3 |> _assertEqual (Some ()) ╭─[ 3.40s - stdout ]───────────────────────────────────────────────────────────╮ │ FSharpOption<Unit> │ │ Value: <null> │ │ 00:00:13 #47 [Debug] watchWithFilter / Disposing watch stream / filter: │ │ FileName, LastWrite │ │ 00:00:13 #48 [Debug] testEventsRaw / eventsLog: │ │ 0 / 638469946643797212 / Created ("file1.txt", Some "a1") │ │ 14185 / 638469946643811397 / Changed ("file1.txt", Some "a1") │ │ 1503 / 638469946643812900 / Created ("file2.txt", Some "a2") │ │ 47 / 638469946643812947 / Changed ("file2.txt", Some "a2") │ │ 2479044 / 638469946646291991 / Changed ("file1.txt", Some "b1") │ │ 702 / 638469946646292693 / Changed ("file1.txt", Some "b1") │ │ 5332 / 638469946646298025 / Changed ("file2.txt", Some "b2") │ │ 463 / 638469946646298488 / Changed ("file2.txt", Some "b2") │ │ 2548052 / 638469946648846540 / Renamed ("file1.txt", ("file_1.txt", Some │ │ "b1")) │ │ 1658 / 638469946648848198 / Renamed ("file2.txt", ("file_2.txt", Some "b2")) │ │ 2521447 / 638469946651369645 / Changed ("file_1.txt", Some "c1") │ │ 602 / 638469946651370247 / Changed ("file_1.txt", Some "c1") │ │ 4612 / 638469946651374859 / Changed ("file_2.txt", Some "c2") │ │ 318 / 638469946651375177 / Changed ("file_2.txt", Some "c2") │ │ 2520627 / 638469946653895804 / Deleted "file_1.txt" │ │ 1270 / 638469946653897074 / Deleted "file_2.txt" │ │ FSharpList<FileSystemChange> │ │ - path: file1.txt │ │ content: FSharpOption<String> │ │ Value: a1 │ │ IsFailure: False │ │ IsChanged: False │ │ IsCreated: True │ │ IsDeleted: False │ │ IsRenamed: False │ │ - path: file1.txt │ │ content: FSharpOption<String> │ │ Value: a1 │ │ IsFailure: False │ │ IsChanged: True │ │ IsCreated: False │ │ IsDeleted: False │ │ IsRenamed: False │ │ - path: file2.txt │ │ content: FSharpOption<String> │ │ Value: a2 │ │ IsFailure: False │ │ IsChanged: False │ │ IsCreated: True │ │ IsDeleted: False │ │ IsRenamed: False │ │ - path: file2.txt │ │ content: FSharpOption<String> │ │ Value: a2 │ │ IsFailure: False │ │ IsChanged: True │ │ IsCreated: False │ │ IsDeleted: False │ │ IsRenamed: False │ │ - path: file1.txt │ │ content: FSharpOption<String> │ │ Value: b1 │ │ IsFailure: False │ │ IsChanged: True │ │ IsCreated: False │ │ IsDeleted: False │ │ IsRenamed: False │ │ - path: file2.txt │ │ content: FSharpOption<String> │ │ Value: b2 │ │ IsFailure: False │ │ IsChanged: True │ │ IsCreated: False │ │ IsDeleted: False │ │ IsRenamed: False │ │ - oldPath: file1.txt │ │ Item2: - file_1.txt │ │ - FSharpOption<String> │ │ Value: b1 │ │ - IsFailure: False │ │ IsChanged: False │ │ IsCreated: False │ │ IsDeleted: False │ │ IsRenamed: True │ │ - oldPath: file2.txt │ │ Item2: - file_2.txt │ │ - FSharpOption<String> │ │ Value: b2 │ │ - IsFailure: False │ │ IsChanged: False │ │ IsCreated: False │ │ IsDeleted: False │ │ IsRenamed: True │ │ - path: file_1.txt │ │ content: FSharpOption<String> │ │ Value: c1 │ │ IsFailure: False │ │ IsChanged: True │ │ IsCreated: False │ │ IsDeleted: False │ │ IsRenamed: False │ │ - path: file_2.txt │ │ content: FSharpOption<String> │ │ Value: c2 │ │ IsFailure: False │ │ IsChanged: True │ │ IsCreated: False │ │ IsDeleted: False │ │ IsRenamed: False │ │ - path: file_1.txt │ │ IsFailure: False │ │ IsChanged: False │ │ IsCreated: False │ │ IsDeleted: True │ │ IsRenamed: False │ │ - path: file_2.txt │ │ IsFailure: False │ │ IsChanged: False │ │ IsCreated: False │ │ IsDeleted: True │ │ IsRenamed: False │ │ FSharpOption<Unit> │ │ Value: <null> │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ #### slow (test) │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── //// test let inline write path = async { let n = 2 let contents = [[ 1 .. n ]] |> List.map (string >> String.replicate 1_000_000) for i = 1 to n do do! $"{contents.[[i - 1]]}a" |> writeAllTextAsync (path </> $"file{i}.txt") do! Async.Sleep 1500 for i = 1 to n do do! $"{contents.[[i - 1]]}b" |> writeAllTextAsync (path </> $"file{i}.txt") do! Async.Sleep 1500 for i = 1 to n do do! path </> $"file{i}.txt" |> moveFileAsync (path </> $"file_{i}.txt") |> Async.Ignore do! Async.Sleep 1500 for i = 1 to n do do! $"{contents.[[i - 1]]}c" |> writeAllTextAsync (path </> $"file_{i}.txt") do! Async.Sleep 1500 for i = 1 to n do do! deleteFileAsync (path </> $"file_{i}.txt") |> Async.Ignore do! Async.Sleep 1500 } let inline run () = let events = testEventsRaw watchDirectory write |> List.map (function | FileSystemChange.Changed (path, Some content) -> FileSystemChange.Changed (path, content |> Seq.distinct |> Seq.map string |> String.concat "" |> Some) | FileSystemChange.Created (path, Some content) -> FileSystemChange.Created (path, content |> Seq.distinct |> Seq.map string |> String.concat "" |> Some) | FileSystemChange.Renamed (oldPath, (newPath, Some content)) -> FileSystemChange.Renamed ( oldPath, (newPath, content |> Seq.distinct |> Seq.map string |> String.concat "" |> Some) ) | event -> event ) events |> _sequenceEqual [[ FileSystemChange.Created ("file1.txt", Some "1a") FileSystemChange.Changed ("file1.txt", Some "1a") FileSystemChange.Created ("file2.txt", Some "2a") FileSystemChange.Changed ("file2.txt", Some "2a") FileSystemChange.Changed ("file1.txt", Some "1b") FileSystemChange.Changed ("file2.txt", Some "2b") FileSystemChange.Renamed ("file1.txt", ("file_1.txt", Some "1b")) FileSystemChange.Renamed ("file2.txt", ("file_2.txt", Some "2b")) FileSystemChange.Changed ("file_1.txt", Some "1c") FileSystemChange.Changed ("file_2.txt", Some "2c") FileSystemChange.Deleted "file_1.txt" FileSystemChange.Deleted "file_2.txt" ]] run |> retryFn 5 |> _assertEqual (Some ()) ╭─[ 12.62s - stdout ]──────────────────────────────────────────────────────────╮ │ FSharpOption<Unit> │ │ Value: <null> │ │ 00:00:23 #49 [Debug] watchWithFilter / Disposing watch stream / filter: │ │ FileName, LastWrite │ │ 00:00:25 #50 [Debug] testEventsRaw / eventsLog: │ │ 0 / 638469946682946396 / Created ("file1.txt", Some │ │ "1111111111111111111111111111111111111 │ │ 2105 / 638469946682948501 / Changed ("file1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 245 / 638469946682948746 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 75 / 638469946682948821 / Changed ("file1.txt", Some │ │ "111111111111111111111111111111111111 │ │ 276 / 638469946682949097 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 172 / 638469946682949269 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 190 / 638469946682949459 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 189 / 638469946682949648 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 221 / 638469946682949869 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 417 / 638469946682950286 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 79 / 638469946682950365 / Changed ("file1.txt", Some │ │ "111111111111111111111111111111111111 │ │ 168 / 638469946682950533 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 206 / 638469946682950739 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 262 / 638469946682951001 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 254 / 638469946682951255 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 214 / 638469946682951469 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 142 / 638469946682951611 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 263 / 638469946682951874 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 110 / 638469946682951984 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 147 / 638469946682952131 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 213 / 638469946682952344 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 194 / 638469946682952538 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 192 / 638469946682952730 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 230 / 638469946682952960 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 339 / 638469946682953299 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 306 / 638469946682953605 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 317 / 638469946682953922 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 269 / 638469946682954191 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 300 / 638469946682954491 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 295 / 638469946682954786 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 309 / 638469946682955095 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 225 / 638469946682955320 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 322 / 638469946682955642 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 322 / 638469946682955964 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 283 / 638469946682956247 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 308 / 638469946682956555 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 223 / 638469946682956778 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 203 / 638469946682956981 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 268 / 638469946682957249 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 206 / 638469946682957455 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 214 / 638469946682957669 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 398 / 638469946682958067 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 449 / 638469946682958516 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 310 / 638469946682958826 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 215 / 638469946682959041 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 158 / 638469946682959199 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 334 / 638469946682959533 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 307 / 638469946682959840 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 215 / 638469946682960055 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 167 / 638469946682960222 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 1295 / 638469946682961517 / Changed ("file1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 62 / 638469946682961579 / Changed ("file1.txt", Some │ │ "111111111111111111111111111111111111 │ │ 397 / 638469946682961976 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 227 / 638469946682962203 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 446 / 638469946682962649 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 575 / 638469946682963224 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 2237 / 638469946682965461 / Changed ("file1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 83 / 638469946682965544 / Changed ("file1.txt", Some │ │ "111111111111111111111111111111111111 │ │ 283 / 638469946682965827 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 180 / 638469946682966007 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 223 / 638469946682966230 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 179 / 638469946682966409 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 196 / 638469946682966605 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 199 / 638469946682966804 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 198 / 638469946682967002 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 224 / 638469946682967226 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 429 / 638469946682967655 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 224 / 638469946682967879 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 223 / 638469946682968102 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 198 / 638469946682968300 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 186 / 638469946682968486 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 291 / 638469946682968777 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 214 / 638469946682968991 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 200 / 638469946682969191 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 194 / 638469946682969385 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 206 / 638469946682969591 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 175 / 638469946682969766 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 163 / 638469946682969929 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 206 / 638469946682970135 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 160 / 638469946682970295 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 168 / 638469946682970463 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 159 / 638469946682970622 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 189 / 638469946682970811 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 181 / 638469946682970992 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 184 / 638469946682971176 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 203 / 638469946682971379 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 179 / 638469946682971558 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 121 / 638469946682971679 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 47649 / 638469946683019328 / Created ("file2.txt", Some │ │ "222222222222222222222222222222222 │ │ 342 / 638469946683019670 / Changed ("file2.txt", Some │ │ "22222222222222222222222222222222222 │ │ 15047103 / 638469946698066773 / Changed ("file1.txt", Some │ │ "111111111111111111111111111111 │ │ 260 / 638469946698067033 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 670 / 638469946698067703 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 1191 / 638469946698068894 / Changed ("file1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 201 / 638469946698069095 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 169 / 638469946698069264 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 187 / 638469946698069451 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 182 / 638469946698069633 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 190 / 638469946698069823 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 181 / 638469946698070004 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 265 / 638469946698070269 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 241 / 638469946698070510 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 815 / 638469946698071325 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 64 / 638469946698071389 / Changed ("file1.txt", Some │ │ "111111111111111111111111111111111111 │ │ 296 / 638469946698071685 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 148 / 638469946698071833 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 139 / 638469946698071972 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 141 / 638469946698072113 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 187 / 638469946698072300 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 881 / 638469946698073181 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 229 / 638469946698073410 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 198 / 638469946698073608 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 167 / 638469946698073775 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 174 / 638469946698073949 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 1268 / 638469946698075217 / Changed ("file1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 74 / 638469946698075291 / Changed ("file1.txt", Some │ │ "111111111111111111111111111111111111 │ │ 168 / 638469946698075459 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 158 / 638469946698075617 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 380 / 638469946698075997 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 275 / 638469946698076272 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 159 / 638469946698076431 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 142 / 638469946698076573 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 174 / 638469946698076747 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 172 / 638469946698076919 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 203 / 638469946698077122 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 44 / 638469946698077166 / Changed ("file1.txt", Some │ │ "111111111111111111111111111111111111 │ │ 179 / 638469946698077345 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 187 / 638469946698077532 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 880 / 638469946698078412 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 182 / 638469946698078594 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 156 / 638469946698078750 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 163 / 638469946698078913 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 151 / 638469946698079064 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 703 / 638469946698079767 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 48 / 638469946698079815 / Changed ("file1.txt", Some │ │ "111111111111111111111111111111111111 │ │ 137 / 638469946698079952 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 150 / 638469946698080102 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 175 / 638469946698080277 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 160 / 638469946698080437 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 163 / 638469946698080600 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 1283 / 638469946698081883 / Changed ("file1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 153 / 638469946698082036 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 207 / 638469946698082243 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 199 / 638469946698082442 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 180 / 638469946698082622 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 162 / 638469946698082784 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 158 / 638469946698082942 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 166 / 638469946698083108 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 159 / 638469946698083267 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 152 / 638469946698083419 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 197 / 638469946698083616 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 103 / 638469946698083719 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 169 / 638469946698083888 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 151 / 638469946698084039 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 174 / 638469946698084213 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 1516 / 638469946698085729 / Changed ("file1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 62 / 638469946698085791 / Changed ("file1.txt", Some │ │ "111111111111111111111111111111111111 │ │ 134 / 638469946698085925 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 140 / 638469946698086065 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 1766 / 638469946698087831 / Changed ("file1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 306 / 638469946698088137 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 148 / 638469946698088285 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 799 / 638469946698089084 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 55 / 638469946698089139 / Changed ("file1.txt", Some │ │ "111111111111111111111111111111111111 │ │ 158 / 638469946698089297 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 154 / 638469946698089451 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 110 / 638469946698089561 / Changed ("file1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 30645 / 638469946698120206 / Changed ("file2.txt", Some │ │ "222222222222222222222222222222222 │ │ 209 / 638469946698120415 / Changed ("file2.txt", Some │ │ "22222222222222222222222222222222222 │ │ 227 / 638469946698120642 / Changed ("file2.txt", Some │ │ "22222222222222222222222222222222222 │ │ 136 / 638469946698120778 / Changed ("file2.txt", Some │ │ "22222222222222222222222222222222222 │ │ 214 / 638469946698120992 / Changed ("file2.txt", Some │ │ "22222222222222222222222222222222222 │ │ 49 / 638469946698121041 / Changed ("file2.txt", Some │ │ "222222222222222222222222222222222222 │ │ 233 / 638469946698121274 / Changed ("file2.txt", Some │ │ "22222222222222222222222222222222222 │ │ 47 / 638469946698121321 / Changed ("file2.txt", Some │ │ "222222222222222222222222222222222222 │ │ 204 / 638469946698121525 / Changed ("file2.txt", Some │ │ "22222222222222222222222222222222222 │ │ 173 / 638469946698121698 / Changed ("file2.txt", Some │ │ "22222222222222222222222222222222222 │ │ 115 / 638469946698121813 / Changed ("file2.txt", Some │ │ "22222222222222222222222222222222222 │ │ 196 / 638469946698122009 / Changed ("file2.txt", Some │ │ "22222222222222222222222222222222222 │ │ 145 / 638469946698122154 / Changed ("file2.txt", Some │ │ "22222222222222222222222222222222222 │ │ 152 / 638469946698122306 / Changed ("file2.txt", Some │ │ "22222222222222222222222222222222222 │ │ 141 / 638469946698122447 / Changed ("file2.txt", Some │ │ "22222222222222222222222222222222222 │ │ 167 / 638469946698122614 / Changed ("file2.txt", Some │ │ "22222222222222222222222222222222222 │ │ 157 / 638469946698122771 / Changed ("file2.txt", Some │ │ "22222222222222222222222222222222222 │ │ 220 / 638469946698122991 / Changed ("file2.txt", Some │ │ "22222222222222222222222222222222222 │ │ 152 / 638469946698123143 / Changed ("file2.txt", Some │ │ "22222222222222222222222222222222222 │ │ 138 / 638469946698123281 / Changed ("file2.txt", Some │ │ "22222222222222222222222222222222222 │ │ 184 / 638469946698123465 / Changed ("file2.txt", Some │ │ "22222222222222222222222222222222222 │ │ 44 / 638469946698123509 / Changed ("file2.txt", Some │ │ "222222222222222222222222222222222222 │ │ 178 / 638469946698123687 / Changed ("file2.txt", Some │ │ "22222222222222222222222222222222222 │ │ 291 / 638469946698123978 / Changed ("file2.txt", Some │ │ "22222222222222222222222222222222222 │ │ 247 / 638469946698124225 / Changed ("file2.txt", Some │ │ "22222222222222222222222222222222222 │ │ 198 / 638469946698124423 / Changed ("file2.txt", Some │ │ "22222222222222222222222222222222222 │ │ 166 / 638469946698124589 / Changed ("file2.txt", Some │ │ "22222222222222222222222222222222222 │ │ 142 / 638469946698124731 / Changed ("file2.txt", Some │ │ "22222222222222222222222222222222222 │ │ 158 / 638469946698124889 / Changed ("file2.txt", Some │ │ "22222222222222222222222222222222222 │ │ 170 / 638469946698125059 / Changed ("file2.txt", Some │ │ "22222222222222222222222222222222222 │ │ 174 / 638469946698125233 / Changed ("file2.txt", Some │ │ "22222222222222222222222222222222222 │ │ 143 / 638469946698125376 / Changed ("file2.txt", Some │ │ "22222222222222222222222222222222222 │ │ 144 / 638469946698125520 / Changed ("file2.txt", Some │ │ "22222222222222222222222222222222222 │ │ 182 / 638469946698125702 / Changed ("file2.txt", Some │ │ "22222222222222222222222222222222222 │ │ 188 / 638469946698125890 / Changed ("file2.txt", Some │ │ "22222222222222222222222222222222222 │ │ 160 / 638469946698126050 / Changed ("file2.txt", Some │ │ "22222222222222222222222222222222222 │ │ 155 / 638469946698126205 / Changed ("file2.txt", Some │ │ "22222222222222222222222222222222222 │ │ 162 / 638469946698126367 / Changed ("file2.txt", Some │ │ "22222222222222222222222222222222222 │ │ 385 / 638469946698126752 / Changed ("file2.txt", Some │ │ "22222222222222222222222222222222222 │ │ 51 / 638469946698126803 / Changed ("file2.txt", Some │ │ "222222222222222222222222222222222222 │ │ 244 / 638469946698127047 / Changed ("file2.txt", Some │ │ "22222222222222222222222222222222222 │ │ 49 / 638469946698127096 / Changed ("file2.txt", Some │ │ "222222222222222222222222222222222222 │ │ 162 / 638469946698127258 / Changed ("file2.txt", Some │ │ "22222222222222222222222222222222222 │ │ 497 / 638469946698127755 / Changed ("file2.txt", Some │ │ "22222222222222222222222222222222222 │ │ 68 / 638469946698127823 / Changed ("file2.txt", Some │ │ "222222222222222222222222222222222222 │ │ 155 / 638469946698127978 / Changed ("file2.txt", Some │ │ "22222222222222222222222222222222222 │ │ 149 / 638469946698128127 / Changed ("file2.txt", Some │ │ "22222222222222222222222222222222222 │ │ 163 / 638469946698128290 / Changed ("file2.txt", Some │ │ "22222222222222222222222222222222222 │ │ 175 / 638469946698128465 / Changed ("file2.txt", Some │ │ "22222222222222222222222222222222222 │ │ 175 / 638469946698128640 / Changed ("file2.txt", Some │ │ "22222222222222222222222222222222222 │ │ 137 / 638469946698128777 / Changed ("file2.txt", Some │ │ "22222222222222222222222222222222222 │ │ 156 / 638469946698128933 / Changed ("file2.txt", Some │ │ "22222222222222222222222222222222222 │ │ 150 / 638469946698129083 / Changed ("file2.txt", Some │ │ "22222222222222222222222222222222222 │ │ 176 / 638469946698129259 / Changed ("file2.txt", Some │ │ "22222222222222222222222222222222222 │ │ 161 / 638469946698129420 / Changed ("file2.txt", Some │ │ "22222222222222222222222222222222222 │ │ 179 / 638469946698129599 / Changed ("file2.txt", Some │ │ "22222222222222222222222222222222222 │ │ 147 / 638469946698129746 / Changed ("file2.txt", Some │ │ "22222222222222222222222222222222222 │ │ 175 / 638469946698129921 / Changed ("file2.txt", Some │ │ "22222222222222222222222222222222222 │ │ 174 / 638469946698130095 / Changed ("file2.txt", Some │ │ "22222222222222222222222222222222222 │ │ 172 / 638469946698130267 / Changed ("file2.txt", Some │ │ "22222222222222222222222222222222222 │ │ 162 / 638469946698130429 / Changed ("file2.txt", Some │ │ "22222222222222222222222222222222222 │ │ 677 / 638469946698131106 / Changed ("file2.txt", Some │ │ "22222222222222222222222222222222222 │ │ 152 / 638469946698131258 / Changed ("file2.txt", Some │ │ "22222222222222222222222222222222222 │ │ 126 / 638469946698131384 / Changed ("file2.txt", Some │ │ "22222222222222222222222222222222222 │ │ 169 / 638469946698131553 / Changed ("file2.txt", Some │ │ "22222222222222222222222222222222222 │ │ 178 / 638469946698131731 / Changed ("file2.txt", Some │ │ "22222222222222222222222222222222222 │ │ 170 / 638469946698131901 / Changed ("file2.txt", Some │ │ "22222222222222222222222222222222222 │ │ 146 / 638469946698132047 / Changed ("file2.txt", Some │ │ "22222222222222222222222222222222222 │ │ 165 / 638469946698132212 / Changed ("file2.txt", Some │ │ "22222222222222222222222222222222222 │ │ 179 / 638469946698132391 / Changed ("file2.txt", Some │ │ "22222222222222222222222222222222222 │ │ 579 / 638469946698132970 / Changed ("file2.txt", Some │ │ "22222222222222222222222222222222222 │ │ 151 / 638469946698133121 / Changed ("file2.txt", Some │ │ "22222222222222222222222222222222222 │ │ 601 / 638469946698133722 / Changed ("file2.txt", Some │ │ "22222222222222222222222222222222222 │ │ 156 / 638469946698133878 / Changed ("file2.txt", Some │ │ "22222222222222222222222222222222222 │ │ 176 / 638469946698134054 / Changed ("file2.txt", Some │ │ "22222222222222222222222222222222222 │ │ 156 / 638469946698134210 / Changed ("file2.txt", Some │ │ "22222222222222222222222222222222222 │ │ 145 / 638469946698134355 / Changed ("file2.txt", Some │ │ "22222222222222222222222222222222222 │ │ 150 / 638469946698134505 / Changed ("file2.txt", Some │ │ "22222222222222222222222222222222222 │ │ 167 / 638469946698134672 / Changed ("file2.txt", Some │ │ "22222222222222222222222222222222222 │ │ 564 / 638469946698135236 / Changed ("file2.txt", Some │ │ "22222222222222222222222222222222222 │ │ 160 / 638469946698135396 / Changed ("file2.txt", Some │ │ "22222222222222222222222222222222222 │ │ 149 / 638469946698135545 / Changed ("file2.txt", Some │ │ "22222222222222222222222222222222222 │ │ 167 / 638469946698135712 / Changed ("file2.txt", Some │ │ "22222222222222222222222222222222222 │ │ 625 / 638469946698136337 / Changed ("file2.txt", Some │ │ "22222222222222222222222222222222222 │ │ 138 / 638469946698136475 / Changed ("file2.txt", Some │ │ "22222222222222222222222222222222222 │ │ 545 / 638469946698137020 / Changed ("file2.txt", Some │ │ "22222222222222222222222222222222222 │ │ 23 / 638469946698137043 / Changed ("file2.txt", Some │ │ "222222222222222222222222222222222222 │ │ 397 / 638469946698137440 / Changed ("file2.txt", Some │ │ "22222222222222222222222222222222222 │ │ 75 / 638469946698137515 / Changed ("file2.txt", Some │ │ "222222222222222222222222222222222222 │ │ 165 / 638469946698137680 / Changed ("file2.txt", Some │ │ "22222222222222222222222222222222222 │ │ 366 / 638469946698138046 / Changed ("file2.txt", Some │ │ "22222222222222222222222222222222222 │ │ 13744 / 638469946698151790 / Changed ("file2.txt", Some │ │ "222222222222222222222222222222222 │ │ 15004990 / 638469946713156780 / Renamed ("file1.txt", ("file_1.txt", │ │ Some "1111111111 │ │ 301 / 638469946713157081 / Renamed ("file2.txt", ("file_2.txt", Some │ │ "222222222222222 │ │ 15062793 / 638469946728219874 / Changed ("file_1.txt", Some │ │ "11111111111111111111111111111 │ │ 947 / 638469946728220821 / Changed ("file_1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 350 / 638469946728221171 / Changed ("file_1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 99 / 638469946728221270 / Changed ("file_1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 267 / 638469946728221537 / Changed ("file_1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 95 / 638469946728221632 / Changed ("file_1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 258 / 638469946728221890 / Changed ("file_1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 95 / 638469946728221985 / Changed ("file_1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 268 / 638469946728222253 / Changed ("file_1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 217 / 638469946728222470 / Changed ("file_1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 369 / 638469946728222839 / Changed ("file_1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 39 / 638469946728222878 / Changed ("file_1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 285 / 638469946728223163 / Changed ("file_1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 380 / 638469946728223543 / Changed ("file_1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 314 / 638469946728223857 / Changed ("file_1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 205 / 638469946728224062 / Changed ("file_1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 34 / 638469946728224096 / Changed ("file_1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 247 / 638469946728224343 / Changed ("file_1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 239 / 638469946728224582 / Changed ("file_1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 190 / 638469946728224772 / Changed ("file_1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 195 / 638469946728224967 / Changed ("file_1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 176 / 638469946728225143 / Changed ("file_1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 81 / 638469946728225224 / Changed ("file_1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 249 / 638469946728225473 / Changed ("file_1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 35 / 638469946728225508 / Changed ("file_1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 233 / 638469946728225741 / Changed ("file_1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 36 / 638469946728225777 / Changed ("file_1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 273 / 638469946728226050 / Changed ("file_1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 270 / 638469946728226320 / Changed ("file_1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 246 / 638469946728226566 / Changed ("file_1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 225 / 638469946728226791 / Changed ("file_1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 490 / 638469946728227281 / Changed ("file_1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 153 / 638469946728227434 / Changed ("file_1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 135 / 638469946728227569 / Changed ("file_1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 143 / 638469946728227712 / Changed ("file_1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 196 / 638469946728227908 / Changed ("file_1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 46 / 638469946728227954 / Changed ("file_1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 223 / 638469946728228177 / Changed ("file_1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 194 / 638469946728228371 / Changed ("file_1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 209 / 638469946728228580 / Changed ("file_1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 16 / 638469946728228596 / Changed ("file_1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 221 / 638469946728228817 / Changed ("file_1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 137 / 638469946728228954 / Changed ("file_1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 256 / 638469946728229210 / Changed ("file_1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 163 / 638469946728229373 / Changed ("file_1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 135 / 638469946728229508 / Changed ("file_1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 138 / 638469946728229646 / Changed ("file_1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 144 / 638469946728229790 / Changed ("file_1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 83 / 638469946728229873 / Changed ("file_1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 248 / 638469946728230121 / Changed ("file_1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 139 / 638469946728230260 / Changed ("file_1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 191 / 638469946728230451 / Changed ("file_1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 32 / 638469946728230483 / Changed ("file_1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 249 / 638469946728230732 / Changed ("file_1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 133 / 638469946728230865 / Changed ("file_1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 199 / 638469946728231064 / Changed ("file_1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 149 / 638469946728231213 / Changed ("file_1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 87 / 638469946728231300 / Changed ("file_1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 341 / 638469946728231641 / Changed ("file_1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 146 / 638469946728231787 / Changed ("file_1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 144 / 638469946728231931 / Changed ("file_1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 139 / 638469946728232070 / Changed ("file_1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 223 / 638469946728232293 / Changed ("file_1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 130 / 638469946728232423 / Changed ("file_1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 199 / 638469946728232622 / Changed ("file_1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 153 / 638469946728232775 / Changed ("file_1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 146 / 638469946728232921 / Changed ("file_1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 122 / 638469946728233043 / Changed ("file_1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 226 / 638469946728233269 / Changed ("file_1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 146 / 638469946728233415 / Changed ("file_1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 193 / 638469946728233608 / Changed ("file_1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 29 / 638469946728233637 / Changed ("file_1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 254 / 638469946728233891 / Changed ("file_1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 148 / 638469946728234039 / Changed ("file_1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 183 / 638469946728234222 / Changed ("file_1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 47 / 638469946728234269 / Changed ("file_1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 232 / 638469946728234501 / Changed ("file_1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 130 / 638469946728234631 / Changed ("file_1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 141 / 638469946728234772 / Changed ("file_1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 140 / 638469946728234912 / Changed ("file_1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 188 / 638469946728235100 / Changed ("file_1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 124 / 638469946728235224 / Changed ("file_1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 227 / 638469946728235451 / Changed ("file_1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 34 / 638469946728235485 / Changed ("file_1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 247 / 638469946728235732 / Changed ("file_1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 37 / 638469946728235769 / Changed ("file_1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 247 / 638469946728236016 / Changed ("file_1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 140 / 638469946728236156 / Changed ("file_1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 159 / 638469946728236315 / Changed ("file_1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 193 / 638469946728236508 / Changed ("file_1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 28 / 638469946728236536 / Changed ("file_1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 239 / 638469946728236775 / Changed ("file_1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 147 / 638469946728236922 / Changed ("file_1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 92 / 638469946728237014 / Changed ("file_1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 213 / 638469946728237227 / Changed ("file_1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 130 / 638469946728237357 / Changed ("file_1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 216 / 638469946728237573 / Changed ("file_1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 191 / 638469946728237764 / Changed ("file_1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 31 / 638469946728237795 / Changed ("file_1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 221 / 638469946728238016 / Changed ("file_1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 149 / 638469946728238165 / Changed ("file_1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 251 / 638469946728238416 / Changed ("file_1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 232 / 638469946728238648 / Changed ("file_1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 146 / 638469946728238794 / Changed ("file_1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 200 / 638469946728238994 / Changed ("file_1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 15 / 638469946728239009 / Changed ("file_1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 229 / 638469946728239238 / Changed ("file_1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 132 / 638469946728239370 / Changed ("file_1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 142 / 638469946728239512 / Changed ("file_1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 140 / 638469946728239652 / Changed ("file_1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 139 / 638469946728239791 / Changed ("file_1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 121 / 638469946728239912 / Changed ("file_1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 222 / 638469946728240134 / Changed ("file_1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 97 / 638469946728240231 / Changed ("file_1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 245 / 638469946728240476 / Changed ("file_1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 33 / 638469946728240509 / Changed ("file_1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 254 / 638469946728240763 / Changed ("file_1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 142 / 638469946728240905 / Changed ("file_1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 199 / 638469946728241104 / Changed ("file_1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 90 / 638469946728241194 / Changed ("file_1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 222 / 638469946728241416 / Changed ("file_1.txt", Some │ │ "1111111111111111111111111111111111 │ │ 28 / 638469946728241444 / Changed ("file_1.txt", Some │ │ "11111111111111111111111111111111111 │ │ 51313 / 638469946728292757 / Changed ("file_2.txt", Some │ │ "22222222222222222222222222222222 │ │ 112 / 638469946728292869 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 476 / 638469946728293345 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 261 / 638469946728293606 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 233 / 638469946728293839 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 122 / 638469946728293961 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 174 / 638469946728294135 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 155 / 638469946728294290 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 90 / 638469946728294380 / Changed ("file_2.txt", Some │ │ "22222222222222222222222222222222222 │ │ 205 / 638469946728294585 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 213 / 638469946728294798 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 158 / 638469946728294956 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 134 / 638469946728295090 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 175 / 638469946728295265 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 187 / 638469946728295452 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 138 / 638469946728295590 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 197 / 638469946728295787 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 142 / 638469946728295929 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 205 / 638469946728296134 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 100 / 638469946728296234 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 350 / 638469946728296584 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 19 / 638469946728296603 / Changed ("file_2.txt", Some │ │ "22222222222222222222222222222222222 │ │ 200 / 638469946728296803 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 374 / 638469946728297177 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 39 / 638469946728297216 / Changed ("file_2.txt", Some │ │ "22222222222222222222222222222222222 │ │ 247 / 638469946728297463 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 115 / 638469946728297578 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 218 / 638469946728297796 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 190 / 638469946728297986 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 165 / 638469946728298151 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 197 / 638469946728298348 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 202 / 638469946728298550 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 118 / 638469946728298668 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 219 / 638469946728298887 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 173 / 638469946728299060 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 196 / 638469946728299256 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 168 / 638469946728299424 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 166 / 638469946728299590 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 213 / 638469946728299803 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 171 / 638469946728299974 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 164 / 638469946728300138 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 201 / 638469946728300339 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 108 / 638469946728300447 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 224 / 638469946728300671 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 122 / 638469946728300793 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 224 / 638469946728301017 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 120 / 638469946728301137 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 213 / 638469946728301350 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 102 / 638469946728301452 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 219 / 638469946728301671 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 168 / 638469946728301839 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 194 / 638469946728302033 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 168 / 638469946728302201 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 211 / 638469946728302412 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 169 / 638469946728302581 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 205 / 638469946728302786 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 106 / 638469946728302892 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 227 / 638469946728303119 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 114 / 638469946728303233 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 205 / 638469946728303438 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 204 / 638469946728303642 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 195 / 638469946728303837 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 167 / 638469946728304004 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 109 / 638469946728304113 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 222 / 638469946728304335 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 173 / 638469946728304508 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 196 / 638469946728304704 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 171 / 638469946728304875 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 192 / 638469946728305067 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 174 / 638469946728305241 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 189 / 638469946728305430 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 168 / 638469946728305598 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 201 / 638469946728305799 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 106 / 638469946728305905 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 212 / 638469946728306117 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 204 / 638469946728306321 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 165 / 638469946728306486 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 201 / 638469946728306687 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 109 / 638469946728306796 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 208 / 638469946728307004 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 163 / 638469946728307167 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 189 / 638469946728307356 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 193 / 638469946728307549 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 344 / 638469946728307893 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 121 / 638469946728308014 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 215 / 638469946728308229 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 111 / 638469946728308340 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 208 / 638469946728308548 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 166 / 638469946728308714 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 204 / 638469946728308918 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 165 / 638469946728309083 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 201 / 638469946728309284 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 170 / 638469946728309454 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 192 / 638469946728309646 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 113 / 638469946728309759 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 217 / 638469946728309976 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 178 / 638469946728310154 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 205 / 638469946728310359 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 157 / 638469946728310516 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 198 / 638469946728310714 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 167 / 638469946728310881 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 167 / 638469946728311048 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 175 / 638469946728311223 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 170 / 638469946728311393 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 191 / 638469946728311584 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 88 / 638469946728311672 / Changed ("file_2.txt", Some │ │ "22222222222222222222222222222222222 │ │ 241 / 638469946728311913 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 148 / 638469946728312061 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 178 / 638469946728312239 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 164 / 638469946728312403 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 101 / 638469946728312504 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 191 / 638469946728312695 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 185 / 638469946728312880 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 152 / 638469946728313032 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 165 / 638469946728313197 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 179 / 638469946728313376 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 99 / 638469946728313475 / Changed ("file_2.txt", Some │ │ "22222222222222222222222222222222222 │ │ 202 / 638469946728313677 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 147 / 638469946728313824 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 193 / 638469946728314017 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 178 / 638469946728314195 / Changed ("file_2.txt", Some │ │ "2222222222222222222222222222222222 │ │ 32 / 638469946728314227 / Changed ("file_2.txt", Some │ │ "22222222222222222222222222222222222 │ │ 15005868 / 638469946743320095 / Deleted "file_1.txt" │ │ 3798 / 638469946743323893 / Deleted "file_2.txt" │ │ FSharpList<FileSystemChange> │ │ - path: file1.txt │ │ content: FSharpOption<String> │ │ Value: 1a │ │ IsFailure: False │ │ IsChanged: False │ │ IsCreated: True │ │ IsDeleted: False │ │ IsRenamed: False │ │ - path: file1.txt │ │ content: FSharpOption<String> │ │ Value: 1a │ │ IsFailure: False │ │ IsChanged: True │ │ IsCreated: False │ │ IsDeleted: False │ │ IsRenamed: False │ │ - path: file2.txt │ │ content: FSharpOption<String> │ │ Value: 2a │ │ IsFailure: False │ │ IsChanged: False │ │ IsCreated: True │ │ IsDeleted: False │ │ IsRenamed: False │ │ - path: file2.txt │ │ content: FSharpOption<String> │ │ Value: 2a │ │ IsFailure: False │ │ IsChanged: True │ │ IsCreated: False │ │ IsDeleted: False │ │ IsRenamed: False │ │ - path: file1.txt │ │ content: FSharpOption<String> │ │ Value: 1b │ │ IsFailure: False │ │ IsChanged: True │ │ IsCreated: False │ │ IsDeleted: False │ │ IsRenamed: False │ │ - path: file2.txt │ │ content: FSharpOption<String> │ │ Value: 2b │ │ IsFailure: False │ │ IsChanged: True │ │ IsCreated: False │ │ IsDeleted: False │ │ IsRenamed: False │ │ - oldPath: file1.txt │ │ Item2: - file_1.txt │ │ - FSharpOption<String> │ │ Value: 1b │ │ - IsFailure: False │ │ IsChanged: False │ │ IsCreated: False │ │ IsDeleted: False │ │ IsRenamed: True │ │ - oldPath: file2.txt │ │ Item2: - file_2.txt │ │ - FSharpOption<String> │ │ Value: 2b │ │ - IsFailure: False │ │ IsChanged: False │ │ IsCreated: False │ │ IsDeleted: False │ │ IsRenamed: True │ │ - path: file_1.txt │ │ content: FSharpOption<String> │ │ Value: 1c │ │ IsFailure: False │ │ IsChanged: True │ │ IsCreated: False │ │ IsDeleted: False │ │ IsRenamed: False │ │ - path: file_2.txt │ │ content: FSharpOption<String> │ │ Value: 2c │ │ IsFailure: False │ │ IsChanged: True │ │ IsCreated: False │ │ IsDeleted: False │ │ IsRenamed: False │ │ - path: file_1.txt │ │ IsFailure: False │ │ IsChanged: False │ │ IsCreated: False │ │ IsDeleted: True │ │ IsRenamed: False │ │ - path: file_2.txt │ │ IsFailure: False │ │ IsChanged: False │ │ IsCreated: False │ │ IsDeleted: True │ │ IsRenamed: False │ │ FSharpOption<Unit> │ │ Value: <null> │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ### testEventsSorted (test) │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── //// test let inline sortEvent event = match event with | FileSystemChange.Failure _ -> 0 | FileSystemChange.Created _ -> 1 | FileSystemChange.Changed _ -> 2 | FileSystemChange.Renamed (_oldPath, _) -> 3 | FileSystemChange.Deleted _ -> 4 let inline formatEvents events = events |> Seq.toList |> List.sortBy (snd >> sortEvent) |> List.choose (fun (ticks, event) -> match event with | FileSystemChange.Failure _ -> None | FileSystemChange.Changed (path, _) -> Some (ticks, System.IO.Path.GetFileName path, nameof FileSystemChangeType.Changed) | FileSystemChange.Created (path, _) -> Some (ticks, System.IO.Path.GetFileName path, nameof FileSystemChangeType.Created) | FileSystemChange.Deleted path -> Some (ticks, System.IO.Path.GetFileName path, nameof FileSystemChangeType.Deleted) | FileSystemChange.Renamed (_oldPath, (path, _)) -> Some (ticks, System.IO.Path.GetFileName path, nameof FileSystemChangeType.Renamed) ) |> List.sortBy (fun (_, path, _) -> path) |> List.distinctBy (fun (_, path, event) -> path, event) let inline testEventsSorted (watchFn : string -> FSharp.Control.AsyncSeq<int64 * FileSystemChange> * IDisposable) write = let path = createTempDirectory () let stream, disposable = watchFn path let events = System.Collections.Concurrent.ConcurrentBag () let inline iter () = stream |> FSharp.Control.AsyncSeq.iterAsyncParallel (fun event -> async { events.Add event }) let run = async { let! _ = iter () |> Async.StartChild do! Async.Sleep 250 return! write path } try run |> Async.runWithTimeout 5000 |> _assertEqual (Some ()) finally disposable.Dispose () deleteDirectoryAsync path |> Async.Ignore |> Async.RunSynchronously let events = formatEvents events let eventMap = events |> List.map (fun (ticks, path, event) -> path, (event, ticks)) |> List.groupBy fst |> List.map (fun (path, events) -> let event, _ticks = events |> List.map snd |> List.sortByDescending snd |> List.head path, event ) |> Map.ofList let eventList = events |> List.map (fun (_ticks, path, event) -> path, event) eventMap, eventList ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ #### create and delete (test) │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── //// test let inline write path = async { let n = 3 for i = 1 to n do do! $"{i}" |> writeAllTextAsync (path </> $"file{i}.txt") for i = 1 to n do do! deleteFileAsync (path </> $"file{i}.txt") |> Async.Ignore do! Async.Sleep 150 } let inline run () = let eventMap, eventList = testEventsSorted (watchDirectory (fun _ -> false)) write [[ "file1.txt", nameof FileSystemChangeType.Created "file1.txt", nameof FileSystemChangeType.Changed "file1.txt", nameof FileSystemChangeType.Deleted "file2.txt", nameof FileSystemChangeType.Created "file2.txt", nameof FileSystemChangeType.Changed "file2.txt", nameof FileSystemChangeType.Deleted "file3.txt", nameof FileSystemChangeType.Created "file3.txt", nameof FileSystemChangeType.Changed "file3.txt", nameof FileSystemChangeType.Deleted ]] |> _sequenceEqual eventList [[ "file1.txt", nameof FileSystemChangeType.Deleted "file2.txt", nameof FileSystemChangeType.Deleted "file3.txt", nameof FileSystemChangeType.Deleted ]] |> Map.ofList |> _sequenceEqual eventMap run |> retryFn 3 |> _assertEqual (Some ()) ╭─[ 2.20s - stdout ]───────────────────────────────────────────────────────────╮ │ FSharpOption<Unit> │ │ Value: <null> │ │ 00:00:28 #51 [Debug] watchWithFilter / Disposing watch stream / filter: │ │ FileName, LastWrite │ │ FSharpList<Tuple<String,String>> │ │ ( file1.txt, Created ) │ │ ( file1.txt, Changed ) │ │ ( file1.txt, Deleted ) │ │ ( file2.txt, Created ) │ │ ( file2.txt, Changed ) │ │ ( file2.txt, Deleted ) │ │ ( file3.txt, Created ) │ │ ( file3.txt, Changed ) │ │ ( file3.txt, Deleted ) │ │ FSharpMap<String,String> │ │ - Key: file1.txt │ │ Value: Deleted │ │ - Key: file2.txt │ │ Value: Deleted │ │ - Key: file3.txt │ │ Value: Deleted │ │ FSharpOption<Unit> │ │ Value: <null> │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ #### change (test) │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── //// test let inline write path = async { let n = 2 for i = 1 to n do do! $"{i}" |> writeAllTextAsync (path </> $"file{i}.txt") for i = 1 to n do do! "" |> writeAllTextAsync (path </> $"file{i}.txt") for i = 1 to n do do! deleteFileAsync (path </> $"file{i}.txt") |> Async.Ignore do! Async.Sleep 150 } let inline run () = let eventMap, eventList = testEventsSorted (watchDirectory (fun _ -> false)) write [[ "file1.txt", nameof FileSystemChangeType.Created "file1.txt", nameof FileSystemChangeType.Changed "file1.txt", nameof FileSystemChangeType.Deleted "file2.txt", nameof FileSystemChangeType.Created "file2.txt", nameof FileSystemChangeType.Changed "file2.txt", nameof FileSystemChangeType.Deleted ]] |> _sequenceEqual eventList [[ "file1.txt", nameof FileSystemChangeType.Deleted "file2.txt", nameof FileSystemChangeType.Deleted ]] |> Map.ofList |> _sequenceEqual eventMap run |> retryFn 3 |> _assertEqual (Some ()) ╭─[ 2.34s - stdout ]───────────────────────────────────────────────────────────╮ │ FSharpOption<Unit> │ │ Value: <null> │ │ 00:00:30 #52 [Debug] watchWithFilter / Disposing watch stream / filter: │ │ FileName, LastWrite │ │ FSharpList<Tuple<String,String>> │ │ ( file1.txt, Created ) │ │ ( file1.txt, Changed ) │ │ ( file1.txt, Deleted ) │ │ ( file2.txt, Created ) │ │ ( file2.txt, Changed ) │ │ ( file2.txt, Deleted ) │ │ FSharpMap<String,String> │ │ - Key: file1.txt │ │ Value: Deleted │ │ - Key: file2.txt │ │ Value: Deleted │ │ FSharpOption<Unit> │ │ Value: <null> │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ #### rename (test) │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── //// test let inline write path = async { let n = 2 for i = 1 to n do do! $"{i}" |> writeAllTextAsync (path </> $"file{i}.txt") for i = 1 to n do do! path </> $"file{i}.txt" |> moveFileAsync (path </> $"file_{i}.txt") |> Async.Ignore for i = 1 to n do do! deleteFileAsync (path </> $"file_{i}.txt") |> Async.Ignore do! Async.Sleep 150 } let inline run () = let eventMap, eventList = testEventsSorted (watchDirectory (fun _ -> false)) write [[ "file1.txt", nameof FileSystemChangeType.Created "file1.txt", nameof FileSystemChangeType.Changed "file2.txt", nameof FileSystemChangeType.Created "file2.txt", nameof FileSystemChangeType.Changed "file_1.txt", nameof FileSystemChangeType.Renamed "file_1.txt", nameof FileSystemChangeType.Deleted "file_2.txt", nameof FileSystemChangeType.Renamed "file_2.txt", nameof FileSystemChangeType.Deleted ]] |> _sequenceEqual eventList [[ "file1.txt", nameof FileSystemChangeType.Changed "file2.txt", nameof FileSystemChangeType.Changed "file_1.txt", nameof FileSystemChangeType.Deleted "file_2.txt", nameof FileSystemChangeType.Deleted ]] |> Map.ofList |> _sequenceEqual eventMap run |> retryFn 3 |> _assertEqual (Some ()) ╭─[ 2.76s - stdout ]───────────────────────────────────────────────────────────╮ │ FSharpOption<Unit> │ │ Value: <null> │ │ 00:00:33 #53 [Debug] watchWithFilter / Disposing watch stream / filter: │ │ FileName, LastWrite │ │ FSharpList<Tuple<String,String>> │ │ ( file1.txt, Created ) │ │ ( file1.txt, Changed ) │ │ ( file2.txt, Created ) │ │ ( file2.txt, Changed ) │ │ ( file_1.txt, Renamed ) │ │ ( file_1.txt, Deleted ) │ │ ( file_2.txt, Renamed ) │ │ ( file_2.txt, Deleted ) │ │ FSharpMap<String,String> │ │ - Key: file1.txt │ │ Value: Changed │ │ - Key: file2.txt │ │ Value: Changed │ │ - Key: file_1.txt │ │ Value: Deleted │ │ - Key: file_2.txt │ │ Value: Deleted │ │ FSharpOption<Unit> │ │ Value: <null> │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ #### full (test) │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── //// test let inline write path = async { let n = 2 for i = 1 to n do do! $"{i}" |> writeAllTextAsync (path </> $"file{i}.txt") for i = 1 to n do do! "" |> writeAllTextAsync (path </> $"file{i}.txt") for i = 1 to n do do! path </> $"file{i}.txt" |> moveFileAsync (path </> $"file_{i}.txt") |> Async.Ignore for i = 1 to n do do! $"{i}" |> writeAllTextAsync (path </> $"file_{i}.txt") for i = 1 to n do do! deleteFileAsync (path </> $"file_{i}.txt") |> Async.Ignore do! Async.Sleep 150 } let inline run () = let eventMap, eventList = testEventsSorted (watchDirectory (fun _ -> false)) write [[ "file1.txt", nameof FileSystemChangeType.Created "file1.txt", nameof FileSystemChangeType.Changed "file2.txt", nameof FileSystemChangeType.Created "file2.txt", nameof FileSystemChangeType.Changed "file_1.txt", nameof FileSystemChangeType.Changed "file_1.txt", nameof FileSystemChangeType.Renamed "file_1.txt", nameof FileSystemChangeType.Deleted "file_2.txt", nameof FileSystemChangeType.Changed "file_2.txt", nameof FileSystemChangeType.Renamed "file_2.txt", nameof FileSystemChangeType.Deleted ]] |> _sequenceEqual eventList [[ "file1.txt", nameof FileSystemChangeType.Changed "file2.txt", nameof FileSystemChangeType.Changed "file_1.txt", nameof FileSystemChangeType.Deleted "file_2.txt", nameof FileSystemChangeType.Deleted ]] |> Map.ofList |> _sequenceEqual eventMap run |> retryFn 3 |> _assertEqual (Some ()) ╭─[ 3.20s - stdout ]───────────────────────────────────────────────────────────╮ │ FSharpOption<Unit> │ │ Value: <null> │ │ 00:00:36 #54 [Debug] watchWithFilter / Disposing watch stream / filter: │ │ FileName, LastWrite │ │ FSharpList<Tuple<String,String>> │ │ ( file1.txt, Created ) │ │ ( file1.txt, Changed ) │ │ ( file2.txt, Created ) │ │ ( file2.txt, Changed ) │ │ ( file_1.txt, Changed ) │ │ ( file_1.txt, Renamed ) │ │ ( file_1.txt, Deleted ) │ │ ( file_2.txt, Changed ) │ │ ( file_2.txt, Renamed ) │ │ ( file_2.txt, Deleted ) │ │ FSharpMap<String,String> │ │ - Key: file1.txt │ │ Value: Changed │ │ - Key: file2.txt │ │ Value: Changed │ │ - Key: file_1.txt │ │ Value: Deleted │ │ - Key: file_2.txt │ │ Value: Deleted │ │ FSharpOption<Unit> │ │ Value: <null> │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ [NbConvertApp] Converting notebook FileSystem.dib.ipynb to html /opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/nbformat/__init__.py:96: MissingIDFieldWarning: Cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future. validate(nb) /opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/nbconvert/filters/highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3 return _pygments_highlight( [NbConvertApp] Writing 514878 bytes to FileSystem.dib.html ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ # Networking (Polyglot) │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── #!import ../../lib/fsharp/Notebooks.dib #!import ../../lib/fsharp/Testing.dib ── fsharp - import ───────────────────────────────────────────────────────────── #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Asp NetCore.Html.Abstractions.dll" #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Dot Net.Interactive.dll" #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Dot Net.Interactive.FSharp.dll" #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Dot Net.Interactive.Formatting.dll" open System open System.IO open System.Text open Microsoft.DotNet.Interactive.Formatting ── fsharp - import ───────────────────────────────────────────────────────────── #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Dot Net.Interactive.FSharp.dll" open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Dot Net.Interactive.dll" open type Microsoft.DotNet.Interactive.Kernel ── fsharp - import ───────────────────────────────────────────────────────────── //// test Formatter.ListExpansionLimit <- 100 ── fsharp - import ───────────────────────────────────────────────────────────── #r @"../../../../../../../.nuget/packages/expecto/10.2.1/lib/net6.0/Expecto.dll" ── fsharp - import ───────────────────────────────────────────────────────────── //// test type AssertExceptionFormatter (ex) = member _.Text = ex.ToString() .Replace("32m", "<span style=\"color: green;\">") .Replace("36m", "</span>") .Replace("31m", "<span style=\"color: red;\">") .Replace("\n", "<br/>\n") Formatter.Register<AssertExceptionFormatter> ((fun (x : AssertExceptionFormatter) -> x.Text), "text/html") ── fsharp - import ───────────────────────────────────────────────────────────── //// test let inline __expect fn log expected actual = if log then printfn $"{actual.ToDisplayString ()}" try "Testing.__expect" |> fn actual expected with :? Expecto.AssertException as ex -> AssertExceptionFormatter(ex).Display () |> ignore failwith (ex.GetType().FullName) let inline __contains log expected actual = __expect Expecto.Expect.contains log expected actual let inline _contains expected actual = __contains true expected actual let inline __assertEqual log expected actual = __expect Expecto.Expect.equal log expected actual let inline _assertEqual expected actual = __assertEqual true expected actual let inline __isGreaterThan log expected actual = __expect Expecto.Expect.isGreaterThan log ex... ── fsharp - import ───────────────────────────────────────────────────────────── //// test let inline __isBetween log a b actual = let inline isBetween actual (a, b) _ = __isGreaterThanOrEqual log a actual __isLessThanOrEqual log b actual __expect isBetween log (a, b) actual let inline _isBetween a b actual = __isBetween true a b actual ── fsharp ────────────────────────────────────────────────────────────────────── #r @"../../../../../../../.nuget/packages/argu/6.2.2/lib/netstandard2.0/Argu.dll" #r @"../../../../../../../.nuget/packages/system.commandline/2.0.0-beta4.22272.1/li b/net6.0/System.CommandLine.dll" ── fsharp ────────────────────────────────────────────────────────────────────── #!import ../../lib/fsharp/Common.fs #!import ../../lib/fsharp/CommonFSharp.fs #!import ../../lib/fsharp/Async.fs #!import ../../lib/fsharp/Runtime.fs ── fsharp - import ───────────────────────────────────────────────────────────── #if !INTERACTIVE namespace Polyglot #endif module Common = let nl = System.Environment.NewLine let q = @"""" let inline cons head tail = head :: tail module String = let inline contains (value : string) (input : string) = input.Contains value let inline endsWith (value : string) (input : string) = input.EndsWith value let inline padLeft totalWidth paddingChar (input : string) = input.PadLeft (totalWidth, paddingChar) let inline replace (oldValue : string) (newValue : string) (input : string) = input.Replace (oldValue, newValue) let inline split separator (input : string) = input.Split separator let inline spli... ── fsharp - import ───────────────────────────────────────────────────────────── #if !INTERACTIVE namespace Polyglot #endif module CommonFSharp = open Common /// ## getUnionCaseName let inline getUnionCaseName<'T> (x: 'T) = match Reflection.FSharpValue.GetUnionFields(x, typeof<'T>) with | case, _ -> case.Name ── fsharp - import ───────────────────────────────────────────────────────────── #if !INTERACTIVE namespace Polyglot #endif module Async = open Common /// ## choice let inline choice asyncs = async { let e = Event<_> () use cts = new System.Threading.CancellationTokenSource () let fn = asyncs |> Seq.map (fun a -> async { let! x = a e.Trigger x }) |> Async.Parallel |> Async.Ignore Async.Start (fn, cts.Token) let! result = Async.AwaitEvent e.Publish cts.Cancel () return result } /// ## map let inline map fn a = async { let! x = a return fn x } /// ## catch let inline catch a = a |> Async.Catch ... ── fsharp - import ───────────────────────────────────────────────────────────── #if !INTERACTIVE namespace Polyglot #endif module Runtime = open Common /// ## isWindows let isWindows = fun () -> System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform System.Runtime.InteropServices.OSPlatform.Windows |> memoize /// ## getExecutableSuffix let inline getExecutableSuffix () = if isWindows () then ".exe" else "" /// ## splitCommand type private CommandParseStep = | Start | Path of quoted: bool | Arguments let splitCommand (command: string) = let rec loop (path, args) chars step = match chars, step with | ('"' | '\'') :: tail, _ when path = "" -> loop (pat... ── fsharp ────────────────────────────────────────────────────────────────────── open Common ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## testPortOpen │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let inline testPortOpen port = async { let! ct = Async.CancellationToken use client = new System.Net.Sockets.TcpClient () try do! client.ConnectAsync ("127.0.0.1", port, ct) |> Async.awaitValueTaskUnit return true with ex -> trace Verbose (fun () -> $"testPortOpen / ex: {ex |> printException}") getLocals return false } ── fsharp ────────────────────────────────────────────────────────────────────── //// test testPortOpen 65536 |> Async.runWithTimeout 120 |> _assertEqual (Some false) ╭─[ 116.88ms - stdout ]────────────────────────────────────────────────────────╮ │ 00:00:00 #1 [Verbose] testPortOpen / ex: System.ArgumentOutOfRangeException: │ │ Specified argument was out of the range of valid values. (Parameter 'port') │ │ FSharpOption<Boolean> │ │ Value: False │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let inline testPortOpenTimeout timeout port = async { let! result = testPortOpen port |> Async.runWithTimeoutAsync timeout return match result with | None -> false | Some result -> result } ── fsharp ────────────────────────────────────────────────────────────────────── //// test testPortOpenTimeout 120 65535 |> Async.RunSynchronously |> _assertEqual false ╭─[ 80.16ms - stdout ]─────────────────────────────────────────────────────────╮ │ 00:00:00 #2 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ False │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## waitForPortAccess │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let inline waitForPortAccess timeout status port = let rec loop retry = async { let! isPortOpen = match timeout with | None -> testPortOpen port | Some timeout -> testPortOpenTimeout timeout port if isPortOpen = status then return retry else if retry % 100 = 0 then let getLocals () = $"port: {port} / retry: {retry} / {getLocals ()}" trace Verbose (fun () -> "waitForPortAccess") getLocals do! Async.Sleep 10 return! loop (retry + 1) } loop 0 ── fsharp ────────────────────────────────────────────────────────────────────── //// test let port = 5555 let inline lockPort () = async { trace Debug (fun () -> "_1") getLocals do! Async.Sleep 5000 use listener = new System.Net.Sockets.TcpListener (System.Net.IPAddress.Parse "127.0.0.1", port) trace Debug (fun () -> "_2") getLocals listener.Start () trace Debug (fun () -> "_3") getLocals do! Async.Sleep 2000 trace Debug (fun () -> "_4") getLocals listener.Stop () trace Debug (fun () -> "_5") getLocals } async { trace Debug (fun () -> "1") getLocals let! child = lockPort () |> Async.StartChild trace Debug (fun () -> "2") getLocals do! Async.Sleep 1 trace Debug (fun () -> "3") getLocals let! retries1 = waitForPortAccess None true port trace Debug (fun () -> "4") getLocals let! retries2 = waitForPortAccess None false port trace Debug (fun () -> "5") getLocals do! child trace Debug (fun () -> "6") getLocals return retries1, retries2 } |> Async.runWithTimeout 20000 |> function | Some (retries1, retries2) -> retries1 |> _isBetween (if Runtime.isWindows () then 2 else 2) (if Runtime.isWindows () then 5 else 1500) retries2 |> _isBetween (if Runtime.isWindows () then 80 else 80) (if Runtime.isWindows () then 150 else 600) true | _ -> false |> _assertEqual true ╭─[ 7.44s - stdout ]───────────────────────────────────────────────────────────╮ │ 00:00:00 #3 [Debug] 1 │ │ 00:00:00 #4 [Debug] _1 │ │ 00:00:00 #5 [Debug] 2 │ │ 00:00:00 #6 [Debug] 3 │ │ 00:00:00 #7 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:00 #8 [Verbose] waitForPortAccess / port: 5555 / retry: 0 │ │ 00:00:00 #9 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:00 #10 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:00 #11 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:00 #12 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:00 #13 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:00 #14 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:00 #15 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:00 #16 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:00 #17 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:00 #18 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:00 #19 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:00 #20 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:00 #21 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:00 #22 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:00 #23 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:00 #24 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:00 #25 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:00 #26 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:00 #27 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:00 #28 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:00 #29 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:00 #30 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:01 #31 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:01 #32 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:01 #33 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:01 #34 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:01 #35 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:01 #36 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:01 #37 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:01 #38 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:01 #39 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:01 #40 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:01 #41 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:01 #42 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:01 #43 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:01 #44 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:01 #45 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:01 #46 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:01 #47 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:01 #48 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:01 #49 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:01 #50 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:01 #51 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:01 #52 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:01 #53 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:01 #54 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:01 #55 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:01 #56 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:01 #57 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:01 #58 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:01 #59 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:01 #60 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:01 #61 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:01 #62 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:01 #63 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:01 #64 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:01 #65 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:01 #66 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:01 #67 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:01 #68 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:01 #69 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:01 #70 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:01 #71 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:01 #72 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:01 #73 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:01 #74 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:01 #75 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:01 #76 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:01 #77 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:01 #78 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:01 #79 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:01 #80 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:01 #81 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:01 #82 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:01 #83 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:01 #84 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:01 #85 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:01 #86 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:01 #87 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:01 #88 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:01 #89 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:01 #90 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:01 #91 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:01 #92 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:01 #93 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:01 #94 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:01 #95 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:01 #96 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:01 #97 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:01 #98 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:01 #99 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:01 #100 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:01 #101 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:01 #102 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:01 #103 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:01 #104 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:01 #105 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:01 #106 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:01 #107 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:01 #108 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:01 #109 [Verbose] waitForPortAccess / port: 5555 / retry: 100 │ │ 00:00:01 #110 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:01 #111 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:01 #112 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:01 #113 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:01 #114 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:01 #115 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:02 #116 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:02 #117 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:02 #118 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:02 #119 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:02 #120 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:02 #121 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:02 #122 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:02 #123 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:02 #124 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:02 #125 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:02 #126 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:02 #127 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:02 #128 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:02 #129 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:02 #130 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:02 #131 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:02 #132 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:02 #133 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:02 #134 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:02 #135 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:02 #136 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:02 #137 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:02 #138 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:02 #139 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:02 #140 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:02 #141 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:02 #142 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:02 #143 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:02 #144 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:02 #145 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:02 #146 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:02 #147 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:02 #148 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:02 #149 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:02 #150 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:02 #151 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:02 #152 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:02 #153 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:02 #154 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:02 #155 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:02 #156 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:02 #157 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:02 #158 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:02 #159 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:02 #160 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:02 #161 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:02 #162 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:02 #163 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:02 #164 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:02 #165 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:02 #166 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:02 #167 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:02 #168 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:02 #169 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:02 #170 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:02 #171 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:02 #172 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:02 #173 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:02 #174 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:02 #175 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:02 #176 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:02 #177 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:02 #178 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:02 #179 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:02 #180 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:02 #181 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:02 #182 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:02 #183 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:02 #184 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:02 #185 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:02 #186 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:02 #187 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:02 #188 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:02 #189 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:02 #190 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:02 #191 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:02 #192 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:02 #193 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:02 #194 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:02 #195 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:02 #196 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:02 #197 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:02 #198 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:03 #199 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:03 #200 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:03 #201 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:03 #202 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:03 #203 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:03 #204 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:03 #205 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:03 #206 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:03 #207 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:03 #208 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:03 #209 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:03 #210 [Verbose] waitForPortAccess / port: 5555 / retry: 200 │ │ 00:00:03 #211 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:03 #212 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:03 #213 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:03 #214 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:03 #215 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:03 #216 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:03 #217 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:03 #218 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:03 #219 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:03 #220 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:03 #221 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:03 #222 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:03 #223 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:03 #224 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:03 #225 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:03 #226 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:03 #227 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:03 #228 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:03 #229 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:03 #230 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:03 #231 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:03 #232 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:03 #233 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:03 #234 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:03 #235 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:03 #236 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:03 #237 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:03 #238 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:03 #239 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:03 #240 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:03 #241 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:03 #242 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:03 #243 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:03 #244 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:03 #245 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:03 #246 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:03 #247 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:03 #248 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:03 #249 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:03 #250 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:03 #251 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:03 #252 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:03 #253 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:03 #254 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:03 #255 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:03 #256 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:03 #257 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:03 #258 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:03 #259 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:03 #260 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:03 #261 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:03 #262 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:03 #263 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:03 #264 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:03 #265 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:03 #266 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:03 #267 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:03 #268 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:03 #269 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:03 #270 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:03 #271 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:03 #272 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:03 #273 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:03 #274 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:03 #275 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:03 #276 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:03 #277 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:03 #278 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:03 #279 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:03 #280 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:03 #281 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:03 #282 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:04 #283 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:04 #284 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:04 #285 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:04 #286 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:04 #287 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:04 #288 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:04 #289 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:04 #290 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:04 #291 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:04 #292 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:04 #293 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:04 #294 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:04 #295 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:04 #296 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:04 #297 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:04 #298 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:04 #299 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:04 #300 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:04 #301 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:04 #302 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:04 #303 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:04 #304 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:04 #305 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:04 #306 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:04 #307 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:04 #308 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:04 #309 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:04 #310 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:04 #311 [Verbose] waitForPortAccess / port: 5555 / retry: 300 │ │ 00:00:04 #312 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:04 #313 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:04 #314 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:04 #315 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:04 #316 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:04 #317 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:04 #318 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:04 #319 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:04 #320 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:04 #321 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:04 #322 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:04 #323 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:04 #324 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:04 #325 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:04 #326 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:04 #327 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:04 #328 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:04 #329 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:04 #330 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:04 #331 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:04 #332 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:04 #333 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:04 #334 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:04 #335 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:04 #336 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:04 #337 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:04 #338 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:04 #339 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:04 #340 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:04 #341 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:04 #342 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:04 #343 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:04 #344 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:04 #345 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:04 #346 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:04 #347 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:04 #348 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:04 #349 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:04 #350 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:04 #351 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:04 #352 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:04 #353 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:04 #354 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:04 #355 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:04 #356 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:04 #357 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:04 #358 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:04 #359 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:04 #360 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:04 #361 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:04 #362 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:04 #363 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:04 #364 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:04 #365 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:05 #366 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:05 #367 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:05 #368 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:05 #369 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:05 #370 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:05 #371 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:05 #372 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:05 #373 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:05 #374 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:05 #375 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:05 #376 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:05 #377 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:05 #378 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:05 #379 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:05 #380 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:05 #381 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:05 #382 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:05 #383 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:05 #384 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:05 #385 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:05 #386 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:05 #387 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:05 #388 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:05 #389 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:05 #390 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:05 #391 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:05 #392 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:05 #393 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:05 #394 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:05 #395 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:05 #396 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:05 #397 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:05 #398 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:05 #399 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:05 #400 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:05 #401 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:05 #402 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:05 #403 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:05 #404 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:05 #405 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:05 #406 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:05 #407 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:05 #408 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:05 #409 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:05 #410 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:05 #411 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:05 #412 [Verbose] waitForPortAccess / port: 5555 / retry: 400 │ │ 00:00:05 #413 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:05 #414 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:05 #415 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:05 #416 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:05 #417 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:05 #418 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:05 #419 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:05 #420 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:05 #421 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:05 #422 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:05 #423 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:05 #424 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:05 #425 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:05 #426 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:05 #427 [Debug] _2 │ │ 00:00:05 #428 [Debug] _3 │ │ 00:00:05 #429 [Debug] 4 │ │ 00:00:05 #430 [Verbose] waitForPortAccess / port: 5555 / retry: 0 │ │ 00:00:06 #431 [Verbose] waitForPortAccess / port: 5555 / retry: 100 │ │ 00:00:07 #432 [Debug] _4 │ │ 00:00:07 #433 [Debug] _5 │ │ 00:00:07 #434 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:07 #435 [Debug] 5 │ │ 00:00:07 #436 [Debug] 6 │ │ 415 │ │ 415 │ │ 415 │ │ 165 │ │ 165 │ │ 165 │ │ True │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── //// test let port = 5555 let inline lockPort () = async { trace Debug (fun () -> "_1") getLocals do! Async.Sleep 500 use listener = new System.Net.Sockets.TcpListener (System.Net.IPAddress.Parse "127.0.0.1", port) trace Debug (fun () -> "_2") getLocals listener.Start () trace Debug (fun () -> "_3") getLocals do! Async.Sleep 200 trace Debug (fun () -> "_4") getLocals listener.Stop () trace Debug (fun () -> "_5") getLocals } async { trace Debug (fun () -> "1") getLocals let! child = lockPort () |> Async.StartChild trace Debug (fun () -> "2") getLocals do! Async.Sleep 1 trace Debug (fun () -> "3") getLocals let! retries1 = waitForPortAccess (Some 60) true port trace Debug (fun () -> "4") getLocals let! retries2 = waitForPortAccess (Some 60) false port trace Debug (fun () -> "5") getLocals do! child trace Debug (fun () -> "6") getLocals return retries1, retries2 } |> Async.runWithTimeout 2000 |> function | Some (retries1, retries2) -> retries1 |> _isBetween (if Runtime.isWindows () then 4 else 2) (if Runtime.isWindows () then 15 else 150) retries2 |> _isBetween (if Runtime.isWindows () then 5 else 0) (if Runtime.isWindows () then 20 else 60) true | _ -> false |> _assertEqual true ╭─[ 1.17s - stdout ]───────────────────────────────────────────────────────────╮ │ 00:00:08 #437 [Debug] 1 │ │ 00:00:08 #438 [Debug] _1 │ │ 00:00:08 #439 [Debug] 2 │ │ 00:00:08 #440 [Debug] 3 │ │ 00:00:08 #441 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:08 #442 [Verbose] waitForPortAccess / port: 5555 / retry: 0 │ │ 00:00:08 #443 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:08 #444 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:08 #445 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:08 #446 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:08 #447 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:08 #448 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:08 #449 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:08 #450 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:08 #451 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:08 #452 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:08 #453 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:08 #454 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:08 #455 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:08 #456 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:08 #457 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:08 #458 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:08 #459 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:08 #460 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:08 #461 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:08 #462 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:08 #463 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:08 #464 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:08 #465 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:08 #466 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:08 #467 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:08 #468 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:08 #469 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:08 #470 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:08 #471 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:08 #472 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:08 #473 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:08 #474 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:08 #475 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:08 #476 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:08 #477 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:08 #478 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:08 #479 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:08 #480 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:08 #481 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:08 #482 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:08 #483 [Debug] _2 │ │ 00:00:08 #484 [Debug] _3 │ │ 00:00:08 #485 [Debug] 4 │ │ 00:00:08 #486 [Verbose] waitForPortAccess / port: 5555 / retry: 0 │ │ 00:00:08 #487 [Debug] _4 │ │ 00:00:08 #488 [Debug] _5 │ │ 00:00:08 #489 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:08 #490 [Debug] 5 │ │ 00:00:08 #491 [Debug] 6 │ │ 41 │ │ 41 │ │ 41 │ │ 16 │ │ 16 │ │ 16 │ │ True │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## getAvailablePort │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let inline getAvailablePort timeout initialPort = let rec loop port = async { let! isPortOpen = match timeout with | None -> testPortOpen port | Some timeout -> testPortOpenTimeout timeout port if not isPortOpen then return port else return! loop (port + 1) } loop initialPort ── fsharp ────────────────────────────────────────────────────────────────────── //// test let port = 5555 let inline lockPorts () = async { trace Debug (fun () -> "_1") getLocals use listener1 = new System.Net.Sockets.TcpListener (System.Net.IPAddress.Parse "127.0.0.1", port) use listener2 = new System.Net.Sockets.TcpListener (System.Net.IPAddress.Parse "127.0.0.1", port + 1) trace Debug (fun () -> "_2") getLocals listener1.Start () listener2.Start () trace Debug (fun () -> "_3") getLocals do! Async.Sleep 4000 trace Debug (fun () -> "_4") getLocals listener1.Stop () listener2.Stop () trace Debug (fun () -> "_5") getLocals } async { trace Debug (fun () -> "1") getLocals let! child = lockPorts () |> Async.StartChild trace Debug (fun () -> "2") getLocals do! Async.Sleep 240 trace Debug (fun () -> "3") getLocals let! availablePort = getAvailablePort None port trace Debug (fun () -> "4") getLocals let! retries = waitForPortAccess None false port trace Debug (fun () -> "5") getLocals do! child trace Debug (fun () -> "6") getLocals return availablePort, retries } |> Async.runWithTimeout 15000 |> function | Some (availablePort, retries) -> availablePort |> _assertEqual (port + 2) retries |> _isBetween (if Runtime.isWindows () then 100 else 100) (if Runtime.isWindows () then 150 else 1200) true | _ -> false |> _assertEqual true ╭─[ 4.29s - stdout ]───────────────────────────────────────────────────────────╮ │ 00:00:09 #492 [Debug] 1 │ │ 00:00:09 #493 [Debug] 2 │ │ 00:00:09 #494 [Debug] _1 │ │ 00:00:09 #495 [Debug] _2 │ │ 00:00:09 #496 [Debug] _3 │ │ 00:00:09 #497 [Debug] 3 │ │ 00:00:09 #498 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:09 #499 [Debug] 4 │ │ 00:00:09 #500 [Verbose] waitForPortAccess / port: 5555 / retry: 0 │ │ 00:00:10 #501 [Verbose] waitForPortAccess / port: 5555 / retry: 100 │ │ 00:00:12 #502 [Verbose] waitForPortAccess / port: 5555 / retry: 200 │ │ 00:00:13 #503 [Verbose] waitForPortAccess / port: 5555 / retry: 300 │ │ 00:00:13 #504 [Debug] _4 │ │ 00:00:13 #505 [Debug] _5 │ │ 00:00:13 #506 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:13 #507 [Debug] 5 │ │ 00:00:13 #508 [Debug] 6 │ │ 5557 │ │ 313 │ │ 313 │ │ 313 │ │ True │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── //// test let port = 5555 let inline lockPorts () = async { trace Debug (fun () -> "_1") getLocals use listener1 = new System.Net.Sockets.TcpListener (System.Net.IPAddress.Parse "127.0.0.1", port) use listener2 = new System.Net.Sockets.TcpListener (System.Net.IPAddress.Parse "127.0.0.1", port + 1) trace Debug (fun () -> "_2") getLocals listener1.Start () listener2.Start () trace Debug (fun () -> "_3") getLocals do! Async.Sleep 400 trace Debug (fun () -> "_4") getLocals listener1.Stop () listener2.Stop () trace Debug (fun () -> "_5") getLocals } async { trace Debug (fun () -> "1") getLocals let! child = lockPorts () |> Async.StartChild trace Debug (fun () -> "2") getLocals do! Async.Sleep 240 trace Debug (fun () -> "3") getLocals let! availablePort = getAvailablePort (Some 60) port trace Debug (fun () -> "4") getLocals let! retries = waitForPortAccess (Some 60) false port trace Debug (fun () -> "5") getLocals do! child trace Debug (fun () -> "6") getLocals return availablePort, retries } |> Async.runWithTimeout 1500 |> function | Some (availablePort, retries) -> availablePort |> _assertEqual (port + 2) retries |> _isBetween (if Runtime.isWindows () then 2 else 1) (if Runtime.isWindows () then 10 else 120) true | _ -> false |> _assertEqual true ╭─[ 682.18ms - stdout ]────────────────────────────────────────────────────────╮ │ 00:00:13 #509 [Debug] 1 │ │ 00:00:13 #510 [Debug] 2 │ │ 00:00:13 #511 [Debug] _1 │ │ 00:00:13 #512 [Debug] _2 │ │ 00:00:13 #513 [Debug] _3 │ │ 00:00:13 #514 [Debug] 3 │ │ 00:00:13 #515 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:13 #516 [Debug] 4 │ │ 00:00:13 #517 [Verbose] waitForPortAccess / port: 5555 / retry: 0 │ │ 00:00:14 #518 [Debug] _4 │ │ 00:00:14 #519 [Debug] _5 │ │ 00:00:14 #520 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:14 #521 [Debug] 5 │ │ 00:00:14 #522 [Debug] 6 │ │ 5557 │ │ 13 │ │ 13 │ │ 13 │ │ True │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ [NbConvertApp] Converting notebook Networking.dib.ipynb to html /opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/nbformat/__init__.py:96: MissingIDFieldWarning: Cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future. validate(nb) /opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/nbconvert/filters/highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3 return _pygments_highlight( [NbConvertApp] Writing 379587 bytes to Networking.dib.html ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ # Runtime (Polyglot) │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── #!import ../../lib/fsharp/Notebooks.dib #!import ../../lib/fsharp/Testing.dib ── fsharp - import ───────────────────────────────────────────────────────────── #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Asp NetCore.Html.Abstractions.dll" #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Dot Net.Interactive.dll" #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Dot Net.Interactive.FSharp.dll" #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Dot Net.Interactive.Formatting.dll" open System open System.IO open System.Text open Microsoft.DotNet.Interactive.Formatting ── fsharp - import ───────────────────────────────────────────────────────────── #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Dot Net.Interactive.FSharp.dll" open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Dot Net.Interactive.dll" open type Microsoft.DotNet.Interactive.Kernel ── fsharp - import ───────────────────────────────────────────────────────────── //// test Formatter.ListExpansionLimit <- 100 ── fsharp - import ───────────────────────────────────────────────────────────── #r @"../../../../../../../.nuget/packages/expecto/10.2.1/lib/net6.0/Expecto.dll" ── fsharp - import ───────────────────────────────────────────────────────────── //// test type AssertExceptionFormatter (ex) = member _.Text = ex.ToString() .Replace("32m", "<span style=\"color: green;\">") .Replace("36m", "</span>") .Replace("31m", "<span style=\"color: red;\">") .Replace("\n", "<br/>\n") Formatter.Register<AssertExceptionFormatter> ((fun (x : AssertExceptionFormatter) -> x.Text), "text/html") ── fsharp - import ───────────────────────────────────────────────────────────── //// test let inline __expect fn log expected actual = if log then printfn $"{actual.ToDisplayString ()}" try "Testing.__expect" |> fn actual expected with :? Expecto.AssertException as ex -> AssertExceptionFormatter(ex).Display () |> ignore failwith (ex.GetType().FullName) let inline __contains log expected actual = __expect Expecto.Expect.contains log expected actual let inline _contains expected actual = __contains true expected actual let inline __assertEqual log expected actual = __expect Expecto.Expect.equal log expected actual let inline _assertEqual expected actual = __assertEqual true expected actual let inline __isGreaterThan log expected actual = __expect Expecto.Expect.isGreaterThan log ex... ── fsharp - import ───────────────────────────────────────────────────────────── //// test let inline __isBetween log a b actual = let inline isBetween actual (a, b) _ = __isGreaterThanOrEqual log a actual __isLessThanOrEqual log b actual __expect isBetween log (a, b) actual let inline _isBetween a b actual = __isBetween true a b actual ── fsharp ────────────────────────────────────────────────────────────────────── #r @"../../../../../../../.nuget/packages/fsharp.control.asyncseq/3.2.1/lib/netstan dard2.1/FSharp.Control.AsyncSeq.dll" #r @"../../../../../../../.nuget/packages/system.reactive/6.0.1-preview.1/lib/net6. 0/System.Reactive.dll" #r @"../../../../../../../.nuget/packages/system.reactive.linq/6.0.1-preview.1/lib/ netstandard2.0/System.Reactive.Linq.dll" #r @"../../../../../../../.nuget/packages/argu/6.2.2/lib/netstandard2.0/Argu.dll" #r @"../../../../../../../.nuget/packages/system.commandline/2.0.0-beta4.22272.1/li b/net6.0/System.CommandLine.dll" ── fsharp ────────────────────────────────────────────────────────────────────── #!import ../../lib/fsharp/Common.fs #!import ../../lib/fsharp/CommonFSharp.fs #!import ../../lib/fsharp/Async.fs #!import ../../lib/fsharp/AsyncSeq.fs #!import ../../lib/fsharp/Runtime.fs #!import ../../lib/fsharp/FileSystem.fs ── fsharp - import ───────────────────────────────────────────────────────────── #if !INTERACTIVE namespace Polyglot #endif module Common = let nl = System.Environment.NewLine let q = @"""" let inline cons head tail = head :: tail module String = let inline contains (value : string) (input : string) = input.Contains value let inline endsWith (value : string) (input : string) = input.EndsWith value let inline padLeft totalWidth paddingChar (input : string) = input.PadLeft (totalWidth, paddingChar) let inline replace (oldValue : string) (newValue : string) (input : string) = input.Replace (oldValue, newValue) let inline split separator (input : string) = input.Split separator let inline spli... ── fsharp - import ───────────────────────────────────────────────────────────── #if !INTERACTIVE namespace Polyglot #endif module CommonFSharp = open Common /// ## getUnionCaseName let inline getUnionCaseName<'T> (x: 'T) = match Reflection.FSharpValue.GetUnionFields(x, typeof<'T>) with | case, _ -> case.Name ── fsharp - import ───────────────────────────────────────────────────────────── #if !INTERACTIVE namespace Polyglot #endif module Async = open Common /// ## choice let inline choice asyncs = async { let e = Event<_> () use cts = new System.Threading.CancellationTokenSource () let fn = asyncs |> Seq.map (fun a -> async { let! x = a e.Trigger x }) |> Async.Parallel |> Async.Ignore Async.Start (fn, cts.Token) let! result = Async.AwaitEvent e.Publish cts.Cancel () return result } /// ## map let inline map fn a = async { let! x = a return fn x } /// ## catch let inline catch a = a |> Async.Catch ... ── fsharp - import ───────────────────────────────────────────────────────────── #if !INTERACTIVE namespace Polyglot #endif module AsyncSeq = open Common /// ## subscribeEvent let inline subscribeEvent (event: IEvent<'H, 'A>) map = let observable = System.Reactive.Linq.Observable.FromEventPattern<'H, 'A>(event.AddHandler, event.RemoveHandler) System.Reactive.Linq.Observable.Select (observable, fun event -> map event.EventArgs) |> FSharp.Control.AsyncSeq.ofObservableBuffered let subscribeToken (token : System.Threading.CancellationToken) = let tcs = new System.Threading.Tasks.TaskCompletionSource () System.Action tcs.SetResult |> token.Register |> ignore let start = System.DateTime.Now.Ticks FSharp.Control.AsyncSeq.unfoldAsync (fun (... ── fsharp - import ───────────────────────────────────────────────────────────── #if !INTERACTIVE namespace Polyglot #endif module Runtime = open Common /// ## isWindows let isWindows = fun () -> System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform System.Runtime.InteropServices.OSPlatform.Windows |> memoize /// ## getExecutableSuffix let inline getExecutableSuffix () = if isWindows () then ".exe" else "" /// ## splitCommand type private CommandParseStep = | Start | Path of quoted: bool | Arguments let splitCommand (command: string) = let rec loop (path, args) chars step = match chars, step with | ('"' | '\'') :: tail, _ when path = "" -> loop (pat... ── fsharp - import ───────────────────────────────────────────────────────────── #if !INTERACTIVE namespace Polyglot #endif module FileSystem = open Common /// ## Operators module Operators = let inline (</>) a b = System.IO.Path.Combine (a, b) open Operators /// ## createTempDirectoryName let inline createTempDirectoryName () = let root = System.Reflection.Assembly.GetEntryAssembly().GetName().Name System.IO.Path.GetTempPath () </> $"!{root}" </> string (newGuidFromDateTime System.DateTime.Now) /// ## createTempDirectory let inline createTempDirectory () = let tempFolder = createTempDirectoryName () let result = System.IO.Directory.CreateDirectory tempFolder if not result.Exists then let ge... ── fsharp ────────────────────────────────────────────────────────────────────── open Common ── fsharp ────────────────────────────────────────────────────────────────────── //// test open FileSystem.Operators ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## isWindows │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let isWindows = fun () -> System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform System.Runtime.InteropServices.OSPlatform.Windows |> memoize ── fsharp ────────────────────────────────────────────────────────────────────── //// test isWindows () ╭─[ 55.51ms - return value ]───────────────────────────────────────────────────╮ │ <div class="dni-plaintext"><pre>False</pre></div><style> │ │ .dni-code-hint { │ │ font-style: italic; │ │ overflow: hidden; │ │ white-space: nowrap; │ │ } │ │ .dni-treeview { │ │ white-space: nowrap; │ │ } │ │ .dni-treeview td { │ │ vertical-align: top; │ │ text-align: start; │ │ } │ │ details.dni-treeview { │ │ padding-left: 1em; │ │ } │ │ table td { │ │ text-align: start; │ │ } │ │ table tr { │ │ vertical-align: top; │ │ margin: 0em 0px; │ │ } │ │ table tr td pre │ │ { │ │ vertical-align: top !important; │ │ margin: 0em 0px !important; │ │ } │ │ table th { │ │ text-align: start; │ │ } │ │ </style> │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## getExecutableSuffix │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let inline getExecutableSuffix () = if isWindows () then ".exe" else "" ── fsharp ────────────────────────────────────────────────────────────────────── //// test getExecutableSuffix () ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## splitCommand │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── type private CommandParseStep = | Start | Path of quoted: bool | Arguments let splitCommand (command: string) = let rec loop (path, args) chars step = match chars, step with | ('"' | '\'') :: tail, _ when path = "" -> loop (path, args) tail (Path true) | ('"' | '\'') :: tail, Path true -> loop (path, args) tail (Path false) | ' ' :: tail, Path true -> loop ($"{path} ", args) tail (Path true) | ' ' :: tail, (Start | Path _) -> loop (path, args) tail Arguments | char :: tail, Arguments -> loop (path, $"{args}{char}") tail Arguments | char :: tail, _ -> loop ($"{path}{char}", args) tail step | _, _ -> path |> String.replace @"\" "/", args loop ("", "") (command |> Seq.toList) Start ── fsharp ────────────────────────────────────────────────────────────────────── //// test splitCommand "" |> _assertEqual ("", "") splitCommand "/a/b/c" |> _assertEqual ("/a/b/c", "") splitCommand "cat file.txt" |> _assertEqual ("cat", "file.txt") splitCommand """..\..\file.exe file1.txt file2.txt""" |> _assertEqual ("../../file.exe", "file1.txt file2.txt") splitCommand @"c:\dir\file.exe ""file1.txt file2.txt""" |> _assertEqual ("c:/dir/file.exe", @"""file1.txt file2.txt""") splitCommand @"""..\..\dir name\file.exe"" ""file 1.txt"" file2.txt" |> _assertEqual ("../../dir name/file.exe", @"""file 1.txt"" file2.txt") splitCommand @"""..\..\file 1.exe"" -c \\""echo 1\\""" |> _assertEqual ("../../file 1.exe", @"-c \\""echo 1\\""") splitCommand @"..\..\file 1.exe -c \\""echo 1\\""" |> _assertEqual ("../../file", @"1.exe -c \\""echo 1\\""") ╭─[ 51.86ms - stdout ]─────────────────────────────────────────────────────────╮ │ ( , ) │ │ ( /a/b/c, ) │ │ ( cat, file.txt ) │ │ ( ../../file.exe, file1.txt file2.txt ) │ │ ( c:/dir/file.exe, "file1.txt file2.txt" ) │ │ ( ../../dir name/file.exe, "file 1.txt" file2.txt ) │ │ ( ../../file 1.exe, -c \\"echo 1\\" ) │ │ ( ../../file, 1.exe -c \\"echo 1\\" ) │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## executeAsync │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── type ExecutionLine = { ProcessId : int Line : string Error : bool } type ExecutionOptions = { Command : string WorkingDirectory : string option CancellationToken : System.Threading.CancellationToken option OnLine : (ExecutionLine -> Async<unit>) option } let inline executeWithOptionsAsync (options : ExecutionOptions) = async { let fileName, arguments = options.Command |> splitCommand let workingDirectory = options.WorkingDirectory |> Option.defaultValue "" trace Debug (fun () -> $"executeAsync / options: {options}") getLocals let startInfo = System.Diagnostics.ProcessStartInfo ( Arguments = arguments, CreateNoWindow = true, FileName = fileName, RedirectStandardError = true, RedirectStandardOutput = true, StandardOutputEncoding = System.Text.Encoding.UTF8, UseShellExecute = false, WorkingDirectory = workingDirectory ) use proc = new System.Diagnostics.Process (StartInfo = startInfo) let output = System.Collections.Concurrent.ConcurrentStack<string> () let inline event error (e: System.Diagnostics.DataReceivedEventArgs) = async { if e.Data <> null then match options.OnLine with | Some onLine -> do! onLine { ProcessId = proc.Id Line = e.Data Error = error } | None -> () trace Verbose (fun () -> $"> {e.Data}") Common.getLocals output.Push $"{ if error then '[['.ToString() else System.String.Empty }{ e.Data }{ if error then ']]'.ToString() else System.String.Empty }" } proc.OutputDataReceived.Add (event false >> Async.StartImmediate) proc.ErrorDataReceived.Add (event true >> Async.StartImmediate) if proc.Start () |> not then failwith $"executeAsync / proc.Start () error" proc.BeginErrorReadLine () proc.BeginOutputReadLine () let! ct = options.CancellationToken |> Option.defaultValue System.Threading.CancellationToken.None |> Async.mergeCancellationTokenWithDefaultAsync use reg = ct.Register (fun _ -> if not proc.HasExited then proc.Kill () ) let! exitCode = async { try do! proc.WaitForExitAsync ct |> Async.AwaitTask return proc.ExitCode with :? System.Threading.Tasks.TaskCanceledException as ex -> trace Warning (fun () -> $"executeAsync / WaitForExitAsync / ex: {ex |> printException}") getLocals ex |> printException |> output.Push return System.Int32.MinValue } let output = output |> Seq.rev |> String.concat "\n" trace Debug (fun () -> $"executeAsync / exitCode: {exitCode} / output.Length: {output.Length}" ) getLocals return exitCode, output } let inline executeAsync command = executeWithOptionsAsync { Command = command CancellationToken = None OnLine = None WorkingDirectory = None } ── fsharp ────────────────────────────────────────────────────────────────────── //// test let tempFolder = FileSystem.createTempDirectory () let fileName = "test.txt" let path = tempFolder </> fileName async { let! exitCode, result = executeAsync @$"pwsh -c ""Get-Content {path}""" exitCode |> _assertEqual 1 result |> _stringContains "not exist" do! "0" |> FileSystem.writeAllTextAsync path return! executeWithOptionsAsync { Command = @$"pwsh -c ""Get-Content {fileName}""" CancellationToken = None OnLine = None WorkingDirectory = Some tempFolder } } |> Async.runWithTimeout 10000 |> function | Some (exitCode, output) -> exitCode |> _assertEqual 0 output |> _assertEqual "0" true | _ -> false |> _assertEqual true ╭─[ 1.38s - stdout ]───────────────────────────────────────────────────────────╮ │ 00:00:00 #1 [Debug] executeAsync / options: { Command = │ │ "pwsh -c "Get-Content │ │ /tmp/!dotnet-repl/20240325-2018-4256-5693-5958c2784b74/test.txt"" │ │ WorkingDirectory = None │ │ CancellationToken = None │ │ OnLine = None } │ │ 00:00:00 #2 [Verbose] > Get-Content: Cannot find path │ │ '/tmp/!dotnet-repl/20240325-2018-4256-5693-5958c2784b74/test.txt' because it │ │ does not exist. │ │ 00:00:00 #3 [Debug] executeAsync / exitCode: 1 / output.Length: 142 │ │ 1 │ │ [Get-Content: Cannot find path │ │ '/tmp/!dotnet-repl/20240325-2018-4256-5693-5958c2784b74/test.txt' because it │ │ does not exist.] │ │ 00:00:00 #4 [Debug] executeAsync / options: { Command = "pwsh -c │ │ "Get-Content test.txt"" │ │ WorkingDirectory = │ │ Some "/tmp/!dotnet-repl/20240325-2018-4256-5693-5958c2784b74" │ │ CancellationToken = None │ │ OnLine = None } │ │ 00:00:00 #5 [Verbose] > 0 │ │ 00:00:01 #6 [Debug] executeAsync / exitCode: 0 / output.Length: 1 │ │ 0 │ │ 0 │ │ True │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── //// test let tempFolder = FileSystem.createTempDirectory () let path = tempFolder </> "test.txt" let command = @$"pwsh -c ""Get-Content {path}""" async { do! "0" |> FileSystem.writeAllTextAsync path let cts = new System.Threading.CancellationTokenSource () trace Debug (fun () -> "1") getLocals let! result = executeWithOptionsAsync { Command = command CancellationToken = Some cts.Token OnLine = None WorkingDirectory = None } |> Async.StartChild trace Debug (fun () -> "2") getLocals do! Async.Sleep 100 trace Debug (fun () -> "3") getLocals cts.Cancel () trace Debug (fun () -> "4") getLocals let! exitCode, output = result trace Debug (fun () -> "5") getLocals return exitCode, output } |> Async.runWithTimeout 10000 |> function | Some (exitCode, output) -> exitCode |> _assertEqual -2147483648 output |> _assertEqual "System.Threading.Tasks.TaskCanceledException: A task was canceled." true | _ -> false |> _assertEqual true ╭─[ 409.89ms - stdout ]────────────────────────────────────────────────────────╮ │ 00:00:01 #7 [Debug] 1 │ │ 00:00:01 #9 [Debug] 2 │ │ 00:00:01 #8 [Debug] executeAsync / options: { Command = │ │ "pwsh -c "Get-Content │ │ /tmp/!dotnet-repl/20240325-2018-4390-9054-953a463c8043/test.txt"" │ │ WorkingDirectory = None │ │ CancellationToken = Some System.Threading.CancellationToken │ │ OnLine = None } │ │ 00:00:01 #10 [Debug] 3 │ │ 00:00:01 #11 [Debug] 4 │ │ 00:00:01 #12 [Warning] executeAsync / WaitForExitAsync / ex: │ │ System.Threading.Tasks.TaskCanceledException: A task was canceled. │ │ 00:00:01 #13 [Debug] executeAsync / exitCode: -2147483648 / output.Length: │ │ 66 │ │ 00:00:01 #14 [Debug] 5 │ │ -2147483648 │ │ System.Threading.Tasks.TaskCanceledException: A task was canceled. │ │ True │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## splitArgs │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let inline splitArgs commandLine = commandLine |> System.CommandLine.Parsing.CommandLineStringSplitter.Instance.Split ── fsharp ────────────────────────────────────────────────────────────────────── //// test """a b "c d" e""" |> splitArgs |> Seq.toArray |> _assertEqual [[| "a"; "b"; "c d"; "e" |]] ╭─[ 16.55ms - stdout ]─────────────────────────────────────────────────────────╮ │ [ a, b, c d, e ] │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## parseArgs │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let inline parseArgs<'T when 'T :> Argu.IArgParserTemplate> args = let assemblyName = System.Reflection.Assembly.GetEntryAssembly().GetName().Name let errorHandler : Argu.IExiter = if [[ "Microsoft.DotNet.Interactive.App"; "dotnet-repl" ]] |> List.contains assemblyName then Argu.ExceptionExiter () else Argu.ProcessExiter (function Argu.ErrorCode.HelpText -> None | _ -> Some System.ConsoleColor.Red) let parser = Argu.ArgumentParser.Create<'T> ( programName = $"{assemblyName}{getExecutableSuffix ()}", errorHandler = errorHandler ) parser.ParseCommandLine args ── fsharp ────────────────────────────────────────────────────────────────────── //// test [[<RequireQualifiedAccess>]] type Arguments = | [[<Argu.ArguAttributes.MainCommand; Argu.ArguAttributes.ExactlyOnce; Argu.ArguAttributes.Last>]] Paths of paths : string list interface Argu.IArgParserTemplate with member s.Usage = match s with | Paths _ -> nameof Paths ── fsharp ────────────────────────────────────────────────────────────────────── //// test Argu.ArgumentParser.Create<Arguments>().PrintUsage () ╭─[ 61.16ms - return value ]───────────────────────────────────────────────────╮ │ USAGE: dotnet-repl [--help] <paths>... │ │ │ │ PATHS: │ │ │ │ <paths>... Paths │ │ │ │ OPTIONS: │ │ │ │ --help display this list of options. │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── //// test fun () -> parseArgs<Arguments> [[||]] |> ignore |> _throwsC (fun ex _ -> printException ex |> _stringContains "Argu.ArguParseException: ERROR: missing parameter '<paths>...'." ) ╭─[ 35.86ms - stdout ]─────────────────────────────────────────────────────────╮ │ FSI_0030+it@3-246 │ │ Argu.ArguParseException: ERROR: missing parameter '<paths>...'. │ │ USAGE: dotnet-repl [--help] <paths>... │ │ │ │ PATHS: │ │ │ │ <paths>... Paths │ │ │ │ OPTIONS: │ │ │ │ --help display this list of options. │ │ │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let inline parseAllArgs<'T when 'T :> Argu.IArgParserTemplate> args = args |> parseArgs<'T> |> fun results -> results.GetAllResults () ── fsharp ────────────────────────────────────────────────────────────────────── //// test [[<RequireQualifiedAccess>]] type Arguments = | [[<Argu.ArguAttributes.MainCommand; Argu.ArguAttributes.ExactlyOnce; Argu.ArguAttributes.Last>]] Paths of paths : string list interface Argu.IArgParserTemplate with member s.Usage = match s with | Paths _ -> nameof Paths parseAllArgs<Arguments> [[| "a b"; "c" |]] |> _assertEqual [[ Arguments.Paths [[ "a b"; "c" ]] ]] ╭─[ 61.72ms - stdout ]─────────────────────────────────────────────────────────╮ │ FSharpList<Arguments> │ │ - paths: [ a b, c ] │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let inline parseArgsMap<'T when 'T :> Argu.IArgParserTemplate> args = args |> parseAllArgs<'T> |> List.groupBy CommonFSharp.getUnionCaseName<'T> |> Map.ofList ── fsharp ────────────────────────────────────────────────────────────────────── //// test parseArgsMap<Arguments> [[| "a b"; "c" |]] |> _assertEqual ( [[ nameof Arguments.Paths, [[ Arguments.Paths [[ "a b"; "c" ]] ]] ]] |> Map.ofList ) ╭─[ 35.55ms - stdout ]─────────────────────────────────────────────────────────╮ │ FSharpMap<String,FSharpList<Arguments>> │ │ - Key: Paths │ │ Value: FSharpList<Arguments> │ │ - paths: [ a b, c ] │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ [NbConvertApp] Converting notebook Runtime.dib.ipynb to html /opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/nbformat/__init__.py:96: MissingIDFieldWarning: Cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future. validate(nb) /opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/nbconvert/filters/highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3 return _pygments_highlight( [NbConvertApp] Writing 339682 bytes to Runtime.dib.html ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ # Toml (Polyglot) │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── #!import ../../lib/fsharp/Notebooks.dib #!import ../../lib/fsharp/Testing.dib ── fsharp - import ───────────────────────────────────────────────────────────── #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Asp NetCore.Html.Abstractions.dll" #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Dot Net.Interactive.dll" #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Dot Net.Interactive.FSharp.dll" #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Dot Net.Interactive.Formatting.dll" open System open System.IO open System.Text open Microsoft.DotNet.Interactive.Formatting ── fsharp - import ───────────────────────────────────────────────────────────── #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Dot Net.Interactive.FSharp.dll" open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Dot Net.Interactive.dll" open type Microsoft.DotNet.Interactive.Kernel ── fsharp - import ───────────────────────────────────────────────────────────── //// test Formatter.ListExpansionLimit <- 100 ── fsharp - import ───────────────────────────────────────────────────────────── #r @"../../../../../../../.nuget/packages/expecto/10.2.1/lib/net6.0/Expecto.dll" ── fsharp - import ───────────────────────────────────────────────────────────── //// test type AssertExceptionFormatter (ex) = member _.Text = ex.ToString() .Replace("32m", "<span style=\"color: green;\">") .Replace("36m", "</span>") .Replace("31m", "<span style=\"color: red;\">") .Replace("\n", "<br/>\n") Formatter.Register<AssertExceptionFormatter> ((fun (x : AssertExceptionFormatter) -> x.Text), "text/html") ── fsharp - import ───────────────────────────────────────────────────────────── //// test let inline __expect fn log expected actual = if log then printfn $"{actual.ToDisplayString ()}" try "Testing.__expect" |> fn actual expected with :? Expecto.AssertException as ex -> AssertExceptionFormatter(ex).Display () |> ignore failwith (ex.GetType().FullName) let inline __contains log expected actual = __expect Expecto.Expect.contains log expected actual let inline _contains expected actual = __contains true expected actual let inline __assertEqual log expected actual = __expect Expecto.Expect.equal log expected actual let inline _assertEqual expected actual = __assertEqual true expected actual let inline __isGreaterThan log expected actual = __expect Expecto.Expect.isGreaterThan log ex... ── fsharp - import ───────────────────────────────────────────────────────────── //// test let inline __isBetween log a b actual = let inline isBetween actual (a, b) _ = __isGreaterThanOrEqual log a actual __isLessThanOrEqual log b actual __expect isBetween log (a, b) actual let inline _isBetween a b actual = __isBetween true a b actual ── fsharp ────────────────────────────────────────────────────────────────────── #r @"../../../../../../../.nuget/packages/tomlyn/0.17.0/lib/net7.0/Tomlyn.dll" ── fsharp ────────────────────────────────────────────────────────────────────── #!import ../../lib/fsharp/Common.fs ── fsharp - import ───────────────────────────────────────────────────────────── #if !INTERACTIVE namespace Polyglot #endif module Common = let nl = System.Environment.NewLine let q = @"""" let inline cons head tail = head :: tail module String = let inline contains (value : string) (input : string) = input.Contains value let inline endsWith (value : string) (input : string) = input.EndsWith value let inline padLeft totalWidth paddingChar (input : string) = input.PadLeft (totalWidth, paddingChar) let inline replace (oldValue : string) (newValue : string) (input : string) = input.Replace (oldValue, newValue) let inline split separator (input : string) = input.Split separator let inline spli... ── fsharp ────────────────────────────────────────────────────────────────────── open Common ── fsharp ────────────────────────────────────────────────────────────────────── let inline (/./) (table: Tomlyn.Model.TomlTable) (key: string) : Tomlyn.Model.TomlTable = table.[[key]] :?> Tomlyn.Model.TomlTable let inline (/../) (table: Tomlyn.Model.TomlTable) (key: string) : 'T seq = table.[[key]] :?> Tomlyn.Model.TomlArray |> Seq.cast<'T> ── fsharp ────────────────────────────────────────────────────────────────────── //// test let tomlContent = """ [[extension]] paths = [["/a", "/b"]] """ let toml = Tomlyn.Toml.Parse tomlContent let tomlModel = Tomlyn.Toml.ToModel toml let paths : string seq = tomlModel /./ "extension" /../ "paths" paths |> Seq.toList |> _assertEqual [[ "/a"; "/b" ]] ╭─[ 160.23ms - stdout ]────────────────────────────────────────────────────────╮ │ [ /a, /b ] │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ [NbConvertApp] Converting notebook Toml.dib.ipynb to html /opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/nbformat/__init__.py:96: MissingIDFieldWarning: Cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future. validate(nb) /opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/nbconvert/filters/highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3 return _pygments_highlight( [NbConvertApp] Writing 277989 bytes to Toml.dib.html 00:00:00 #1 [Debug] writeDibCode / output: Fs / path: Common.dib 00:00:00 #1 [Debug] writeDibCode / output: Fs / path: CommonFSharp.dib 00:00:00 #1 [Debug] writeDibCode / output: Fs / path: Async.dib 00:00:00 #1 [Debug] writeDibCode / output: Fs / path: AsyncSeq.dib 00:00:00 #4 [Debug] parseDibCode / output: Fs / file: AsyncSeq.dib 00:00:00 #3 [Debug] parseDibCode / output: Fs / file: Async.dib 00:00:00 #3 [Debug] parseDibCode / output: Fs / file: Common.dib 00:00:00 #5 [Debug] parseDibCode / output: Fs / file: CommonFSharp.dib 00:00:00 #9 [Debug] writeDibCode / output: Fs / path: Networking.dib 00:00:00 #8 [Debug] writeDibCode / output: Fs / path: Crypto.dib 00:00:00 #8 [Debug] writeDibCode / output: Fs / path: FileSystem.dib 00:00:00 #10 [Debug] parseDibCode / output: Fs / file: Networking.dib 00:00:00 #12 [Debug] parseDibCode / output: Fs / file: FileSystem.dib 00:00:00 #11 [Debug] parseDibCode / output: Fs / file: Crypto.dib 00:00:00 #8 [Debug] writeDibCode / output: Fs / path: Threading.dib 00:00:00 #13 [Debug] writeDibCode / output: Fs / path: Runtime.dib 00:00:00 #15 [Debug] parseDibCode / output: Fs / file: Runtime.dib 00:00:00 #14 [Debug] parseDibCode / output: Fs / file: Threading.dib 00:00:00 #16 [Debug] writeDibCode / output: Fs / path: Toml.dib 00:00:00 #17 [Debug] parseDibCode / output: Fs / file: Toml.dib
In [ ]:
{ . "$ScriptDir/../lib/rust/fable/build.ps1" } | Invoke-Block
── pwsh ──────────────────────────────────────────────────────────────────────── . ../../../scripts/nbs_header.ps1 . ../../../scripts/core.ps1 ── pwsh ──────────────────────────────────────────────────────────────────────── dotnet fable --optimize --lang rs --extension .rs ╭─[ 5.79s - stdout ]───────────────────────────────────────────────────────────╮ │ Fable 4.14.0: F# to Rust compiler (status: alpha) │ │ │ │ Thanks to the contributor! @KevinLamb │ │ Stand with Ukraine! https://standwithukraine.com.ua/ │ │ │ │ Parsing fable-library-rust.fsproj... │ │ .> dotnet restore fable-library-rust.fable-temp.csproj │ │ -p:FABLE_COMPILER=true -p:FABLE_COMPILER_4=true -p:FABLE_COMPILER_RUST=true │ │ Determining projects to restore... │ │ Restored │ │ /home/runner/work/polyglot/polyglot/lib/rust/fable/fable-library-rust.fable- │ │ temp.csproj (in 67 ms). │ │ .> dotnet restore │ │ /home/runner/work/polyglot/polyglot/lib/rust/fable/fable-library-rust.fsproj │ │ Determining projects to restore... │ │ Restored │ │ /home/runner/work/polyglot/polyglot/lib/rust/fable/fable-library-rust.fsproj │ │ (in 244 ms). │ │ Project and references (1 source files) parsed in 4367ms │ │ │ │ Started Fable compilation... │ │ │ │ Fable compilation finished in 381ms │ │ │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ [NbConvertApp] Converting notebook build.dib.ipynb to html /opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/nbformat/__init__.py:96: MissingIDFieldWarning: Cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future. validate(nb) /opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/nbconvert/filters/highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3 return _pygments_highlight( [NbConvertApp] Writing 273199 bytes to build.dib.html
In [ ]:
{ . "$ScriptDir/../apps/spiral/build.ps1" } | Invoke-Block
── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ # Supervisor (Polyglot) │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── #!import ../../lib/fsharp/Notebooks.dib #!import ../../lib/fsharp/Testing.dib ── fsharp - import ───────────────────────────────────────────────────────────── #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Asp NetCore.Html.Abstractions.dll" #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Dot Net.Interactive.dll" #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Dot Net.Interactive.FSharp.dll" #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Dot Net.Interactive.Formatting.dll" open System open System.IO open System.Text open Microsoft.DotNet.Interactive.Formatting ── fsharp - import ───────────────────────────────────────────────────────────── #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Dot Net.Interactive.FSharp.dll" open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Dot Net.Interactive.dll" open type Microsoft.DotNet.Interactive.Kernel ── fsharp - import ───────────────────────────────────────────────────────────── //// test Formatter.ListExpansionLimit <- 100 ── fsharp - import ───────────────────────────────────────────────────────────── #r @"../../../../../../../.nuget/packages/expecto/10.2.1/lib/net6.0/Expecto.dll" ── fsharp - import ───────────────────────────────────────────────────────────── //// test type AssertExceptionFormatter (ex) = member _.Text = ex.ToString() .Replace("32m", "<span style=\"color: green;\">") .Replace("36m", "</span>") .Replace("31m", "<span style=\"color: red;\">") .Replace("\n", "<br/>\n") Formatter.Register<AssertExceptionFormatter> ((fun (x : AssertExceptionFormatter) -> x.Text), "text/html") ── fsharp - import ───────────────────────────────────────────────────────────── //// test let inline __expect fn log expected actual = if log then printfn $"{actual.ToDisplayString ()}" try "Testing.__expect" |> fn actual expected with :? Expecto.AssertException as ex -> AssertExceptionFormatter(ex).Display () |> ignore failwith (ex.GetType().FullName) let inline __contains log expected actual = __expect Expecto.Expect.contains log expected actual let inline _contains expected actual = __contains true expected actual let inline __assertEqual log expected actual = __expect Expecto.Expect.equal log expected actual let inline _assertEqual expected actual = __assertEqual true expected actual let inline __isGreaterThan log expected actual = __expect Expecto.Expect.isGreaterThan log ex... ── fsharp - import ───────────────────────────────────────────────────────────── //// test let inline __isBetween log a b actual = let inline isBetween actual (a, b) _ = __isGreaterThanOrEqual log a actual __isLessThanOrEqual log b actual __expect isBetween log (a, b) actual let inline _isBetween a b actual = __isBetween true a b actual ── fsharp ────────────────────────────────────────────────────────────────────── #r @"../../../../../../../.nuget/packages/fsharp.control.asyncseq/3.2.1/lib/netstan dard2.1/FSharp.Control.AsyncSeq.dll" #r @"../../../../../../../.nuget/packages/system.reactive/6.0.1-preview.1/lib/net6. 0/System.Reactive.dll" #r @"../../../../../../../.nuget/packages/system.reactive.linq/6.0.1-preview.1/lib/ netstandard2.0/System.Reactive.Linq.dll" #r @"../../../../../../../.nuget/packages/argu/6.2.2/lib/netstandard2.0/Argu.dll" #r @"../../../../../../../.nuget/packages/system.commandline/2.0.0-beta4.22272.1/li b/net6.0/System.CommandLine.dll" #r @"../../../../../../../.nuget/packages/microsoft.aspnetcore.http.connections.com mon/7.0.0/lib/net7.0/Microsoft.AspNetCore.Http.Connections.Common.dll" #r @"../../../../../../../.nuget/packages/microsoft.aspnetcore.http.connections.cli ent/7.0.0/lib/net7.0/Microsoft.AspNetCore.Http.Connections.Client.dll" #r @"../../../../../../../.nuget/packages/microsoft.aspnetcore.signalr.common/7.0.0 /lib/net7.0/Microsoft.AspNetCore.SignalR.Common.dll" #r @"../../../../../../../.nuget/packages/microsoft.aspnetcore.signalr.client/7.0.0 /lib/net7.0/Microsoft.AspNetCore.SignalR.Client.dll" #r @"../../../../../../../.nuget/packages/microsoft.aspnetcore.signalr.client.core/ 7.0.0/lib/net7.0/Microsoft.AspNetCore.SignalR.Client.Core.dll" #r @"../../../../../../../.nuget/packages/fsharp.json/0.4.1/lib/netstandard2.0/FSha rp.Json.dll" ── fsharp ────────────────────────────────────────────────────────────────────── #!import ../../lib/fsharp/Common.fs #!import ../../lib/fsharp/CommonFSharp.fs #!import ../../lib/fsharp/Threading.fs #!import ../../lib/fsharp/Async.fs #!import ../../lib/fsharp/AsyncSeq.fs #!import ../../lib/fsharp/Networking.fs #!import ../../lib/fsharp/Runtime.fs #!import ../../lib/fsharp/FileSystem.fs ── fsharp - import ───────────────────────────────────────────────────────────── #if !INTERACTIVE namespace Polyglot #endif module Common = let nl = System.Environment.NewLine let q = @"""" let inline cons head tail = head :: tail module String = let inline contains (value : string) (input : string) = input.Contains value let inline endsWith (value : string) (input : string) = input.EndsWith value let inline padLeft totalWidth paddingChar (input : string) = input.PadLeft (totalWidth, paddingChar) let inline replace (oldValue : string) (newValue : string) (input : string) = input.Replace (oldValue, newValue) let inline split separator (input : string) = input.Split separator let inline spli... ── fsharp - import ───────────────────────────────────────────────────────────── #if !INTERACTIVE namespace Polyglot #endif module CommonFSharp = open Common /// ## getUnionCaseName let inline getUnionCaseName<'T> (x: 'T) = match Reflection.FSharpValue.GetUnionFields(x, typeof<'T>) with | case, _ -> case.Name ── fsharp - import ───────────────────────────────────────────────────────────── #if !INTERACTIVE namespace Polyglot #endif module Threading = open Common /// ## newDisposableToken let inline newDisposableToken (mergeToken: System.Threading.CancellationToken option) = let cts = new System.Threading.CancellationTokenSource () let cts = match mergeToken with | None -> cts | Some mergeToken -> System.Threading.CancellationTokenSource.CreateLinkedTokenSource [[| cts.Token; mergeToken |]] let disposable = newDisposable cts.Cancel cts.Token, disposable ── fsharp - import ───────────────────────────────────────────────────────────── #if !INTERACTIVE namespace Polyglot #endif module Async = open Common /// ## choice let inline choice asyncs = async { let e = Event<_> () use cts = new System.Threading.CancellationTokenSource () let fn = asyncs |> Seq.map (fun a -> async { let! x = a e.Trigger x }) |> Async.Parallel |> Async.Ignore Async.Start (fn, cts.Token) let! result = Async.AwaitEvent e.Publish cts.Cancel () return result } /// ## map let inline map fn a = async { let! x = a return fn x } /// ## catch let inline catch a = a |> Async.Catch ... ── fsharp - import ───────────────────────────────────────────────────────────── #if !INTERACTIVE namespace Polyglot #endif module AsyncSeq = open Common /// ## subscribeEvent let inline subscribeEvent (event: IEvent<'H, 'A>) map = let observable = System.Reactive.Linq.Observable.FromEventPattern<'H, 'A>(event.AddHandler, event.RemoveHandler) System.Reactive.Linq.Observable.Select (observable, fun event -> map event.EventArgs) |> FSharp.Control.AsyncSeq.ofObservableBuffered let subscribeToken (token : System.Threading.CancellationToken) = let tcs = new System.Threading.Tasks.TaskCompletionSource () System.Action tcs.SetResult |> token.Register |> ignore let start = System.DateTime.Now.Ticks FSharp.Control.AsyncSeq.unfoldAsync (fun (... ── fsharp - import ───────────────────────────────────────────────────────────── #if !INTERACTIVE namespace Polyglot #endif module Networking = open Common /// ## testPortOpen let inline testPortOpen port = async { let! ct = Async.CancellationToken use client = new System.Net.Sockets.TcpClient () try do! client.ConnectAsync ("127.0.0.1", port, ct) |> Async.awaitValueTaskUnit return true with ex -> trace Verbose (fun () -> $"testPortOpen / ex: {ex |> printException}") getLocals return false } let inline testPortOpenTimeout timeout port = async { let! result = testPortOpen port |> Async.runWithTimeoutAsync timeout return match result with | None -> false ... ── fsharp - import ───────────────────────────────────────────────────────────── #if !INTERACTIVE namespace Polyglot #endif module Runtime = open Common /// ## isWindows let isWindows = fun () -> System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform System.Runtime.InteropServices.OSPlatform.Windows |> memoize /// ## getExecutableSuffix let inline getExecutableSuffix () = if isWindows () then ".exe" else "" /// ## splitCommand type private CommandParseStep = | Start | Path of quoted: bool | Arguments let splitCommand (command: string) = let rec loop (path, args) chars step = match chars, step with | ('"' | '\'') :: tail, _ when path = "" -> loop (pat... ── fsharp - import ───────────────────────────────────────────────────────────── #if !INTERACTIVE namespace Polyglot #endif module FileSystem = open Common /// ## Operators module Operators = let inline (</>) a b = System.IO.Path.Combine (a, b) open Operators /// ## createTempDirectoryName let inline createTempDirectoryName () = let root = System.Reflection.Assembly.GetEntryAssembly().GetName().Name System.IO.Path.GetTempPath () </> $"!{root}" </> string (newGuidFromDateTime System.DateTime.Now) /// ## createTempDirectory let inline createTempDirectory () = let tempFolder = createTempDirectoryName () let result = System.IO.Directory.CreateDirectory tempFolder if not result.Exists then let ge... ── fsharp ────────────────────────────────────────────────────────────────────── open Common open FileSystem.Operators open Microsoft.AspNetCore.SignalR.Client ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## sendJson │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let inline sendJson (port : int) (json : string) = async { let! portOpen = Networking.testPortOpen port if portOpen then try let connection = HubConnectionBuilder().WithUrl($"http://127.0.0.1:{port}").Build() do! connection.StartAsync () |> Async.AwaitTask let! result = connection.InvokeAsync<string>("ClientToServerMsg", json) |> Async.AwaitTask do! connection.StopAsync () |> Async.AwaitTask trace Debug (fun () -> $"sendJson / port: {port} / json: {json} / result.Length: {result |> Option.ofObj |> Option.map String.length}") getLocals return Some result with ex -> trace Critical (fun () -> $"sendJson / port: {port} / json: {json} / ex: {ex |> printException}") getLocals return None else trace Debug (fun () -> "sendJson / error: port not open") getLocals return None } ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## sendObj │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let inline sendObj port obj = obj |> System.Text.Json.JsonSerializer.Serialize |> sendJson port ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## awaitCompiler │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── type VSCPos = {| line : int; character : int |} type VSCRange = VSCPos * VSCPos type RString = VSCRange * string type TracedError = {| trace : string list; message : string |} type ClientErrorsRes = | FatalError of string | TracedError of TracedError | PackageErrors of {| uri : string; errors : RString list |} | TokenizerErrors of {| uri : string; errors : RString list |} | ParserErrors of {| uri : string; errors : RString list |} | TypeErrors of {| uri : string; errors : RString list |} ── fsharp ────────────────────────────────────────────────────────────────────── let inline awaitCompiler port cancellationToken = async { let! ct = cancellationToken |> Option.defaultValue System.Threading.CancellationToken.None |> Async.mergeCancellationTokenWithDefaultAsync let cts = new System.Threading.CancellationTokenSource () let compiler = MailboxProcessor.Start (fun inbox -> async { let! availablePort = Networking.getAvailablePort (Some 60) port if availablePort <> port then inbox.Post port else let repositoryRoot = FileSystem.getSourceDirectory () |> FileSystem.findParent ".paket" false let compilerPath = repositoryRoot </> "deps/The-Spiral-Language/The Spiral Language 2/artifacts/bin/The Spiral Language 2/release" |> System.IO.Path.GetFullPath let dllPath = compilerPath </> "Spiral.dll" let! exitCode, result = Runtime.executeWithOptionsAsync { Command = $@"dotnet ""{dllPath}"" --port {availablePort} --default-int i32 --default-float f64" CancellationToken = Some ct WorkingDirectory = None OnLine = Some <| fun { Line = line } -> async { if line |> String.contains $"Server bound to: http://localhost:{availablePort}" then do! Networking.waitForPortAccess (Some 500) true availablePort |> Async.Ignore let rec loop retry = async { let getLocals () = $"port: {availablePort} / retry: {retry} / {getLocals ()}" try let pingObj = {| Ping = true |} let! pingResult = pingObj |> sendObj availablePort trace Verbose (fun () -> $"awaitCompiler / Ping / result: {pingResult}") getLocals with ex -> trace Verbose (fun () -> $"awaitCompiler / Ping / ex: {ex |> printException}") getLocals do! Async.Sleep 10 do! loop (retry + 1) } do! loop 0 inbox.Post availablePort } } trace Debug (fun () -> $"awaitCompiler / exitCode: {exitCode} / result: {result}") getLocals cts.Cancel () }, ct) let! serverPort = compiler.Receive () let connection = HubConnectionBuilder().WithUrl($"http://127.0.0.1:{serverPort}").Build () do! connection.StartAsync () |> Async.AwaitTask let event = Event<_> () let disposable = connection.On<string> ("ServerToClientMsg", event.Trigger) let stream = FSharp.Control.AsyncSeq.unfoldAsync (fun () -> async { let! msg = event.Publish |> Async.AwaitEvent return Some (msg |> FSharp.Json.Json.deserialize<ClientErrorsRes>, ()) }) () let disposable = newDisposable (fun () -> disposable.Dispose () connection.StopAsync () |> Async.AwaitTask |> Async.StartImmediate ) return serverPort, stream, cts.Token, disposable } ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## getFileUri │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let inline getFileUri (path : string) = let path = if Runtime.isWindows () |> not then path else $"{path.[[0]] |> System.Char.ToLower}{path.[[1..]]}" |> String.replace "\\" "/" $"file:///{path |> String.trimStart [[| '/' |]]}" ── fsharp ────────────────────────────────────────────────────────────────────── let inline getFilePathFromUri uri = match System.Uri.TryCreate (uri, System.UriKind.Absolute) with | true, uri -> uri.AbsolutePath |> System.IO.Path.GetFullPath | _ -> failwith "invalid uri" ── fsharp ────────────────────────────────────────────────────────────────────── let inline getCompilerPort () = 13805 ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## serialize_obj │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let serializeObj obj = obj |> FSharp.Json.Json.serialize |> String.replace "\\\\" "\\" |> String.replace "\\r\\n" "\n" |> String.replace "\\n" "\n" ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## buildFile │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let inline buildFile timeout port cancellationToken path = async { let fullPath = path |> System.IO.Path.GetFullPath let fileDir = fullPath |> System.IO.Path.GetDirectoryName let fileName = fullPath |> System.IO.Path.GetFileNameWithoutExtension let! code = fullPath |> FileSystem.readAllTextAsync let eventFilter = function | FileSystem.FileSystemChange.Changed (path, _) when path = $"{fileName}.fsx" -> true | _ -> false let stream, disposable = fileDir |> FileSystem.watchDirectory eventFilter use _ = disposable let token, disposable = Threading.newDisposableToken cancellationToken use _ = disposable let! serverPort, errors, ct, disposable = awaitCompiler port (Some token) use _ = disposable let fsxContentSeq = stream |> FSharp.Control.AsyncSeq.choose (function | _, (FileSystem.FileSystemChange.Changed (path, Some content) as event) when event |> eventFilter -> Some content | _ -> None ) |> FSharp.Control.AsyncSeq.map (fun content -> Some (content |> String.replace "\r\n" "\n"), None ) let inline printErrorData (data : {| uri : string; errors : RString list |}) = let fileName = data.uri |> System.IO.Path.GetFileName let errors = data.errors |> List.map snd |> String.concat "\n" $"{fileName}:\n{errors}" let errorsSeq = errors |> FSharp.Control.AsyncSeq.choose (fun error -> match error with | FatalError message -> Some (message, error) | TracedError data -> Some (data.message, error) | PackageErrors data when data.errors |> List.isEmpty |> not -> Some (data |> printErrorData, error) | TokenizerErrors data when data.errors |> List.isEmpty |> not -> Some (data |> printErrorData, error) | ParserErrors data when data.errors |> List.isEmpty |> not -> Some (data |> printErrorData, error) | TypeErrors data when data.errors |> List.isEmpty |> not -> Some (data |> printErrorData, error) | _ -> None ) |> FSharp.Control.AsyncSeq.map (fun (message, error) -> None, Some (message, error) ) let timerSeq = 1000 |> FSharp.Control.AsyncSeq.intervalMs |> FSharp.Control.AsyncSeq.map (fun _ -> None, None) let outputSeq = [[ fsxContentSeq; errorsSeq; timerSeq ]] |> FSharp.Control.AsyncSeq.mergeAll let! outputChild = ((None, [[]], 0), outputSeq) ||> FSharp.Control.AsyncSeq.scan ( fun (fsxContentResult, errors, typeErrorCount) (fsxContent, error) -> match fsxContent, error with | Some fsxContent, None -> Some fsxContent, errors, typeErrorCount | None, Some (_, FatalError "File main has a type error somewhere in its path.") -> fsxContentResult, errors, typeErrorCount + 1 | None, Some error -> fsxContentResult, error :: errors, typeErrorCount | None, None when typeErrorCount >= 1 -> fsxContentResult, errors, typeErrorCount + 1 | _ -> fsxContentResult, errors, typeErrorCount ) |> FSharp.Control.AsyncSeq.takeWhileInclusive (fun (fsxContent, errors, typeErrorCount) -> trace Debug (fun () -> $"buildFile / takeWhileInclusive / fsxContent: {fsxContent |> Option.defaultValue System.String.Empty |> String.ellipsis 750} / errors: {errors |> serializeObj} / typeErrorCount: {typeErrorCount}") getLocals match fsxContent, errors with | None, [[]] when typeErrorCount > 2 -> false | None, [[]] -> true | _ -> false ) |> FSharp.Control.AsyncSeq.tryLast |> Async.withCancellationToken ct |> Async.catch |> Async.runWithTimeoutAsync timeout |> Async.StartChild let fileOpenObj = {| FileOpen = {| uri = fullPath |> getFileUri; spiText = code |} |} let! _fileOpenResult = fileOpenObj |> sendObj serverPort do! Async.Sleep 60 let buildFileObj = {| BuildFile = {| uri = fullPath |> getFileUri; backend = "Fsharp" |} |} let! _buildFileResult = buildFileObj |> sendObj serverPort return! outputChild |> Async.map (function | Some (Ok (Some (message, errors, _))) -> message, errors |> List.distinct |> List.rev | Some (Error ex) -> trace Critical (fun () -> $"buildFile / error: {ex |> serializeObj}") getLocals None, [[]] | _ -> None, [[]] ) } ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## persistCode │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let inline persistCode code = async { let tempDir = FileSystem.createTempDirectory () let mainPath = tempDir </> "main.spi" do! code |> FileSystem.writeAllTextAsync mainPath let repositoryRoot = FileSystem.getSourceDirectory () |> FileSystem.findParent ".paket" false let spiprojPath = tempDir </> "package.spiproj" let spiprojCode = $"""packageDir: {repositoryRoot </> "lib"} packages: |core- spiral- modules: main """ do! spiprojCode |> FileSystem.writeAllTextAsync spiprojPath let disposable = newDisposable (fun () -> () // tempDir |> FileSystem.deleteDirectoryAsync |> Async.Ignore |> Async.RunSynchronously ) return mainPath, disposable } ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## buildCode │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let inline buildCode timeout cancellationToken code = async { let! mainPath, disposable = persistCode code use _ = disposable let port = getCompilerPort () return! mainPath |> buildFile timeout port cancellationToken } ── fsharp ────────────────────────────────────────────────────────────────────── //// test let buildCode timeout cancellationToken code = buildCode timeout cancellationToken code ── fsharp ────────────────────────────────────────────────────────────────────── //// test """inl app () = console.write_line "text" 1i32 inl main () = app |> dyn |> ignore """ |> buildCode 15000 None |> Async.runWithTimeout 15000 |> Option.map (fun (fsxContent, errors) -> fsxContent, errors |> List.map fst) |> _assertEqual ( Some ( Some """let rec closure0 () () : int32 = let v0 : string = "text" System.Console.WriteLine v0 1 let v0 : (unit -> int32) = closure0() () """, [[]] ) ) ╭─[ 2.32s - stdout ]───────────────────────────────────────────────────────────╮ │ 00:00:00 #1 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:00 #2 [Debug] executeAsync / options: { Command = │ │ "dotnet "/home/runner/work/polyglot/polyglot/deps/The-Spiral-Language/The │ │ Spiral Language 2/artifacts/bin/The Spiral Language 2/release/Spiral.dll" │ │ --port 13805 --default-int i32 --default-float f64" │ │ WorkingDirectory = None │ │ CancellationToken = Some System.Threading.CancellationToken │ │ OnLine = Some <fun:buildCode@3-1005> } │ │ 00:00:00 #3 [Verbose] > pwd: /home/runner/work/polyglot/polyglot/apps/spiral │ │ 00:00:00 #4 [Verbose] > dll_path: │ │ /home/runner/work/polyglot/polyglot/deps/The-Spiral-Language/The Spiral │ │ Language 2/artifacts/bin/The Spiral Language 2/release │ │ 00:00:00 #5 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:00 #6 [Verbose] waitForPortAccess / port: 13805 / retry: 0 │ │ 00:00:00 #7 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:00 #8 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:00 #9 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:00 #10 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:00 #11 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:00 #12 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:00 #13 [Verbose] > Starting the Spiral Server. It is bound to: │ │ http://localhost:13805 │ │ 00:00:00 #14 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:00 #15 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:00 #16 [Debug] sendJson / port: 13805 / json: {"Ping":true} / │ │ result.Length: │ │ 00:00:00 #17 [Verbose] awaitCompiler / Ping / result: Some(null) / port: │ │ 13805 / retry: 0 │ │ 00:00:00 #18 [Verbose] > Server bound to: http://localhost:13805 │ │ 00:00:00 #19 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: │ │ [] / typeErrorCount: 0 │ │ 00:00:00 #20 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: │ │ [] / typeErrorCount: 0 │ │ 00:00:00 #21 [Debug] sendJson / port: 13805 / json: │ │ {"FileOpen":{"spiText":"inl app () =\n console.write_line │ │ \u0022text\u0022\n 1i32\n\ninl main () =\n app\n |\u003E dyn\n │ │ |\u003E │ │ ignore\n","uri":"file:///tmp/!dotnet-repl/20240325-2019-1904-0440-0c9336c803 │ │ b9/main.spi"}} / result.Length: │ │ 00:00:00 #22 [Debug] sendJson / port: 13805 / json: │ │ {"BuildFile":{"backend":"Fsharp","uri":"file:///tmp/!dotnet-repl/20240325-20 │ │ 19-1904-0440-0c9336c803b9/main.spi"}} / result.Length: │ │ 00:00:01 #23 [Verbose] > Building │ │ /tmp/!dotnet-repl/20240325-2019-1904-0440-0c9336c803b9/main.spi │ │ 00:00:01 #24 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: │ │ [] / typeErrorCount: 0 │ │ 00:00:02 #25 [Debug] buildFile / takeWhileInclusive / fsxContent: let rec │ │ closure0 () () : int32 = │ │ let v0 : string = "text" │ │ System.Console.WriteLine v0 │ │ 1 │ │ let v0 : (unit -> int32) = closure0() │ │ () │ │ / errors: [] / typeErrorCount: 0 │ │ 00:00:02 #26 [Debug] watchWithFilter / Disposing watch stream / filter: │ │ FileName, LastWrite │ │ FSharpOption<Tuple<FSharpOption<String>,FSharpList<String>>> │ │ Value: - FSharpOption<String> │ │ Value: let rec closure0 () () : int32 = │ │ let v0 : string = "text" │ │ System.Console.WriteLine v0 │ │ 1 │ │ let v0 : (unit -> int32) = closure0() │ │ () │ │ │ │ - [ ] │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── //// test "" |> buildCode 10000 None |> Async.runWithTimeout 10000 |> _assertEqual None ╭─[ 10.10s - stdout ]──────────────────────────────────────────────────────────╮ │ 00:00:02 #27 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:02 #28 [Debug] executeAsync / options: { Command = │ │ "dotnet "/home/runner/work/polyglot/polyglot/deps/The-Spiral-Language/The │ │ Spiral Language 2/artifacts/bin/The Spiral Language 2/release/Spiral.dll" │ │ --port 13805 --default-int i32 --default-float f64" │ │ WorkingDirectory = None │ │ CancellationToken = Some System.Threading.CancellationToken │ │ OnLine = Some <fun:buildCode@3-1005> } │ │ 00:00:02 #29 [Verbose] > pwd: │ │ /home/runner/work/polyglot/polyglot/apps/spiral │ │ 00:00:02 #30 [Verbose] > dll_path: │ │ /home/runner/work/polyglot/polyglot/deps/The-Spiral-Language/The Spiral │ │ Language 2/artifacts/bin/The Spiral Language 2/release │ │ 00:00:02 #31 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:02 #32 [Verbose] waitForPortAccess / port: 13805 / retry: 0 │ │ 00:00:02 #33 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:02 #34 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:02 #35 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:02 #36 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:02 #37 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:02 #38 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:02 #39 [Verbose] > Starting the Spiral Server. It is bound to: │ │ http://localhost:13805 │ │ 00:00:02 #40 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:02 #41 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:02 #42 [Debug] sendJson / port: 13805 / json: {"Ping":true} / │ │ result.Length: │ │ 00:00:02 #43 [Verbose] awaitCompiler / Ping / result: Some(null) / port: │ │ 13805 / retry: 0 │ │ 00:00:02 #44 [Verbose] > Server bound to: http://localhost:13805 │ │ 00:00:02 #45 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: │ │ [] / typeErrorCount: 0 │ │ 00:00:02 #46 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: │ │ [] / typeErrorCount: 0 │ │ 00:00:02 #47 [Debug] sendJson / port: 13805 / json: │ │ {"FileOpen":{"spiText":"","uri":"file:///tmp/!dotnet-repl/20240325-2019-2135 │ │ -3543-316af12c81a8/main.spi"}} / result.Length: │ │ 00:00:02 #48 [Debug] sendJson / port: 13805 / json: │ │ {"BuildFile":{"backend":"Fsharp","uri":"file:///tmp/!dotnet-repl/20240325-20 │ │ 19-2135-3543-316af12c81a8/main.spi"}} / result.Length: │ │ 00:00:03 #49 [Verbose] > Building │ │ /tmp/!dotnet-repl/20240325-2019-2135-3543-316af12c81a8/main.spi │ │ 00:00:03 #50 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: │ │ [] / typeErrorCount: 0 │ │ 00:00:04 #51 [Verbose] > Cannot find `main` in file main. │ │ 00:00:04 #52 [Verbose] > Build skipped for │ │ /tmp/!dotnet-repl/20240325-2019-2135-3543-316af12c81a8/main.spi │ │ 00:00:04 #53 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: │ │ [] / typeErrorCount: 0 │ │ 00:00:05 #54 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: │ │ [] / typeErrorCount: 0 │ │ 00:00:06 #55 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: │ │ [] / typeErrorCount: 0 │ │ 00:00:07 #56 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: │ │ [] / typeErrorCount: 0 │ │ 00:00:08 #57 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: │ │ [] / typeErrorCount: 0 │ │ 00:00:09 #58 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: │ │ [] / typeErrorCount: 0 │ │ 00:00:10 #59 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: │ │ [] / typeErrorCount: 0 │ │ 00:00:11 #60 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: │ │ [] / typeErrorCount: 0 │ │ 00:00:12 #61 [Debug] runWithTimeoutAsync / timeout: 10000 │ │ 00:00:12 #62 [Debug] watchWithFilter / Disposing watch stream / filter: │ │ FileName, LastWrite │ │ <null> │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── //// test "inl app () = 0i32 inl a = 1 inl main () = app |> dyn |> ignore " |> buildCode 10000 None |> Async.runWithTimeout 10000 |> Option.map (fun (fsxContent, errors) -> fsxContent, errors |> List.map fst) |> _assertEqual ( Some ( None, [[ "main.spi: Global inl/let statements should all return functions known at parse time." ]] ) ) ╭─[ 1.06s - stdout ]───────────────────────────────────────────────────────────╮ │ 00:00:12 #63 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:12 #64 [Debug] executeAsync / options: { Command = │ │ "dotnet "/home/runner/work/polyglot/polyglot/deps/The-Spiral-Language/The │ │ Spiral Language 2/artifacts/bin/The Spiral Language 2/release/Spiral.dll" │ │ --port 13805 --default-int i32 --default-float f64" │ │ WorkingDirectory = None │ │ CancellationToken = Some System.Threading.CancellationToken │ │ OnLine = Some <fun:buildCode@3-1005> } │ │ 00:00:12 #65 [Verbose] > pwd: │ │ /home/runner/work/polyglot/polyglot/apps/spiral │ │ 00:00:12 #66 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:12 #67 [Verbose] waitForPortAccess / port: 13805 / retry: 0 │ │ 00:00:12 #68 [Verbose] > dll_path: │ │ /home/runner/work/polyglot/polyglot/deps/The-Spiral-Language/The Spiral │ │ Language 2/artifacts/bin/The Spiral Language 2/release │ │ 00:00:12 #69 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:12 #70 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:12 #71 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:12 #72 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:12 #73 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:12 #74 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:12 #75 [Verbose] > Starting the Spiral Server. It is bound to: │ │ http://localhost:13805 │ │ 00:00:12 #76 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:12 #79 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:12 #80 [Debug] sendJson / port: 13805 / json: {"Ping":true} / │ │ result.Length: │ │ 00:00:12 #81 [Verbose] awaitCompiler / Ping / result: Some(null) / port: │ │ 13805 / retry: 0 │ │ 00:00:12 #82 [Verbose] > Server bound to: http://localhost:13805 │ │ 00:00:12 #83 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: │ │ [] / typeErrorCount: 0 │ │ 00:00:12 #84 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: │ │ [] / typeErrorCount: 0 │ │ 00:00:12 #85 [Debug] sendJson / port: 13805 / json: │ │ {"FileOpen":{"spiText":"inl app () =\n 0i32\n\ninl a = 1\n\ninl main () │ │ =\n app\n |\u003E dyn\n |\u003E │ │ ignore\n","uri":"file:///tmp/!dotnet-repl/20240325-2019-3150-5066-5dc8cc79c4 │ │ 08/main.spi"}} / result.Length: │ │ 00:00:12 #86 [Debug] sendJson / port: 13805 / json: │ │ {"BuildFile":{"backend":"Fsharp","uri":"file:///tmp/!dotnet-repl/20240325-20 │ │ 19-3150-5066-5dc8cc79c408/main.spi"}} / result.Length: │ │ 00:00:13 #87 [Verbose] > Building │ │ /tmp/!dotnet-repl/20240325-2019-3150-5066-5dc8cc79c408/main.spi │ │ 00:00:13 #88 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: │ │ [ │ │ [ │ │ "main.spi: │ │ Global inl/let statements should all return functions known at parse time.", │ │ { │ │ "ParserErrors": { │ │ "errors": [ │ │ [ │ │ [ │ │ { │ │ "character": 0, │ │ "line": 3 │ │ }, │ │ { │ │ "character": 9, │ │ "line": 3 │ │ } │ │ ], │ │ "Global inl/let statements should all return functions known at │ │ parse time." │ │ ] │ │ ], │ │ "uri": │ │ "file:///tmp/!dotnet-repl/20240325-2019-3150-5066-5dc8cc79c408/main.spi" │ │ } │ │ } │ │ ] │ │ ] / typeErrorCount: 0 │ │ 00:00:13 #89 [Debug] watchWithFilter / Disposing watch stream / filter: │ │ FileName, LastWrite │ │ FSharpOption<Tuple<FSharpOption<String>,FSharpList<String>>> │ │ Value: - <null> │ │ - [ main.spi: │ │ Global inl/let statements should all return functions known at parse time. ] │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── //// test """inl main () = 1i32 / 0i32 """ |> buildCode 10000 None |> Async.runWithTimeout 10000 |> Option.map (fun (fsxContent, errors) -> fsxContent, errors |> List.map fst) |> _assertEqual ( Some ( None, [[ "An attempt to divide by zero has been detected at compile time." ]] ) ) ╭─[ 1.94s - stdout ]───────────────────────────────────────────────────────────╮ │ 00:00:13 #90 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:13 #91 [Debug] executeAsync / options: { Command = │ │ "dotnet "/home/runner/work/polyglot/polyglot/deps/The-Spiral-Language/The │ │ Spiral Language 2/artifacts/bin/The Spiral Language 2/release/Spiral.dll" │ │ --port 13805 --default-int i32 --default-float f64" │ │ WorkingDirectory = None │ │ CancellationToken = Some System.Threading.CancellationToken │ │ OnLine = Some <fun:buildCode@3-1005> } │ │ 00:00:13 #92 [Verbose] > pwd: │ │ /home/runner/work/polyglot/polyglot/apps/spiral │ │ 00:00:13 #93 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:13 #94 [Verbose] waitForPortAccess / port: 13805 / retry: 0 │ │ 00:00:13 #95 [Verbose] > dll_path: │ │ /home/runner/work/polyglot/polyglot/deps/The-Spiral-Language/The Spiral │ │ Language 2/artifacts/bin/The Spiral Language 2/release │ │ 00:00:13 #96 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:13 #97 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:13 #98 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:13 #100 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:13 #101 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:13 #102 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:13 #103 [Verbose] > Starting the Spiral Server. It is bound to: │ │ http://localhost:13805 │ │ 00:00:13 #104 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:13 #105 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:13 #106 [Debug] sendJson / port: 13805 / json: {"Ping":true} / │ │ result.Length: │ │ 00:00:13 #107 [Verbose] awaitCompiler / Ping / result: Some(null) / port: │ │ 13805 / retry: 0 │ │ 00:00:13 #108 [Verbose] > Server bound to: http://localhost:13805 │ │ 00:00:13 #109 [Debug] buildFile / takeWhileInclusive / fsxContent: / │ │ errors: [] / typeErrorCount: 0 │ │ 00:00:13 #110 [Debug] buildFile / takeWhileInclusive / fsxContent: / │ │ errors: [] / typeErrorCount: 0 │ │ 00:00:13 #111 [Debug] sendJson / port: 13805 / json: │ │ {"FileOpen":{"spiText":"inl main () =\n 1i32 / │ │ 0i32\n","uri":"file:///tmp/!dotnet-repl/20240325-2019-3252-5278-5dd7ab501d59 │ │ /main.spi"}} / result.Length: │ │ 00:00:14 #112 [Debug] sendJson / port: 13805 / json: │ │ {"BuildFile":{"backend":"Fsharp","uri":"file:///tmp/!dotnet-repl/20240325-20 │ │ 19-3252-5278-5dd7ab501d59/main.spi"}} / result.Length: │ │ 00:00:14 #113 [Verbose] > Building │ │ /tmp/!dotnet-repl/20240325-2019-3252-5278-5dd7ab501d59/main.spi │ │ 00:00:14 #115 [Debug] buildFile / takeWhileInclusive / fsxContent: / │ │ errors: [] / typeErrorCount: 0 │ │ 00:00:15 #116 [Debug] buildFile / takeWhileInclusive / fsxContent: / │ │ errors: [ │ │ [ │ │ "An attempt to divide by zero has been detected at compile time.", │ │ { │ │ "TracedError": { │ │ "message": "An attempt to divide by zero has been detected at │ │ compile time.", │ │ "trace": [ │ │ "Error trace on line: 1, column: 10 in module: │ │ /tmp/!dotnet-repl/20240325-2019-3252-5278-5dd7ab501d59/main.spi. │ │ inl main () = │ │ ^ │ │ ", │ │ "Error trace on line: 2, column: 5 in module: │ │ /tmp/!dotnet-repl/20240325-2019-3252-5278-5dd7ab501d59/main.spi. │ │ 1i32 / 0i32 │ │ ^ │ │ " │ │ ] │ │ } │ │ } │ │ ] │ │ ] / typeErrorCount: 0 │ │ 00:00:15 #117 [Debug] watchWithFilter / Disposing watch stream / filter: │ │ FileName, LastWrite │ │ FSharpOption<Tuple<FSharpOption<String>,FSharpList<String>>> │ │ Value: - <null> │ │ - [ An attempt to divide by zero has been detected at compile time. ] │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── //// test """inl main () = 1 + "" """ |> buildCode 10000 None |> Async.runWithTimeout 10000 |> Option.map (fun (fsxContent, errors) -> fsxContent, errors |> List.map fst) |> _assertEqual ( Some ( None, [[ "main.spi: Constraint satisfaction error. Got: string Fails to satisfy: number" ]] ) ) ╭─[ 1.68s - stdout ]───────────────────────────────────────────────────────────╮ │ 00:00:15 #118 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:15 #119 [Debug] executeAsync / options: { Command = │ │ "dotnet "/home/runner/work/polyglot/polyglot/deps/The-Spiral-Language/The │ │ Spiral Language 2/artifacts/bin/The Spiral Language 2/release/Spiral.dll" │ │ --port 13805 --default-int i32 --default-float f64" │ │ WorkingDirectory = None │ │ CancellationToken = Some System.Threading.CancellationToken │ │ OnLine = Some <fun:buildCode@3-1005> } │ │ 00:00:15 #120 [Verbose] > pwd: │ │ /home/runner/work/polyglot/polyglot/apps/spiral │ │ 00:00:15 #121 [Verbose] > dll_path: │ │ /home/runner/work/polyglot/polyglot/deps/The-Spiral-Language/The Spiral │ │ Language 2/artifacts/bin/The Spiral Language 2/release │ │ 00:00:15 #122 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:15 #123 [Verbose] waitForPortAccess / port: 13805 / retry: 0 │ │ 00:00:15 #124 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:15 #125 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:15 #126 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:15 #127 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:15 #128 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:15 #129 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:15 #130 [Verbose] > Starting the Spiral Server. It is bound to: │ │ http://localhost:13805 │ │ 00:00:15 #131 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:15 #132 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:15 #134 [Debug] sendJson / port: 13805 / json: {"Ping":true} / │ │ result.Length: │ │ 00:00:15 #135 [Verbose] awaitCompiler / Ping / result: Some(null) / port: │ │ 13805 / retry: 0 │ │ 00:00:15 #136 [Verbose] > Server bound to: http://localhost:13805 │ │ 00:00:15 #137 [Debug] buildFile / takeWhileInclusive / fsxContent: / │ │ errors: [] / typeErrorCount: 0 │ │ 00:00:15 #138 [Debug] buildFile / takeWhileInclusive / fsxContent: / │ │ errors: [] / typeErrorCount: 0 │ │ 00:00:15 #139 [Debug] sendJson / port: 13805 / json: │ │ {"FileOpen":{"spiText":"inl main () =\n 1 \u002B │ │ \u0022\u0022\n","uri":"file:///tmp/!dotnet-repl/20240325-2019-3446-4693-4daf │ │ e73cf308/main.spi"}} / result.Length: │ │ 00:00:15 #140 [Debug] sendJson / port: 13805 / json: │ │ {"BuildFile":{"backend":"Fsharp","uri":"file:///tmp/!dotnet-repl/20240325-20 │ │ 19-3446-4693-4dafe73cf308/main.spi"}} / result.Length: │ │ 00:00:16 #141 [Verbose] > Building │ │ /tmp/!dotnet-repl/20240325-2019-3446-4693-4dafe73cf308/main.spi │ │ 00:00:16 #143 [Debug] buildFile / takeWhileInclusive / fsxContent: / │ │ errors: [] / typeErrorCount: 0 │ │ 00:00:16 #144 [Debug] buildFile / takeWhileInclusive / fsxContent: / │ │ errors: [] / typeErrorCount: 1 │ │ 00:00:16 #145 [Debug] buildFile / takeWhileInclusive / fsxContent: / │ │ errors: [ │ │ [ │ │ "main.spi: │ │ Constraint satisfaction error. │ │ Got: string │ │ Fails to satisfy: number", │ │ { │ │ "TypeErrors": { │ │ "errors": [ │ │ [ │ │ [ │ │ { │ │ "character": 8, │ │ "line": 1 │ │ }, │ │ { │ │ "character": 10, │ │ "line": 1 │ │ } │ │ ], │ │ "Constraint satisfaction error. │ │ Got: string │ │ Fails to satisfy: number" │ │ ] │ │ ], │ │ "uri": │ │ "file:///tmp/!dotnet-repl/20240325-2019-3446-4693-4dafe73cf308/main.spi" │ │ } │ │ } │ │ ] │ │ ] / typeErrorCount: 1 │ │ 00:00:16 #146 [Debug] watchWithFilter / Disposing watch stream / filter: │ │ FileName, LastWrite │ │ FSharpOption<Tuple<FSharpOption<String>,FSharpList<String>>> │ │ Value: - <null> │ │ - [ main.spi: │ │ Constraint satisfaction error. │ │ Got: string │ │ Fails to satisfy: number ] │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── //// test """inl main () = x + y """ |> buildCode 10000 None |> Async.runWithTimeout 10000 |> Option.map (fun (fsxContent, errors) -> fsxContent, errors |> List.map fst) |> _assertEqual ( Some ( None, [[ "main.spi: Unbound variable: x. Unbound variable: y." ]] ) ) ╭─[ 1.74s - stdout ]───────────────────────────────────────────────────────────╮ │ 00:00:17 #147 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:17 #148 [Debug] executeAsync / options: { Command = │ │ "dotnet "/home/runner/work/polyglot/polyglot/deps/The-Spiral-Language/The │ │ Spiral Language 2/artifacts/bin/The Spiral Language 2/release/Spiral.dll" │ │ --port 13805 --default-int i32 --default-float f64" │ │ WorkingDirectory = None │ │ CancellationToken = Some System.Threading.CancellationToken │ │ OnLine = Some <fun:buildCode@3-1005> } │ │ 00:00:17 #149 [Verbose] > pwd: │ │ /home/runner/work/polyglot/polyglot/apps/spiral │ │ 00:00:17 #150 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:17 #152 [Verbose] > dll_path: │ │ /home/runner/work/polyglot/polyglot/deps/The-Spiral-Language/The Spiral │ │ Language 2/artifacts/bin/The Spiral Language 2/release │ │ 00:00:17 #151 [Verbose] waitForPortAccess / port: 13805 / retry: 0 │ │ 00:00:17 #153 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:17 #154 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:17 #155 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:17 #156 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:17 #157 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:17 #158 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:17 #159 [Verbose] > Starting the Spiral Server. It is bound to: │ │ http://localhost:13805 │ │ 00:00:17 #160 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:17 #161 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:17 #162 [Debug] sendJson / port: 13805 / json: {"Ping":true} / │ │ result.Length: │ │ 00:00:17 #163 [Verbose] awaitCompiler / Ping / result: Some(null) / port: │ │ 13805 / retry: 0 │ │ 00:00:17 #164 [Verbose] > Server bound to: http://localhost:13805 │ │ 00:00:17 #165 [Debug] buildFile / takeWhileInclusive / fsxContent: / │ │ errors: [] / typeErrorCount: 0 │ │ 00:00:17 #166 [Debug] buildFile / takeWhileInclusive / fsxContent: / │ │ errors: [] / typeErrorCount: 0 │ │ 00:00:17 #167 [Debug] sendJson / port: 13805 / json: │ │ {"FileOpen":{"spiText":"inl main () =\n x \u002B │ │ y\n","uri":"file:///tmp/!dotnet-repl/20240325-2019-3614-1492-1ebff6af05f2/ma │ │ in.spi"}} / result.Length: │ │ 00:00:17 #168 [Debug] sendJson / port: 13805 / json: │ │ {"BuildFile":{"backend":"Fsharp","uri":"file:///tmp/!dotnet-repl/20240325-20 │ │ 19-3614-1492-1ebff6af05f2/main.spi"}} / result.Length: │ │ 00:00:17 #170 [Verbose] > Building │ │ /tmp/!dotnet-repl/20240325-2019-3614-1492-1ebff6af05f2/main.spi │ │ 00:00:18 #171 [Debug] buildFile / takeWhileInclusive / fsxContent: / │ │ errors: [] / typeErrorCount: 0 │ │ 00:00:18 #172 [Debug] buildFile / takeWhileInclusive / fsxContent: / │ │ errors: [] / typeErrorCount: 1 │ │ 00:00:18 #173 [Debug] buildFile / takeWhileInclusive / fsxContent: / │ │ errors: [ │ │ [ │ │ "main.spi: │ │ Unbound variable: x. │ │ Unbound variable: y.", │ │ { │ │ "TypeErrors": { │ │ "errors": [ │ │ [ │ │ [ │ │ { │ │ "character": 4, │ │ "line": 1 │ │ }, │ │ { │ │ "character": 5, │ │ "line": 1 │ │ } │ │ ], │ │ "Unbound variable: x." │ │ ], │ │ [ │ │ [ │ │ { │ │ "character": 8, │ │ "line": 1 │ │ }, │ │ { │ │ "character": 9, │ │ "line": 1 │ │ } │ │ ], │ │ "Unbound variable: y." │ │ ] │ │ ], │ │ "uri": │ │ "file:///tmp/!dotnet-repl/20240325-2019-3614-1492-1ebff6af05f2/main.spi" │ │ } │ │ } │ │ ] │ │ ] / typeErrorCount: 1 │ │ 00:00:18 #174 [Debug] watchWithFilter / Disposing watch stream / filter: │ │ FileName, LastWrite │ │ FSharpOption<Tuple<FSharpOption<String>,FSharpList<String>>> │ │ Value: - <null> │ │ - [ main.spi: │ │ Unbound variable: x. │ │ Unbound variable: y. ] │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── //// test """union a = | B | c inl main () = () """ |> buildCode 10000 None |> Async.runWithTimeout 10000 |> Option.map (fun (fsxContent, errors) -> fsxContent, errors |> List.map fst) |> _assertEqual ( Some ( None, [[ "main.spi: Expected: uppercase variable" ]] ) ) ╭─[ 988.38ms - stdout ]────────────────────────────────────────────────────────╮ │ 00:00:18 #176 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:18 #177 [Debug] executeAsync / options: { Command = │ │ "dotnet "/home/runner/work/polyglot/polyglot/deps/The-Spiral-Language/The │ │ Spiral Language 2/artifacts/bin/The Spiral Language 2/release/Spiral.dll" │ │ --port 13805 --default-int i32 --default-float f64" │ │ WorkingDirectory = None │ │ CancellationToken = Some System.Threading.CancellationToken │ │ OnLine = Some <fun:buildCode@3-1005> } │ │ 00:00:19 #178 [Verbose] > pwd: │ │ /home/runner/work/polyglot/polyglot/apps/spiral │ │ 00:00:19 #179 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:19 #180 [Verbose] waitForPortAccess / port: 13805 / retry: 0 │ │ 00:00:19 #181 [Verbose] > dll_path: │ │ /home/runner/work/polyglot/polyglot/deps/The-Spiral-Language/The Spiral │ │ Language 2/artifacts/bin/The Spiral Language 2/release │ │ 00:00:19 #182 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:19 #183 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:19 #184 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:19 #185 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:19 #186 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:19 #187 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:19 #188 [Verbose] > Starting the Spiral Server. It is bound to: │ │ http://localhost:13805 │ │ 00:00:19 #189 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:19 #190 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:19 #191 [Debug] sendJson / port: 13805 / json: {"Ping":true} / │ │ result.Length: │ │ 00:00:19 #192 [Verbose] awaitCompiler / Ping / result: Some(null) / port: │ │ 13805 / retry: 0 │ │ 00:00:19 #193 [Verbose] > Server bound to: http://localhost:13805 │ │ 00:00:19 #194 [Debug] buildFile / takeWhileInclusive / fsxContent: / │ │ errors: [] / typeErrorCount: 0 │ │ 00:00:19 #195 [Debug] buildFile / takeWhileInclusive / fsxContent: / │ │ errors: [] / typeErrorCount: 0 │ │ 00:00:19 #196 [Debug] sendJson / port: 13805 / json: │ │ {"FileOpen":{"spiText":"union a =\n | B\n | c\n\ninl main () =\n │ │ ()\n","uri":"file:///tmp/!dotnet-repl/20240325-2019-3791-9103-925204cadb8b/m │ │ ain.spi"}} / result.Length: │ │ 00:00:19 #197 [Debug] sendJson / port: 13805 / json: │ │ {"BuildFile":{"backend":"Fsharp","uri":"file:///tmp/!dotnet-repl/20240325-20 │ │ 19-3791-9103-925204cadb8b/main.spi"}} / result.Length: │ │ 00:00:19 #198 [Verbose] > Building │ │ /tmp/!dotnet-repl/20240325-2019-3791-9103-925204cadb8b/main.spi │ │ 00:00:19 #199 [Debug] buildFile / takeWhileInclusive / fsxContent: / │ │ errors: [ │ │ [ │ │ "main.spi: │ │ Expected: uppercase variable", │ │ { │ │ "ParserErrors": { │ │ "errors": [ │ │ [ │ │ [ │ │ { │ │ "character": 6, │ │ "line": 2 │ │ }, │ │ { │ │ "character": 7, │ │ "line": 2 │ │ } │ │ ], │ │ "Expected: uppercase variable" │ │ ] │ │ ], │ │ "uri": │ │ "file:///tmp/!dotnet-repl/20240325-2019-3791-9103-925204cadb8b/main.spi" │ │ } │ │ } │ │ ] │ │ ] / typeErrorCount: 0 │ │ 00:00:19 #200 [Debug] watchWithFilter / Disposing watch stream / filter: │ │ FileName, LastWrite │ │ FSharpOption<Tuple<FSharpOption<String>,FSharpList<String>>> │ │ Value: - <null> │ │ - [ main.spi: │ │ Expected: uppercase variable ] │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── //// test """ /// abc inl main () = () """ |> buildCode 10000 None |> Async.runWithTimeout 10000 |> Option.map (fun (fsxContent, errors) -> fsxContent, errors |> List.map fst) |> _assertEqual ( Some ( None, [[ "main.spi: Expected: whitespace" ]] ) ) ╭─[ 852.39ms - stdout ]────────────────────────────────────────────────────────╮ │ 00:00:19 #202 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:19 #203 [Debug] executeAsync / options: { Command = │ │ "dotnet "/home/runner/work/polyglot/polyglot/deps/The-Spiral-Language/The │ │ Spiral Language 2/artifacts/bin/The Spiral Language 2/release/Spiral.dll" │ │ --port 13805 --default-int i32 --default-float f64" │ │ WorkingDirectory = None │ │ CancellationToken = Some System.Threading.CancellationToken │ │ OnLine = Some <fun:buildCode@3-1005> } │ │ 00:00:20 #204 [Verbose] > pwd: │ │ /home/runner/work/polyglot/polyglot/apps/spiral │ │ 00:00:20 #205 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:20 #207 [Verbose] > dll_path: │ │ /home/runner/work/polyglot/polyglot/deps/The-Spiral-Language/The Spiral │ │ Language 2/artifacts/bin/The Spiral Language 2/release │ │ 00:00:20 #206 [Verbose] waitForPortAccess / port: 13805 / retry: 0 │ │ 00:00:20 #208 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:20 #209 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:20 #210 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:20 #211 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:20 #212 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:20 #213 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:20 #214 [Verbose] > Starting the Spiral Server. It is bound to: │ │ http://localhost:13805 │ │ 00:00:20 #215 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:20 #216 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:20 #217 [Debug] sendJson / port: 13805 / json: {"Ping":true} / │ │ result.Length: │ │ 00:00:20 #218 [Verbose] awaitCompiler / Ping / result: Some(null) / port: │ │ 13805 / retry: 0 │ │ 00:00:20 #219 [Verbose] > Server bound to: http://localhost:13805 │ │ 00:00:20 #220 [Debug] buildFile / takeWhileInclusive / fsxContent: / │ │ errors: [] / typeErrorCount: 0 │ │ 00:00:20 #221 [Debug] buildFile / takeWhileInclusive / fsxContent: / │ │ errors: [] / typeErrorCount: 0 │ │ 00:00:20 #222 [Debug] sendJson / port: 13805 / json: │ │ {"FileOpen":{"spiText":"\n/// abc\ninl main () =\n │ │ ()\n","uri":"file:///tmp/!dotnet-repl/20240325-2019-3889-8972-8b90b4a12ba2/m │ │ ain.spi"}} / result.Length: │ │ 00:00:20 #223 [Debug] sendJson / port: 13805 / json: │ │ {"BuildFile":{"backend":"Fsharp","uri":"file:///tmp/!dotnet-repl/20240325-20 │ │ 19-3889-8972-8b90b4a12ba2/main.spi"}} / result.Length: │ │ 00:00:20 #224 [Debug] buildFile / takeWhileInclusive / fsxContent: / │ │ errors: [ │ │ [ │ │ "main.spi: │ │ Expected: whitespace", │ │ { │ │ "TokenizerErrors": { │ │ "errors": [ │ │ [ │ │ [ │ │ { │ │ "character": 2, │ │ "line": 1 │ │ }, │ │ { │ │ "character": 3, │ │ "line": 1 │ │ } │ │ ], │ │ "Expected: whitespace" │ │ ] │ │ ], │ │ "uri": │ │ "file:///tmp/!dotnet-repl/20240325-2019-3889-8972-8b90b4a12ba2/main.spi" │ │ } │ │ } │ │ ] │ │ ] / typeErrorCount: 0 │ │ 00:00:20 #225 [Debug] watchWithFilter / Disposing watch stream / filter: │ │ FileName, LastWrite │ │ FSharpOption<Tuple<FSharpOption<String>,FSharpList<String>>> │ │ Value: - <null> │ │ - [ main.spi: │ │ Expected: whitespace ] │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── //// test """ inl main () = real inl real_unbox forall a. (obj : a) : a = typecase obj with | _ => obj real_unbox () () """ |> buildCode 10000 None |> Async.runWithTimeout 10000 |> Option.map (fun (fsxContent, errors) -> fsxContent, errors |> List.map fst) |> _assertEqual ( Some ( None, [[ "Cannot apply a forall with a term." ]] ) ) ╭─[ 1.95s - stdout ]───────────────────────────────────────────────────────────╮ │ 00:00:20 #226 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:20 #227 [Debug] executeAsync / options: { Command = │ │ "dotnet "/home/runner/work/polyglot/polyglot/deps/The-Spiral-Language/The │ │ Spiral Language 2/artifacts/bin/The Spiral Language 2/release/Spiral.dll" │ │ --port 13805 --default-int i32 --default-float f64" │ │ WorkingDirectory = None │ │ CancellationToken = Some System.Threading.CancellationToken │ │ OnLine = Some <fun:buildCode@3-1005> } │ │ 00:00:20 #229 [Verbose] > pwd: │ │ /home/runner/work/polyglot/polyglot/apps/spiral │ │ 00:00:20 #230 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:20 #231 [Verbose] waitForPortAccess / port: 13805 / retry: 0 │ │ 00:00:20 #232 [Verbose] > dll_path: │ │ /home/runner/work/polyglot/polyglot/deps/The-Spiral-Language/The Spiral │ │ Language 2/artifacts/bin/The Spiral Language 2/release │ │ 00:00:20 #233 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:20 #234 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:20 #235 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:20 #236 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:20 #237 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:21 #238 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:21 #239 [Verbose] > Starting the Spiral Server. It is bound to: │ │ http://localhost:13805 │ │ 00:00:21 #240 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:21 #241 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:21 #242 [Debug] sendJson / port: 13805 / json: {"Ping":true} / │ │ result.Length: │ │ 00:00:21 #243 [Verbose] awaitCompiler / Ping / result: Some(null) / port: │ │ 13805 / retry: 0 │ │ 00:00:21 #244 [Verbose] > Server bound to: http://localhost:13805 │ │ 00:00:21 #245 [Debug] buildFile / takeWhileInclusive / fsxContent: / │ │ errors: [] / typeErrorCount: 0 │ │ 00:00:21 #246 [Debug] buildFile / takeWhileInclusive / fsxContent: / │ │ errors: [] / typeErrorCount: 0 │ │ 00:00:21 #247 [Debug] sendJson / port: 13805 / json: │ │ {"FileOpen":{"spiText":"\ninl main () =\n real\n inl real_unbox │ │ forall a. (obj : a) : a =\n typecase obj with\n | _ │ │ =\u003E obj\n real_unbox ()\n │ │ ()\n","uri":"file:///tmp/!dotnet-repl/20240325-2019-3978-7829-7c06da5056ed/m │ │ ain.spi"}} / result.Length: │ │ 00:00:21 #248 [Debug] sendJson / port: 13805 / json: │ │ {"BuildFile":{"backend":"Fsharp","uri":"file:///tmp/!dotnet-repl/20240325-20 │ │ 19-3978-7829-7c06da5056ed/main.spi"}} / result.Length: │ │ 00:00:21 #249 [Verbose] > Building │ │ /tmp/!dotnet-repl/20240325-2019-3978-7829-7c06da5056ed/main.spi │ │ 00:00:22 #251 [Debug] buildFile / takeWhileInclusive / fsxContent: / │ │ errors: [] / typeErrorCount: 0 │ │ 00:00:22 #252 [Debug] buildFile / takeWhileInclusive / fsxContent: / │ │ errors: [ │ │ [ │ │ "Cannot apply a forall with a term.", │ │ { │ │ "TracedError": { │ │ "message": "Cannot apply a forall with a term.", │ │ "trace": [ │ │ "Error trace on line: 2, column: 10 in module: │ │ /tmp/!dotnet-repl/20240325-2019-3978-7829-7c06da5056ed/main.spi. │ │ inl main () = │ │ ^ │ │ ", │ │ "Error trace on line: 4, column: 9 in module: │ │ /tmp/!dotnet-repl/20240325-2019-3978-7829-7c06da5056ed/main.spi. │ │ inl real_unbox forall a. (obj : a) : a = │ │ ^ │ │ ", │ │ "Error trace on line: 7, column: 9 in module: │ │ /tmp/!dotnet-repl/20240325-2019-3978-7829-7c06da5056ed/main.spi. │ │ real_unbox () │ │ ^ │ │ " │ │ ] │ │ } │ │ } │ │ ] │ │ ] / typeErrorCount: 0 │ │ 00:00:22 #253 [Debug] watchWithFilter / Disposing watch stream / filter: │ │ FileName, LastWrite │ │ FSharpOption<Tuple<FSharpOption<String>,FSharpList<String>>> │ │ Value: - <null> │ │ - [ Cannot apply a forall with a term. ] │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── //// test """ inl main () = real inl real_unbox forall a. (obj : a) : a = typecase obj with | _ => obj real_unbox `i32 1 """ |> buildCode 10000 None |> Async.runWithTimeout 10000 |> Option.map (fun (fsxContent, errors) -> fsxContent, errors |> List.map fst) |> _assertEqual ( Some ( None, [[ "The main function should not have a forall." ]] ) ) ╭─[ 1.82s - stdout ]───────────────────────────────────────────────────────────╮ │ 00:00:22 #254 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:22 #255 [Debug] executeAsync / options: { Command = │ │ "dotnet "/home/runner/work/polyglot/polyglot/deps/The-Spiral-Language/The │ │ Spiral Language 2/artifacts/bin/The Spiral Language 2/release/Spiral.dll" │ │ --port 13805 --default-int i32 --default-float f64" │ │ WorkingDirectory = None │ │ CancellationToken = Some System.Threading.CancellationToken │ │ OnLine = Some <fun:buildCode@3-1005> } │ │ 00:00:22 #257 [Verbose] > pwd: │ │ /home/runner/work/polyglot/polyglot/apps/spiral │ │ 00:00:22 #258 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:22 #259 [Verbose] waitForPortAccess / port: 13805 / retry: 0 │ │ 00:00:22 #260 [Verbose] > dll_path: │ │ /home/runner/work/polyglot/polyglot/deps/The-Spiral-Language/The Spiral │ │ Language 2/artifacts/bin/The Spiral Language 2/release │ │ 00:00:22 #261 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:22 #262 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:22 #263 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:22 #264 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:22 #265 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:22 #266 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:22 #267 [Verbose] > Starting the Spiral Server. It is bound to: │ │ http://localhost:13805 │ │ 00:00:22 #268 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:23 #269 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:23 #270 [Debug] sendJson / port: 13805 / json: {"Ping":true} / │ │ result.Length: │ │ 00:00:23 #271 [Verbose] awaitCompiler / Ping / result: Some(null) / port: │ │ 13805 / retry: 0 │ │ 00:00:23 #272 [Verbose] > Server bound to: http://localhost:13805 │ │ 00:00:23 #273 [Debug] buildFile / takeWhileInclusive / fsxContent: / │ │ errors: [] / typeErrorCount: 0 │ │ 00:00:23 #274 [Debug] buildFile / takeWhileInclusive / fsxContent: / │ │ errors: [] / typeErrorCount: 0 │ │ 00:00:23 #275 [Debug] sendJson / port: 13805 / json: │ │ {"FileOpen":{"spiText":"\ninl main () =\n real\n inl real_unbox │ │ forall a. (obj : a) : a =\n typecase obj with\n | _ │ │ =\u003E obj\n real_unbox \u0060i32 │ │ 1\n","uri":"file:///tmp/!dotnet-repl/20240325-2019-4174-7450-749abff5829a/ma │ │ in.spi"}} / result.Length: │ │ 00:00:23 #276 [Debug] sendJson / port: 13805 / json: │ │ {"BuildFile":{"backend":"Fsharp","uri":"file:///tmp/!dotnet-repl/20240325-20 │ │ 19-4174-7450-749abff5829a/main.spi"}} / result.Length: │ │ 00:00:23 #277 [Verbose] > Building │ │ /tmp/!dotnet-repl/20240325-2019-4174-7450-749abff5829a/main.spi │ │ 00:00:24 #279 [Debug] buildFile / takeWhileInclusive / fsxContent: / │ │ errors: [] / typeErrorCount: 0 │ │ 00:00:24 #280 [Debug] buildFile / takeWhileInclusive / fsxContent: / │ │ errors: [ │ │ [ │ │ "The main function should not have a forall.", │ │ { │ │ "TracedError": { │ │ "message": "The main function should not have a forall.", │ │ "trace": [] │ │ } │ │ } │ │ ] │ │ ] / typeErrorCount: 0 │ │ 00:00:24 #281 [Debug] watchWithFilter / Disposing watch stream / filter: │ │ FileName, LastWrite │ │ FSharpOption<Tuple<FSharpOption<String>,FSharpList<String>>> │ │ Value: - <null> │ │ - [ The main function should not have a forall. ] │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── //// test """ inl init_series start end inc = inl total : f64 = conv ((end - start) / inc) + 1 listm.init total (conv >> (*) inc >> (+) start) : list f64 type integration = (f64 -> f64) -> f64 -> f64 -> f64 inl integral dt : integration = fun f a b => init_series (a + dt / 2) (b - dt / 2) dt |> listm.map (f >> (*) dt) |> listm.fold (+) 0 inl main () = integral 0.1 (fun x => x ** 2) 0 1 """ |> buildCode 10000 None |> Async.runWithTimeout 10000 |> Option.map (fun (fsxContent, errors) -> fsxContent, errors |> List.map fst) |> _assertEqual ( Some ( Some "0.3325000000000001\n", [[]] ) ) ╭─[ 1.94s - stdout ]───────────────────────────────────────────────────────────╮ │ 00:00:24 #282 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:24 #283 [Debug] executeAsync / options: { Command = │ │ "dotnet "/home/runner/work/polyglot/polyglot/deps/The-Spiral-Language/The │ │ Spiral Language 2/artifacts/bin/The Spiral Language 2/release/Spiral.dll" │ │ --port 13805 --default-int i32 --default-float f64" │ │ WorkingDirectory = None │ │ CancellationToken = Some System.Threading.CancellationToken │ │ OnLine = Some <fun:buildCode@3-1005> } │ │ 00:00:24 #284 [Verbose] > pwd: │ │ /home/runner/work/polyglot/polyglot/apps/spiral │ │ 00:00:24 #285 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:24 #286 [Verbose] waitForPortAccess / port: 13805 / retry: 0 │ │ 00:00:24 #287 [Verbose] > dll_path: │ │ /home/runner/work/polyglot/polyglot/deps/The-Spiral-Language/The Spiral │ │ Language 2/artifacts/bin/The Spiral Language 2/release │ │ 00:00:24 #288 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:24 #289 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:24 #290 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:24 #291 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:24 #293 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:24 #294 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:24 #295 [Verbose] > Starting the Spiral Server. It is bound to: │ │ http://localhost:13805 │ │ 00:00:24 #296 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:24 #297 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:24 #298 [Debug] sendJson / port: 13805 / json: {"Ping":true} / │ │ result.Length: │ │ 00:00:24 #299 [Verbose] awaitCompiler / Ping / result: Some(null) / port: │ │ 13805 / retry: 0 │ │ 00:00:24 #300 [Verbose] > Server bound to: http://localhost:13805 │ │ 00:00:24 #301 [Debug] buildFile / takeWhileInclusive / fsxContent: / │ │ errors: [] / typeErrorCount: 0 │ │ 00:00:24 #302 [Debug] buildFile / takeWhileInclusive / fsxContent: / │ │ errors: [] / typeErrorCount: 0 │ │ 00:00:24 #303 [Debug] sendJson / port: 13805 / json: │ │ {"FileOpen":{"spiText":"\ninl init_series start end inc =\n inl total : │ │ f64 = conv ((end - start) / inc) \u002B 1\n listm.init total (conv │ │ \u003E\u003E (*) inc \u003E\u003E (\u002B) start) : list f64\n\ntype │ │ integration = (f64 -\u003E f64) -\u003E f64 -\u003E f64 -\u003E f64\n\ninl │ │ integral dt : integration =\n fun f a b =\u003E\n init_series (a │ │ \u002B dt / 2) (b - dt / 2) dt\n |\u003E listm.map (f \u003E\u003E │ │ (*) dt)\n |\u003E listm.fold (\u002B) 0\n\ninl main () =\n │ │ integral 0.1 (fun x =\u003E x ** 2) 0 │ │ 1\n","uri":"file:///tmp/!dotnet-repl/20240325-2019-4356-5655-5914c0e7f953/ma │ │ in.spi"}} / result.Length: │ │ 00:00:25 #304 [Debug] sendJson / port: 13805 / json: │ │ {"BuildFile":{"backend":"Fsharp","uri":"file:///tmp/!dotnet-repl/20240325-20 │ │ 19-4356-5655-5914c0e7f953/main.spi"}} / result.Length: │ │ 00:00:25 #305 [Verbose] > Building │ │ /tmp/!dotnet-repl/20240325-2019-4356-5655-5914c0e7f953/main.spi │ │ 00:00:25 #307 [Debug] buildFile / takeWhileInclusive / fsxContent: / │ │ errors: [] / typeErrorCount: 0 │ │ 00:00:26 #308 [Debug] buildFile / takeWhileInclusive / fsxContent: │ │ 0.3325000000000001 │ │ / errors: [] / typeErrorCount: 0 │ │ 00:00:26 #309 [Debug] watchWithFilter / Disposing watch stream / filter: │ │ FileName, LastWrite │ │ FSharpOption<Tuple<FSharpOption<String>,FSharpList<String>>> │ │ Value: - FSharpOption<String> │ │ Value: 0.3325000000000001 │ │ │ │ - [ ] │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── //// test """ inl init_series start end inc = inl total : f64 = conv ((end - start) / inc) + 1 listm.init total (conv >> (*) inc >> (+) start) : list f64 type integration = (f64 -> f64) -> f64 -> f64 -> f64 inl integral dt : integration = fun f a b => init_series (a + dt / 2) (b - dt / 2) dt |> listm.map (f >> (*) dt) |> listm.fold (+) 0 inl main () = integral 0.01 (fun x => x ** 2) 0 1 """ |> buildCode 10000 None |> Async.runWithTimeout 10000 |> Option.map (fun (fsxContent, errors) -> fsxContent, errors |> List.map fst) |> _assertEqual ( Some ( Some "0.33332500000000004\n", [[]] ) ) // |> _assertEqual None // |> fun x -> printfn $"{x.ToDisplayString ()}" ╭─[ 1.98s - stdout ]───────────────────────────────────────────────────────────╮ │ 00:00:26 #310 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:26 #311 [Debug] executeAsync / options: { Command = │ │ "dotnet "/home/runner/work/polyglot/polyglot/deps/The-Spiral-Language/The │ │ Spiral Language 2/artifacts/bin/The Spiral Language 2/release/Spiral.dll" │ │ --port 13805 --default-int i32 --default-float f64" │ │ WorkingDirectory = None │ │ CancellationToken = Some System.Threading.CancellationToken │ │ OnLine = Some <fun:buildCode@3-1005> } │ │ 00:00:26 #312 [Verbose] > pwd: │ │ /home/runner/work/polyglot/polyglot/apps/spiral │ │ 00:00:26 #313 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:26 #315 [Verbose] > dll_path: │ │ /home/runner/work/polyglot/polyglot/deps/The-Spiral-Language/The Spiral │ │ Language 2/artifacts/bin/The Spiral Language 2/release │ │ 00:00:26 #314 [Verbose] waitForPortAccess / port: 13805 / retry: 0 │ │ 00:00:26 #316 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:26 #317 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:26 #318 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:26 #319 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:26 #320 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:26 #321 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:26 #322 [Verbose] > Starting the Spiral Server. It is bound to: │ │ http://localhost:13805 │ │ 00:00:26 #323 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:26 #325 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:26 #326 [Debug] sendJson / port: 13805 / json: {"Ping":true} / │ │ result.Length: │ │ 00:00:26 #327 [Verbose] awaitCompiler / Ping / result: Some(null) / port: │ │ 13805 / retry: 0 │ │ 00:00:26 #328 [Verbose] > Server bound to: http://localhost:13805 │ │ 00:00:26 #329 [Debug] buildFile / takeWhileInclusive / fsxContent: / │ │ errors: [] / typeErrorCount: 0 │ │ 00:00:26 #330 [Debug] buildFile / takeWhileInclusive / fsxContent: / │ │ errors: [] / typeErrorCount: 0 │ │ 00:00:26 #331 [Debug] sendJson / port: 13805 / json: │ │ {"FileOpen":{"spiText":"\ninl init_series start end inc =\n inl total : │ │ f64 = conv ((end - start) / inc) \u002B 1\n listm.init total (conv │ │ \u003E\u003E (*) inc \u003E\u003E (\u002B) start) : list f64\n\ntype │ │ integration = (f64 -\u003E f64) -\u003E f64 -\u003E f64 -\u003E f64\n\ninl │ │ integral dt : integration =\n fun f a b =\u003E\n init_series (a │ │ \u002B dt / 2) (b - dt / 2) dt\n |\u003E listm.map (f \u003E\u003E │ │ (*) dt)\n |\u003E listm.fold (\u002B) 0\n\ninl main () =\n │ │ integral 0.01 (fun x =\u003E x ** 2) 0 │ │ 1\n","uri":"file:///tmp/!dotnet-repl/20240325-2019-4551-5152-54f940aed6e3/ma │ │ in.spi"}} / result.Length: │ │ 00:00:26 #332 [Debug] sendJson / port: 13805 / json: │ │ {"BuildFile":{"backend":"Fsharp","uri":"file:///tmp/!dotnet-repl/20240325-20 │ │ 19-4551-5152-54f940aed6e3/main.spi"}} / result.Length: │ │ 00:00:27 #333 [Verbose] > Building │ │ /tmp/!dotnet-repl/20240325-2019-4551-5152-54f940aed6e3/main.spi │ │ 00:00:27 #335 [Debug] buildFile / takeWhileInclusive / fsxContent: / │ │ errors: [] / typeErrorCount: 0 │ │ 00:00:28 #336 [Debug] buildFile / takeWhileInclusive / fsxContent: │ │ 0.33332500000000004 │ │ / errors: [] / typeErrorCount: 0 │ │ 00:00:28 #337 [Debug] watchWithFilter / Disposing watch stream / filter: │ │ FileName, LastWrite │ │ FSharpOption<Tuple<FSharpOption<String>,FSharpList<String>>> │ │ Value: - FSharpOption<String> │ │ Value: 0.33332500000000004 │ │ │ │ - [ ] │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## getFileTokenRange │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let inline getFileTokenRange port cancellationToken path = async { let fullPath = path |> System.IO.Path.GetFullPath let! code = fullPath |> FileSystem.readAllTextAsync let lines = code |> String.split [[| '\n' |]] let token, disposable = Threading.newDisposableToken cancellationToken use _ = disposable let! serverPort, _errors, ct, disposable = awaitCompiler port (Some token) use _ = disposable let fileOpenObj = {| FileOpen = {| uri = fullPath |> getFileUri; spiText = code |} |} let! _fileOpenResult = fileOpenObj |> sendObj serverPort let fileTokenRangeObj = {| FileTokenRange = {| uri = fullPath |> getFileUri range = [[| {| line = 0; character = 0 |} {| line = lines.Length - 1; character = lines.[[lines.Length - 1]].Length |} |]] |} |} let! fileTokenRangeResult = fileTokenRangeObj |> sendObj serverPort |> Async.withCancellationToken ct return fileTokenRangeResult |> Option.map FSharp.Json.Json.deserialize<int array> } ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## getCodeTokenRange │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let inline getCodeTokenRange cancellationToken code = async { let! mainPath, disposable = persistCode code use _ = disposable let port = getCompilerPort () return! mainPath |> getFileTokenRange port cancellationToken } ── fsharp ────────────────────────────────────────────────────────────────────── //// test """inl main () = ()""" |> getCodeTokenRange None |> Async.runWithTimeout 10000 |> Option.flatten |> _assertEqual (Some [[| 0; 0; 3; 7; 0; 0; 4; 4; 0; 0; 0; 5; 1; 8; 0; 0; 1; 1; 8; 0; 0; 2; 1; 4; 0; 0; 2; 1; 8; 0; 0; 1; 1; 8; 0 |]]) ╭─[ 2.94s - stdout ]───────────────────────────────────────────────────────────╮ │ 00:00:32 #342 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:32 #343 [Debug] executeAsync / options: { Command = │ │ "dotnet "/home/runner/work/polyglot/polyglot/deps/The-Spiral-Language/The │ │ Spiral Language 2/artifacts/bin/The Spiral Language 2/release/Spiral.dll" │ │ --port 13805 --default-int i32 --default-float f64" │ │ WorkingDirectory = None │ │ CancellationToken = Some System.Threading.CancellationToken │ │ OnLine = Some <fun:it@4-434> } │ │ 00:00:33 #345 [Verbose] > pwd: │ │ /home/runner/work/polyglot/polyglot/apps/spiral │ │ 00:00:33 #346 [Verbose] > dll_path: │ │ /home/runner/work/polyglot/polyglot/deps/The-Spiral-Language/The Spiral │ │ Language 2/artifacts/bin/The Spiral Language 2/release │ │ 00:00:33 #347 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:33 #348 [Verbose] waitForPortAccess / port: 13805 / retry: 0 │ │ 00:00:33 #349 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:33 #350 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:33 #351 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:33 #352 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:33 #353 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:33 #354 [Verbose] > Starting the Spiral Server. It is bound to: │ │ http://localhost:13805 │ │ 00:00:33 #355 [Debug] runWithTimeoutAsync / timeout: 500 │ │ 00:00:33 #356 [Debug] sendJson / port: 13805 / json: {"Ping":true} / │ │ result.Length: │ │ 00:00:33 #357 [Verbose] awaitCompiler / Ping / result: Some(null) / port: │ │ 13805 / retry: 0 │ │ 00:00:33 #358 [Verbose] > Server bound to: http://localhost:13805 │ │ 00:00:33 #359 [Debug] sendJson / port: 13805 / json: │ │ {"FileOpen":{"spiText":"inl main () = │ │ ()","uri":"file:///tmp/!dotnet-repl/20240325-2019-5190-9054-9a340ffd8c2e/mai │ │ n.spi"}} / result.Length: │ │ 00:00:34 #361 [Debug] sendJson / port: 13805 / json: │ │ {"FileTokenRange":{"range":[ │ │ {"character":0,"line":0},{"character":16,"line":0}],"uri":"file:///tmp/!dotn │ │ et-repl/20240325-2019-5190-9054-9a340ffd8c2e/main.spi"}} / result.Length: │ │ Some(177) │ │ FSharpOption<Int32[]> │ │ Value: [ 0, 0, 3, 7, 0, 0, 4, 4, 0, 0, 0, 5, 1, 8, 0, 0, 1, 1, 8, 0, │ │ 0, 2, 1, 4, 0, 0, 2, 1, 8, 0, 0, 1, 1, 8, 0 ] │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── //// test """inl main () = 1i32""" |> getCodeTokenRange None |> Async.runWithTimeout 10000 |> Option.flatten |> _assertEqual (Some [[| 0; 0; 3; 7; 0; 0; 4; 4; 0; 0; 0; 5; 1; 8; 0; 0; 1; 1; 8; 0; 0; 2; 1; 4; 0; 0; 2; 1; 3; 0; 0; 1; 3; 12; 0 |]]) ╭─[ 2.60s - stdout ]───────────────────────────────────────────────────────────╮ │ 00:00:35 #363 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:35 #364 [Debug] executeAsync / options: { Command = │ │ "dotnet "/home/runner/work/polyglot/polyglot/deps/The-Spiral-Language/The │ │ Spiral Language 2/artifacts/bin/The Spiral Language 2/release/Spiral.dll" │ │ --port 13805 --default-int i32 --default-float f64" │ │ WorkingDirectory = None │ │ CancellationToken = Some System.Threading.CancellationToken │ │ OnLine = Some <fun:it@4-801> } │ │ 00:00:36 #366 [Verbose] > pwd: │ │ /home/runner/work/polyglot/polyglot/apps/spiral │ │ 00:00:36 #367 [Verbose] > dll_path: │ │ /home/runner/work/polyglot/polyglot/deps/The-Spiral-Language/The Spiral │ │ Language 2/artifacts/bin/The Spiral Language 2/release │ │ 00:00:36 #368 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:36 #369 [Verbose] waitForPortAccess / port: 13805 / retry: 0 │ │ 00:00:36 #370 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:36 #371 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:36 #372 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:36 #373 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:36 #374 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:36 #375 [Verbose] > Starting the Spiral Server. It is bound to: │ │ http://localhost:13805 │ │ 00:00:36 #376 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:36 #377 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:36 #378 [Debug] sendJson / port: 13805 / json: {"Ping":true} / │ │ result.Length: │ │ 00:00:36 #379 [Verbose] awaitCompiler / Ping / result: Some(null) / port: │ │ 13805 / retry: 0 │ │ 00:00:36 #380 [Verbose] > Server bound to: http://localhost:13805 │ │ 00:00:36 #381 [Debug] sendJson / port: 13805 / json: │ │ {"FileOpen":{"spiText":"inl main () = │ │ 1i32","uri":"file:///tmp/!dotnet-repl/20240325-2019-5503-0302-0a47ad97d461/m │ │ ain.spi"}} / result.Length: │ │ 00:00:36 #382 [Debug] sendJson / port: 13805 / json: │ │ {"FileTokenRange":{"range":[ │ │ {"character":0,"line":0},{"character":18,"line":0}],"uri":"file:///tmp/!dotn │ │ et-repl/20240325-2019-5503-0302-0a47ad97d461/main.spi"}} / result.Length: │ │ Some(178) │ │ FSharpOption<Int32[]> │ │ Value: [ 0, 0, 3, 7, 0, 0, 4, 4, 0, 0, 0, 5, 1, 8, 0, 0, 1, 1, 8, 0, │ │ 0, 2, 1, 4, 0, 0, 2, 1, 3, 0, 0, 1, 3, 12, 0 ] │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## Arguments │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── [[<RequireQualifiedAccess>]] type Arguments = | Build_File of string * string | File_Token_Range of string * string | Execute_Command of string | Timeout of int | Port of int interface Argu.IArgParserTemplate with member s.Usage = match s with | Build_File _ -> nameof Build_File | File_Token_Range _ -> nameof File_Token_Range | Execute_Command _ -> nameof Execute_Command | Timeout _ -> nameof Timeout | Port _ -> nameof Port ── fsharp ────────────────────────────────────────────────────────────────────── //// test Argu.ArgumentParser.Create<Arguments>().PrintUsage () ╭─[ 90.05ms - return value ]───────────────────────────────────────────────────╮ │ USAGE: dotnet-repl [--help] [--build-file <string> <string>] │ │ [--file-token-range <string> <string>] │ │ [--execute-command <string>] [--timeout <int>] [--port │ │ <int>] │ │ │ │ OPTIONS: │ │ │ │ --build-file <string> <string> │ │ Build_File │ │ --file-token-range <string> <string> │ │ File_Token_Range │ │ --execute-command <string> │ │ Execute_Command │ │ --timeout <int> Timeout │ │ --port <int> Port │ │ --help display this list of options. │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## main │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let main args = let argsMap = args |> Runtime.parseArgsMap<Arguments> let buildFileActions = argsMap |> Map.tryFind (nameof Arguments.Build_File) |> Option.defaultValue [[]] |> List.choose (function | Arguments.Build_File (inputPath, outputPath) -> Some (inputPath, outputPath) | _ -> None ) let fileTokenRangeActions = argsMap |> Map.tryFind (nameof Arguments.File_Token_Range) |> Option.defaultValue [[]] |> List.choose (function | Arguments.File_Token_Range (inputPath, outputPath) -> Some (inputPath, outputPath) | _ -> None ) let executeCommandActions = argsMap |> Map.tryFind (nameof Arguments.Execute_Command) |> Option.defaultValue [[]] |> List.choose (function | Arguments.Execute_Command command -> Some command | _ -> None ) let timeout = match argsMap |> Map.tryFind (nameof Arguments.Timeout) with | Some [[ Arguments.Timeout timeout ]] -> timeout | _ -> 60000 * 60 let port = match argsMap |> Map.tryFind (nameof Arguments.Port) with | Some [[ Arguments.Port port ]] -> Some port | _ -> None async { let! buildFileResult = buildFileActions |> List.map (fun (inputPath, outputPath) -> async { let port = port |> Option.defaultWith getCompilerPort let! outputCode, errors = inputPath |> buildFile timeout port None errors |> List.map snd |> List.iter (fun error -> trace Critical (fun () -> $"main / error: {error |> serializeObj}") getLocals ) match outputCode with | Some outputCode -> do! outputCode |> FileSystem.writeAllTextAsync outputPath return 0 | None -> return 1 }) |> Async.Sequential let! fileTokenRangeResult = fileTokenRangeActions |> List.map (fun (inputPath, outputPath) -> async { let port = port |> Option.defaultWith getCompilerPort let! tokenRange = inputPath |> getFileTokenRange port None match tokenRange with | Some tokenRange -> do! tokenRange |> FSharp.Json.Json.serialize |> FileSystem.writeAllTextAsync outputPath return 0 | None -> return 1 }) |> Async.Sequential let! executeCommandResult = executeCommandActions |> List.map (fun command -> async { let port = port |> Option.defaultWith getCompilerPort let localToken, disposable = Threading.newDisposableToken None use _ = disposable let! serverPort, _errors, compilerToken, disposable = awaitCompiler port (Some localToken) use _ = disposable let! exitCode, result = Runtime.executeWithOptionsAsync { Command = command CancellationToken = Some compilerToken WorkingDirectory = None OnLine = None } trace Debug (fun () -> $"main / executeCommand / exitCode: {exitCode}") getLocals return exitCode }) |> Async.Sequential return [[| buildFileResult; fileTokenRangeResult; executeCommandResult |]] |> Array.collect id |> Array.sum } |> Async.runWithTimeout timeout |> Option.defaultValue 1 ── fsharp ────────────────────────────────────────────────────────────────────── //// test let args = System.Environment.GetEnvironmentVariable "ARGS" |> Runtime.splitArgs |> Seq.toArray match args with | [[||]] -> 0 | args -> if main args = 0 then 0 else failwith "main failed" ╭─[ 46.74ms - return value ]───────────────────────────────────────────────────╮ │ <div class="dni-plaintext"><pre>0</pre></div><style> │ │ .dni-code-hint { │ │ font-style: italic; │ │ overflow: hidden; │ │ white-space: nowrap; │ │ } │ │ .dni-treeview { │ │ white-space: nowrap; │ │ } │ │ .dni-treeview td { │ │ vertical-align: top; │ │ text-align: start; │ │ } │ │ details.dni-treeview { │ │ padding-left: 1em; │ │ } │ │ table td { │ │ text-align: start; │ │ } │ │ table tr { │ │ vertical-align: top; │ │ margin: 0em 0px; │ │ } │ │ table tr td pre │ │ { │ │ vertical-align: top !important; │ │ margin: 0em 0px !important; │ │ } │ │ table th { │ │ text-align: start; │ │ } │ │ </style> │ ╰──────────────────────────────────────────────────────────────────────────────╯ [NbConvertApp] Converting notebook Supervisor.dib.ipynb to html /opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/nbformat/__init__.py:96: MissingIDFieldWarning: Cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future. validate(nb) /opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/nbconvert/filters/highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3 return _pygments_highlight( [NbConvertApp] Writing 462086 bytes to Supervisor.dib.html 00:00:00 #1 [Debug] writeDibCode / output: Fs / path: Supervisor.dib 00:00:00 #2 [Debug] parseDibCode / output: Fs / file: Supervisor.dib 00:00:00 #1 [Debug] persistCodeProject / packages: [Argu; FSharp.Control.AsyncSeq; FSharp.Json; ... ] / modules: [lib/fsharp/Common.fs; lib/fsharp/CommonFSharp.fs; lib/fsharp/Threading.fs; ... ] / name: Supervisor / code.Length: 19286 00:00:00 #2 [Debug] buildProject / fullPath: /home/runner/work/polyglot/polyglot/target/polyglot/builder/Supervisor/Supervisor.fsproj 00:00:00 #3 [Debug] executeAsync / options: { Command = "dotnet publish "/home/runner/work/polyglot/polyglot/target/polyglot/builder/Supervisor/Supervisor.fsproj" --configuration Release --output "/home/runner/work/polyglot/polyglot/apps/spiral/dist" --runtime linux-x64" WorkingDirectory = Some "/home/runner/work/polyglot/polyglot/target/polyglot/builder/Supervisor" CancellationToken = None OnLine = None } 00:00:00 #4 [Verbose] > MSBuild version 17.10.0-preview-24101-01+07fd5d51f for .NET 00:00:00 #5 [Verbose] > Determining projects to restore... 00:00:00 #6 [Verbose] > All projects are up-to-date for restore. 00:00:01 #7 [Verbose] > /usr/share/dotnet/sdk/9.0.100-preview.1.24101.2/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.RuntimeIdentifierInference.targets(313,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [/home/runner/work/polyglot/polyglot/target/polyglot/builder/Supervisor/Supervisor.fsproj] 00:00:09 #8 [Verbose] > Supervisor -> /home/runner/work/polyglot/polyglot/target/polyglot/builder/Supervisor/bin/Release/net9.0/linux-x64/Supervisor.dll 00:00:10 #9 [Verbose] > Supervisor -> /home/runner/work/polyglot/polyglot/apps/spiral/dist 00:00:10 #10 [Debug] executeAsync / exitCode: 0 / output.Length: 670 ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ # Eval (Polyglot) │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── #!import ../../lib/fsharp/Notebooks.dib #!import ../../lib/fsharp/Testing.dib ── fsharp - import ───────────────────────────────────────────────────────────── #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Asp NetCore.Html.Abstractions.dll" #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Dot Net.Interactive.dll" #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Dot Net.Interactive.FSharp.dll" #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Dot Net.Interactive.Formatting.dll" open System open System.IO open System.Text open Microsoft.DotNet.Interactive.Formatting ── fsharp - import ───────────────────────────────────────────────────────────── #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Dot Net.Interactive.FSharp.dll" open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Dot Net.Interactive.dll" open type Microsoft.DotNet.Interactive.Kernel ── fsharp - import ───────────────────────────────────────────────────────────── //// test Formatter.ListExpansionLimit <- 100 ── fsharp - import ───────────────────────────────────────────────────────────── #r @"../../../../../../../.nuget/packages/expecto/10.2.1/lib/net6.0/Expecto.dll" ── fsharp - import ───────────────────────────────────────────────────────────── //// test type AssertExceptionFormatter (ex) = member _.Text = ex.ToString() .Replace("32m", "<span style=\"color: green;\">") .Replace("36m", "</span>") .Replace("31m", "<span style=\"color: red;\">") .Replace("\n", "<br/>\n") Formatter.Register<AssertExceptionFormatter> ((fun (x : AssertExceptionFormatter) -> x.Text), "text/html") ── fsharp - import ───────────────────────────────────────────────────────────── //// test let inline __expect fn log expected actual = if log then printfn $"{actual.ToDisplayString ()}" try "Testing.__expect" |> fn actual expected with :? Expecto.AssertException as ex -> AssertExceptionFormatter(ex).Display () |> ignore failwith (ex.GetType().FullName) let inline __contains log expected actual = __expect Expecto.Expect.contains log expected actual let inline _contains expected actual = __contains true expected actual let inline __assertEqual log expected actual = __expect Expecto.Expect.equal log expected actual let inline _assertEqual expected actual = __assertEqual true expected actual let inline __isGreaterThan log expected actual = __expect Expecto.Expect.isGreaterThan log ex... ── fsharp - import ───────────────────────────────────────────────────────────── //// test let inline __isBetween log a b actual = let inline isBetween actual (a, b) _ = __isGreaterThanOrEqual log a actual __isLessThanOrEqual log b actual __expect isBetween log (a, b) actual let inline _isBetween a b actual = __isBetween true a b actual ── fsharp ────────────────────────────────────────────────────────────────────── #r @"../../../../../../../.nuget/packages/fsharp.control.asyncseq/3.2.1/lib/netstan dard2.1/FSharp.Control.AsyncSeq.dll" #r @"../../../../../../../.nuget/packages/system.reactive/6.0.1-preview.1/lib/net6. 0/System.Reactive.dll" #r @"../../../../../../../.nuget/packages/system.reactive.linq/6.0.1-preview.1/lib/ netstandard2.0/System.Reactive.Linq.dll" #r @"../../../../../../../.nuget/packages/argu/6.2.2/lib/netstandard2.0/Argu.dll" #r @"../../../../../../../.nuget/packages/system.commandline/2.0.0-beta4.22272.1/li b/net6.0/System.CommandLine.dll" #r @"../../../../../../../.nuget/packages/microsoft.aspnetcore.http.connections.com mon/7.0.0/lib/net7.0/Microsoft.AspNetCore.Http.Connections.Common.dll" #r @"../../../../../../../.nuget/packages/microsoft.aspnetcore.http.connections.cli ent/7.0.0/lib/net7.0/Microsoft.AspNetCore.Http.Connections.Client.dll" #r @"../../../../../../../.nuget/packages/microsoft.aspnetcore.signalr.common/7.0.0 /lib/net7.0/Microsoft.AspNetCore.SignalR.Common.dll" #r @"../../../../../../../.nuget/packages/microsoft.aspnetcore.signalr.client/7.0.0 /lib/net7.0/Microsoft.AspNetCore.SignalR.Client.dll" #r @"../../../../../../../.nuget/packages/microsoft.aspnetcore.signalr.client.core/ 7.0.0/lib/net7.0/Microsoft.AspNetCore.SignalR.Client.Core.dll" #r @"../../../../../../../.nuget/packages/fsharp.json/0.4.1/lib/netstandard2.0/FSha rp.Json.dll" ── fsharp ────────────────────────────────────────────────────────────────────── #!import ../../lib/fsharp/Common.fs #!import ../../lib/fsharp/CommonFSharp.fs #!import ../../lib/fsharp/Threading.fs #!import ../../lib/fsharp/Async.fs #!import ../../lib/fsharp/AsyncSeq.fs #!import ../../lib/fsharp/Networking.fs #!import ../../lib/fsharp/Runtime.fs #!import ../../lib/fsharp/FileSystem.fs #!import ../../apps/builder/Builder.fs #!import ../../apps/spiral/Supervisor.fs ── fsharp - import ───────────────────────────────────────────────────────────── #if !INTERACTIVE namespace Polyglot #endif module Common = let nl = System.Environment.NewLine let q = @"""" let inline cons head tail = head :: tail module String = let inline contains (value : string) (input : string) = input.Contains value let inline endsWith (value : string) (input : string) = input.EndsWith value let inline padLeft totalWidth paddingChar (input : string) = input.PadLeft (totalWidth, paddingChar) let inline replace (oldValue : string) (newValue : string) (input : string) = input.Replace (oldValue, newValue) let inline split separator (input : string) = input.Split separator let inline spli... ── fsharp - import ───────────────────────────────────────────────────────────── #if !INTERACTIVE namespace Polyglot #endif module CommonFSharp = open Common /// ## getUnionCaseName let inline getUnionCaseName<'T> (x: 'T) = match Reflection.FSharpValue.GetUnionFields(x, typeof<'T>) with | case, _ -> case.Name ── fsharp - import ───────────────────────────────────────────────────────────── #if !INTERACTIVE namespace Polyglot #endif module Threading = open Common /// ## newDisposableToken let inline newDisposableToken (mergeToken: System.Threading.CancellationToken option) = let cts = new System.Threading.CancellationTokenSource () let cts = match mergeToken with | None -> cts | Some mergeToken -> System.Threading.CancellationTokenSource.CreateLinkedTokenSource [[| cts.Token; mergeToken |]] let disposable = newDisposable cts.Cancel cts.Token, disposable ── fsharp - import ───────────────────────────────────────────────────────────── #if !INTERACTIVE namespace Polyglot #endif module Async = open Common /// ## choice let inline choice asyncs = async { let e = Event<_> () use cts = new System.Threading.CancellationTokenSource () let fn = asyncs |> Seq.map (fun a -> async { let! x = a e.Trigger x }) |> Async.Parallel |> Async.Ignore Async.Start (fn, cts.Token) let! result = Async.AwaitEvent e.Publish cts.Cancel () return result } /// ## map let inline map fn a = async { let! x = a return fn x } /// ## catch let inline catch a = a |> Async.Catch ... ── fsharp - import ───────────────────────────────────────────────────────────── #if !INTERACTIVE namespace Polyglot #endif module AsyncSeq = open Common /// ## subscribeEvent let inline subscribeEvent (event: IEvent<'H, 'A>) map = let observable = System.Reactive.Linq.Observable.FromEventPattern<'H, 'A>(event.AddHandler, event.RemoveHandler) System.Reactive.Linq.Observable.Select (observable, fun event -> map event.EventArgs) |> FSharp.Control.AsyncSeq.ofObservableBuffered let subscribeToken (token : System.Threading.CancellationToken) = let tcs = new System.Threading.Tasks.TaskCompletionSource () System.Action tcs.SetResult |> token.Register |> ignore let start = System.DateTime.Now.Ticks FSharp.Control.AsyncSeq.unfoldAsync (fun (... ── fsharp - import ───────────────────────────────────────────────────────────── #if !INTERACTIVE namespace Polyglot #endif module Networking = open Common /// ## testPortOpen let inline testPortOpen port = async { let! ct = Async.CancellationToken use client = new System.Net.Sockets.TcpClient () try do! client.ConnectAsync ("127.0.0.1", port, ct) |> Async.awaitValueTaskUnit return true with ex -> trace Verbose (fun () -> $"testPortOpen / ex: {ex |> printException}") getLocals return false } let inline testPortOpenTimeout timeout port = async { let! result = testPortOpen port |> Async.runWithTimeoutAsync timeout return match result with | None -> false ... ── fsharp - import ───────────────────────────────────────────────────────────── #if !INTERACTIVE namespace Polyglot #endif module Runtime = open Common /// ## isWindows let isWindows = fun () -> System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform System.Runtime.InteropServices.OSPlatform.Windows |> memoize /// ## getExecutableSuffix let inline getExecutableSuffix () = if isWindows () then ".exe" else "" /// ## splitCommand type private CommandParseStep = | Start | Path of quoted: bool | Arguments let splitCommand (command: string) = let rec loop (path, args) chars step = match chars, step with | ('"' | '\'') :: tail, _ when path = "" -> loop (pat... ── fsharp - import ───────────────────────────────────────────────────────────── #if !INTERACTIVE namespace Polyglot #endif module FileSystem = open Common /// ## Operators module Operators = let inline (</>) a b = System.IO.Path.Combine (a, b) open Operators /// ## createTempDirectoryName let inline createTempDirectoryName () = let root = System.Reflection.Assembly.GetEntryAssembly().GetName().Name System.IO.Path.GetTempPath () </> $"!{root}" </> string (newGuidFromDateTime System.DateTime.Now) /// ## createTempDirectory let inline createTempDirectory () = let tempFolder = createTempDirectoryName () let result = System.IO.Directory.CreateDirectory tempFolder if not result.Exists then let ge... ── fsharp - import ───────────────────────────────────────────────────────────── #if !INTERACTIVE namespace Polyglot #endif module Builder = open Common open FileSystem.Operators /// ## buildProject let inline buildProject runtime outputDir path = async { let fullPath = path |> System.IO.Path.GetFullPath let fileDir = fullPath |> System.IO.Path.GetDirectoryName let extension = fullPath |> System.IO.Path.GetExtension let getLocals () = $"fullPath: {fullPath} / {getLocals ()}" trace Debug (fun () -> "buildProject") getLocals match extension with | ".fsproj" -> () | _ -> failwith "Invalid project file" let runtimes = runtime |> Option.map List.singleton |> Option.defaultValue [[ "linux-x64"; "wi... ── fsharp - import ───────────────────────────────────────────────────────────── #if !INTERACTIVE namespace Polyglot #endif module Supervisor = open Common open FileSystem.Operators open Microsoft.AspNetCore.SignalR.Client /// ## sendJson let inline sendJson (port : int) (json : string) = async { let! portOpen = Networking.testPortOpen port if portOpen then try let connection = HubConnectionBuilder().WithUrl($"http://127.0.0.1:{port}").Build() do! connection.StartAsync () |> Async.AwaitTask let! result = connection.InvokeAsync<string>("ClientToServerMsg", json) |> Async.AwaitTask do! connection.StopAsync () |> Async.AwaitTask trace Debug (fun () -> $"sendJson / port: {port} / json: {json} /... ── fsharp ────────────────────────────────────────────────────────────────────── open Common open FileSystem.Operators ── fsharp ────────────────────────────────────────────────────────────────────── open System open System.Collections.Generic open System.IO open System.Text open System.Threading // open FSharp.Compiler // open FSharp.Compiler.Interactive.Shell // open FSharp.Compiler.Diagnostics // open FSharp.Compiler.EditorServices ── fsharp ────────────────────────────────────────────────────────────────────── let inline mapErrors (severity, errors, lastTopLevelIndex) allCode = let allCodeLineLength = allCode |> String.split [[| '\n' |]] |> Array.length errors |> List.map (fun (_, error) -> match error with | Supervisor.FatalError message -> ( severity, message, 0, ("", (0, 0), (0, 0)) ) |> List.singleton | Supervisor.TracedError data -> data.trace |> List.truncate 5 |> List.append [[ data.message ]] |> List.map (fun message -> ( severity, message, 0, ("", (0, 0), (0, 0)) ) ) | Supervisor.PackageErrors data | Supervisor.TokenizerErrors data | Supervisor.ParserErrors data | Supervisor.TypeErrors data -> data.errors |> List.filter (fun ((rangeStart, _), _) -> trace Debug (fun () -> $"Eval.mapErrors / rangeStart.line: {rangeStart.line} / lastTopLevelIndex: {lastTopLevelIndex} / allCodeLineLength: {allCodeLineLength} / filtered: {rangeStart.line > allCodeLineLength}") getLocals rangeStart.line > allCodeLineLength ) |> List.map (fun ((rangeStart, rangeEnd), message) -> ( severity, message, 0, ( (data.uri |> System.IO.Path.GetFileName), ( (match lastTopLevelIndex with | Some i when rangeStart.line >= i + allCodeLineLength + 3 -> rangeStart.line - allCodeLineLength - 2 | _ -> rangeStart.line - allCodeLineLength), (match lastTopLevelIndex with | Some i when rangeStart.line >= i + allCodeLineLength + 3 -> rangeStart.character - 4 | _ -> rangeStart.character) ), ( (match lastTopLevelIndex with | Some i when rangeStart.line >= i + allCodeLineLength + 3 -> rangeEnd.line - allCodeLineLength - 2 | _ -> rangeEnd.line - allCodeLineLength), (match lastTopLevelIndex with | Some i when rangeStart.line >= i + allCodeLineLength + 3 -> rangeEnd.character - 4 | _ -> rangeEnd.character) ) ) ) ) ) |> List.collect id |> List.toArray ── fsharp ────────────────────────────────────────────────────────────────────── let spiralExDir = Path.GetTempPath () </> "!spiral-ex" let maxTermCountPath = spiralExDir </> "max_term_count.txt" let mutable allCode = "" ── fsharp ────────────────────────────────────────────────────────────────────── let log2 (text : string) = if traceLevel = TraceLevel.Verbose then try let tmpPath = Path.GetTempPath () let logDir = Path.Combine (tmpPath, "_log_spiral_kernel") Directory.CreateDirectory logDir |> ignore let dateTimeStr = DateTime.Now.ToString "yyyy-MM-dd HH-mm-ss-fff" let logFile = Path.Combine (logDir, $"log_{dateTimeStr}_{Random().Next()}.txt") let dateTimeStr = DateTime.Now.ToString "yyyy-MM-dd HH:mm:ss.fff" let fileName = "SpiralScriptHelpers" File.AppendAllText (logFile, $"{dateTimeStr} {fileName} {text}{Environment.NewLine}") |> ignore with ex -> trace Debug (fun () -> $"V.log / ex: {ex |> printException}") getLocals ── fsharp ────────────────────────────────────────────────────────────────────── let log (text : string) = if traceLevel = TraceLevel.Verbose then try let tmpPath = Path.GetTempPath () let logDir = Path.Combine (tmpPath, "_log_spiral_kernel") Directory.CreateDirectory logDir |> ignore let logFile = Path.Combine (logDir, "log.txt") let dateTimeStr = DateTime.Now.ToString "yyyy-MM-dd HH:mm:ss.fff" let fileName = "SpiralScriptHelpers" File.AppendAllText (logFile, $"{dateTimeStr} {fileName} {text}{Environment.NewLine}") |> ignore with ex -> trace Debug (fun () -> $"SpiralScriptHelpers.log / ex: {ex |> printException}") getLocals log2 text ── fsharp ────────────────────────────────────────────────────────────────────── let assemblyName = Reflection.Assembly.GetEntryAssembly().GetName().Name let inline startTokenRangeWatcher () = if [[ "dotnet-repl" ]] |> List.contains assemblyName |> not then let tmpSpiralDir = Path.GetTempPath () </> "!dotnet-interactive-spiral" let tmpCodeDir = tmpSpiralDir </> "code" let tmpTokensDir = tmpSpiralDir </> "tokens" [[ tmpSpiralDir; tmpCodeDir; tmpTokensDir ]] |> List.iter (fun dir -> if Directory.Exists dir |> not then Directory.CreateDirectory dir |> ignore) let stream, disposable = FileSystem.watchDirectory (fun _ -> false) tmpCodeDir try let port = Supervisor.getCompilerPort () + 2 let existingFilesChild = tmpCodeDir |> System.IO.Directory.GetFiles |> Array.map (fun codePath -> async { try let tokensPath = tmpTokensDir </> (codePath |> System.IO.Path.GetFileName) if File.Exists tokensPath |> not then let! tokens = codePath |> Supervisor.getFileTokenRange port None match tokens with | Some tokens -> do! tokens |> FSharp.Json.Json.serialize |> FileSystem.writeAllTextAsync tokensPath | None -> log $"Eval.watchDirectory / GetFiles / tokens: None / {getLocals ()}" with ex -> log $"Eval.watchDirectory / GetFiles / ex: {ex |> printException} / {getLocals ()}" }) |> Async.Sequential |> Async.Ignore let streamAsyncChild = stream |> FSharp.Control.AsyncSeq.iterAsyncParallel (fun (ticks, event) -> async { try let getLocals () = $"ticks: {ticks} / event: {event} / {getLocals ()}" match event with | FileSystem.FileSystemChange.Changed (path, _) -> let codePath = tmpCodeDir </> path do! codePath |> FileSystem.waitForFileAccess (Some ( System.IO.FileAccess.Read, System.IO.FileShare.Read )) |> Async.runWithTimeoutAsync 1000 |> Async.Ignore let! tokens = codePath |> Supervisor.getFileTokenRange port None match tokens with | Some tokens -> do! tokens |> FSharp.Json.Json.serialize |> FileSystem.writeAllTextAsync (tmpTokensDir </> path) | None -> log $"Eval.watchDirectory / iterAsyncParallel / tokens: None / {getLocals ()}" | _ -> () with ex -> log $"Eval.watchDirectory / iterAsyncParallel / ex: {ex |> printException} / {getLocals ()}" }) async { do! Async.Sleep 3000 existingFilesChild |> Async.StartImmediate streamAsyncChild |> Async.Start } |> Async.Start with ex -> log $"Eval / ex: {ex |> printException}" disposable else newDisposable (fun () -> ()) ── fsharp ────────────────────────────────────────────────────────────────────── let inline eval (fsi_eval: string -> System.Threading.CancellationToken -> Choice<'a,Exception> * (TraceLevel * string * int * (string * (int * int) * (int * int))) array) (cancellationToken: Option<System.Threading.CancellationToken>) (code: string) = log $"Eval / code: %A{code}" let rawCellCode = if code |> String.trim <> "// // trace" then code |> String.replace "\r\n" "\n" else if traceLevel = Info then traceLevel <- Verbose else traceLevel <- Info traceDump <- traceLevel = Verbose "inl main () = ()" let lines = rawCellCode |> String.split [[| '\n' |]] if lines |> Array.exists (fun line -> line |> String.startsWith "#r " && line |> String.endsWith "\"") then let cancellationToken = defaultArg cancellationToken System.Threading.CancellationToken.None let ch, errors = fsi_eval code cancellationToken match ch with | Choice1Of2 v -> Ok(v), errors | Choice2Of2 ex -> Error(ex), errors else try let lastBlock = lines |> Array.tryFindBack (fun line -> line |> String.length > 0 && line.[[0]] <> ' ' ) let hasMain = lastBlock |> Option.exists (fun line -> line |> String.startsWith "inl main " || line |> String.startsWith "let main " ) let cellCode, lastTopLevelIndex = if hasMain then rawCellCode, None else let lastTopLevelIndex, _ = (lines |> Array.indexed, (None, false)) ||> Array.foldBack (fun (i, line) (lastTopLevelIndex, finished) -> trace Debug (fun () -> $"i: {i} / line: '{line}' / lastTopLevelIndex: {lastTopLevelIndex} / finished: {finished}") getLocals match line with | _ when finished -> lastTopLevelIndex, true | "" -> lastTopLevelIndex, false | line when line |> String.startsWith " " || line |> String.startsWith "// " -> lastTopLevelIndex, false | line when line |> String.startsWith "open " || line |> String.startsWith "prototype " || line |> String.startsWith "instance " || line |> String.startsWith "type " || line |> String.startsWith "union " || line |> String.startsWith "nominal " -> lastTopLevelIndex, true | line when line |> String.startsWith "inl " || line |> String.startsWith "let " -> let m = System.Text.RegularExpressions.Regex.Match ( line, @"^(inl|let) +([[~\(\w]][[\w\d']]*(?:| *[[~\w]][[\w\d']]*\)|, *[[~\w]][[\w\d']]*)) +[[:=]]" ) trace Debug (fun () -> $"m: '{m}' / m.Groups.Count: {m.Groups.Count}") getLocals if m.Groups.Count = 3 then Some i, false else lastTopLevelIndex, true | _ -> Some i, false ) let code = match lastTopLevelIndex with | Some lastTopLevelIndex -> lines |> Array.mapi (fun i line -> match i with | i when i < lastTopLevelIndex -> line | i when i = lastTopLevelIndex -> $"\nlet main () =\n {line}" | _ when line |> String.trim = "" -> "" | _ -> $" {line}" ) |> String.concat "\n" | None -> $"{rawCellCode}\n\ninl main () = ()\n" code, lastTopLevelIndex let newAllCode = $"{allCode}\n\n{cellCode}" let rustArgs = lines |> Array.tryPick (fun line -> if line |> String.startsWith "// // rust=" then line |> String.split [[| '=' |]] |> Array.tryItem 1 else None ) let timeout = lines |> Array.tryPick (fun line -> if line |> String.startsWith "// // timeout=" then line |> String.split [[| '=' |]] |> Array.tryItem 1 |> Option.map int else None ) |> Option.defaultValue (60000 * 60) let printCode = lines |> Array.tryPick (fun line -> if line |> String.startsWith "// // print_code=" then line |> String.split [[| '=' |]] |> Array.tryItem 1 |> Option.map ((=) "true") else None ) |> Option.defaultValue true let maxTermCount = lines |> Array.tryPick (fun line -> if line |> String.startsWith "// // max_term_count=" then line |> String.split [[| '=' |]] |> Array.tryItem 1 |> Option.map int else None ) async { try let! mainPath, disposable = newAllCode |> Supervisor.persistCode use _ = disposable match maxTermCount with | Some maxTermCount -> do! maxTermCount |> string |> FileSystem.writeAllTextAsync maxTermCountPath | None -> () let port = Supervisor.getCompilerPort () let! codeChoice = mainPath |> Supervisor.buildFile timeout port cancellationToken |> Async.catch |> Async.runWithTimeoutAsync timeout match maxTermCount with | Some _ -> do! FileSystem.deleteFileAsync maxTermCountPath |> Async.Ignore | None -> () let code = match codeChoice with | Some (Ok code) -> Some code | Some (Error ex) -> log $"Eval / errors: {ex |> printException}" None | _ -> None match code with | Some (Some code, spiralErrors) -> let spiralErrors = mapErrors (Warning, spiralErrors, lastTopLevelIndex) allCode let inline _trace (fn : unit -> string) = if traceLevel = Info then fn () |> System.Console.WriteLine else trace Info (fun () -> $"SpiralScriptHelpers.Eval / {fn ()}") getLocals if printCode then _trace (fun () -> if rustArgs |> Option.isSome then $"\n.fsx:\n{code}" else code) let! rustResult = if rustArgs |> Option.isNone || lastTopLevelIndex = None then None |> Async.init else async { // let hash = $"repl_{code |> Crypto.hashText}" let hash = $"spiral_eval" let! fsprojPath = code |> Builder.persistCodeProject [["Fable.Core"]] [[]] hash let projectDir = fsprojPath |> Path.GetDirectoryName let outDir = projectDir </> $"target/{hash}" let libLinkTargetPath = projectDir </> "target/fable-library-rust" let libLinkPath = outDir </> $"fable_modules/fable-library-rust" if Directory.Exists libLinkTargetPath |> not then libLinkTargetPath |> Directory.CreateDirectory |> ignore libLinkPath |> Path.GetDirectoryName |> Directory.CreateDirectory |> ignore let libLinkPathInfo = DirectoryInfo libLinkPath if libLinkPathInfo.Exists && libLinkPathInfo.LinkTarget = null then Directory.Delete (libLinkPath, true) if libLinkPath |> Directory.Exists |> not then Directory.CreateSymbolicLink (libLinkPath, libLinkTargetPath) |> ignore let! exitCode, result = Runtime.executeWithOptionsAsync { Command = $@"dotnet fable {fsprojPath} --optimize --lang rs --extension .rs --outDir {outDir}" CancellationToken = cancellationToken WorkingDirectory = None OnLine = None } if exitCode <> 0 then return Some (Error result) else let rsPath = outDir </> $"{hash}.rs" let! rsCode = rsPath |> FileSystem.readAllTextAsync let mainCode = "pub fn main() -> Result<(), String> { Ok(()) }" let cached = rsCode |> String.contains mainCode let rsCode = if cached then rsCode else rsCode |> String.replace "),);" "));" if printCode then _trace (fun () -> $"\n.rs:\n{rsCode}") if not cached then do! $"{rsCode}\n\n{mainCode}\n" |> FileSystem.writeAllTextAsync rsPath let cargoTomlPath = outDir </> $"Cargo.toml" let cargoTomlContent = $"""[[package]] name = "{hash}" version = "0.0.1" edition = "2021" [[workspace]] [[dependencies]] fable_library_rust = {{ path = "fable_modules/fable-library-rust", optional = true, default-features = false }} clap = {{}} num-complex = {{}} pyo3 = "~0.21.0-beta.0" [[features]] default = [["fable_library_rust/default", "fable_library_rust/static_do_bindings"]] [[[[bin]]]] name = "{hash}" path = "{hash}.rs" """ do! cargoTomlContent |> FileSystem.writeAllTextExists cargoTomlPath let! exitCode, result = Runtime.executeWithOptionsAsync { Command = $@"cargo run --release --manifest-path {cargoTomlPath}" CancellationToken = cancellationToken WorkingDirectory = None OnLine = None } if exitCode = 0 then try let result = result |> String.split [[| '\n' |]] |> Array.skipWhile (fun line -> line |> String.contains @"[[optimized]] target" |> not ) |> Array.skip 2 |> String.concat "\n" return Some (Ok result) with ex -> return $"ex: {ex}\nresult:\n{result}" |> Error |> Some else return Some (Error result) } let cancellationToken = defaultArg cancellationToken System.Threading.CancellationToken.None let fsxResult = if rustArgs |> Option.isSome then None else try let ch, errors = fsi_eval code cancellationToken let errors = errors |> Array.map (fun (e1, e2, e3, _) -> (e1, e2, e3, ("", (0, 0), (0, 0))) ) Some (ch, errors) with ex -> trace Critical (fun () -> $"SpiralScriptHelpers.Eval / ex: {ex |> printException}") getLocals None match fsxResult, rustResult with | Some (ch, errors), None -> let errors = errors |> Array.append spiralErrors match ch with | Choice1Of2 v -> allCode <- newAllCode return Ok(v), errors | Choice2Of2 ex -> return Error ex, errors | _, Some result -> let result, errors = match result with | Ok result -> result, [[||]] | Error error -> "", [[| ( TraceLevel.Critical, error, 0, ("", (0, 0), (0, 0)) ) |]] let header = if printCode then ".rs output:\n" else "" let ch, errors2 = fsi_eval $"\"\"\"{header}{result}\n\"\"\"" cancellationToken let errors = errors |> Array.append spiralErrors |> Array.append errors2 match ch with | Choice1Of2 v -> allCode <- newAllCode return Ok(v), errors | Choice2Of2 ex -> return Error ex, errors | _ -> let ch, errors = fsi_eval "()" cancellationToken match ch with | Choice1Of2 v -> allCode <- newAllCode return Ok(v), errors | Choice2Of2 ex -> return Error ex, errors | Some (None, errors) when errors |> List.isEmpty |> not -> return errors.[[0]] |> fst |> Exception |> Error, mapErrors (TraceLevel.Critical, errors, lastTopLevelIndex) allCode | _ -> return Error (Exception "Spiral error or timeout"), [[| ( TraceLevel.Critical, "Diag: Spiral error or timeout", 0, ("", (0, 0), (0, 0)) ) |]] with ex -> log $"Eval / ex: {ex |> printException}" return Error (Exception $"Spiral error or timeout (4_) / ex: {ex |> printException}"), [[| ( TraceLevel.Critical, $"Diag: Spiral error or timeout (4) / ex: {ex |> printException}", 0, ("", (0, 0), (0, 0)) ) |]] } |> Async.runWithTimeoutStrict timeout |> Option.defaultValue ( Error (Exception "Spiral error or timeout (2)"), [[| ( TraceLevel.Critical, "Diag: Spiral error or timeout (2)", 0, ("", (0, 0), (0, 0)) ) |]] ) with ex -> log $"Eval / ex: {ex |> printException}" Error (Exception $"Spiral error or timeout (3) / ex: {ex |> printException}"), [[| ( TraceLevel.Critical, $"Diag: Spiral error or timeout (3) / ex: {ex |> printException}", 0, ("", (0, 0), (0, 0)) ) |]] [NbConvertApp] Converting notebook Eval.dib.ipynb to html /opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/nbformat/__init__.py:96: MissingIDFieldWarning: Cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future. validate(nb) /opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/nbconvert/filters/highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3 return _pygments_highlight( [NbConvertApp] Writing 373116 bytes to Eval.dib.html 00:00:00 #1 [Debug] writeDibCode / output: Fs / path: Eval.dib 00:00:00 #2 [Debug] parseDibCode / output: Fs / file: Eval.dib
In [ ]:
{ . "$ScriptDir/../apps/scheduler/build.ps1" } | Invoke-Block
00:00:00 #1 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #2 [Debug] executeAsync / options: { Command =
"dotnet "/home/runner/work/polyglot/polyglot/deps/The-Spiral-Language/The Spiral Language 2/artifacts/bin/The Spiral Language 2/release/Spiral.dll" --port 13805 --default-int i32 --default-float f64"
WorkingDirectory = None
CancellationToken = Some System.Threading.CancellationToken
OnLine = Some <fun:main@464-1020> }
00:00:00 #3 [Verbose] > pwd: /home/runner/work/polyglot/polyglot/apps/scheduler
00:00:00 #4 [Verbose] > dll_path: /home/runner/work/polyglot/polyglot/deps/The-Spiral-Language/The Spiral Language 2/artifacts/bin/The Spiral Language 2/release
00:00:00 #5 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #6 [Verbose] waitForPortAccess / port: 13805 / retry: 0
00:00:00 #7 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #8 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #9 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #10 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #11 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #12 [Verbose] > Starting the Spiral Server. It is bound to: http://localhost:13805
00:00:00 #13 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #14 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #15 [Debug] sendJson / port: 13805 / json: {"Ping":true} / result.Length:
00:00:00 #16 [Verbose] awaitCompiler / Ping / result: Some(null) / port: 13805 / retry: 0
00:00:00 #17 [Verbose] > Server bound to: http://localhost:13805
00:00:00 #18 [Debug] executeAsync / options: { Command = "pwsh -c "../../scripts/invoke-dib.ps1 Tasks.dib -Retries 3""
WorkingDirectory = None
CancellationToken = Some System.Threading.CancellationToken
OnLine = None }
00:00:02 #19 [Verbose] >
00:00:02 #20 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:02 #21 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:02 #22 [Verbose] > │ ## Tasks (Polyglot) │
00:00:02 #23 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:02 #24 [Verbose] >
00:00:02 #25 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:02 #26 [Verbose] > // // test
00:00:02 #27 [Verbose] >
00:00:02 #28 [Verbose] > open testing
00:00:04 #29 [Verbose] > Building /tmp/!dotnet-repl/20240325-2021-0606-0622-00003422f501/main.spi
00:00:06 #30 [Verbose] >
00:00:06 #31 [Verbose] > ╭─[ 3.90s - stdout ]───────────────────────────────────────────────────────────╮
00:00:06 #32 [Verbose] > │ () │
00:00:06 #33 [Verbose] > │ │
00:00:06 #34 [Verbose] > │ │
00:00:06 #35 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:06 #36 [Verbose] >
00:00:06 #37 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:06 #38 [Verbose] > inl types () =
00:00:06 #39 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"std::string::String\")>]]
00:00:06 #40 [Verbose] > type std_string_String = class end"
00:00:06 #41 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"&$0\")>]] type Ref<'T> =
00:00:06 #42 [Verbose] > class end"
00:00:06 #43 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"str\")>]] type Str = class
00:00:06 #44 [Verbose] > end"
00:00:06 #45 [Verbose] >
00:00:06 #46 [Verbose] > inl emit_expr forall a t. (args : a) (code : string) : t =
00:00:06 #47 [Verbose] > real
00:00:06 #48 [Verbose] > $"Fable.Core.RustInterop.emitRustExpr !args !code" : t
00:00:06 #49 [Verbose] >
00:00:06 #50 [Verbose] >
00:00:06 #51 [Verbose] > nominal std_string = $"std_string_String"
00:00:06 #52 [Verbose] > nominal ref' t = $"Ref<`t>"
00:00:06 #53 [Verbose] > nominal str = $"Str"
00:00:06 #54 [Verbose] >
00:00:06 #55 [Verbose] > inl format_debug forall t. (x : t) : std_string =
00:00:06 #56 [Verbose] > real
00:00:06 #57 [Verbose] > emit_expr `t `std_string x "format!(\"{:?}\", $0)"
00:00:06 #58 [Verbose] >
00:00:06 #59 [Verbose] > inl format_pretty forall t. (x : t) : std_string =
00:00:06 #60 [Verbose] > real
00:00:06 #61 [Verbose] > emit_expr `t `std_string x "format!(\"{:#?}\", $0)"
00:00:06 #62 [Verbose] >
00:00:06 #63 [Verbose] > inl to_std_string (str : ref' str) : std_string =
00:00:06 #64 [Verbose] > // inl str = join str
00:00:06 #65 [Verbose] > // // emit_expr () $"\"!str.to_string()\""
00:00:06 #66 [Verbose] > // // emit_expr () $"\"alloc::string::to_string(!str)\""
00:00:06 #67 [Verbose] > // emit_expr str "($0).to_string()"
00:00:06 #68 [Verbose] > emit_expr str $"\"String::from(core::ops::Deref::deref($0))\""
00:00:06 #69 [Verbose] > // emit_expr str $"\"String::from(*$0)\""
00:00:06 #70 [Verbose] > // emit_expr () $"\"String::from(!str)\""
00:00:06 #71 [Verbose] >
00:00:06 #72 [Verbose] > inl format forall t. (x : t) : std_string =
00:00:06 #73 [Verbose] > real
00:00:06 #74 [Verbose] > inl result : std_string =
00:00:06 #75 [Verbose] > typecase t with
00:00:06 #76 [Verbose] > | string => to_std_string x
00:00:06 #77 [Verbose] > | std_string => x
00:00:06 #78 [Verbose] > | _ => format_pretty `t x
00:00:06 #79 [Verbose] > result
00:00:06 #80 [Verbose] >
00:00:06 #81 [Verbose] > inl raw_string_literal (s : string) : ref' str =
00:00:06 #82 [Verbose] > emit_expr () $"\"r#\\\"\" + !s + \"\\\"#\""
00:00:06 #83 [Verbose] >
00:00:06 #84 [Verbose] > inl (~#) (s : string) : ref' str =
00:00:06 #85 [Verbose] > raw_string_literal s
00:00:06 #86 [Verbose] > Building /tmp/!dotnet-repl/20240325-2021-0860-6077-6b393b9efb47/main.spi
00:00:06 #87 [Verbose] >
00:00:06 #88 [Verbose] > ╭─[ 179.45ms - stdout ]────────────────────────────────────────────────────────╮
00:00:06 #89 [Verbose] > │ () │
00:00:06 #90 [Verbose] > │ │
00:00:06 #91 [Verbose] > │ │
00:00:06 #92 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:06 #93 [Verbose] >
00:00:06 #94 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:06 #95 [Verbose] > nominal task_name = string
00:00:06 #96 [Verbose] >
00:00:06 #97 [Verbose] > union manual_scheduling =
00:00:06 #98 [Verbose] > | WithSuggestion
00:00:06 #99 [Verbose] > | WithoutSuggestion
00:00:06 #100 [Verbose] >
00:00:06 #101 [Verbose] > union recurrency_offset =
00:00:06 #102 [Verbose] > | Days : i32
00:00:06 #103 [Verbose] > | Weeks : i32
00:00:06 #104 [Verbose] > | Months : i32
00:00:06 #105 [Verbose] >
00:00:06 #106 [Verbose] > union day_of_week =
00:00:06 #107 [Verbose] > | Sunday
00:00:06 #108 [Verbose] > | Monday
00:00:06 #109 [Verbose] > | Tuesday
00:00:06 #110 [Verbose] > | Wednesday
00:00:06 #111 [Verbose] > | Thursday
00:00:06 #112 [Verbose] > | Friday
00:00:06 #113 [Verbose] > | Saturday
00:00:06 #114 [Verbose] >
00:00:06 #115 [Verbose] > union month =
00:00:06 #116 [Verbose] > | January
00:00:06 #117 [Verbose] > | February
00:00:06 #118 [Verbose] > | March
00:00:06 #119 [Verbose] > | April
00:00:06 #120 [Verbose] > | May
00:00:06 #121 [Verbose] > | June
00:00:06 #122 [Verbose] > | July
00:00:06 #123 [Verbose] > | August
00:00:06 #124 [Verbose] > | September
00:00:06 #125 [Verbose] > | October
00:00:06 #126 [Verbose] > | November
00:00:06 #127 [Verbose] > | December
00:00:06 #128 [Verbose] >
00:00:06 #129 [Verbose] > nominal day = i32
00:00:06 #130 [Verbose] > nominal year = i32
00:00:06 #131 [Verbose] >
00:00:06 #132 [Verbose] > union fixed_recurrency =
00:00:06 #133 [Verbose] > | Weekly : day_of_week
00:00:06 #134 [Verbose] > | Monthly : day
00:00:06 #135 [Verbose] > | Yearly : day * month
00:00:06 #136 [Verbose] >
00:00:06 #137 [Verbose] > union recurrency =
00:00:06 #138 [Verbose] > | Offset : recurrency_offset
00:00:06 #139 [Verbose] > | Fixed : list fixed_recurrency
00:00:06 #140 [Verbose] >
00:00:06 #141 [Verbose] > union scheduling =
00:00:06 #142 [Verbose] > | Manual : manual_scheduling
00:00:06 #143 [Verbose] > | Recurrent : recurrency
00:00:06 #144 [Verbose] >
00:00:06 #145 [Verbose] > type task =
00:00:06 #146 [Verbose] > {
00:00:06 #147 [Verbose] > name : task_name
00:00:06 #148 [Verbose] > scheduling : scheduling
00:00:06 #149 [Verbose] > }
00:00:06 #150 [Verbose] >
00:00:06 #151 [Verbose] > type date =
00:00:06 #152 [Verbose] > {
00:00:06 #153 [Verbose] > year : year
00:00:06 #154 [Verbose] > month : month
00:00:06 #155 [Verbose] > day : day
00:00:06 #156 [Verbose] > }
00:00:06 #157 [Verbose] >
00:00:06 #158 [Verbose] > union status =
00:00:06 #159 [Verbose] > | Postponed : option ()
00:00:06 #160 [Verbose] >
00:00:06 #161 [Verbose] > type event =
00:00:06 #162 [Verbose] > {
00:00:06 #163 [Verbose] > date : date
00:00:06 #164 [Verbose] > status : status
00:00:06 #165 [Verbose] > }
00:00:06 #166 [Verbose] >
00:00:06 #167 [Verbose] > type task_template =
00:00:06 #168 [Verbose] > {
00:00:06 #169 [Verbose] > task : task
00:00:06 #170 [Verbose] > events : list event
00:00:06 #171 [Verbose] > }
00:00:06 #172 [Verbose] > Building /tmp/!dotnet-repl/20240325-2021-0878-7812-7deb1cc89586/main.spi
00:00:06 #173 [Verbose] >
00:00:06 #174 [Verbose] > ╭─[ 182.92ms - stdout ]────────────────────────────────────────────────────────╮
00:00:06 #175 [Verbose] > │ () │
00:00:06 #176 [Verbose] > │ │
00:00:06 #177 [Verbose] > │ │
00:00:06 #178 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:06 #179 [Verbose] >
00:00:06 #180 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:06 #181 [Verbose] > // // test
00:00:06 #182 [Verbose] > // // rust=
00:00:06 #183 [Verbose] >
00:00:06 #184 [Verbose] > types ()
00:00:06 #185 [Verbose] > Building /tmp/!dotnet-repl/20240325-2021-0896-9644-9cb6e494c642/main.spi
00:00:31 #186 [Verbose] >
00:00:31 #187 [Verbose] > ╭─[ 25.14s - return value ]────────────────────────────────────────────────────╮
00:00:31 #188 [Verbose] > │ .rs output: │
00:00:31 #189 [Verbose] > │ │
00:00:31 #190 [Verbose] > │ │
00:00:31 #191 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:31 #192 [Verbose] >
00:00:31 #193 [Verbose] > ╭─[ 25.14s - stdout ]──────────────────────────────────────────────────────────╮
00:00:31 #194 [Verbose] > │ │
00:00:31 #195 [Verbose] > │ .fsx: │
00:00:31 #196 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::string::String")>] type │
00:00:31 #197 [Verbose] > │ std_string_String = class end │
00:00:31 #198 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("&$0")>] type Ref<'T> = class end │
00:00:31 #199 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("str")>] type Str = class end │
00:00:31 #200 [Verbose] > │ let rec method0 () : unit = │
00:00:31 #201 [Verbose] > │ () │
00:00:31 #202 [Verbose] > │ method0() │
00:00:31 #203 [Verbose] > │ │
00:00:31 #204 [Verbose] > │ │
00:00:31 #205 [Verbose] > │ .rs: │
00:00:31 #206 [Verbose] > │ #![allow(dead_code,)] │
00:00:31 #207 [Verbose] > │ #![allow(non_camel_case_types,)] │
00:00:31 #208 [Verbose] > │ #![allow(non_snake_case,)] │
00:00:31 #209 [Verbose] > │ #![allow(non_upper_case_globals,)] │
00:00:31 #210 [Verbose] > │ #![allow(unreachable_code,)] │
00:00:31 #211 [Verbose] > │ #![allow(unused_attributes,)] │
00:00:31 #212 [Verbose] > │ #![allow(unused_imports,)] │
00:00:31 #213 [Verbose] > │ #![allow(unused_macros,)] │
00:00:31 #214 [Verbose] > │ #![allow(unused_parens,)] │
00:00:31 #215 [Verbose] > │ #![allow(unused_variables,)] │
00:00:31 #216 [Verbose] > │ mod module_ccfa04bf { │
00:00:31 #217 [Verbose] > │ pub mod Spiral_eval { │
00:00:31 #218 [Verbose] > │ use super::*; │
00:00:31 #219 [Verbose] > │ use fable_library_rust::Native_::on_startup; │
00:00:31 #220 [Verbose] > │ pub fn method0() { (); } │
00:00:31 #221 [Verbose] > │ on_startup!(Spiral_eval::method0()); │
00:00:31 #222 [Verbose] > │ } │
00:00:31 #223 [Verbose] > │ } │
00:00:31 #224 [Verbose] > │ pub use module_ccfa04bf::*; │
00:00:31 #225 [Verbose] > │ │
00:00:31 #226 [Verbose] > │ │
00:00:31 #227 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:31 #228 [Verbose] >
00:00:31 #229 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:31 #230 [Verbose] > // // test
00:00:31 #231 [Verbose] > // // rust=
00:00:31 #232 [Verbose] >
00:00:31 #233 [Verbose] > inl get_tasks () : list task_template =
00:00:31 #234 [Verbose] > [[
00:00:31 #235 [Verbose] > {
00:00:31 #236 [Verbose] > task =
00:00:31 #237 [Verbose] > {
00:00:31 #238 [Verbose] > name = task_name "01"
00:00:31 #239 [Verbose] > scheduling = Manual WithSuggestion
00:00:31 #240 [Verbose] > }
00:00:31 #241 [Verbose] > events = [[]]
00:00:31 #242 [Verbose] > }
00:00:31 #243 [Verbose] > {
00:00:31 #244 [Verbose] > task =
00:00:31 #245 [Verbose] > {
00:00:31 #246 [Verbose] > name = task_name "02"
00:00:31 #247 [Verbose] > scheduling = Manual WithSuggestion
00:00:31 #248 [Verbose] > }
00:00:31 #249 [Verbose] > events = [[]]
00:00:31 #250 [Verbose] > }
00:00:31 #251 [Verbose] > {
00:00:31 #252 [Verbose] > task =
00:00:31 #253 [Verbose] > {
00:00:31 #254 [Verbose] > name = task_name "03"
00:00:31 #255 [Verbose] > scheduling = Manual WithSuggestion
00:00:31 #256 [Verbose] > }
00:00:31 #257 [Verbose] > events = [[]]
00:00:31 #258 [Verbose] > }
00:00:31 #259 [Verbose] > ]]
00:00:31 #260 [Verbose] >
00:00:31 #261 [Verbose] > types ()
00:00:31 #262 [Verbose] > get_tasks () |> format_pretty |> console.write_line
00:00:31 #263 [Verbose] > Building /tmp/!dotnet-repl/20240325-2021-3411-1112-1fde79dda7ea/main.spi
00:00:35 #264 [Verbose] >
00:00:35 #265 [Verbose] > ╭─[ 3.34s - return value ]─────────────────────────────────────────────────────╮
00:00:35 #266 [Verbose] > │ .rs output: │
00:00:35 #267 [Verbose] > │ UH2_0( │
00:00:35 #268 [Verbose] > │ UH0_1, │
00:00:35 #269 [Verbose] > │ "01", │
00:00:35 #270 [Verbose] > │ US4_0( │
00:00:35 #271 [Verbose] > │ US3_0, │
00:00:35 #272 [Verbose] > │ ), │
00:00:35 #273 [Verbose] > │ UH2_0( │
00:00:35 #274 [Verbose] > │ UH0_1, │
00:00:35 #275 [Verbose] > │ "02", │
00:00:35 #276 [Verbose] > │ US4_0( │
00:00:35 #277 [Verbose] > │ US3_0, │
00:00:35 #278 [Verbose] > │ ), │
00:00:35 #279 [Verbose] > │ UH2_0( │
00:00:35 #280 [Verbose] > │ UH0_1, │
00:00:35 #281 [Verbose] > │ "03", │
00:00:35 #282 [Verbose] > │ US4_0( │
00:00:35 #283 [Verbose] > │ US3_0, │
00:00:35 #284 [Verbose] > │ ), │
00:00:35 #285 [Verbose] > │ UH2_1, │
00:00:35 #286 [Verbose] > │ ), │
00:00:35 #287 [Verbose] > │ ), │
00:00:35 #288 [Verbose] > │ ) │
00:00:35 #289 [Verbose] > │ │
00:00:35 #290 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:35 #291 [Verbose] >
00:00:35 #292 [Verbose] > ╭─[ 3.34s - stdout ]───────────────────────────────────────────────────────────╮
00:00:35 #293 [Verbose] > │ │
00:00:35 #294 [Verbose] > │ .fsx: │
00:00:35 #295 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::string::String")>] type │
00:00:35 #296 [Verbose] > │ std_string_String = class end │
00:00:35 #297 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("&$0")>] type Ref<'T> = class end │
00:00:35 #298 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("str")>] type Str = class end │
00:00:35 #299 [Verbose] > │ type [<Struct>] US0 = │
00:00:35 #300 [Verbose] > │ | US0_0 │
00:00:35 #301 [Verbose] > │ | US0_1 │
00:00:35 #302 [Verbose] > │ | US0_2 │
00:00:35 #303 [Verbose] > │ | US0_3 │
00:00:35 #304 [Verbose] > │ | US0_4 │
00:00:35 #305 [Verbose] > │ | US0_5 │
00:00:35 #306 [Verbose] > │ | US0_6 │
00:00:35 #307 [Verbose] > │ | US0_7 │
00:00:35 #308 [Verbose] > │ | US0_8 │
00:00:35 #309 [Verbose] > │ | US0_9 │
00:00:35 #310 [Verbose] > │ | US0_10 │
00:00:35 #311 [Verbose] > │ | US0_11 │
00:00:35 #312 [Verbose] > │ and [<Struct>] US2 = │
00:00:35 #313 [Verbose] > │ | US2_0 │
00:00:35 #314 [Verbose] > │ | US2_1 │
00:00:35 #315 [Verbose] > │ and [<Struct>] US1 = │
00:00:35 #316 [Verbose] > │ | US1_0 of f0_0 : US2 │
00:00:35 #317 [Verbose] > │ and UH0 = │
00:00:35 #318 [Verbose] > │ | UH0_0 of int32 * US0 * int32 * US1 * UH0 │
00:00:35 #319 [Verbose] > │ | UH0_1 │
00:00:35 #320 [Verbose] > │ and [<Struct>] US3 = │
00:00:35 #321 [Verbose] > │ | US3_0 │
00:00:35 #322 [Verbose] > │ | US3_1 │
00:00:35 #323 [Verbose] > │ and [<Struct>] US7 = │
00:00:35 #324 [Verbose] > │ | US7_0 │
00:00:35 #325 [Verbose] > │ | US7_1 │
00:00:35 #326 [Verbose] > │ | US7_2 │
00:00:35 #327 [Verbose] > │ | US7_3 │
00:00:35 #328 [Verbose] > │ | US7_4 │
00:00:35 #329 [Verbose] > │ | US7_5 │
00:00:35 #330 [Verbose] > │ | US7_6 │
00:00:35 #331 [Verbose] > │ and [<Struct>] US6 = │
00:00:35 #332 [Verbose] > │ | US6_0 of f0_0 : int32 │
00:00:35 #333 [Verbose] > │ | US6_1 of f1_0 : US7 │
00:00:35 #334 [Verbose] > │ | US6_2 of f2_0 : int32 * f2_1 : US0 │
00:00:35 #335 [Verbose] > │ and UH1 = │
00:00:35 #336 [Verbose] > │ | UH1_0 of US6 * UH1 │
00:00:35 #337 [Verbose] > │ | UH1_1 │
00:00:35 #338 [Verbose] > │ and [<Struct>] US8 = │
00:00:35 #339 [Verbose] > │ | US8_0 of f0_0 : int32 │
00:00:35 #340 [Verbose] > │ | US8_1 of f1_0 : int32 │
00:00:35 #341 [Verbose] > │ | US8_2 of f2_0 : int32 │
00:00:35 #342 [Verbose] > │ and [<Struct>] US5 = │
00:00:35 #343 [Verbose] > │ | US5_0 of f0_0 : UH1 │
00:00:35 #344 [Verbose] > │ | US5_1 of f1_0 : US8 │
00:00:35 #345 [Verbose] > │ and [<Struct>] US4 = │
00:00:35 #346 [Verbose] > │ | US4_0 of f0_0 : US3 │
00:00:35 #347 [Verbose] > │ | US4_1 of f1_0 : US5 │
00:00:35 #348 [Verbose] > │ and UH2 = │
00:00:35 #349 [Verbose] > │ | UH2_0 of UH0 * string * US4 * UH2 │
00:00:35 #350 [Verbose] > │ | UH2_1 │
00:00:35 #351 [Verbose] > │ let rec method0 () : unit = │
00:00:35 #352 [Verbose] > │ let v0 : UH0 = UH0_1 │
00:00:35 #353 [Verbose] > │ let v1 : string = "01" │
00:00:35 #354 [Verbose] > │ let v2 : US3 = US3_0 │
00:00:35 #355 [Verbose] > │ let v3 : US4 = US4_0(v2) │
00:00:35 #356 [Verbose] > │ let v4 : UH0 = UH0_1 │
00:00:35 #357 [Verbose] > │ let v5 : string = "02" │
00:00:35 #358 [Verbose] > │ let v6 : US3 = US3_0 │
00:00:35 #359 [Verbose] > │ let v7 : US4 = US4_0(v6) │
00:00:35 #360 [Verbose] > │ let v8 : UH0 = UH0_1 │
00:00:35 #361 [Verbose] > │ let v9 : string = "03" │
00:00:35 #362 [Verbose] > │ let v10 : US3 = US3_0 │
00:00:35 #363 [Verbose] > │ let v11 : US4 = US4_0(v10) │
00:00:35 #364 [Verbose] > │ let v12 : UH2 = UH2_1 │
00:00:35 #365 [Verbose] > │ let v13 : UH2 = UH2_0(v8, v9, v11, v12) │
00:00:35 #366 [Verbose] > │ let v14 : UH2 = UH2_0(v4, v5, v7, v13) │
00:00:35 #367 [Verbose] > │ let v15 : UH2 = UH2_0(v0, v1, v3, v14) │
00:00:35 #368 [Verbose] > │ let v16 : string = "format!(\"{:#?}\", $0)" │
00:00:35 #369 [Verbose] > │ let v17 : std_string_String = Fable.Core.RustInterop.emitRustExpr v15 │
00:00:35 #370 [Verbose] > │ v16 │
00:00:35 #371 [Verbose] > │ System.Console.WriteLine v17 │
00:00:35 #372 [Verbose] > │ () │
00:00:35 #373 [Verbose] > │ method0() │
00:00:35 #374 [Verbose] > │ │
00:00:35 #375 [Verbose] > │ │
00:00:35 #376 [Verbose] > │ .rs: │
00:00:35 #377 [Verbose] > │ #![allow(dead_code,)] │
00:00:35 #378 [Verbose] > │ #![allow(non_camel_case_types,)] │
00:00:35 #379 [Verbose] > │ #![allow(non_snake_case,)] │
00:00:35 #380 [Verbose] > │ #![allow(non_upper_case_globals,)] │
00:00:35 #381 [Verbose] > │ #![allow(unreachable_code,)] │
00:00:35 #382 [Verbose] > │ #![allow(unused_attributes,)] │
00:00:35 #383 [Verbose] > │ #![allow(unused_imports,)] │
00:00:35 #384 [Verbose] > │ #![allow(unused_macros,)] │
00:00:35 #385 [Verbose] > │ #![allow(unused_parens,)] │
00:00:35 #386 [Verbose] > │ #![allow(unused_variables,)] │
00:00:35 #387 [Verbose] > │ mod module_ccfa04bf { │
00:00:35 #388 [Verbose] > │ pub mod Spiral_eval { │
00:00:35 #389 [Verbose] > │ use super::*; │
00:00:35 #390 [Verbose] > │ use fable_library_rust::Native_::LrcPtr; │
00:00:35 #391 [Verbose] > │ use fable_library_rust::Native_::MutCell; │
00:00:35 #392 [Verbose] > │ use fable_library_rust::Native_::on_startup; │
00:00:35 #393 [Verbose] > │ use fable_library_rust::String_::printfn; │
00:00:35 #394 [Verbose] > │ use fable_library_rust::String_::string; │
00:00:35 #395 [Verbose] > │ #[derive(Clone, Copy, Debug, PartialEq, PartialOrd, Hash, Eq,)] │
00:00:35 #396 [Verbose] > │ pub enum US0 { │
00:00:35 #397 [Verbose] > │ US0_0, │
00:00:35 #398 [Verbose] > │ US0_1, │
00:00:35 #399 [Verbose] > │ US0_2, │
00:00:35 #400 [Verbose] > │ US0_3, │
00:00:35 #401 [Verbose] > │ US0_4, │
00:00:35 #402 [Verbose] > │ US0_5, │
00:00:35 #403 [Verbose] > │ US0_6, │
00:00:35 #404 [Verbose] > │ US0_7, │
00:00:35 #405 [Verbose] > │ US0_8, │
00:00:35 #406 [Verbose] > │ US0_9, │
00:00:35 #407 [Verbose] > │ US0_10, │
00:00:35 #408 [Verbose] > │ US0_11, │
00:00:35 #409 [Verbose] > │ } │
00:00:35 #410 [Verbose] > │ impl Spiral_eval::US0 { │
00:00:35 #411 [Verbose] > │ pub fn get_IsUS0_0(this_: &MutCell<Spiral_eval::US0>, unitArg: │
00:00:35 #412 [Verbose] > │ ()) │
00:00:35 #413 [Verbose] > │ -> bool { │
00:00:35 #414 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:35 #415 [Verbose] > │ } │
00:00:35 #416 [Verbose] > │ pub fn get_IsUS0_1(this_: &MutCell<Spiral_eval::US0>, unitArg: │
00:00:35 #417 [Verbose] > │ ()) │
00:00:35 #418 [Verbose] > │ -> bool { │
00:00:35 #419 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:35 #420 [Verbose] > │ } │
00:00:35 #421 [Verbose] > │ pub fn get_IsUS0_2(this_: &MutCell<Spiral_eval::US0>, unitArg: │
00:00:35 #422 [Verbose] > │ ()) │
00:00:35 #423 [Verbose] > │ -> bool { │
00:00:35 #424 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:35 #425 [Verbose] > │ } │
00:00:35 #426 [Verbose] > │ pub fn get_IsUS0_3(this_: &MutCell<Spiral_eval::US0>, unitArg: │
00:00:35 #427 [Verbose] > │ ()) │
00:00:35 #428 [Verbose] > │ -> bool { │
00:00:35 #429 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:35 #430 [Verbose] > │ } │
00:00:35 #431 [Verbose] > │ pub fn get_IsUS0_4(this_: &MutCell<Spiral_eval::US0>, unitArg: │
00:00:35 #432 [Verbose] > │ ()) │
00:00:35 #433 [Verbose] > │ -> bool { │
00:00:35 #434 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:35 #435 [Verbose] > │ } │
00:00:35 #436 [Verbose] > │ pub fn get_IsUS0_5(this_: &MutCell<Spiral_eval::US0>, unitArg: │
00:00:35 #437 [Verbose] > │ ()) │
00:00:35 #438 [Verbose] > │ -> bool { │
00:00:35 #439 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:35 #440 [Verbose] > │ } │
00:00:35 #441 [Verbose] > │ pub fn get_IsUS0_6(this_: &MutCell<Spiral_eval::US0>, unitArg: │
00:00:35 #442 [Verbose] > │ ()) │
00:00:35 #443 [Verbose] > │ -> bool { │
00:00:35 #444 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:35 #445 [Verbose] > │ } │
00:00:35 #446 [Verbose] > │ pub fn get_IsUS0_7(this_: &MutCell<Spiral_eval::US0>, unitArg: │
00:00:35 #447 [Verbose] > │ ()) │
00:00:35 #448 [Verbose] > │ -> bool { │
00:00:35 #449 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:35 #450 [Verbose] > │ } │
00:00:35 #451 [Verbose] > │ pub fn get_IsUS0_8(this_: &MutCell<Spiral_eval::US0>, unitArg: │
00:00:35 #452 [Verbose] > │ ()) │
00:00:35 #453 [Verbose] > │ -> bool { │
00:00:35 #454 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:35 #455 [Verbose] > │ } │
00:00:35 #456 [Verbose] > │ pub fn get_IsUS0_9(this_: &MutCell<Spiral_eval::US0>, unitArg: │
00:00:35 #457 [Verbose] > │ ()) │
00:00:35 #458 [Verbose] > │ -> bool { │
00:00:35 #459 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:35 #460 [Verbose] > │ } │
00:00:35 #461 [Verbose] > │ pub fn get_IsUS0_10(this_: &MutCell<Spiral_eval::US0>, │
00:00:35 #462 [Verbose] > │ unitArg: ()) -> bool { │
00:00:35 #463 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:35 #464 [Verbose] > │ } │
00:00:35 #465 [Verbose] > │ pub fn get_IsUS0_11(this_: &MutCell<Spiral_eval::US0>, │
00:00:35 #466 [Verbose] > │ unitArg: ()) -> bool { │
00:00:35 #467 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:35 #468 [Verbose] > │ } │
00:00:35 #469 [Verbose] > │ } │
00:00:35 #470 [Verbose] > │ impl core::fmt::Display for Spiral_eval::US0 { │
00:00:35 #471 [Verbose] > │ fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result │
00:00:35 #472 [Verbose] > │ { │
00:00:35 #473 [Verbose] > │ write!(f, "{}", core::any::type_name::<Self>()) │
00:00:35 #474 [Verbose] > │ } │
00:00:35 #475 [Verbose] > │ } │
00:00:35 #476 [Verbose] > │ #[derive(Clone, Copy, Debug, PartialEq, PartialOrd, Hash, Eq,)] │
00:00:35 #477 [Verbose] > │ pub enum US2 { US2_0, US2_1, } │
00:00:35 #478 [Verbose] > │ impl Spiral_eval::US2 { │
00:00:35 #479 [Verbose] > │ pub fn get_IsUS2_0(this_: &MutCell<Spiral_eval::US2>, unitArg: │
00:00:35 #480 [Verbose] > │ ()) │
00:00:35 #481 [Verbose] > │ -> bool { │
00:00:35 #482 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:35 #483 [Verbose] > │ } │
00:00:35 #484 [Verbose] > │ pub fn get_IsUS2_1(this_: &MutCell<Spiral_eval::US2>, unitArg: │
00:00:35 #485 [Verbose] > │ ()) │
00:00:35 #486 [Verbose] > │ -> bool { │
00:00:35 #487 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:35 #488 [Verbose] > │ } │
00:00:35 #489 [Verbose] > │ } │
00:00:35 #490 [Verbose] > │ impl core::fmt::Display for Spiral_eval::US2 { │
00:00:35 #491 [Verbose] > │ fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result │
00:00:35 #492 [Verbose] > │ { │
00:00:35 #493 [Verbose] > │ write!(f, "{}", core::any::type_name::<Self>()) │
00:00:35 #494 [Verbose] > │ } │
00:00:35 #495 [Verbose] > │ } │
00:00:35 #496 [Verbose] > │ #[derive(Clone, Copy, Debug, PartialEq, PartialOrd, Hash, Eq,)] │
00:00:35 #497 [Verbose] > │ pub enum US1 { US1_0(Spiral_eval::US2), } │
00:00:35 #498 [Verbose] > │ impl Spiral_eval::US1 { │
00:00:35 #499 [Verbose] > │ pub fn get_IsUS1_0(this_: &MutCell<Spiral_eval::US1>, unitArg: │
00:00:35 #500 [Verbose] > │ ()) │
00:00:35 #501 [Verbose] > │ -> bool { │
00:00:35 #502 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:35 #503 [Verbose] > │ } │
00:00:35 #504 [Verbose] > │ } │
00:00:35 #505 [Verbose] > │ impl core::fmt::Display for Spiral_eval::US1 { │
00:00:35 #506 [Verbose] > │ fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result │
00:00:35 #507 [Verbose] > │ { │
00:00:35 #508 [Verbose] > │ write!(f, "{}", core::any::type_name::<Self>()) │
00:00:35 #509 [Verbose] > │ } │
00:00:35 #510 [Verbose] > │ } │
00:00:35 #511 [Verbose] > │ #[derive(Clone, Debug, PartialEq, PartialOrd, Hash, Eq,)] │
00:00:35 #512 [Verbose] > │ pub enum UH0 { │
00:00:35 #513 [Verbose] > │ UH0_0(i32, Spiral_eval::US0, i32, Spiral_eval::US1, │
00:00:35 #514 [Verbose] > │ LrcPtr<Spiral_eval::UH0>), │
00:00:35 #515 [Verbose] > │ UH0_1, │
00:00:35 #516 [Verbose] > │ } │
00:00:35 #517 [Verbose] > │ impl Spiral_eval::UH0 { │
00:00:35 #518 [Verbose] > │ pub fn get_IsUH0_0(this_: LrcPtr<Spiral_eval::UH0>, unitArg: ()) │
00:00:35 #519 [Verbose] > │ -> bool { │
00:00:35 #520 [Verbose] > │ if let Spiral_eval::UH0::UH0_0(this__0_0, this__0_1, │
00:00:35 #521 [Verbose] > │ this__0_2, this__0_3, │
00:00:35 #522 [Verbose] > │ this__0_4) = this_.as_ref() { │
00:00:35 #523 [Verbose] > │ true │
00:00:35 #524 [Verbose] > │ } else { false } │
00:00:35 #525 [Verbose] > │ } │
00:00:35 #526 [Verbose] > │ pub fn get_IsUH0_1(this_: LrcPtr<Spiral_eval::UH0>, unitArg: ()) │
00:00:35 #527 [Verbose] > │ -> bool { │
00:00:35 #528 [Verbose] > │ if let Spiral_eval::UH0::UH0_1 = this_.as_ref() { │
00:00:35 #529 [Verbose] > │ true │
00:00:35 #530 [Verbose] > │ } else { false } │
00:00:35 #531 [Verbose] > │ } │
00:00:35 #532 [Verbose] > │ } │
00:00:35 #533 [Verbose] > │ impl core::fmt::Display for Spiral_eval::UH0 { │
00:00:35 #534 [Verbose] > │ fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result │
00:00:35 #535 [Verbose] > │ { │
00:00:35 #536 [Verbose] > │ write!(f, "{}", core::any::type_name::<Self>()) │
00:00:35 #537 [Verbose] > │ } │
00:00:35 #538 [Verbose] > │ } │
00:00:35 #539 [Verbose] > │ #[derive(Clone, Copy, Debug, PartialEq, PartialOrd, Hash, Eq,)] │
00:00:35 #540 [Verbose] > │ pub enum US3 { US3_0, US3_1, } │
00:00:35 #541 [Verbose] > │ impl Spiral_eval::US3 { │
00:00:35 #542 [Verbose] > │ pub fn get_IsUS3_0(this_: &MutCell<Spiral_eval::US3>, unitArg: │
00:00:35 #543 [Verbose] > │ ()) │
00:00:35 #544 [Verbose] > │ -> bool { │
00:00:35 #545 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:35 #546 [Verbose] > │ } │
00:00:35 #547 [Verbose] > │ pub fn get_IsUS3_1(this_: &MutCell<Spiral_eval::US3>, unitArg: │
00:00:35 #548 [Verbose] > │ ()) │
00:00:35 #549 [Verbose] > │ -> bool { │
00:00:35 #550 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:35 #551 [Verbose] > │ } │
00:00:35 #552 [Verbose] > │ } │
00:00:35 #553 [Verbose] > │ impl core::fmt::Display for Spiral_eval::US3 { │
00:00:35 #554 [Verbose] > │ fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result │
00:00:35 #555 [Verbose] > │ { │
00:00:35 #556 [Verbose] > │ write!(f, "{}", core::any::type_name::<Self>()) │
00:00:35 #557 [Verbose] > │ } │
00:00:35 #558 [Verbose] > │ } │
00:00:35 #559 [Verbose] > │ #[derive(Clone, Copy, Debug, PartialEq, PartialOrd, Hash, Eq,)] │
00:00:35 #560 [Verbose] > │ pub enum US7 { US7_0, US7_1, US7_2, US7_3, US7_4, US7_5, US7_6, } │
00:00:35 #561 [Verbose] > │ impl Spiral_eval::US7 { │
00:00:35 #562 [Verbose] > │ pub fn get_IsUS7_0(this_: &MutCell<Spiral_eval::US7>, unitArg: │
00:00:35 #563 [Verbose] > │ ()) │
00:00:35 #564 [Verbose] > │ -> bool { │
00:00:35 #565 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:35 #566 [Verbose] > │ } │
00:00:35 #567 [Verbose] > │ pub fn get_IsUS7_1(this_: &MutCell<Spiral_eval::US7>, unitArg: │
00:00:35 #568 [Verbose] > │ ()) │
00:00:35 #569 [Verbose] > │ -> bool { │
00:00:35 #570 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:35 #571 [Verbose] > │ } │
00:00:35 #572 [Verbose] > │ pub fn get_IsUS7_2(this_: &MutCell<Spiral_eval::US7>, unitArg: │
00:00:35 #573 [Verbose] > │ ()) │
00:00:35 #574 [Verbose] > │ -> bool { │
00:00:35 #575 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:35 #576 [Verbose] > │ } │
00:00:35 #577 [Verbose] > │ pub fn get_IsUS7_3(this_: &MutCell<Spiral_eval::US7>, unitArg: │
00:00:35 #578 [Verbose] > │ ()) │
00:00:35 #579 [Verbose] > │ -> bool { │
00:00:35 #580 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:35 #581 [Verbose] > │ } │
00:00:35 #582 [Verbose] > │ pub fn get_IsUS7_4(this_: &MutCell<Spiral_eval::US7>, unitArg: │
00:00:35 #583 [Verbose] > │ ()) │
00:00:35 #584 [Verbose] > │ -> bool { │
00:00:35 #585 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:35 #586 [Verbose] > │ } │
00:00:35 #587 [Verbose] > │ pub fn get_IsUS7_5(this_: &MutCell<Spiral_eval::US7>, unitArg: │
00:00:35 #588 [Verbose] > │ ()) │
00:00:35 #589 [Verbose] > │ -> bool { │
00:00:35 #590 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:35 #591 [Verbose] > │ } │
00:00:35 #592 [Verbose] > │ pub fn get_IsUS7_6(this_: &MutCell<Spiral_eval::US7>, unitArg: │
00:00:35 #593 [Verbose] > │ ()) │
00:00:35 #594 [Verbose] > │ -> bool { │
00:00:35 #595 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:35 #596 [Verbose] > │ } │
00:00:35 #597 [Verbose] > │ } │
00:00:35 #598 [Verbose] > │ impl core::fmt::Display for Spiral_eval::US7 { │
00:00:35 #599 [Verbose] > │ fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result │
00:00:35 #600 [Verbose] > │ { │
00:00:35 #601 [Verbose] > │ write!(f, "{}", core::any::type_name::<Self>()) │
00:00:35 #602 [Verbose] > │ } │
00:00:35 #603 [Verbose] > │ } │
00:00:35 #604 [Verbose] > │ #[derive(Clone, Copy, Debug, PartialEq, PartialOrd, Hash, Eq,)] │
00:00:35 #605 [Verbose] > │ pub enum US6 { │
00:00:35 #606 [Verbose] > │ US6_0(i32), │
00:00:35 #607 [Verbose] > │ US6_1(Spiral_eval::US7), │
00:00:35 #608 [Verbose] > │ US6_2(i32, Spiral_eval::US0), │
00:00:35 #609 [Verbose] > │ } │
00:00:35 #610 [Verbose] > │ impl Spiral_eval::US6 { │
00:00:35 #611 [Verbose] > │ pub fn get_IsUS6_0(this_: &MutCell<Spiral_eval::US6>, unitArg: │
00:00:35 #612 [Verbose] > │ ()) │
00:00:35 #613 [Verbose] > │ -> bool { │
00:00:35 #614 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:35 #615 [Verbose] > │ } │
00:00:35 #616 [Verbose] > │ pub fn get_IsUS6_1(this_: &MutCell<Spiral_eval::US6>, unitArg: │
00:00:35 #617 [Verbose] > │ ()) │
00:00:35 #618 [Verbose] > │ -> bool { │
00:00:35 #619 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:35 #620 [Verbose] > │ } │
00:00:35 #621 [Verbose] > │ pub fn get_IsUS6_2(this_: &MutCell<Spiral_eval::US6>, unitArg: │
00:00:35 #622 [Verbose] > │ ()) │
00:00:35 #623 [Verbose] > │ -> bool { │
00:00:35 #624 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:35 #625 [Verbose] > │ } │
00:00:35 #626 [Verbose] > │ } │
00:00:35 #627 [Verbose] > │ impl core::fmt::Display for Spiral_eval::US6 { │
00:00:35 #628 [Verbose] > │ fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result │
00:00:35 #629 [Verbose] > │ { │
00:00:35 #630 [Verbose] > │ write!(f, "{}", core::any::type_name::<Self>()) │
00:00:35 #631 [Verbose] > │ } │
00:00:35 #632 [Verbose] > │ } │
00:00:35 #633 [Verbose] > │ #[derive(Clone, Debug, PartialEq, PartialOrd, Hash, Eq,)] │
00:00:35 #634 [Verbose] > │ pub enum UH1 { │
00:00:35 #635 [Verbose] > │ UH1_0(Spiral_eval::US6, LrcPtr<Spiral_eval::UH1>), │
00:00:35 #636 [Verbose] > │ UH1_1, │
00:00:35 #637 [Verbose] > │ } │
00:00:35 #638 [Verbose] > │ impl Spiral_eval::UH1 { │
00:00:35 #639 [Verbose] > │ pub fn get_IsUH1_0(this_: LrcPtr<Spiral_eval::UH1>, unitArg: ()) │
00:00:35 #640 [Verbose] > │ -> bool { │
00:00:35 #641 [Verbose] > │ if let Spiral_eval::UH1::UH1_0(this__0_0, this__0_1) = │
00:00:35 #642 [Verbose] > │ this_.as_ref() { │
00:00:35 #643 [Verbose] > │ true │
00:00:35 #644 [Verbose] > │ } else { false } │
00:00:35 #645 [Verbose] > │ } │
00:00:35 #646 [Verbose] > │ pub fn get_IsUH1_1(this_: LrcPtr<Spiral_eval::UH1>, unitArg: ()) │
00:00:35 #647 [Verbose] > │ -> bool { │
00:00:35 #648 [Verbose] > │ if let Spiral_eval::UH1::UH1_1 = this_.as_ref() { │
00:00:35 #649 [Verbose] > │ true │
00:00:35 #650 [Verbose] > │ } else { false } │
00:00:35 #651 [Verbose] > │ } │
00:00:35 #652 [Verbose] > │ } │
00:00:35 #653 [Verbose] > │ impl core::fmt::Display for Spiral_eval::UH1 { │
00:00:35 #654 [Verbose] > │ fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result │
00:00:35 #655 [Verbose] > │ { │
00:00:35 #656 [Verbose] > │ write!(f, "{}", core::any::type_name::<Self>()) │
00:00:35 #657 [Verbose] > │ } │
00:00:35 #658 [Verbose] > │ } │
00:00:35 #659 [Verbose] > │ #[derive(Clone, Copy, Debug, PartialEq, PartialOrd, Hash, Eq,)] │
00:00:35 #660 [Verbose] > │ pub enum US8 { US8_0(i32), US8_1(i32), US8_2(i32), } │
00:00:35 #661 [Verbose] > │ impl Spiral_eval::US8 { │
00:00:35 #662 [Verbose] > │ pub fn get_IsUS8_0(this_: &MutCell<Spiral_eval::US8>, unitArg: │
00:00:35 #663 [Verbose] > │ ()) │
00:00:35 #664 [Verbose] > │ -> bool { │
00:00:35 #665 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:35 #666 [Verbose] > │ } │
00:00:35 #667 [Verbose] > │ pub fn get_IsUS8_1(this_: &MutCell<Spiral_eval::US8>, unitArg: │
00:00:35 #668 [Verbose] > │ ()) │
00:00:35 #669 [Verbose] > │ -> bool { │
00:00:35 #670 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:35 #671 [Verbose] > │ } │
00:00:35 #672 [Verbose] > │ pub fn get_IsUS8_2(this_: &MutCell<Spiral_eval::US8>, unitArg: │
00:00:35 #673 [Verbose] > │ ()) │
00:00:35 #674 [Verbose] > │ -> bool { │
00:00:35 #675 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:35 #676 [Verbose] > │ } │
00:00:35 #677 [Verbose] > │ } │
00:00:35 #678 [Verbose] > │ impl core::fmt::Display for Spiral_eval::US8 { │
00:00:35 #679 [Verbose] > │ fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result │
00:00:35 #680 [Verbose] > │ { │
00:00:35 #681 [Verbose] > │ write!(f, "{}", core::any::type_name::<Self>()) │
00:00:35 #682 [Verbose] > │ } │
00:00:35 #683 [Verbose] > │ } │
00:00:35 #684 [Verbose] > │ #[derive(Clone, Debug, PartialEq, PartialOrd, Hash, Eq,)] │
00:00:35 #685 [Verbose] > │ pub enum US5 { │
00:00:35 #686 [Verbose] > │ US5_0(LrcPtr<Spiral_eval::UH1>), │
00:00:35 #687 [Verbose] > │ US5_1(Spiral_eval::US8), │
00:00:35 #688 [Verbose] > │ } │
00:00:35 #689 [Verbose] > │ impl Spiral_eval::US5 { │
00:00:35 #690 [Verbose] > │ pub fn get_IsUS5_0(this_: &MutCell<Spiral_eval::US5>, unitArg: │
00:00:35 #691 [Verbose] > │ ()) │
00:00:35 #692 [Verbose] > │ -> bool { │
00:00:35 #693 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:35 #694 [Verbose] > │ } │
00:00:35 #695 [Verbose] > │ pub fn get_IsUS5_1(this_: &MutCell<Spiral_eval::US5>, unitArg: │
00:00:35 #696 [Verbose] > │ ()) │
00:00:35 #697 [Verbose] > │ -> bool { │
00:00:35 #698 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:35 #699 [Verbose] > │ } │
00:00:35 #700 [Verbose] > │ } │
00:00:35 #701 [Verbose] > │ impl core::fmt::Display for Spiral_eval::US5 { │
00:00:35 #702 [Verbose] > │ fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result │
00:00:35 #703 [Verbose] > │ { │
00:00:35 #704 [Verbose] > │ write!(f, "{}", core::any::type_name::<Self>()) │
00:00:35 #705 [Verbose] > │ } │
00:00:35 #706 [Verbose] > │ } │
00:00:35 #707 [Verbose] > │ #[derive(Clone, Debug, PartialEq, PartialOrd, Hash, Eq,)] │
00:00:35 #708 [Verbose] > │ pub enum US4 { US4_0(Spiral_eval::US3), US4_1(Spiral_eval::US5), } │
00:00:35 #709 [Verbose] > │ impl Spiral_eval::US4 { │
00:00:35 #710 [Verbose] > │ pub fn get_IsUS4_0(this_: &MutCell<Spiral_eval::US4>, unitArg: │
00:00:35 #711 [Verbose] > │ ()) │
00:00:35 #712 [Verbose] > │ -> bool { │
00:00:35 #713 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:35 #714 [Verbose] > │ } │
00:00:35 #715 [Verbose] > │ pub fn get_IsUS4_1(this_: &MutCell<Spiral_eval::US4>, unitArg: │
00:00:35 #716 [Verbose] > │ ()) │
00:00:35 #717 [Verbose] > │ -> bool { │
00:00:35 #718 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:35 #719 [Verbose] > │ } │
00:00:35 #720 [Verbose] > │ } │
00:00:35 #721 [Verbose] > │ impl core::fmt::Display for Spiral_eval::US4 { │
00:00:35 #722 [Verbose] > │ fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result │
00:00:35 #723 [Verbose] > │ { │
00:00:35 #724 [Verbose] > │ write!(f, "{}", core::any::type_name::<Self>()) │
00:00:35 #725 [Verbose] > │ } │
00:00:35 #726 [Verbose] > │ } │
00:00:35 #727 [Verbose] > │ #[derive(Clone, Debug, PartialEq, PartialOrd, Hash, Eq,)] │
00:00:35 #728 [Verbose] > │ pub enum UH2 { │
00:00:35 #729 [Verbose] > │ UH2_0(LrcPtr<Spiral_eval::UH0>, string, Spiral_eval::US4, │
00:00:35 #730 [Verbose] > │ LrcPtr<Spiral_eval::UH2>), │
00:00:35 #731 [Verbose] > │ UH2_1, │
00:00:35 #732 [Verbose] > │ } │
00:00:35 #733 [Verbose] > │ impl Spiral_eval::UH2 { │
00:00:35 #734 [Verbose] > │ pub fn get_IsUH2_0(this_: LrcPtr<Spiral_eval::UH2>, unitArg: ()) │
00:00:35 #735 [Verbose] > │ -> bool { │
00:00:35 #736 [Verbose] > │ if let Spiral_eval::UH2::UH2_0(this__0_0, this__0_1, │
00:00:35 #737 [Verbose] > │ this__0_2, this__0_3) = │
00:00:35 #738 [Verbose] > │ this_.as_ref() { │
00:00:35 #739 [Verbose] > │ true │
00:00:35 #740 [Verbose] > │ } else { false } │
00:00:35 #741 [Verbose] > │ } │
00:00:35 #742 [Verbose] > │ pub fn get_IsUH2_1(this_: LrcPtr<Spiral_eval::UH2>, unitArg: ()) │
00:00:35 #743 [Verbose] > │ -> bool { │
00:00:35 #744 [Verbose] > │ if let Spiral_eval::UH2::UH2_1 = this_.as_ref() { │
00:00:35 #745 [Verbose] > │ true │
00:00:35 #746 [Verbose] > │ } else { false } │
00:00:35 #747 [Verbose] > │ } │
00:00:35 #748 [Verbose] > │ } │
00:00:35 #749 [Verbose] > │ impl core::fmt::Display for Spiral_eval::UH2 { │
00:00:35 #750 [Verbose] > │ fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result │
00:00:35 #751 [Verbose] > │ { │
00:00:35 #752 [Verbose] > │ write!(f, "{}", core::any::type_name::<Self>()) │
00:00:35 #753 [Verbose] > │ } │
00:00:35 #754 [Verbose] > │ } │
00:00:35 #755 [Verbose] > │ pub fn method0() { │
00:00:35 #756 [Verbose] > │ let v17: std::string::String = │
00:00:35 #757 [Verbose] > │ format!("{:#?}", │
00:00:35 #758 [Verbose] > │ LrcPtr::new(Spiral_eval::UH2::UH2_0(LrcPtr::new(Spiral_eval::UH0::UH0_1), │
00:00:35 #759 [Verbose] > │ │
00:00:35 #760 [Verbose] > │ string("01"), │
00:00:35 #761 [Verbose] > │ │
00:00:35 #762 [Verbose] > │ Spiral_eval::US4::US4_0(Spiral_eval::US3::US3_0), │
00:00:35 #763 [Verbose] > │ │
00:00:35 #764 [Verbose] > │ LrcPtr::new(Spiral_eval::UH2::UH2_0(LrcPtr::new(Spiral_eval::UH0::UH0_1), │
00:00:35 #765 [Verbose] > │ │
00:00:35 #766 [Verbose] > │ string("02"), │
00:00:35 #767 [Verbose] > │ │
00:00:35 #768 [Verbose] > │ Spiral_eval::US4::US4_0(Spiral_eval::US3::US3_0), │
00:00:35 #769 [Verbose] > │ │
00:00:35 #770 [Verbose] > │ LrcPtr::new(Spiral_eval::UH2::UH2_0(LrcPtr::new(Spiral_eval::UH0::UH0_1), │
00:00:35 #771 [Verbose] > │ │
00:00:35 #772 [Verbose] > │ string("03"), │
00:00:35 #773 [Verbose] > │ │
00:00:35 #774 [Verbose] > │ Spiral_eval::US4::US4_0(Spiral_eval::US3::US3_0), │
00:00:35 #775 [Verbose] > │ │
00:00:35 #776 [Verbose] > │ LrcPtr::new(Spiral_eval::UH2::UH2_1)))))))); │
00:00:35 #777 [Verbose] > │ printfn!("{0}", v17); │
00:00:35 #778 [Verbose] > │ () │
00:00:35 #779 [Verbose] > │ } │
00:00:35 #780 [Verbose] > │ on_startup!(Spiral_eval::method0()); │
00:00:35 #781 [Verbose] > │ } │
00:00:35 #782 [Verbose] > │ } │
00:00:35 #783 [Verbose] > │ pub use module_ccfa04bf::*; │
00:00:35 #784 [Verbose] > │ │
00:00:35 #785 [Verbose] > │ │
00:00:35 #786 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:35 #787 [Verbose] >
00:00:35 #788 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:35 #789 [Verbose] > // // test
00:00:35 #790 [Verbose] > // // rust=
00:00:35 #791 [Verbose] >
00:00:35 #792 [Verbose] > get_tasks ()
00:00:35 #793 [Verbose] > |> listm'.try_item 0i32
00:00:35 #794 [Verbose] > |> fun (Some task) => task.task.name
00:00:35 #795 [Verbose] > |> _assert_eq (task_name "01")
00:00:35 #796 [Verbose] > Building /tmp/!dotnet-repl/20240325-2021-3745-4599-4923addcf23d/main.spi
00:00:37 #797 [Verbose] >
00:00:37 #798 [Verbose] > ╭─[ 2.56s - return value ]─────────────────────────────────────────────────────╮
00:00:37 #799 [Verbose] > │ .rs output: │
00:00:37 #800 [Verbose] > │ │
00:00:37 #801 [Verbose] > │ │
00:00:37 #802 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:37 #803 [Verbose] >
00:00:37 #804 [Verbose] > ╭─[ 2.57s - stdout ]───────────────────────────────────────────────────────────╮
00:00:37 #805 [Verbose] > │ │
00:00:37 #806 [Verbose] > │ .fsx: │
00:00:37 #807 [Verbose] > │ let rec method0 () : unit = │
00:00:37 #808 [Verbose] > │ let v3 : string = "01" │
00:00:37 #809 [Verbose] > │ let v4 : string = $"__expect / actual: %A{v3} / expected: %A{v3}" │
00:00:37 #810 [Verbose] > │ () │
00:00:37 #811 [Verbose] > │ method0() │
00:00:37 #812 [Verbose] > │ │
00:00:37 #813 [Verbose] > │ │
00:00:37 #814 [Verbose] > │ .rs: │
00:00:37 #815 [Verbose] > │ #![allow(dead_code,)] │
00:00:37 #816 [Verbose] > │ #![allow(non_camel_case_types,)] │
00:00:37 #817 [Verbose] > │ #![allow(non_snake_case,)] │
00:00:37 #818 [Verbose] > │ #![allow(non_upper_case_globals,)] │
00:00:37 #819 [Verbose] > │ #![allow(unreachable_code,)] │
00:00:37 #820 [Verbose] > │ #![allow(unused_attributes,)] │
00:00:37 #821 [Verbose] > │ #![allow(unused_imports,)] │
00:00:37 #822 [Verbose] > │ #![allow(unused_macros,)] │
00:00:37 #823 [Verbose] > │ #![allow(unused_parens,)] │
00:00:37 #824 [Verbose] > │ #![allow(unused_variables,)] │
00:00:37 #825 [Verbose] > │ mod module_ccfa04bf { │
00:00:37 #826 [Verbose] > │ pub mod Spiral_eval { │
00:00:37 #827 [Verbose] > │ use super::*; │
00:00:37 #828 [Verbose] > │ use fable_library_rust::Native_::on_startup; │
00:00:37 #829 [Verbose] > │ use fable_library_rust::String_::sprintf; │
00:00:37 #830 [Verbose] > │ use fable_library_rust::String_::string; │
00:00:37 #831 [Verbose] > │ pub fn method0() { │
00:00:37 #832 [Verbose] > │ let v4: string = │
00:00:37 #833 [Verbose] > │ sprintf!("__expect / actual: {:?} / expected: {:?}", │
00:00:37 #834 [Verbose] > │ string("01"), string("01")); │
00:00:37 #835 [Verbose] > │ () │
00:00:37 #836 [Verbose] > │ } │
00:00:37 #837 [Verbose] > │ on_startup!(Spiral_eval::method0()); │
00:00:37 #838 [Verbose] > │ } │
00:00:37 #839 [Verbose] > │ } │
00:00:37 #840 [Verbose] > │ pub use module_ccfa04bf::*; │
00:00:37 #841 [Verbose] > │ │
00:00:37 #842 [Verbose] > │ │
00:00:37 #843 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:37 #844 [Verbose] >
00:00:37 #845 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:37 #846 [Verbose] > // // test
00:00:37 #847 [Verbose] >
00:00:37 #848 [Verbose] > ()
00:00:37 #849 [Verbose] > Building /tmp/!dotnet-repl/20240325-2021-4002-0288-00ad036a04c0/main.spi
00:00:38 #850 [Verbose] >
00:00:38 #851 [Verbose] > ╭─[ 285.69ms - stdout ]────────────────────────────────────────────────────────╮
00:00:38 #852 [Verbose] > │ let rec method0 () : unit = │
00:00:38 #853 [Verbose] > │ () │
00:00:38 #854 [Verbose] > │ method0() │
00:00:38 #855 [Verbose] > │ │
00:00:38 #856 [Verbose] > │ │
00:00:38 #857 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:38 #858 [Verbose] > [NbConvertApp] Converting notebook Tasks.dib.ipynb to html
00:00:38 #859 [Verbose] > /opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/nbformat/__init__.py:96: MissingIDFieldWarning: Cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:00:38 #860 [Verbose] > validate(nb)
00:00:39 #861 [Verbose] > /opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/nbconvert/filters/highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:00:39 #862 [Verbose] > return _pygments_highlight(
00:00:39 #863 [Verbose] > [NbConvertApp] Writing 313708 bytes to Tasks.dib.html
00:00:39 #864 [Debug] executeAsync / exitCode: 0 / output.Length: 72408
00:00:39 #865 [Debug] main / executeCommand / exitCode: 0
00:00:00 #1 [Debug] writeDibCode / output: Spi / path: Tasks.dib
00:00:00 #2 [Debug] parseDibCode / output: Spi / file: Tasks.dib
In [ ]:
{ . "$ScriptDir/../apps/spiral/temp/test/build.ps1" } | Invoke-Block
── pwsh ──────────────────────────────────────────────────────────────────────── . ../../../../scripts/nbs_header.ps1 . ../../../../scripts/core.ps1 ── pwsh ──────────────────────────────────────────────────────────────────────── { . ../../../../apps/spiral/dist/Supervisor$(GetExecutableSuffix) --execute-command "pwsh -c `"../../../../scripts/invoke-dib.ps1 test.dib`"" } | Invoke-Block -Retries 5 ╭─[ 11.79s - stdout ]──────────────────────────────────────────────────────────╮ │ 00:00:00 #1 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:00 #2 [Debug] executeAsync / options: { Command = │ │ "dotnet "/home/runner/work/polyglot/polyglot/deps/The-Spiral-Language/The │ │ Spiral Language 2/artifacts/bin/The Spiral Language 2/release/Spiral.dll" │ │ --port 13805 --default-int i32 --default-float f64" │ │ WorkingDirectory = None │ │ CancellationToken = Some System.Threading.CancellationToken │ │ OnLine = Some <fun:main@464-1020> } │ │ 00:00:00 #3 [Verbose] > pwd: │ │ /home/runner/work/polyglot/polyglot/apps/spiral/temp/test │ │ 00:00:00 #4 [Verbose] > dll_path: │ │ /home/runner/work/polyglot/polyglot/deps/The-Spiral-Language/The Spiral │ │ Language 2/artifacts/bin/The Spiral Language 2/release │ │ 00:00:00 #5 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:00 #6 [Verbose] waitForPortAccess / port: 13805 / retry: 0 │ │ 00:00:00 #7 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:00 #8 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:00 #9 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:00 #10 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:00 #11 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:00 #12 [Verbose] > Starting the Spiral Server. It is bound to: │ │ http://localhost:13805 │ │ 00:00:00 #13 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:00 #14 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:00 #15 [Debug] sendJson / port: 13805 / json: {"Ping":true} / │ │ result.Length: │ │ 00:00:00 #16 [Verbose] awaitCompiler / Ping / result: Some(null) / port: │ │ 13805 / retry: 0 │ │ 00:00:00 #17 [Verbose] > Server bound to: http://localhost:13805 │ │ 00:00:00 #18 [Debug] executeAsync / options: { Command = "pwsh -c │ │ "../../../../scripts/invoke-dib.ps1 test.dib"" │ │ WorkingDirectory = None │ │ CancellationToken = Some System.Threading.CancellationToken │ │ OnLine = None } │ │ 00:00:02 #19 [Verbose] > │ │ 00:00:02 #20 [Verbose] > ── markdown │ │ ──────────────────────────────────────────────────────────────────── │ │ 00:00:02 #21 [Verbose] > 38;5;2m│ │ 38;5;103m╭────────────────────────────────────────────────────────────────── │ │ ────────────╮ │ │ 00:00:02 #22 [Verbose] > │ # test (Polyglot) │ │ │ │ │ 00:00:02 #23 [Verbose] > 38;5;2m│ │ 38;5;103m╰────────────────────────────────────────────────────────────────── │ │ ────────────╯ │ │ 00:00:02 #24 [Verbose] > │ │ 00:00:02 #25 [Verbose] > ── spiral │ │ ────────────────────────────────────────────────────────────────────── │ │ 00:00:02 #26 [Verbose] > // // test │ │ 00:00:02 #27 [Verbose] > │ │ 00:00:02 #28 [Verbose] > open testing │ │ 00:00:04 #29 [Verbose] > Building │ │ /tmp/!dotnet-repl/20240325-2021-4830-3034-35381e1e6cba/main.spi │ │ 00:00:06 #30 [Verbose] > │ │ 00:00:06 #31 [Verbose] > ╭─[ 3.60s - stdout │ │ ]───────────────────────────────────────────────────────────╮ │ │ 00:00:06 #32 [Verbose] > │ () │ │ │ │ │ 00:00:06 #33 [Verbose] > │ │ │ │ │ │ │ │ 00:00:06 #34 [Verbose] > │ │ │ │ │ │ │ │ 00:00:06 #35 [Verbose] > 38;5;2m│ │ 38;5;2m╰──────────────────────────────────────────────────────────────────── │ │ ──────────╯ │ │ 00:00:06 #36 [Verbose] > │ │ 00:00:06 #37 [Verbose] > ── spiral │ │ ────────────────────────────────────────────────────────────────────── │ │ 00:00:06 #38 [Verbose] > nominal i = () │ │ 00:00:06 #39 [Verbose] > nominal e = () │ │ 00:00:06 #40 [Verbose] > nominal s = () │ │ 00:00:06 #41 [Verbose] > nominal n = () │ │ 00:00:06 #42 [Verbose] > nominal t = () │ │ 00:00:06 #43 [Verbose] > nominal f = () │ │ 00:00:06 #44 [Verbose] > nominal j = () │ │ 00:00:06 #45 [Verbose] > nominal p = () │ │ 00:00:06 #46 [Verbose] > │ │ 00:00:06 #47 [Verbose] > union sensing = │ │ 00:00:06 #48 [Verbose] > | Si : s * i │ │ 00:00:06 #49 [Verbose] > | Se : s * e │ │ 00:00:06 #50 [Verbose] > │ │ 00:00:06 #51 [Verbose] > union intuition = │ │ 00:00:06 #52 [Verbose] > | Ni : n * i │ │ 00:00:06 #53 [Verbose] > | Ne : n * e │ │ 00:00:06 #54 [Verbose] > │ │ 00:00:06 #55 [Verbose] > union thinking = │ │ 00:00:06 #56 [Verbose] > | Ti : t * i │ │ 00:00:06 #57 [Verbose] > | Te : t * e │ │ 00:00:06 #58 [Verbose] > │ │ 00:00:06 #59 [Verbose] > union feeling = │ │ 00:00:06 #60 [Verbose] > | Fi : f * i │ │ 00:00:06 #61 [Verbose] > | Fe : f * e │ │ 00:00:06 #62 [Verbose] > │ │ 00:00:06 #63 [Verbose] > union function_stack = │ │ 00:00:06 #64 [Verbose] > | FS : sensing * intuition * thinking * feeling │ │ 00:00:06 #65 [Verbose] > │ │ 00:00:06 #66 [Verbose] > union personality_type = │ │ 00:00:06 #67 [Verbose] > | ISTJ : i * s * t * j * function_stack │ │ 00:00:06 #68 [Verbose] > | ISFJ : i * s * f * j * function_stack │ │ 00:00:06 #69 [Verbose] > | INFJ : i * n * f * j * function_stack │ │ 00:00:06 #70 [Verbose] > | INTJ : i * n * t * j * function_stack │ │ 00:00:06 #71 [Verbose] > | ISTP : i * s * t * p * function_stack │ │ 00:00:06 #72 [Verbose] > | ISFP : i * s * f * p * function_stack │ │ 00:00:06 #73 [Verbose] > | INFP : i * n * f * p * function_stack │ │ 00:00:06 #74 [Verbose] > | INTP : i * n * t * p * function_stack │ │ 00:00:06 #75 [Verbose] > | ESTP : e * s * t * p * function_stack │ │ 00:00:06 #76 [Verbose] > | ESFP : e * s * f * p * function_stack │ │ 00:00:06 #77 [Verbose] > | ENFP : e * n * f * p * function_stack │ │ 00:00:06 #78 [Verbose] > | ENTP : e * n * t * p * function_stack │ │ 00:00:06 #79 [Verbose] > | ESTJ : e * s * t * j * function_stack │ │ 00:00:06 #80 [Verbose] > | ESFJ : e * s * f * j * function_stack │ │ 00:00:06 #81 [Verbose] > | ENFJ : e * n * f * j * function_stack │ │ 00:00:06 #82 [Verbose] > | ENTJ : e * n * t * j * function_stack │ │ 00:00:06 #83 [Verbose] > │ │ 00:00:06 #84 [Verbose] > │ │ 00:00:06 #85 [Verbose] > inl main () = │ │ 00:00:06 #86 [Verbose] > inl istj_stack = FS ((Si (s, i)), Ne (n, e), │ │ (Te (t, e)), (Fi (f, i))) │ │ 00:00:06 #87 [Verbose] > inl istj_personality = ISTJ (i, s, t, j, │ │ istj_stack) │ │ 00:00:06 #88 [Verbose] > // inl isfj_stack = FS ((Si (s, i)), Ne (n, e), │ │ (Fe (f, e)), (Ti (t, i))) │ │ 00:00:06 #89 [Verbose] > // inl isfj_personality = ISFJ (i, s, f, j, │ │ isfj_stack) │ │ 00:00:06 #90 [Verbose] > │ │ 00:00:06 #91 [Verbose] > ;[[ │ │ 00:00:06 #92 [Verbose] > istj_personality │ │ 00:00:06 #93 [Verbose] > ]] │ │ 00:00:06 #94 [Verbose] > |> fun x => $'$"%A{!x}"' : string │ │ 00:00:06 #95 [Verbose] > |> console.write_line │ │ 00:00:06 #96 [Verbose] > │ │ 00:00:06 #97 [Verbose] > inl main () = │ │ 00:00:06 #98 [Verbose] > $"!main ()" : () │ │ 00:00:06 #99 [Verbose] > Building │ │ /tmp/!dotnet-repl/20240325-2021-5079-7904-7ee098e99a73/main.spi │ │ 00:00:07 #100 [Verbose] > │ │ 00:00:07 #101 [Verbose] > ╭─[ 1.42s - stdout │ │ ]───────────────────────────────────────────────────────────╮ │ │ 00:00:07 #102 [Verbose] > │ type [<Struct>] US0 = │ │ │ │ │ 00:00:07 #103 [Verbose] > │ | US0_0 │ │ │ │ │ 00:00:07 #104 [Verbose] > │ | US0_1 │ │ │ │ │ 00:00:07 #105 [Verbose] > │ and [<Struct>] US1 = │ │ │ │ │ 00:00:07 #106 [Verbose] > │ | US1_0 │ │ │ │ │ 00:00:07 #107 [Verbose] > │ | US1_1 │ │ │ │ │ 00:00:07 #108 [Verbose] > │ and [<Struct>] US2 = │ │ │ │ │ 00:00:07 #109 [Verbose] > │ | US2_0 │ │ │ │ │ 00:00:07 #110 [Verbose] > │ | US2_1 │ │ │ │ │ 00:00:07 #111 [Verbose] > │ and [<Struct>] US3 = │ │ │ │ │ 00:00:07 #112 [Verbose] > │ | US3_0 │ │ │ │ │ 00:00:07 #113 [Verbose] > │ | US3_1 │ │ │ │ │ 00:00:07 #114 [Verbose] > │ and [<Struct>] US4 = │ │ │ │ │ 00:00:07 #115 [Verbose] > │ | US4_0 of f0_0 : US0 * f0_1 : US1 │ │ * f0_2 : US2 * f0_3 : US3 │ │ │ 00:00:07 #116 [Verbose] > │ and [<Struct>] US5 = │ │ │ │ │ 00:00:07 #117 [Verbose] > │ | US5_0 of f0_0 : US4 │ │ │ │ │ 00:00:07 #118 [Verbose] > │ | US5_1 of f1_0 : US4 │ │ │ │ │ 00:00:07 #119 [Verbose] > │ | US5_2 of f2_0 : US4 │ │ │ │ │ 00:00:07 #120 [Verbose] > │ | US5_3 of f3_0 : US4 │ │ │ │ │ 00:00:07 #121 [Verbose] > │ | US5_4 of f4_0 : US4 │ │ │ │ │ 00:00:07 #122 [Verbose] > │ | US5_5 of f5_0 : US4 │ │ │ │ │ 00:00:07 #123 [Verbose] > │ | US5_6 of f6_0 : US4 │ │ │ │ │ 00:00:07 #124 [Verbose] > │ | US5_7 of f7_0 : US4 │ │ │ │ │ 00:00:07 #125 [Verbose] > │ | US5_8 of f8_0 : US4 │ │ │ │ │ 00:00:07 #126 [Verbose] > │ | US5_9 of f9_0 : US4 │ │ │ │ │ 00:00:07 #127 [Verbose] > │ | US5_10 of f10_0 : US4 │ │ │ │ │ 00:00:07 #128 [Verbose] > │ | US5_11 of f11_0 : US4 │ │ │ │ │ 00:00:07 #129 [Verbose] > │ | US5_12 of f12_0 : US4 │ │ │ │ │ 00:00:07 #130 [Verbose] > │ | US5_13 of f13_0 : US4 │ │ │ │ │ 00:00:07 #131 [Verbose] > │ | US5_14 of f14_0 : US4 │ │ │ │ │ 00:00:07 #132 [Verbose] > │ | US5_15 of f15_0 : US4 │ │ │ │ │ 00:00:07 #133 [Verbose] > │ let rec method0 (v0 : (US5 [])) : (US5 │ │ []) = │ │ │ 00:00:07 #134 [Verbose] > │ v0 │ │ │ │ │ 00:00:07 #135 [Verbose] > │ and closure0 () () : unit = │ │ │ │ │ 00:00:07 #136 [Verbose] > │ let v0 : US0 = US0_1 │ │ │ │ │ 00:00:07 #137 [Verbose] > │ let v1 : US1 = US1_0 │ │ │ │ │ 00:00:07 #138 [Verbose] > │ let v2 : US2 = US2_0 │ │ │ │ │ 00:00:07 #139 [Verbose] > │ let v3 : US3 = US3_1 │ │ │ │ │ 00:00:07 #140 [Verbose] > │ let v4 : US4 = US4_0(v0, v1, v2, │ │ v3) │ │ │ 00:00:07 #141 [Verbose] > │ let v5 : US5 = US5_14(v4) │ │ │ │ │ 00:00:07 #142 [Verbose] > │ let v6 : (US5 []) = [|v5|] │ │ │ │ │ 00:00:07 #143 [Verbose] > │ let v7 : (US5 []) = method0(v6) │ │ │ │ │ 00:00:07 #144 [Verbose] > │ let v8 : string = $"%A{v7}" │ │ │ │ │ 00:00:07 #145 [Verbose] > │ System.Console.WriteLine v8 │ │ │ │ │ 00:00:07 #146 [Verbose] > │ () │ │ │ │ │ 00:00:07 #147 [Verbose] > │ let v0 : (unit -> unit) = closure0() │ │ │ │ │ 00:00:07 #148 [Verbose] > │ v0 () │ │ │ │ │ 00:00:07 #149 [Verbose] > │ () │ │ │ │ │ 00:00:07 #150 [Verbose] > │ │ │ │ │ │ │ │ 00:00:07 #151 [Verbose] > │ [|US5_14 (US4_0 (US0_1, US1_0, US2_0, │ │ US3_1))|] │ │ │ 00:00:07 #152 [Verbose] > │ │ │ │ │ │ │ │ 00:00:07 #153 [Verbose] > 38;5;2m│ │ 38;5;2m╰──────────────────────────────────────────────────────────────────── │ │ ──────────╯ │ │ 00:00:07 #154 [Verbose] > │ │ 00:00:07 #155 [Verbose] > ── fsharp │ │ ────────────────────────────────────────────────────────────────────── │ │ 00:00:07 #156 [Verbose] > type PhonologicalFeature = │ │ 00:00:07 #157 [Verbose] > | VowelFeature of │ │ 00:00:07 #158 [Verbose] > height: Height │ │ 00:00:07 #159 [Verbose] > * backness: Backness │ │ 00:00:07 #160 [Verbose] > * roundedness: Roundedness │ │ 00:00:07 #161 [Verbose] > * tone: Option<Tone> │ │ 00:00:07 #162 [Verbose] > * stress: Option<Stress> │ │ 00:00:07 #163 [Verbose] > * length: Option<Length> │ │ 00:00:07 #164 [Verbose] > | ConsonantFeature of │ │ 00:00:07 #165 [Verbose] > place: PlaceOfArticulation │ │ 00:00:07 #166 [Verbose] > * manner: MannerOfArticulation │ │ 00:00:07 #167 [Verbose] > * voicing: Voicing │ │ 00:00:07 #168 [Verbose] > * length: Option<Length> │ │ 00:00:07 #169 [Verbose] > | VowelHarmonyFeature │ │ 00:00:07 #170 [Verbose] > | PitchAccentFeature │ │ 00:00:07 #171 [Verbose] > │ │ 00:00:07 #172 [Verbose] > and Stress = Primary | Secondary │ │ 00:00:07 #173 [Verbose] > and Length = Long | Short | HalfLong │ │ 00:00:07 #174 [Verbose] > │ │ 00:00:07 #175 [Verbose] > and Height = │ │ 00:00:07 #176 [Verbose] > | High | NearHigh | HighMid │ │ 00:00:07 #177 [Verbose] > | Mid | LowMid | NearLow │ │ 00:00:07 #178 [Verbose] > | Low │ │ 00:00:07 #179 [Verbose] > │ │ 00:00:07 #180 [Verbose] > and Backness = Front | Central | Back │ │ 00:00:07 #181 [Verbose] > │ │ 00:00:07 #182 [Verbose] > and Roundedness = Rounded | Unrounded │ │ 00:00:07 #183 [Verbose] > │ │ 00:00:07 #184 [Verbose] > and PlaceOfArticulation = │ │ 00:00:07 #185 [Verbose] > | Bilabial | Labiodental | Dental │ │ 00:00:07 #186 [Verbose] > | Alveolar | Postalveolar | Retroflex │ │ 00:00:07 #187 [Verbose] > | Palatal | Velar | Uvular │ │ 00:00:07 #188 [Verbose] > | Pharyngeal | Epiglottal | Glottal │ │ 00:00:07 #189 [Verbose] > │ │ 00:00:07 #190 [Verbose] > and MannerOfArticulation = │ │ 00:00:07 #191 [Verbose] > | Plosive | Nasal | Trill │ │ 00:00:07 #192 [Verbose] > | TapOrFlap | Fricative | LateralFricative │ │ 00:00:07 #193 [Verbose] > | Approximant | LateralApproximant │ │ 00:00:07 #194 [Verbose] > │ │ 00:00:07 #195 [Verbose] > and Voicing = Voiced | Voiceless │ │ 00:00:07 #196 [Verbose] > │ │ 00:00:07 #197 [Verbose] > and SecondaryArticulation = │ │ 00:00:07 #198 [Verbose] > | Labialization | Palatalization | │ │ Velarization │ │ 00:00:07 #199 [Verbose] > | Pharyngealization | Aspiration │ │ 00:00:07 #200 [Verbose] > │ │ 00:00:07 #201 [Verbose] > and Tone = │ │ 00:00:07 #202 [Verbose] > | LevelTone of int │ │ 00:00:07 #203 [Verbose] > | ContourTone of int list │ │ 00:00:07 #204 [Verbose] > │ │ 00:00:07 #205 [Verbose] > and MorphologicalFeature = │ │ 00:00:07 #206 [Verbose] > | RootFeature of string │ │ 00:00:07 #207 [Verbose] > | AffixFeature of AffixType * string │ │ 00:00:07 #208 [Verbose] > | IncorporationFeature of string * │ │ MorphologicalFeature │ │ 00:00:07 #209 [Verbose] > | NonConcatenativePattern of string * string │ │ 00:00:07 #210 [Verbose] > | AgglutinativeAffixFeature of │ │ AgglutinativeAffixType * string │ │ 00:00:07 #211 [Verbose] > | HonorificFeature of HonorificType * string │ │ 00:00:07 #212 [Verbose] > │ │ 00:00:07 #213 [Verbose] > and AgglutinativeAffixType = Suffix | Prefix │ │ 00:00:07 #214 [Verbose] > │ │ 00:00:07 #215 [Verbose] > and HonorificType = VerbHonorific | NounHonorific │ │ 00:00:07 #216 [Verbose] > │ │ 00:00:07 #217 [Verbose] > and AffixType = │ │ 00:00:07 #218 [Verbose] > | Prefix | Suffix | Infix │ │ 00:00:07 #219 [Verbose] > | Circumfix │ │ 00:00:07 #220 [Verbose] > │ │ 00:00:07 #221 [Verbose] > type SyntacticFeature = │ │ 00:00:07 #222 [Verbose] > | WordFeature of MorphologicalFeature list * │ │ LexicalCategory │ │ 00:00:07 #223 [Verbose] > | PhraseFeature of PhraseType * │ │ SyntacticFeature list │ │ 00:00:07 #224 [Verbose] > | GrammaticalRelation of │ │ GrammaticalRelationType * SyntacticFeature list │ │ 00:00:07 #225 [Verbose] > | SOVOrderFeature │ │ 00:00:07 #226 [Verbose] > | TopicCommentFeature │ │ 00:00:07 #227 [Verbose] > │ │ 00:00:07 #228 [Verbose] > and GrammaticalRelationType = │ │ 00:00:07 #229 [Verbose] > | Ergative | Absolutive | Nominative │ │ 00:00:07 #230 [Verbose] > | Accusative │ │ 00:00:07 #231 [Verbose] > │ │ 00:00:07 #232 [Verbose] > and LexicalCategory = │ │ 00:00:07 #233 [Verbose] > | Noun | Verb | Adjective │ │ 00:00:07 #234 [Verbose] > | Adverb | Pronoun | Preposition │ │ 00:00:07 #235 [Verbose] > | Conjunction | Determiner | Interjection │ │ 00:00:07 #236 [Verbose] > │ │ 00:00:07 #237 [Verbose] > and PhraseType = │ │ 00:00:07 #238 [Verbose] > | NP | VP | AP │ │ 00:00:07 #239 [Verbose] > | PP | CP │ │ 00:00:07 #240 [Verbose] > │ │ 00:00:07 #241 [Verbose] > and SemanticFeature = │ │ 00:00:07 #242 [Verbose] > | Meaning of string │ │ 00:00:07 #243 [Verbose] > | SemanticRole of SemanticRoleType * │ │ SemanticFeature │ │ 00:00:07 #244 [Verbose] > │ │ 00:00:07 #245 [Verbose] > and SemanticRoleType = │ │ 00:00:07 #246 [Verbose] > | Agent | Patient | Instrument │ │ 00:00:07 #247 [Verbose] > | Location | Time | Cause │ │ 00:00:07 #248 [Verbose] > │ │ 00:00:07 #249 [Verbose] > and PragmaticFeature = │ │ 00:00:07 #250 [Verbose] > | UseContext of string │ │ 00:00:07 #251 [Verbose] > | PolitenessLevel of Politeness │ │ 00:00:07 #252 [Verbose] > | SpeechAct of SpeechActType │ │ 00:00:07 #253 [Verbose] > | SpeechLevel of SpeechLevelType │ │ 00:00:07 #254 [Verbose] > │ │ 00:00:07 #255 [Verbose] > and Politeness = Formal | Informal | Neutral │ │ 00:00:07 #256 [Verbose] > │ │ 00:00:07 #257 [Verbose] > and SpeechActType = │ │ 00:00:07 #258 [Verbose] > | Assertive | Directive | Commissive │ │ 00:00:07 #259 [Verbose] > | Expressive | Declarative │ │ 00:00:07 #260 [Verbose] > │ │ 00:00:07 #261 [Verbose] > and SpeechLevelType = │ │ 00:00:07 #262 [Verbose] > | FormalHigh | FormalLow | InformalHigh │ │ 00:00:07 #263 [Verbose] > | InformalLow | Neutral │ │ 00:00:07 #264 [Verbose] > │ │ 00:00:07 #265 [Verbose] > type LinguisticFeature = │ │ 00:00:07 #266 [Verbose] > | Phonological of PhonologicalFeature │ │ 00:00:07 #267 [Verbose] > | Morphological of MorphologicalFeature │ │ 00:00:07 #268 [Verbose] > | Syntactic of SyntacticFeature │ │ 00:00:07 #269 [Verbose] > | Semantic of SemanticFeature │ │ 00:00:07 #270 [Verbose] > | Pragmatic of PragmaticFeature │ │ 00:00:07 #271 [Verbose] > │ │ 00:00:07 #272 [Verbose] > type LanguageConstruct = │ │ 00:00:07 #273 [Verbose] > | LanguageElement of LinguisticFeature │ │ 00:00:07 #274 [Verbose] > | LanguageStructure of LanguageConstruct list │ │ 00:00:07 #275 [Verbose] > | TranslationElement of TranslationFeature │ │ 00:00:07 #276 [Verbose] > │ │ 00:00:07 #277 [Verbose] > and TranslationFeature = │ │ 00:00:07 #278 [Verbose] > | LinkedPhonological of PhonologicalFeature * │ │ PhonologicalFeature │ │ 00:00:07 #279 [Verbose] > | LinkedMorphological of MorphologicalFeature │ │ * MorphologicalFeature │ │ 00:00:07 #280 [Verbose] > | LinkedSyntactic of SyntacticFeature * │ │ SyntacticFeature │ │ 00:00:07 #281 [Verbose] > | LinkedSemantic of SemanticFeature * │ │ SemanticFeature │ │ 00:00:07 #282 [Verbose] > │ │ 00:00:07 #283 [Verbose] > type Discourse = DiscourseUnit of │ │ LanguageConstruct list │ │ 00:00:07 #284 [Verbose] > │ │ 00:00:07 #285 [Verbose] > type LanguageModel = │ │ 00:00:07 #286 [Verbose] > | Model of discourse: Discourse │ │ 00:00:07 #287 [Verbose] > │ │ 00:00:07 #288 [Verbose] > ── fsharp - import │ │ ───────────────────────────────────────────────────────────── │ │ 00:00:07 #289 [Verbose] > #r │ │ 00:00:07 #290 [Verbose] > │ │ "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft │ │ .Asp │ │ 00:00:07 #291 [Verbose] > NetCore.Html.Abstractions.dll" │ │ 00:00:07 #292 [Verbose] > #r │ │ 00:00:07 #293 [Verbose] > │ │ "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft │ │ .Dot │ │ 00:00:07 #294 [Verbose] > Net.Interactive.dll" │ │ 00:00:07 #295 [Verbose] > #r │ │ 00:00:07 #296 [Verbose] > │ │ "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft │ │ .Dot │ │ 00:00:07 #297 [Verbose] > Net.Interactive.FSharp.dll" │ │ 00:00:07 #298 [Verbose] > #r │ │ 00:00:07 #299 [Verbose] > │ │ "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft │ │ .Dot │ │ 00:00:07 #300 [Verbose] > Net.Interactive.Formatting.dll" │ │ 00:00:07 #301 [Verbose] > open System │ │ 00:00:07 #302 [Verbose] > open System.IO │ │ 00:00:07 #303 [Verbose] > open System.Text │ │ 00:00:07 #304 [Verbose] > open Microsoft.DotNet.Interactive.Formatting │ │ 00:00:08 #305 [Verbose] > │ │ 00:00:08 #306 [Verbose] > ── fsharp - import │ │ ───────────────────────────────────────────────────────────── │ │ 00:00:08 #307 [Verbose] > #r │ │ 00:00:08 #308 [Verbose] > │ │ "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft │ │ .Dot │ │ 00:00:08 #309 [Verbose] > Net.Interactive.FSharp.dll" │ │ 00:00:08 #310 [Verbose] > open │ │ Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers │ │ 00:00:08 #311 [Verbose] > #r │ │ 00:00:08 #312 [Verbose] > │ │ "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft │ │ .Dot │ │ 00:00:08 #313 [Verbose] > Net.Interactive.dll" │ │ 00:00:08 #314 [Verbose] > open type Microsoft.DotNet.Interactive.Kernel │ │ 00:00:08 #315 [Verbose] > │ │ 00:00:08 #316 [Verbose] > ── fsharp - import │ │ ───────────────────────────────────────────────────────────── │ │ 00:00:08 #317 [Verbose] > type PhonologicalFeature = │ │ 00:00:08 #318 [Verbose] > | VowelFeature of │ │ 00:00:08 #319 [Verbose] > height: Height │ │ 00:00:08 #320 [Verbose] > * backness: Backness │ │ 00:00:08 #321 [Verbose] > * roundedness: Roundedness │ │ 00:00:08 #322 [Verbose] > * tone: Option<Tone> │ │ 00:00:08 #323 [Verbose] > * stress: Option<Stress> │ │ 00:00:08 #324 [Verbose] > * length: Option<Length> │ │ 00:00:08 #325 [Verbose] > | ConsonantFeature of │ │ 00:00:08 #326 [Verbose] > place: PlaceOfArticulation │ │ 00:00:08 #327 [Verbose] > * manner: MannerOfArticulation │ │ 00:00:08 #328 [Verbose] > * voicing: Voicing │ │ 00:00:08 #329 [Verbose] > * length: Option<Length> │ │ 00:00:08 #330 [Verbose] > | VowelHarmonyFeature │ │ 00:00:08 #331 [Verbose] > | PitchAccentFeature │ │ 00:00:08 #332 [Verbose] > │ │ 00:00:08 #333 [Verbose] > and Stress = Primary | Secondary │ │ 00:00:08 #334 [Verbose] > and Length = Long | Short | HalfLong │ │ 00:00:08 #335 [Verbose] > │ │ 00:00:08 #336 [Verbose] > and Height = │ │ 00:00:08 #337 [Verbose] > | High | NearHigh | HighMid │ │ 00:00:08 #338 [Verbose] > | Mid | LowMid | NearLow │ │ 00:00:08 #339 [Verbose] > | Low │ │ 00:00:08 #340 [Verbose] > │ │ 00:00:08 #341 [Verbose] > and Backness = Front | Central | Back │ │ 00:00:08 #342 [Verbose] > │ │ 00:00:08 #343 [Verbose] > and Roundedness = Rounded | Unrounded │ │ 00:00:08 #344 [Verbose] > │ │ 00:00:08 #345 [Verbose] > and PlaceOfArticulation = │ │ 00:00:08 #346 [Verbose] > | Bilabial | Labiodental | Dental │ │ 00:00:08 #347 [Verbose] > | Alv... │ │ 00:00:09 #348 [Verbose] > │ │ 00:00:09 #349 [Verbose] > ── fsharp │ │ ────────────────────────────────────────────────────────────────────── │ │ 00:00:09 #350 [Verbose] > let testEnglish = │ │ 00:00:09 #351 [Verbose] > Model( │ │ 00:00:09 #352 [Verbose] > DiscourseUnit [[ │ │ 00:00:09 #353 [Verbose] > LanguageElement (Phonological │ │ (ConsonantFeature (Alveolar, Nasal, │ │ 00:00:09 #354 [Verbose] > Voiced, Some(HalfLong)))); │ │ 00:00:09 #355 [Verbose] > LanguageElement (Phonological │ │ (VowelFeature (High, Front, Unrounded, │ │ 00:00:09 #356 [Verbose] > Some(LevelTone 1), Some(Primary), Some(Short)))); │ │ 00:00:09 #357 [Verbose] > LanguageElement (Phonological │ │ (VowelFeature (Low, Front, Unrounded, │ │ 00:00:09 #358 [Verbose] > Some(LevelTone 2), Some(Secondary), Some(Long)))); │ │ 00:00:09 #359 [Verbose] > LanguageElement (Phonological │ │ (ConsonantFeature (Velar, Plosive, │ │ 00:00:09 #360 [Verbose] > Voiceless, Some(HalfLong)))); │ │ 00:00:09 #361 [Verbose] > LanguageElement (Morphological │ │ (RootFeature "I")); │ │ 00:00:09 #362 [Verbose] > LanguageElement (Morphological │ │ (RootFeature "see")); │ │ 00:00:09 #363 [Verbose] > LanguageElement (Morphological │ │ (RootFeature "a")); │ │ 00:00:09 #364 [Verbose] > LanguageElement (Morphological │ │ (RootFeature "cat")); │ │ 00:00:09 #365 [Verbose] > LanguageElement (Syntactic │ │ (PhraseFeature (NP, [[WordFeature │ │ 00:00:09 #366 [Verbose] > ([[RootFeature "I"]], Pronoun)]]))); │ │ 00:00:09 #367 [Verbose] > LanguageElement (Syntactic │ │ (PhraseFeature (VP, [[WordFeature │ │ 00:00:09 #368 [Verbose] > ([[RootFeature "see"]], Verb)]]))); │ │ 00:00:09 #369 [Verbose] > LanguageElement (Syntactic │ │ (PhraseFeature (NP, [[WordFeature │ │ 00:00:09 #370 [Verbose] > ([[RootFeature "a"; RootFeature "cat"]], │ │ Noun)]]))); │ │ 00:00:09 #371 [Verbose] > LanguageElement (Semantic (Meaning │ │ "Perception act of a feline by │ │ 00:00:09 #372 [Verbose] > the speaker")); │ │ 00:00:09 #373 [Verbose] > LanguageElement (Pragmatic (UseContext │ │ "Statement of an action being │ │ 00:00:09 #374 [Verbose] > observed")) │ │ 00:00:09 #375 [Verbose] > ]] │ │ 00:00:09 #376 [Verbose] > ) │ │ 00:00:09 #377 [Verbose] > │ │ 00:00:09 #378 [Verbose] > let testPortuguese = │ │ 00:00:09 #379 [Verbose] > Model( │ │ 00:00:09 #380 [Verbose] > DiscourseUnit [[ │ │ 00:00:09 #381 [Verbose] > LanguageElement (Phonological │ │ (VowelFeature (High, Front, Unrounded, │ │ 00:00:09 #382 [Verbose] > Some(LevelTone 1), Some(Primary), Some(Short)))); │ │ 00:00:09 #383 [Verbose] > LanguageElement (Phonological │ │ (VowelFeature (Low, Front, Unrounded, │ │ 00:00:09 #384 [Verbose] > Some(LevelTone 2), Some(Secondary), Some(Long)))); │ │ 00:00:09 #385 [Verbose] > LanguageElement (Phonological │ │ (VowelFeature (Mid, Back, Rounded, │ │ 00:00:09 #386 [Verbose] > Some(LevelTone 3), Some(Primary), Some(Short)))); │ │ 00:00:09 #387 [Verbose] > LanguageElement (Phonological │ │ (ConsonantFeature (Velar, Plosive, │ │ 00:00:09 #388 [Verbose] > Voiceless, Some(HalfLong)))); │ │ 00:00:09 #389 [Verbose] > LanguageElement (Morphological │ │ (RootFeature "Eu")); │ │ 00:00:09 #390 [Verbose] > LanguageElement (Morphological │ │ (RootFeature "ver" |> ignore; │ │ 00:00:09 #391 [Verbose] > AffixFeature (Suffix, "o"))); │ │ 00:00:09 #392 [Verbose] > LanguageElement (Morphological │ │ (RootFeature "um")); │ │ 00:00:09 #393 [Verbose] > LanguageElement (Morphological │ │ (RootFeature "gato")); │ │ 00:00:09 #394 [Verbose] > LanguageElement (Syntactic │ │ (PhraseFeature (NP, [[WordFeature │ │ 00:00:09 #395 [Verbose] > ([[RootFeature "Eu"]], Pronoun)]]))); │ │ 00:00:09 #396 [Verbose] > LanguageElement (Syntactic │ │ (PhraseFeature (VP, [[WordFeature │ │ 00:00:09 #397 [Verbose] > ([[RootFeature "vejo"]], Verb)]]))); │ │ 00:00:09 #398 [Verbose] > LanguageElement (Syntactic │ │ (PhraseFeature (NP, [[WordFeature │ │ 00:00:09 #399 [Verbose] > ([[RootFeature "um"; RootFeature "gato"]], │ │ Noun)]]))); │ │ 00:00:09 #400 [Verbose] > LanguageElement (Semantic (Meaning │ │ "Ação de percepção de um felino │ │ 00:00:09 #401 [Verbose] > pelo falante")); │ │ 00:00:09 #402 [Verbose] > LanguageElement (Pragmatic (UseContext │ │ "Declaração de uma ação sendo │ │ 00:00:09 #403 [Verbose] > observada")) │ │ 00:00:09 #404 [Verbose] > ]] │ │ 00:00:09 #405 [Verbose] > ) │ │ 00:00:09 #406 [Verbose] > │ │ 00:00:09 #407 [Verbose] > let testKorean = │ │ 00:00:09 #408 [Verbose] > Model( │ │ 00:00:09 #409 [Verbose] > DiscourseUnit [[ │ │ 00:00:09 #410 [Verbose] > LanguageElement (Phonological │ │ (ConsonantFeature (Alveolar, Nasal, │ │ 00:00:09 #411 [Verbose] > Voiced, Some(Short)))); │ │ 00:00:09 #412 [Verbose] > LanguageElement (Phonological │ │ (VowelFeature (High, Back, Rounded, │ │ 00:00:09 #413 [Verbose] > None, None, Some(Short)))); │ │ 00:00:09 #414 [Verbose] > LanguageElement (Phonological │ │ (VowelFeature (Mid, Front, Unrounded, │ │ 00:00:09 #415 [Verbose] > None, None, Some(Long)))); │ │ 00:00:09 #416 [Verbose] > LanguageElement (Phonological │ │ (ConsonantFeature (Bilabial, Plosive, │ │ 00:00:09 #417 [Verbose] > Voiceless, Some(Short)))); │ │ 00:00:09 #418 [Verbose] > LanguageElement (Morphological │ │ (RootFeature "나")); │ │ 00:00:09 #419 [Verbose] > LanguageElement (Morphological │ │ (RootFeature "보다")); │ │ 00:00:09 #420 [Verbose] > LanguageElement (Morphological │ │ (AffixFeature (Suffix, "아"))); │ │ 00:00:09 #421 [Verbose] > LanguageElement (Morphological │ │ (RootFeature "고양이")); │ │ 00:00:09 #422 [Verbose] > LanguageElement (Syntactic │ │ (PhraseFeature (NP, [[WordFeature │ │ 00:00:09 #423 [Verbose] > ([[RootFeature "나"]], Pronoun)]]))); │ │ 00:00:09 #424 [Verbose] > LanguageElement (Syntactic │ │ (PhraseFeature (VP, [[WordFeature │ │ 00:00:09 #425 [Verbose] > ([[RootFeature "보다"; AffixFeature (Suffix, │ │ "아")]], Verb)]]))); │ │ 00:00:09 #426 [Verbose] > LanguageElement (Syntactic │ │ (PhraseFeature (NP, [[WordFeature │ │ 00:00:09 #427 [Verbose] > ([[RootFeature "고양이"]], Noun)]]))); │ │ 00:00:09 #428 [Verbose] > LanguageElement (Semantic (Meaning │ │ "화자에 의한 고양이의 관찰 │ │ 00:00:09 #429 [Verbose] > 행위")); │ │ 00:00:09 #430 [Verbose] > LanguageElement (Pragmatic (UseContext │ │ "관찰되고 있는 행동의 진술")) │ │ 00:00:09 #431 [Verbose] > ]] │ │ 00:00:09 #432 [Verbose] > ) │ │ 00:00:09 #433 [Verbose] > │ │ 00:00:09 #434 [Verbose] > ── markdown │ │ ──────────────────────────────────────────────────────────────────── │ │ 00:00:09 #435 [Verbose] > 38;5;2m│ │ 38;5;103m╭────────────────────────────────────────────────────────────────── │ │ ────────────╮ │ │ 00:00:09 #436 [Verbose] > │ ## main │ │ │ │ │ 00:00:09 #437 [Verbose] > 38;5;2m│ │ 38;5;103m╰────────────────────────────────────────────────────────────────── │ │ ────────────╯ │ │ 00:00:09 #438 [Verbose] > │ │ 00:00:09 #439 [Verbose] > ── spiral │ │ ────────────────────────────────────────────────────────────────────── │ │ 00:00:09 #440 [Verbose] > inl main (_args : array_base string) = │ │ 00:00:09 #441 [Verbose] > 0i32 │ │ 00:00:09 #442 [Verbose] > │ │ 00:00:09 #443 [Verbose] > inl main () = │ │ 00:00:09 #444 [Verbose] > $"let main args = !main args" : () │ │ 00:00:09 #445 [Verbose] > Building │ │ /tmp/!dotnet-repl/20240325-2021-5390-9097-95c12bf4ee2f/main.spi │ │ 00:00:09 #446 [Verbose] > │ │ 00:00:09 #447 [Verbose] > ╭─[ 155.79ms - stdout │ │ ]────────────────────────────────────────────────────────╮ │ │ 00:00:09 #448 [Verbose] > │ let rec closure0 () (v0 : (string [])) │ │ : int32 = │ │ │ 00:00:09 #449 [Verbose] > │ 0 │ │ │ │ │ 00:00:09 #450 [Verbose] > │ let v0 : ((string []) -> int32) = │ │ closure0() │ │ │ 00:00:09 #451 [Verbose] > │ let main args = v0 args │ │ │ │ │ 00:00:09 #452 [Verbose] > │ () │ │ │ │ │ 00:00:09 #453 [Verbose] > │ │ │ │ │ │ │ │ 00:00:09 #454 [Verbose] > │ │ │ │ │ │ │ │ 00:00:09 #455 [Verbose] > 38;5;2m│ │ 38;5;2m╰──────────────────────────────────────────────────────────────────── │ │ ──────────╯ │ │ 00:00:09 #456 [Verbose] > │ │ 00:00:09 #457 [Verbose] > ── spiral │ │ ────────────────────────────────────────────────────────────────────── │ │ 00:00:09 #458 [Verbose] > inl app () = │ │ 00:00:09 #459 [Verbose] > "test" |> console.write_line │ │ 00:00:09 #460 [Verbose] > 0i32 │ │ 00:00:09 #461 [Verbose] > │ │ 00:00:09 #462 [Verbose] > inl main () = │ │ 00:00:09 #463 [Verbose] > print_static "<test>" │ │ 00:00:09 #464 [Verbose] > │ │ 00:00:09 #465 [Verbose] > app │ │ 00:00:09 #466 [Verbose] > |> dyn │ │ 00:00:09 #467 [Verbose] > |> ignore │ │ 00:00:09 #468 [Verbose] > │ │ 00:00:09 #469 [Verbose] > print_static "</test>" │ │ 00:00:09 #470 [Verbose] > Building │ │ /tmp/!dotnet-repl/20240325-2021-5406-0652-04fa97eb1c7a/main.spi │ │ 00:00:09 #471 [Verbose] > <test> │ │ 00:00:09 #472 [Verbose] > </test> │ │ 00:00:09 #473 [Verbose] > │ │ 00:00:09 #474 [Verbose] > ╭─[ 156.44ms - stdout │ │ ]────────────────────────────────────────────────────────╮ │ │ 00:00:09 #475 [Verbose] > │ let rec closure0 () () : int32 = │ │ │ │ │ 00:00:09 #476 [Verbose] > │ let v0 : string = "test" │ │ │ │ │ 00:00:09 #477 [Verbose] > │ System.Console.WriteLine v0 │ │ │ │ │ 00:00:09 #478 [Verbose] > │ 0 │ │ │ │ │ 00:00:09 #479 [Verbose] > │ let v0 : (unit -> int32) = closure0() │ │ │ │ │ 00:00:09 #480 [Verbose] > │ () │ │ │ │ │ 00:00:09 #481 [Verbose] > │ │ │ │ │ │ │ │ 00:00:09 #482 [Verbose] > │ │ │ │ │ │ │ │ 00:00:09 #483 [Verbose] > 38;5;2m│ │ 38;5;2m╰──────────────────────────────────────────────────────────────────── │ │ ──────────╯ │ │ 00:00:10 #484 [Verbose] > [NbConvertApp] Converting notebook test.dib.ipynb │ │ to html │ │ 00:00:10 #485 [Verbose] > │ │ /opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/nbforma │ │ t/__init__.py:96: MissingIDFieldWarning: Cell is missing an id field, this │ │ will become a hard error in future nbformat versions. You may want to use │ │ `normalize()` on your notebooks before validations (available since nbformat │ │ 5.1.4). Previous versions of nbformat are fixing this issue transparently, │ │ and will stop doing so in the future. │ │ 00:00:10 #486 [Verbose] > validate(nb) │ │ 00:00:10 #487 [Verbose] > │ │ /opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/nbconve │ │ rt/filters/highlight.py:71: UserWarning: IPython3 lexer unavailable, falling │ │ back on Python 3 │ │ 00:00:10 #488 [Verbose] > return _pygments_highlight( │ │ 00:00:11 #489 [Verbose] > [NbConvertApp] Writing 321585 bytes to │ │ test.dib.html │ │ 00:00:11 #490 [Debug] executeAsync / exitCode: 0 / output.Length: 21665 │ │ 00:00:11 #491 [Debug] main / executeCommand / exitCode: 0 │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── pwsh ──────────────────────────────────────────────────────────────────────── { . ../../../../apps/parser/dist/DibParser$(GetExecutableSuffix) test.dib spi } | Invoke-Block ╭─[ 357.33ms - stdout ]────────────────────────────────────────────────────────╮ │ 00:00:00 #1 [Debug] writeDibCode / output: Spi / path: test.dib │ │ 00:00:00 #2 [Debug] parseDibCode / output: Spi / file: test.dib │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── pwsh ──────────────────────────────────────────────────────────────────────── { . ../../../../apps/spiral/dist/Supervisor$(GetExecutableSuffix) --build-file test.spi test.fsx --timeout 10000 } | Invoke-Block ╭─[ 2.87s - stdout ]───────────────────────────────────────────────────────────╮ │ 00:00:00 #1 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:00 #2 [Debug] executeAsync / options: { Command = │ │ "dotnet "/home/runner/work/polyglot/polyglot/deps/The-Spiral-Language/The │ │ Spiral Language 2/artifacts/bin/The Spiral Language 2/release/Spiral.dll" │ │ --port 13805 --default-int i32 --default-float f64" │ │ WorkingDirectory = None │ │ CancellationToken = Some System.Threading.CancellationToken │ │ OnLine = Some <fun:main@425-297> } │ │ 00:00:00 #3 [Verbose] > pwd: │ │ /home/runner/work/polyglot/polyglot/apps/spiral/temp/test │ │ 00:00:00 #4 [Verbose] > dll_path: │ │ /home/runner/work/polyglot/polyglot/deps/The-Spiral-Language/The Spiral │ │ Language 2/artifacts/bin/The Spiral Language 2/release │ │ 00:00:00 #5 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:00 #6 [Verbose] waitForPortAccess / port: 13805 / retry: 0 │ │ 00:00:00 #7 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:00 #8 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:00 #9 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:00 #10 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:00 #11 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:00 #12 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:00 #13 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:00 #14 [Verbose] > Starting the Spiral Server. It is bound to: │ │ http://localhost:13805 │ │ 00:00:00 #15 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:00 #16 [Verbose] testPortOpen / ex: System.AggregateException: One or │ │ more errors occurred. (Connection refused) │ │ 00:00:00 #17 [Debug] sendJson / port: 13805 / json: {"Ping":true} / │ │ result.Length: │ │ 00:00:00 #18 [Verbose] awaitCompiler / Ping / result: Some(null) / port: │ │ 13805 / retry: 0 │ │ 00:00:00 #19 [Verbose] > Server bound to: http://localhost:13805 │ │ 00:00:00 #20 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: │ │ [] / typeErrorCount: 0 │ │ 00:00:00 #21 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: │ │ [] / typeErrorCount: 0 │ │ 00:00:00 #22 [Debug] sendJson / port: 13805 / json: │ │ {"FileOpen":{"spiText":"// // # test (Polyglot)\n\nnominal i = ()\nnominal e │ │ = ()\nnominal s = ()\nnominal n = ()\nnominal t = ()\nnominal f = │ │ ()\nnominal j = ()\nnominal p = ()\n\nunion sensing =\n | Si : s * i\n │ │ | Se : s * e\n\nunion intuition =\n | Ni : n * i\n | Ne : n * │ │ e\n\nunion thinking =\n | Ti : t * i\n | Te : t * e\n\nunion feeling │ │ =\n | Fi : f * i\n | Fe : f * e\n\nunion function_stack =\n | FS : │ │ sensing * intuition * thinking * feeling\n\nunion personality_type =\n | │ │ ISTJ : i * s * t * j * function_stack\n | ISFJ : i * s * f * j * │ │ function_stack\n | INFJ : i * n * f * j * function_stack\n | INTJ : i │ │ * n * t * j * function_stack\n | ISTP : i * s * t * p * function_stack\n │ │ | ISFP : i * s * f * p * function_stack\n | INFP : i * n * f * p * │ │ function_stack\n | INTP : i * n * t * p * function_stack\n | ESTP : e │ │ * s * t * p * function_stack\n | ESFP : e * s * f * p * function_stack\n │ │ | ENFP : e * n * f * p * function_stack\n | ENTP : e * n * t * p * │ │ function_stack\n | ESTJ : e * s * t * j * function_stack\n | ESFJ : e │ │ * s * f * j * function_stack\n | ENFJ : e * n * f * j * function_stack\n │ │ | ENTJ : e * n * t * j * function_stack\n\n\ninl main () =\n inl │ │ istj_stack = FS ((Si (s, i)), Ne (n, e), (Te (t, e)), (Fi (f, i)))\n inl │ │ istj_personality = ISTJ (i, s, t, j, istj_stack)\n // inl isfj_stack = FS │ │ ((Si (s, i)), Ne (n, e), (Fe (f, e)), (Ti (t, i)))\n // inl │ │ isfj_personality = ISFJ (i, s, f, j, isfj_stack)\n\n ;[\n │ │ istj_personality\n ]\n |\u003E fun x =\u003E │ │ $\u0027$\u0022%A{!x}\u0022\u0027 : string\n |\u003E │ │ console.write_line\n\ninl main () =\n $\u0022!main ()\u0022 : ()\n\n// // │ │ ## main\n\ninl main (_args : array_base string) =\n 0i32\n\ninl main () │ │ =\n $\u0022let main args = !main args\u0022 : ()\n\ninl app () =\n │ │ \u0022test\u0022 |\u003E console.write_line\n 0i32\n\ninl main () =\n │ │ print_static \u0022\u003Ctest\u003E\u0022\n\n app\n |\u003E dyn\n │ │ |\u003E ignore\n\n print_static │ │ \u0022\u003C/test\u003E\u0022\n","uri":"file:///home/runner/work/polyglot/po │ │ lyglot/apps/spiral/temp/test/test.spi"}} / result.Length: │ │ 00:00:00 #23 [Debug] sendJson / port: 13805 / json: │ │ {"BuildFile":{"backend":"Fsharp","uri":"file:///home/runner/work/polyglot/po │ │ lyglot/apps/spiral/temp/test/test.spi"}} / result.Length: │ │ 00:00:01 #24 [Verbose] > Building │ │ /home/runner/work/polyglot/polyglot/apps/spiral/temp/test/test.spi │ │ 00:00:01 #25 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: │ │ [] / typeErrorCount: 0 │ │ 00:00:02 #26 [Verbose] > <test> │ │ 00:00:02 #27 [Verbose] > </test> │ │ 00:00:02 #28 [Debug] buildFile / takeWhileInclusive / fsxContent: let rec │ │ closure0 () () : int32 = │ │ let v0 : string = "test" │ │ System.Console.WriteLine v0 │ │ 0 │ │ let v0 : (unit -> int32) = closure0() │ │ () │ │ / errors: [] / typeErrorCount: 0 │ │ 00:00:02 #29 [Debug] watchWithFilter / Disposing watch stream / filter: │ │ FileName, LastWrite │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── pwsh ──────────────────────────────────────────────────────────────────────── dotnet fable --optimize --lang rs --extension .rs ╭─[ 7.00s - stdout ]───────────────────────────────────────────────────────────╮ │ Fable 4.14.0: F# to Rust compiler (status: alpha) │ │ │ │ Thanks to the contributor! @voronoipotato │ │ Stand with Ukraine! https://standwithukraine.com.ua/ │ │ │ │ Parsing test.fsproj... │ │ .> dotnet restore test.fable-temp.csproj -p:FABLE_COMPILER=true │ │ -p:FABLE_COMPILER_4=true -p:FABLE_COMPILER_RUST=true │ │ Determining projects to restore... │ │ Paket version 8.1.0-alpha001+8e77fe66ac27ddecf519e0df5a4d3327ca9250e2 │ │ The last full restore is still up to date. Nothing left to do. │ │ Total time taken: 0 milliseconds │ │ Paket version 8.1.0-alpha001+8e77fe66ac27ddecf519e0df5a4d3327ca9250e2 │ │ Restoring │ │ /home/runner/work/polyglot/polyglot/apps/spiral/temp/test/test.fable-temp.cs │ │ proj │ │ Starting restore process. │ │ Total time taken: 0 milliseconds │ │ Restored │ │ /home/runner/work/polyglot/polyglot/apps/spiral/temp/test/test.fable-temp.cs │ │ proj (in 253 ms). │ │ .> dotnet restore │ │ /home/runner/work/polyglot/polyglot/apps/spiral/temp/test/test.fsproj │ │ Determining projects to restore... │ │ Restored │ │ /home/runner/work/polyglot/polyglot/apps/spiral/temp/test/test.fsproj (in │ │ 249 ms). │ │ Project and references (1 source files) parsed in 4914ms │ │ │ │ Started Fable compilation... │ │ │ │ Fable compilation finished in 1012ms │ │ │ │ ./test.fsx(6,0): (6,2) warning FABLE: For Rust, support for F# static and │ │ module do bindings is disabled by default. It can be enabled with the │ │ 'static_do_bindings' feature. Use at your own risk! │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── pwsh ──────────────────────────────────────────────────────────────────────── (Get-Content test.rs) ` -replace [[regex]]::Escape("),);"), "));" ` | Set-Content test.rs ── pwsh ──────────────────────────────────────────────────────────────────────── cargo fmt -- ── pwsh ──────────────────────────────────────────────────────────────────────── cargo build --release ╭─[ 6.14s - stdout ]───────────────────────────────────────────────────────────╮ │ Compiling fable_library_rust v0.1.0 │ │ (/home/runner/work/polyglot/polyglot/lib/rust/fable/fable_modules/fable-libr │ │ ary-rust) │ │ Compiling spiral_temp_test v0.0.1 │ │ (/home/runner/work/polyglot/polyglot/apps/spiral/temp/test) │ │ warning: the item `any` is imported redundantly │ │ --> apps/spiral/temp/test/./main.rs:11:27 │ │ | │ │ 11 | use proptest::arbitrary::{any, Arbitrary}; │ │ | ^^^ │ │ 12 | use proptest::prelude::*; │ │ | -------------------- the item `any` is already imported here │ │ | │ │ = note: `#[warn(unused_imports)]` on by default │ │ │ │ warning: the item `Arbitrary` is imported redundantly │ │ --> apps/spiral/temp/test/./main.rs:11:32 │ │ | │ │ 11 | use proptest::arbitrary::{any, Arbitrary}; │ │ | ^^^^^^^^^ │ │ 12 | use proptest::prelude::*; │ │ | -------------------- the item `Arbitrary` is already imported │ │ here │ │ │ │ warning: unused import: `info` │ │ --> apps/spiral/temp/test/./main.rs:190:15 │ │ | │ │ 190 | use tracing::{info, Level}; │ │ | ^^^^ │ │ │ │ warning: associated items `new`, `add_item`, and `remove_item` are │ │ never used │ │ --> apps/spiral/temp/test/./main.rs:46:8 │ │ | │ │ 45 | impl Cart { │ │ | --------- associated items in this implementation │ │ 46 | fn new() -> Cart { │ │ | ^^^ │ │ ... │ │ 50 | fn add_item(&mut self, item: Item) { │ │ | ^^^^^^^^ │ │ ... │ │ 56 | fn remove_item(&mut self, item: &Item) { │ │ | ^^^^^^^^^^^ │ │ | │ │ = note: `#[warn(dead_code)]` on by default │ │ │ │ warning: function `parse_comment` is never used │ │ --> apps/spiral/temp/test/./main.rs:124:4 │ │ | │ │ 124 | fn parse_comment(input: &str) -> IResult<&str, SpiralToken> { │ │ | ^^^^^^^^^^^^^ │ │ │ │ warning: function `parse_string` is never used │ │ --> apps/spiral/temp/test/./main.rs:130:4 │ │ | │ │ 130 | fn parse_string(input: &str) -> IResult<&str, SpiralToken> { │ │ | ^^^^^^^^^^^^ │ │ │ │ warning: function `parse_identifier` is never used │ │ --> apps/spiral/temp/test/./main.rs:145:4 │ │ | │ │ 145 | fn parse_identifier(input: &str) -> IResult<&str, SpiralToken> {38;5;2m│ │ 0m │ │ | ^^^^^^^^^^^^^^^^ │ │ │ │ warning: function `parse_integer` is never used │ │ --> apps/spiral/temp/test/./main.rs:157:4 │ │ | │ │ 157 | fn parse_integer(input: &str) -> IResult<&str, SpiralToken> { │ │ | ^^^^^^^^^^^^^ │ │ │ │ warning: function `parse_operator` is never used │ │ --> apps/spiral/temp/test/./main.rs:165:4 │ │ | │ │ 165 | fn parse_operator(input: &str) -> IResult<&str, SpiralToken> { │ │ | ^^^^^^^^^^^^^^ │ │ │ │ warning: function `parse_token` is never used │ │ --> apps/spiral/temp/test/./main.rs:170:4 │ │ | │ │ 170 | fn parse_token(input: &str) -> IResult<&str, SpiralToken> { │ │ | ^^^^^^^^^^^ │ │ │ │ warning: function `format_token` is never used │ │ --> apps/spiral/temp/test/./main.rs:180:4 │ │ | │ │ 180 | fn format_token(token: &SpiralToken) -> String { │ │ | ^^^^^^^^^^^^ │ │ │ │ warning: function `parse_expression` is never used │ │ --> apps/spiral/temp/test/./main.rs:213:4 │ │ | │ │ 213 | fn parse_expression(input: &str) -> IResult<&str, SpiralToken> {38;5;2m│ │ 0m │ │ | ^^^^^^^^^^^^^^^^ │ │ │ │ warning: `spiral_temp_test` (bin "spiral_temp_test") generated 12 │ │ warnings (run `cargo fix --bin "spiral_temp_test"` to apply 1 suggestion) │ │ Finished `release` profile [optimized] target(s) in 6.09s │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── pwsh ──────────────────────────────────────────────────────────────────────── $env:RUST_LOG="info" { cargo test --release } | Invoke-Block ╭─[ 12.28s - stdout ]──────────────────────────────────────────────────────────╮ │ Compiling fable_library_rust v0.1.0 │ │ (/home/runner/work/polyglot/polyglot/lib/rust/fable/fable_modules/fable-libr │ │ ary-rust) │ │ Compiling spiral_temp_test v0.0.1 │ │ (/home/runner/work/polyglot/polyglot/apps/spiral/temp/test) │ │ warning: the item `any` is imported redundantly │ │ --> apps/spiral/temp/test/./main.rs:11:27 │ │ | │ │ 11 | use proptest::arbitrary::{any, Arbitrary}; │ │ | ^^^ │ │ 12 | use proptest::prelude::*; │ │ | -------------------- the item `any` is already imported here │ │ | │ │ = note: `#[warn(unused_imports)]` on by default │ │ │ │ warning: the item `Arbitrary` is imported redundantly │ │ --> apps/spiral/temp/test/./main.rs:11:32 │ │ | │ │ 11 | use proptest::arbitrary::{any, Arbitrary}; │ │ | ^^^^^^^^^ │ │ 12 | use proptest::prelude::*; │ │ | -------------------- the item `Arbitrary` is already imported │ │ here │ │ │ │ warning: `spiral_temp_test` (bin "spiral_temp_test" test) generated 2 │ │ warnings │ │ Finished `release` profile [optimized] target(s) in 12.14s │ │ Running unittests main.rs │ │ (/home/runner/work/polyglot/polyglot/target/release/deps/spiral_temp_test-0e │ │ 297b5ec86ce424) │ │ │ │ running 3 tests │ │ test test_parse_number ... ok │ │ 2024-03-25T20:22:24.899130Z INFO spiral_temp_test: │ │ input=Integer(139074207722364951) │ │ 2024-03-25T20:22:24.899178Z INFO spiral_temp_test: │ │ input=Identifier("Eaj7GJ0Z") │ │ 2024-03-25T20:22:24.899209Z INFO spiral_temp_test: │ │ input=Operator("(") │ │ 2024-03-25T20:22:24.899233Z INFO spiral_temp_test: │ │ input=Comment("U'9F4|u%10'{':,`H\">") │ │ 2024-03-25T20:22:24.899256Z INFO spiral_temp_test: │ │ input=StringLiteral("9/UGu%$M'}]k") │ │ 2024-03-25T20:22:24.899277Z INFO spiral_temp_test: │ │ input=Identifier("WV6nx") │ │ 2024-03-25T20:22:24.899295Z INFO spiral_temp_test: │ │ input=Integer(-4897343146777280960) │ │ 2024-03-25T20:22:24.899316Z INFO spiral_temp_test: │ │ input=StringLiteral("oXg$'`}VM=]&") │ │ 2024-03-25T20:22:24.899335Z INFO spiral_temp_test: │ │ input=Identifier("MX4or") │ │ 2024-03-25T20:22:24.899356Z INFO spiral_temp_test: │ │ input=StringLiteral("~x/*ux=?Dv.|.=") │ │ 2024-03-25T20:22:24.899378Z INFO spiral_temp_test: │ │ input=Comment("\\HO%?\\#\\7K=8t") │ │ 2024-03-25T20:22:24.899399Z INFO spiral_temp_test: │ │ input=StringLiteral("e") │ │ 2024-03-25T20:22:24.899417Z INFO spiral_temp_test: │ │ input=Integer(2013169710089929657) │ │ 2024-03-25T20:22:24.899437Z INFO spiral_temp_test: │ │ input=Operator(")") │ │ 2024-03-25T20:22:24.899455Z INFO spiral_temp_test: │ │ input=Integer(-987956805761615287) │ │ 2024-03-25T20:22:24.899480Z INFO spiral_temp_test: │ │ input=Identifier("p5fog80vPFQ7jz38e624oXHfsR") │ │ 2024-03-25T20:22:24.899500Z INFO spiral_temp_test: │ │ input=Integer(5236304531456071117) │ │ 2024-03-25T20:22:24.899519Z INFO spiral_temp_test: │ │ input=Integer(-7828883551844060891) │ │ 2024-03-25T20:22:24.899542Z INFO spiral_temp_test: │ │ input=Identifier("mJZ6itx5q2") │ │ 2024-03-25T20:22:24.899568Z INFO spiral_temp_test: │ │ input=Identifier("kDv7602awQqnxGjuKsS55elXz") │ │ 2024-03-25T20:22:24.899592Z INFO spiral_temp_test: │ │ input=StringLiteral("{0O,/E||`<sw$") │ │ 2024-03-25T20:22:24.899612Z INFO spiral_temp_test: │ │ input=Operator("-") │ │ 2024-03-25T20:22:24.899629Z INFO spiral_temp_test: │ │ input=Integer(-6136138241103769785) │ │ 2024-03-25T20:22:24.899645Z INFO spiral_temp_test: │ │ input=Integer(-5725953386142630511) │ │ 2024-03-25T20:22:24.899663Z INFO spiral_temp_test: │ │ input=Operator("*") │ │ 2024-03-25T20:22:24.899689Z INFO spiral_temp_test: │ │ input=Identifier("QZe71DU1m8wAK2zqM1Xhsn") │ │ 2024-03-25T20:22:24.899708Z INFO spiral_temp_test: │ │ input=StringLiteral(".V") │ │ 2024-03-25T20:22:24.899734Z INFO spiral_temp_test: │ │ input=Identifier("s4pKvPa5oF977lOOOHZmj2uvm") │ │ 2024-03-25T20:22:24.899754Z INFO spiral_temp_test: │ │ input=Operator("-") │ │ 2024-03-25T20:22:24.899779Z INFO spiral_temp_test: │ │ input=StringLiteral("=|NsWz:d?J437d5V") │ │ 2024-03-25T20:22:24.899809Z INFO spiral_temp_test: │ │ input=Identifier("Rh2mn8f730mE4MzxT1093il16hBT4jn") │ │ 2024-03-25T20:22:24.899829Z INFO spiral_temp_test: │ │ input=Integer(9165941355953615568) │ │ 2024-03-25T20:22:24.899863Z INFO spiral_temp_test: │ │ input=Comment("C.I|*j#\"\\\"{Nl&i`\\d:<n;o?qO]]&{|") │ │ 2024-03-25T20:22:24.899885Z INFO spiral_temp_test: │ │ input=Operator("-") │ │ 2024-03-25T20:22:24.899902Z INFO spiral_temp_test: │ │ input=Integer(2153766700428902934) │ │ 2024-03-25T20:22:24.899929Z INFO spiral_temp_test: │ │ input=Comment("Cl1/U-*Q**WAH&ST#=Uwo|k") │ │ 2024-03-25T20:22:24.899953Z INFO spiral_temp_test: │ │ input=Comment("a-&U*Y|`*C}0") │ │ 2024-03-25T20:22:24.899974Z INFO spiral_temp_test: │ │ input=Operator("/") │ │ 2024-03-25T20:22:24.899996Z INFO spiral_temp_test: │ │ input=Identifier("Kpz9Ku5S5iJ") │ │ 2024-03-25T20:22:24.900014Z INFO spiral_temp_test: │ │ input=Integer(-8167611094927190965) │ │ 2024-03-25T20:22:24.900033Z INFO spiral_temp_test: │ │ input=StringLiteral("") │ │ 2024-03-25T20:22:24.900051Z INFO spiral_temp_test: │ │ input=Operator("+") │ │ 2024-03-25T20:22:24.900069Z INFO spiral_temp_test: │ │ input=Operator("+") │ │ 2024-03-25T20:22:24.900086Z INFO spiral_temp_test: │ │ input=Integer(1587439828766207632) │ │ 2024-03-25T20:22:24.900104Z INFO spiral_temp_test: │ │ input=Integer(8604708623391961914) │ │ 2024-03-25T20:22:24.900123Z INFO spiral_temp_test: │ │ input=Comment("'{") │ │ 2024-03-25T20:22:24.900150Z INFO spiral_temp_test: │ │ input=StringLiteral("6$O2B$QO6%V'?*.M/:/UxcS@:") │ │ 2024-03-25T20:22:24.900172Z INFO spiral_temp_test: │ │ input=Operator("/") │ │ 2024-03-25T20:22:24.900189Z INFO spiral_temp_test: │ │ input=Integer(-2619746374349082656) │ │ 2024-03-25T20:22:24.900215Z INFO spiral_temp_test: │ │ input=Identifier("B78hj0ohYLXjp9If5xrcAt") │ │ 2024-03-25T20:22:24.900237Z INFO spiral_temp_test: │ │ input=Operator("(") │ │ 2024-03-25T20:22:24.900257Z INFO spiral_temp_test: │ │ input=Comment("%/") │ │ 2024-03-25T20:22:24.900275Z INFO spiral_temp_test: │ │ input=Integer(1324537129355933310) │ │ 2024-03-25T20:22:24.900300Z INFO spiral_temp_test: │ │ input=Identifier("Jw3zJ5Q9MIZ08JmsZ15nXW") │ │ 2024-03-25T20:22:24.900320Z INFO spiral_temp_test: │ │ input=Identifier("YRD8") │ │ 2024-03-25T20:22:24.900346Z INFO spiral_temp_test: │ │ input=StringLiteral("Z+$r/ji'N}i`'qief7{9KQ<*Q*") │ │ 2024-03-25T20:22:24.900368Z INFO spiral_temp_test: │ │ input=Operator("*") │ │ 2024-03-25T20:22:24.900385Z INFO spiral_temp_test: │ │ input=Integer(-6454967256036827750) │ │ 2024-03-25T20:22:24.900404Z INFO spiral_temp_test: │ │ input=Identifier("he3") │ │ 2024-03-25T20:22:24.900431Z INFO spiral_temp_test: │ │ input=Comment("s/!*V&.RzMI`},`p\\I1{dbp8fK{4+") │ │ 2024-03-25T20:22:24.900459Z INFO spiral_temp_test: │ │ input=StringLiteral("#dc$@=:U'_;=Lff{e,WZ") │ │ 2024-03-25T20:22:24.900483Z INFO spiral_temp_test: │ │ input=Identifier("yr2096oX85CxfnyT") │ │ 2024-03-25T20:22:24.900505Z INFO spiral_temp_test: │ │ input=Identifier("b1qg5NgOO") │ │ 2024-03-25T20:22:24.900528Z INFO spiral_temp_test: │ │ input=StringLiteral("J/',MB`/i?B9+") │ │ 2024-03-25T20:22:24.900555Z INFO spiral_temp_test: │ │ input=Comment("&&`$l_:OQ%") │ │ 2024-03-25T20:22:24.900582Z INFO spiral_temp_test: │ │ input=Operator(")") │ │ 2024-03-25T20:22:24.900605Z INFO spiral_temp_test: │ │ input=StringLiteral("W%fY?W~_.%5") │ │ 2024-03-25T20:22:24.900627Z INFO spiral_temp_test: │ │ input=Operator("(") │ │ 2024-03-25T20:22:24.900652Z INFO spiral_temp_test: │ │ input=Comment(">:WB.@r_</9>Wr03HD9") │ │ 2024-03-25T20:22:24.900673Z INFO spiral_temp_test: │ │ input=StringLiteral("8,M|{&") │ │ 2024-03-25T20:22:24.900706Z INFO spiral_temp_test: │ │ input=Identifier("jrD0dkBoxNT2Mrx2WV1iw88T") │ │ 2024-03-25T20:22:24.900725Z INFO spiral_temp_test: │ │ input=Integer(-9109356647031990303) │ │ 2024-03-25T20:22:24.900768Z INFO spiral_temp_test: │ │ input=StringLiteral("*4dR('{u<^>y#6") │ │ 2024-03-25T20:22:24.900797Z INFO spiral_temp_test: │ │ input=StringLiteral("*zxNw'f&{'%&]:-*<X") │ │ 2024-03-25T20:22:24.900819Z INFO spiral_temp_test: │ │ input=Comment("f^5") │ │ 2024-03-25T20:22:24.900843Z INFO spiral_temp_test: │ │ input=Comment("8T*C%/!p5\"L(\\2") │ │ 2024-03-25T20:22:24.900870Z INFO spiral_temp_test: │ │ input=StringLiteral("+<&'qwC.Ri 9`:`Q]zy(") │ │ 2024-03-25T20:22:24.900891Z INFO spiral_temp_test: │ │ input=Operator("-") │ │ 2024-03-25T20:22:24.900908Z INFO spiral_temp_test: │ │ input=Integer(2573670292539130681) │ │ 2024-03-25T20:22:24.900928Z INFO spiral_temp_test: │ │ input=Operator("(") │ │ 2024-03-25T20:22:24.900946Z INFO spiral_temp_test: │ │ input=Integer(3730084902948285550) │ │ 2024-03-25T20:22:24.900964Z INFO spiral_temp_test: │ │ input=Operator("+") │ │ 2024-03-25T20:22:24.900991Z INFO spiral_temp_test: │ │ input=Identifier("eRdZYIK2DyZAwKUrvfB1h2H07IK7Y") │ │ 2024-03-25T20:22:24.901011Z INFO spiral_temp_test: │ │ input=Integer(-4161896459147608588) │ │ 2024-03-25T20:22:24.901037Z INFO spiral_temp_test: │ │ input=StringLiteral("+ytVZ=<s/:|'x.]578&E$[") │ │ 2024-03-25T20:22:24.901060Z INFO spiral_temp_test: │ │ input=Operator(")") │ │ 2024-03-25T20:22:24.901081Z INFO spiral_temp_test: │ │ input=Comment("].\\bN") │ │ 2024-03-25T20:22:24.901102Z INFO spiral_temp_test: │ │ input=Comment("\\}?*\\|*") │ │ 2024-03-25T20:22:24.901121Z INFO spiral_temp_test: │ │ input=Integer(-6123827800740583034) │ │ 2024-03-25T20:22:24.901138Z INFO spiral_temp_test: │ │ input=Integer(5393618678659606191) │ │ 2024-03-25T20:22:24.901155Z INFO spiral_temp_test: │ │ input=Integer(4775267355279656187) │ │ 2024-03-25T20:22:24.901182Z INFO spiral_temp_test: │ │ input=Comment("s<2aQ^\\&K6%MJ6atPm::\\Z}0R;|`<d") │ │ 2024-03-25T20:22:24.901203Z INFO spiral_temp_test: │ │ input=Identifier("TY") │ │ 2024-03-25T20:22:24.901230Z INFO spiral_temp_test: │ │ input=Identifier("zLi1uu9ci4aha9TwOc5l351s3x84") │ │ 2024-03-25T20:22:24.901256Z INFO spiral_temp_test: │ │ input=Identifier("We6sV1K49f7r3MP8m9TT3") │ │ 2024-03-25T20:22:24.901276Z INFO spiral_temp_test: │ │ input=StringLiteral("$>") │ │ 2024-03-25T20:22:24.901295Z INFO spiral_temp_test: │ │ input=Operator("*") │ │ 2024-03-25T20:22:24.901313Z INFO spiral_temp_test: │ │ input=Integer(-4774118273390490401) │ │ 2024-03-25T20:22:24.901340Z INFO spiral_temp_test: │ │ input=Comment("CZ#Ry&0,PH<@!$[.u\\{Qi:?!A}t&g'*1") │ │ 2024-03-25T20:22:24.901364Z INFO spiral_temp_test: │ │ input=Identifier("YgmZ9vpMxU") │ │ 2024-03-25T20:22:24.901390Z INFO spiral_temp_test: │ │ input=StringLiteral("addzyPvY_j.<@,UXz,") │ │ 2024-03-25T20:22:24.901409Z INFO spiral_temp_test: │ │ input=Integer(-8990880355795049475) │ │ 2024-03-25T20:22:24.901427Z INFO spiral_temp_test: │ │ input=Integer(-2107042330747824775) │ │ 2024-03-25T20:22:24.901446Z INFO spiral_temp_test: │ │ input=Identifier("B2lDS") │ │ 2024-03-25T20:22:24.901466Z INFO spiral_temp_test: │ │ input=Comment("Zq") │ │ 2024-03-25T20:22:24.901487Z INFO spiral_temp_test: │ │ input=Operator("(") │ │ 2024-03-25T20:22:24.901515Z INFO spiral_temp_test: │ │ input=Identifier("IgQRhR4T6BO99gr5fnApwV2omve66kbr5") │ │ 2024-03-25T20:22:24.901534Z INFO spiral_temp_test: │ │ input=Integer(1181883043079186153) │ │ 2024-03-25T20:22:24.901561Z INFO spiral_temp_test: │ │ input=Identifier("d67KfaE0EXr7059446NubBG982m3U") │ │ 2024-03-25T20:22:24.901581Z INFO spiral_temp_test: │ │ input=Integer(6716024196571682055) │ │ 2024-03-25T20:22:24.901604Z INFO spiral_temp_test: │ │ input=StringLiteral("?i1V~Vo.<`]9%<") │ │ 2024-03-25T20:22:24.901633Z INFO spiral_temp_test: │ │ input=Identifier("B1NowKhi4NT2Bn33bB7FABSwEOCsF8") │ │ 2024-03-25T20:22:24.901652Z INFO spiral_temp_test: │ │ input=Integer(-7815391910866238181) │ │ 2024-03-25T20:22:24.901679Z INFO spiral_temp_test: │ │ input=Comment("M`:/|W\\?o<dO}%w|j{,&.j$\"MH.'*.y") │ │ 2024-03-25T20:22:24.901704Z INFO spiral_temp_test: │ │ input=StringLiteral(",G<+}.BI`p&^Z~") │ │ 2024-03-25T20:22:24.901730Z INFO spiral_temp_test: │ │ input=StringLiteral("P/O TSIH4.:K<dnE'$8k") │ │ 2024-03-25T20:22:24.901758Z INFO spiral_temp_test: │ │ input=Identifier("jRUXh1x5VvvF5blq01Q1W5TlA") │ │ 2024-03-25T20:22:24.901785Z INFO spiral_temp_test: │ │ input=Comment("#WP`?R.');:P)ty!z{d<$5") │ │ 2024-03-25T20:22:24.901804Z INFO spiral_temp_test: │ │ input=Integer(-8579817891538370351) │ │ 2024-03-25T20:22:24.901824Z INFO spiral_temp_test: │ │ input=Operator("*") │ │ 2024-03-25T20:22:24.901844Z INFO spiral_temp_test: │ │ input=Identifier("zeka32x") │ │ 2024-03-25T20:22:24.901861Z INFO spiral_temp_test: │ │ input=Integer(612513093998053775) │ │ 2024-03-25T20:22:24.901889Z INFO spiral_temp_test: │ │ input=Comment("Q%Z?$N=k?Q.+2h>5& y*7ls%m$r$V") │ │ 2024-03-25T20:22:24.901916Z INFO spiral_temp_test: │ │ input=StringLiteral("R;X5}:I?a::[ZP$!5Ui&G;&5") │ │ 2024-03-25T20:22:24.901940Z INFO spiral_temp_test: │ │ input=StringLiteral("$-1Eo.k") │ │ 2024-03-25T20:22:24.901961Z INFO spiral_temp_test: │ │ input=Operator("(") │ │ 2024-03-25T20:22:24.901986Z INFO spiral_temp_test: │ │ input=Comment("|6M%XC\\S<3'N6SL{&zZ") │ │ 2024-03-25T20:22:24.902005Z INFO spiral_temp_test: │ │ input=Integer(-22431536377394877) │ │ 2024-03-25T20:22:24.902030Z INFO spiral_temp_test: │ │ input=StringLiteral("Ar!1DJ3$s{{P2#'Mc?'>") │ │ 2024-03-25T20:22:24.902054Z INFO spiral_temp_test: │ │ input=Identifier("NHYyfwhvy5pWnm0") │ │ 2024-03-25T20:22:24.902077Z INFO spiral_temp_test: │ │ input=StringLiteral("=Z'1%j=LG*1x.o") │ │ 2024-03-25T20:22:24.902105Z INFO spiral_temp_test: │ │ input=StringLiteral("/A:}(`n7=A]7W'('u&|tPTO") │ │ 2024-03-25T20:22:24.902125Z INFO spiral_temp_test: │ │ input=Operator("+") │ │ 2024-03-25T20:22:24.902150Z INFO spiral_temp_test: │ │ input=Comment(".']\\&G\\hOM40w\"D:F_m/H4'") │ │ 2024-03-25T20:22:24.902177Z INFO spiral_temp_test: │ │ input=Comment("GE/g%$1>v?H\"`PCvq',5\",") │ │ 2024-03-25T20:22:24.902200Z INFO spiral_temp_test: │ │ input=Operator("=") │ │ 2024-03-25T20:22:24.902225Z INFO spiral_temp_test: │ │ input=StringLiteral("?d' T)(&DifiJ<)Vp{") │ │ 2024-03-25T20:22:24.902245Z INFO spiral_temp_test: │ │ input=Operator("+") │ │ 2024-03-25T20:22:24.902272Z INFO spiral_temp_test: │ │ input=Identifier("Uoy7cq5N58TUqb0n4Dm2ZoKyXd011lX") │ │ 2024-03-25T20:22:24.902293Z INFO spiral_temp_test: │ │ input=Operator("-") │ │ 2024-03-25T20:22:24.902319Z INFO spiral_temp_test: │ │ input=Comment("(&v!?E^&*B6*Z/0]fvJG`\"D{pB") │ │ 2024-03-25T20:22:24.902339Z INFO spiral_temp_test: │ │ input=Integer(9053186792154123181) │ │ 2024-03-25T20:22:24.902358Z INFO spiral_temp_test: │ │ input=Identifier("bHJO") │ │ 2024-03-25T20:22:24.902377Z INFO spiral_temp_test: │ │ input=Comment("w,") │ │ 2024-03-25T20:22:24.902403Z INFO spiral_temp_test: │ │ input=Comment("#&Nn};-><U\\.g?u?|^iCK") │ │ 2024-03-25T20:22:24.902421Z INFO spiral_temp_test: │ │ input=Integer(-3154030128557640855) │ │ 2024-03-25T20:22:24.902458Z INFO spiral_temp_test: │ │ input=Identifier("MdNWn26bskeCz4y0t3yz") │ │ 2024-03-25T20:22:24.902480Z INFO spiral_temp_test: │ │ input=Operator("/") │ │ 2024-03-25T20:22:24.902503Z INFO spiral_temp_test: │ │ input=StringLiteral("& KFb&7=Be6>E<H<&") │ │ 2024-03-25T20:22:24.902528Z INFO spiral_temp_test: │ │ input=Comment("X*d5Wg')?q%*:Qt7N$") │ │ 2024-03-25T20:22:24.902548Z INFO spiral_temp_test: │ │ input=Integer(2143147651780442851) │ │ 2024-03-25T20:22:24.902573Z INFO spiral_temp_test: │ │ input=Comment("%Qb'.L8pp`O<Uz[j&Lu{a") │ │ 2024-03-25T20:22:24.902592Z INFO spiral_temp_test: │ │ input=Integer(1722913163995420538) │ │ 2024-03-25T20:22:24.902626Z INFO spiral_temp_test: │ │ input=StringLiteral("=v/c$-/}!=?*`*d)K") │ │ 2024-03-25T20:22:24.902646Z INFO spiral_temp_test: │ │ input=Integer(-3415795465445373356) │ │ 2024-03-25T20:22:24.902663Z INFO spiral_temp_test: │ │ input=Integer(7299523100110878209) │ │ 2024-03-25T20:22:24.902691Z INFO spiral_temp_test: │ │ input=StringLiteral("`!<mQ8e} %`*``,%^[K-I@z:{K$JS") │ │ 2024-03-25T20:22:24.902713Z INFO spiral_temp_test: │ │ input=Identifier("JqeEz53") │ │ 2024-03-25T20:22:24.902736Z INFO spiral_temp_test: │ │ input=StringLiteral("t8)<_^cigP<V%x") │ │ 2024-03-25T20:22:24.902762Z INFO spiral_temp_test: │ │ input=Comment("L$V|RLQ<MM~<\"# F/%") │ │ 2024-03-25T20:22:24.902785Z INFO spiral_temp_test: │ │ input=Comment("Stz@P&Pn%fYY&") │ │ 2024-03-25T20:22:24.902808Z INFO spiral_temp_test: │ │ input=Comment("B=*fEy)NK)") │ │ 2024-03-25T20:22:24.902828Z INFO spiral_temp_test: │ │ input=Operator("(") │ │ 2024-03-25T20:22:24.902851Z INFO spiral_temp_test: │ │ input=StringLiteral(".j{b*X![{w5Q%") │ │ 2024-03-25T20:22:24.902870Z INFO spiral_temp_test: │ │ input=Integer(-3121848972805186387) │ │ 2024-03-25T20:22:24.902896Z INFO spiral_temp_test: │ │ input=Comment("r&R&s7FpUe\\+\"z$|!?=") │ │ 2024-03-25T20:22:24.902921Z INFO spiral_temp_test: │ │ input=Comment("hZySk<at9eC~ z_x") │ │ 2024-03-25T20:22:24.902949Z INFO spiral_temp_test: │ │ input=Comment("_&1Ga\"<=P`z:Wj/2A0RU1dU[w889o8") │ │ 2024-03-25T20:22:24.902970Z INFO spiral_temp_test: │ │ input=Operator("-") │ │ 2024-03-25T20:22:24.902989Z INFO spiral_temp_test: │ │ input=Operator("/") │ │ 2024-03-25T20:22:24.903009Z INFO spiral_temp_test: │ │ input=StringLiteral(".{:?6") │ │ 2024-03-25T20:22:24.903037Z INFO spiral_temp_test: │ │ input=StringLiteral("&.989iqc]r0k6<}c)~4?jW1<=r*+5") │ │ 2024-03-25T20:22:24.903058Z INFO spiral_temp_test: │ │ input=Integer(-1859316375332328550) │ │ 2024-03-25T20:22:24.903076Z INFO spiral_temp_test: │ │ input=Operator("+") │ │ 2024-03-25T20:22:24.903094Z INFO spiral_temp_test: │ │ input=Integer(1870124315629103423) │ │ 2024-03-25T20:22:24.903118Z INFO spiral_temp_test: │ │ input=Identifier("JvDCzswK5lqlJXH3q1W") │ │ 2024-03-25T20:22:24.903143Z INFO spiral_temp_test: │ │ input=Comment("X*\"gn=R.y{N8?.$>`YX") │ │ 2024-03-25T20:22:24.903166Z INFO spiral_temp_test: │ │ input=Comment("{%|{jt'*..i~ud\\") │ │ 2024-03-25T20:22:24.903193Z INFO spiral_temp_test: │ │ input=Identifier("sJwSY301pV50n9yt5jCDh2Ev58e5") │ │ 2024-03-25T20:22:24.903214Z INFO spiral_temp_test: │ │ input=Operator("*") │ │ 2024-03-25T20:22:24.903235Z INFO spiral_temp_test: │ │ input=Comment("'?`%P e") │ │ 2024-03-25T20:22:24.903255Z INFO spiral_temp_test: │ │ input=Comment("kF:") │ │ 2024-03-25T20:22:24.903277Z INFO spiral_temp_test: │ │ input=StringLiteral("9&=7Miy<G") │ │ 2024-03-25T20:22:24.903301Z INFO spiral_temp_test: │ │ input=Integer(3302412785734929999) │ │ 2024-03-25T20:22:24.903324Z INFO spiral_temp_test: │ │ input=Comment(".z<") │ │ 2024-03-25T20:22:24.903346Z INFO spiral_temp_test: │ │ input=Operator("-") │ │ 2024-03-25T20:22:24.903367Z INFO spiral_temp_test: │ │ input=Integer(-7342483797830661698) │ │ 2024-03-25T20:22:24.903398Z INFO spiral_temp_test: │ │ input=Identifier("k1F70uWZnNix2FdauPtJDl9B27r91R") │ │ 2024-03-25T20:22:24.903422Z INFO spiral_temp_test: │ │ input=Identifier("bGHNFU") │ │ 2024-03-25T20:22:24.903452Z INFO spiral_temp_test: │ │ input=StringLiteral("bE0%t[P=@>./'q%]U0W/") │ │ 2024-03-25T20:22:24.903483Z INFO spiral_temp_test: │ │ input=StringLiteral("u&d:><'%zq`7xF%?K*yZeWz&@") │ │ 2024-03-25T20:22:24.903515Z INFO spiral_temp_test: │ │ input=Comment("{#;?Im\".\"@\"\\\\2#jG`=EZ?:l7A*A1E.:") │ │ 2024-03-25T20:22:24.903538Z INFO spiral_temp_test: │ │ input=Integer(-7135863224985617008) │ │ 2024-03-25T20:22:24.903561Z INFO spiral_temp_test: │ │ input=Operator("(") │ │ 2024-03-25T20:22:24.903588Z INFO spiral_temp_test: │ │ input=Comment("(C*aOY\\n&L%G1n\\:x") │ │ 2024-03-25T20:22:24.903612Z INFO spiral_temp_test: │ │ input=Identifier("A2") │ │ 2024-03-25T20:22:24.903636Z INFO spiral_temp_test: │ │ input=Identifier("Qsb12HZraJidn") │ │ 2024-03-25T20:22:24.903659Z INFO spiral_temp_test: │ │ input=Identifier("wQKS90G") │ │ 2024-03-25T20:22:24.903689Z INFO spiral_temp_test: │ │ input=StringLiteral("&9%~rcy>UGzB'=6tg>l.Ni|>W/9") │ │ 2024-03-25T20:22:24.903716Z INFO spiral_temp_test: │ │ input=Operator(")") │ │ 2024-03-25T20:22:24.903748Z INFO spiral_temp_test: │ │ input=StringLiteral("L$?~/dYxu? %o2*2n{6..AxjMV") │ │ 2024-03-25T20:22:24.903771Z INFO spiral_temp_test: │ │ input=Integer(6772023307223344282) │ │ 2024-03-25T20:22:24.903793Z INFO spiral_temp_test: │ │ input=Identifier("Ho") │ │ 2024-03-25T20:22:24.903815Z INFO spiral_temp_test: │ │ input=StringLiteral("i5&") │ │ 2024-03-25T20:22:24.903843Z INFO spiral_temp_test: │ │ input=Identifier("Kv3K6p69680tt6Vt6lg") │ │ 2024-03-25T20:22:24.903875Z INFO spiral_temp_test: │ │ input=StringLiteral("aMg.KZ/<kXBvj7hB/Z|[vBiG}?`(`V") │ │ 2024-03-25T20:22:24.903908Z INFO spiral_temp_test: │ │ input=Comment("kkA]JL3/&'))Zg8rom*+w\"aBs%H/H\"<t") │ │ 2024-03-25T20:22:24.903933Z INFO spiral_temp_test: │ │ input=Identifier("Ld93Nc") │ │ 2024-03-25T20:22:24.903958Z INFO spiral_temp_test: │ │ input=Comment("(cm.B-{hju=") │ │ 2024-03-25T20:22:24.903984Z INFO spiral_temp_test: │ │ input=Comment("$1MQ?{*\\j") │ │ 2024-03-25T20:22:24.904005Z INFO spiral_temp_test: │ │ input=Integer(-6592832163224410697) │ │ 2024-03-25T20:22:24.904034Z INFO spiral_temp_test: │ │ input=StringLiteral("/$F$l35DvI/tIS9n$=^=_W") │ │ 2024-03-25T20:22:24.904060Z INFO spiral_temp_test: │ │ input=Identifier("M8TefZk8") │ │ 2024-03-25T20:22:24.904083Z INFO spiral_temp_test: │ │ input=Operator("=") │ │ 2024-03-25T20:22:24.904112Z INFO spiral_temp_test: │ │ input=Identifier("Moo2WPIdlWMVbhx2w9K0z0BR") │ │ 2024-03-25T20:22:24.904134Z INFO spiral_temp_test: │ │ input=Integer(6432561030060806433) │ │ 2024-03-25T20:22:24.904156Z INFO spiral_temp_test: │ │ input=Operator("*") │ │ 2024-03-25T20:22:24.904181Z INFO spiral_temp_test: │ │ input=Identifier("xRAITOeyr") │ │ 2024-03-25T20:22:24.904204Z INFO spiral_temp_test: │ │ input=Identifier("iPs7V") │ │ 2024-03-25T20:22:24.904225Z INFO spiral_temp_test: │ │ input=Integer(-3986886704564366845) │ │ 2024-03-25T20:22:24.904249Z INFO spiral_temp_test: │ │ input=Comment("1s=p{Iv") │ │ 2024-03-25T20:22:24.904272Z INFO spiral_temp_test: │ │ input=Operator("+") │ │ 2024-03-25T20:22:24.904294Z INFO spiral_temp_test: │ │ input=StringLiteral("") │ │ 2024-03-25T20:22:24.904316Z INFO spiral_temp_test: │ │ input=Operator("=") │ │ 2024-03-25T20:22:24.904346Z INFO spiral_temp_test: │ │ input=Identifier("IkX03FeqbHBWmK73GpiZPJFbSZ5LRrx") │ │ 2024-03-25T20:22:24.904371Z INFO spiral_temp_test: │ │ input=Comment(".") │ │ 2024-03-25T20:22:24.904394Z INFO spiral_temp_test: │ │ input=Comment("$.>^>D") │ │ 2024-03-25T20:22:24.904416Z INFO spiral_temp_test: │ │ input=Operator("+") │ │ 2024-03-25T20:22:24.904436Z INFO spiral_temp_test: │ │ input=Integer(-3501120497247802907) │ │ 2024-03-25T20:22:24.904467Z INFO spiral_temp_test: │ │ input=StringLiteral("Ou|{r[)T*7L:]s</t//7c/A*r b.>,") │ │ 2024-03-25T20:22:24.904496Z INFO spiral_temp_test: │ │ input=Identifier("lKW44jUqc5o64XR9CH") │ │ 2024-03-25T20:22:24.904526Z INFO spiral_temp_test: │ │ input=StringLiteral("N=X'._du8*5>*0z=M$SOQ}A$'") │ │ 2024-03-25T20:22:24.904549Z INFO spiral_temp_test: │ │ input=Integer(-7954221563302669252) │ │ 2024-03-25T20:22:24.904571Z INFO spiral_temp_test: │ │ input=Operator("-") │ │ 2024-03-25T20:22:24.904592Z INFO spiral_temp_test: │ │ input=Operator("+") │ │ 2024-03-25T20:22:24.904622Z INFO spiral_temp_test: │ │ input=Identifier("o9v90FfU3OPQNzQ81hYK4MWQ4") │ │ 2024-03-25T20:22:24.904644Z INFO spiral_temp_test: │ │ input=Integer(1361321521881822578) │ │ 2024-03-25T20:22:24.904669Z INFO spiral_temp_test: │ │ input=Comment("AW^{H'm`^:") │ │ 2024-03-25T20:22:24.904699Z INFO spiral_temp_test: │ │ input=Identifier("yZTif5x1u0POeMq1s0NW4iK9") │ │ 2024-03-25T20:22:24.904729Z INFO spiral_temp_test: │ │ input=Identifier("ih1BfprhtPUWTHafN55qT8879GCq") │ │ 2024-03-25T20:22:24.904779Z INFO spiral_temp_test: │ │ input=Comment("mqE") │ │ 2024-03-25T20:22:24.904799Z INFO spiral_temp_test: │ │ input=Integer(-1063924079116629527) │ │ 2024-03-25T20:22:24.904821Z INFO spiral_temp_test: │ │ input=Identifier("kEQOQ3m3fqd4U3X4GK") │ │ 2024-03-25T20:22:24.904848Z INFO spiral_temp_test: │ │ input=Identifier("vVjPZdhS") │ │ 2024-03-25T20:22:24.904878Z INFO spiral_temp_test: │ │ input=Comment("SH&!<a&Th=zY\\^.#)'`& gy3z{*") │ │ 2024-03-25T20:22:24.904902Z INFO spiral_temp_test: │ │ input=StringLiteral("qy") │ │ 2024-03-25T20:22:24.904927Z INFO spiral_temp_test: │ │ input=StringLiteral("D[t<u'O=%.U") │ │ 2024-03-25T20:22:24.904952Z INFO spiral_temp_test: │ │ input=Operator("(") │ │ 2024-03-25T20:22:24.904975Z INFO spiral_temp_test: │ │ input=Operator(")") │ │ 2024-03-25T20:22:24.904996Z INFO spiral_temp_test: │ │ input=Integer(2460540326424465410) │ │ 2024-03-25T20:22:24.905021Z INFO spiral_temp_test: │ │ input=StringLiteral("f}:`/T..U") │ │ 2024-03-25T20:22:24.905050Z INFO spiral_temp_test: │ │ input=Comment("_U~zTkVF&M*<]u$*;j1'C") │ │ 2024-03-25T20:22:24.905076Z INFO spiral_temp_test: │ │ input=Comment("{[P?5K]C") │ │ 2024-03-25T20:22:24.905101Z INFO spiral_temp_test: │ │ input=Operator("(") │ │ 2024-03-25T20:22:24.905125Z INFO spiral_temp_test: │ │ input=Operator("(") │ │ 2024-03-25T20:22:24.905150Z INFO spiral_temp_test: │ │ input=Identifier("LgMTneOqG6BoN4") │ │ test prop_parse_format_idempotent ... ok │ │ test │ │ adding_and_then_removing_an_item_from_the_cart_leaves_the_cart_unchanged ... │ │ ok │ │ │ │ test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; │ │ finished in 0.08s │ │ │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── pwsh ──────────────────────────────────────────────────────────────────────── { . $ScriptDir/../../../../target/release/spiral_temp_test$(GetExecutableSuffix) } | Invoke-Block ╭─[ 6.14ms - stdout ]──────────────────────────────────────────────────────────╮ │ app=test │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ [NbConvertApp] Converting notebook build.dib.ipynb to html /opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/nbformat/__init__.py:96: MissingIDFieldWarning: Cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future. validate(nb) /opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/nbconvert/filters/highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3 return _pygments_highlight( [NbConvertApp] Writing 373564 bytes to build.dib.html
In [ ]:
{ . "$ScriptDir/../apps/plot/build.ps1" } | Invoke-Block
Compiling plot v0.0.1 (/home/runner/work/polyglot/polyglot/apps/plot) Finished `release` profile [optimized] target(s) in 4.57s
In [ ]:
{ . "$ScriptDir/../lib/spiral/build.ps1" } | Invoke-Block
00:00:00 #1 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #2 [Debug] executeAsync / options: { Command =
"dotnet "/home/runner/work/polyglot/polyglot/deps/The-Spiral-Language/The Spiral Language 2/artifacts/bin/The Spiral Language 2/release/Spiral.dll" --port 13805 --default-int i32 --default-float f64"
WorkingDirectory = None
CancellationToken = Some System.Threading.CancellationToken
OnLine = Some <fun:main@464-1020> }
00:00:00 #3 [Verbose] > pwd: /home/runner/work/polyglot/polyglot/lib/spiral
00:00:00 #4 [Verbose] > dll_path: /home/runner/work/polyglot/polyglot/deps/The-Spiral-Language/The Spiral Language 2/artifacts/bin/The Spiral Language 2/release
00:00:00 #5 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #6 [Verbose] waitForPortAccess / port: 13805 / retry: 0
00:00:00 #7 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #8 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #9 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #10 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #11 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #12 [Verbose] > Starting the Spiral Server. It is bound to: http://localhost:13805
00:00:00 #13 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #14 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #15 [Debug] sendJson / port: 13805 / json: {"Ping":true} / result.Length:
00:00:00 #16 [Verbose] awaitCompiler / Ping / result: Some(null) / port: 13805 / retry: 0
00:00:00 #17 [Verbose] > Server bound to: http://localhost:13805
00:00:00 #18 [Debug] executeAsync / options: { Command = "pwsh -c "../../scripts/invoke-dib.ps1 testing.dib""
WorkingDirectory = None
CancellationToken = Some System.Threading.CancellationToken
OnLine = None }
00:00:02 #19 [Verbose] >
00:00:02 #20 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:02 #21 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:02 #22 [Verbose] > │ # testing │
00:00:02 #23 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:02 #24 [Verbose] >
00:00:02 #25 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:02 #26 [Verbose] > inl __expect fn log b a =
00:00:02 #27 [Verbose] > inl result = fn a b
00:00:02 #28 [Verbose] > inl result =
00:00:02 #29 [Verbose] > result || join result
00:00:02 #30 [Verbose] > if log
00:00:02 #31 [Verbose] > then $"$\"__expect / actual: %A{!a} / expected: %A{!b}\""
00:00:02 #32 [Verbose] > else "__expect"
00:00:02 #33 [Verbose] > |> assert result
00:00:02 #34 [Verbose] >
00:00:02 #35 [Verbose] > inl __assert_approx_eq log e b a = __expect (fun a b => abs (b - a) < (e |>
00:00:02 #36 [Verbose] > optionm.defaultWith 0.00000001)) log b a
00:00:02 #37 [Verbose] > inl _assert_approx_eq e b a = __assert_approx_eq true e b a
00:00:02 #38 [Verbose] >
00:00:02 #39 [Verbose] > inl __assert_eq log b a = __expect (=) log b a
00:00:02 #40 [Verbose] > inl _assert_eq b a = __assert_eq true b a
00:00:02 #41 [Verbose] >
00:00:02 #42 [Verbose] > inl __assert_ne log b a = __expect (fun a b => a = b |> fun x => join x |> not)
00:00:02 #43 [Verbose] > log b a
00:00:02 #44 [Verbose] > inl _assert_ne b a = __assert_ne true b a
00:00:02 #45 [Verbose] >
00:00:02 #46 [Verbose] > inl __assert_gt log b a = __expect (>) log b a
00:00:02 #47 [Verbose] > inl _assert_gt b a = __assert_gt true b a
00:00:02 #48 [Verbose] >
00:00:02 #49 [Verbose] > inl __assert_ge log b a = __expect (>=) log b a
00:00:02 #50 [Verbose] > inl _assert_ge b a = __assert_ge true b a
00:00:02 #51 [Verbose] >
00:00:02 #52 [Verbose] > inl __assert_lt log b a = __expect (<) log b a
00:00:02 #53 [Verbose] > inl _assert_lt b a = __assert_lt true b a
00:00:02 #54 [Verbose] >
00:00:02 #55 [Verbose] > inl __assert_le log b a = __expect (<=) log b a
00:00:02 #56 [Verbose] > inl _assert_le b a = __assert_le true b a
00:00:02 #57 [Verbose] >
00:00:02 #58 [Verbose] > inl _throws (fn : () -> ()) : option string =
00:00:02 #59 [Verbose] > inl none = None : option string
00:00:02 #60 [Verbose] > inl some (s : string) = Some s
00:00:02 #61 [Verbose] > $"try !fn (); !none with ex -> !some ex.Message"
00:00:04 #62 [Verbose] > Building /tmp/!dotnet-repl/20240325-2022-3509-0958-0c6d2216b45c/main.spi
00:00:06 #63 [Verbose] >
00:00:06 #64 [Verbose] > ╭─[ 3.75s - stdout ]───────────────────────────────────────────────────────────╮
00:00:06 #65 [Verbose] > │ () │
00:00:06 #66 [Verbose] > │ │
00:00:06 #67 [Verbose] > │ │
00:00:06 #68 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:06 #69 [Verbose] >
00:00:06 #70 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:06 #71 [Verbose] > // // test
00:00:06 #72 [Verbose] >
00:00:06 #73 [Verbose] > 1f64
00:00:06 #74 [Verbose] > |> _assert_approx_eq (Some 3) 2
00:00:06 #75 [Verbose] > Building /tmp/!dotnet-repl/20240325-2022-3755-5550-5784891a23dc/main.spi
00:00:06 #76 [Verbose] >
00:00:06 #77 [Verbose] > ╭─[ 559.11ms - stdout ]────────────────────────────────────────────────────────╮
00:00:06 #78 [Verbose] > │ let rec method0 () : unit = │
00:00:06 #79 [Verbose] > │ let v0 : string = $"__expect / actual: %A{1.0} / expected: %A{2.0}" │
00:00:06 #80 [Verbose] > │ () │
00:00:06 #81 [Verbose] > │ method0() │
00:00:06 #82 [Verbose] > │ │
00:00:06 #83 [Verbose] > │ │
00:00:06 #84 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:06 #85 [Verbose] >
00:00:06 #86 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:06 #87 [Verbose] > // // test
00:00:06 #88 [Verbose] >
00:00:06 #89 [Verbose] > (dyn 1f64)
00:00:06 #90 [Verbose] > |> _assert_approx_eq (Some 3) 2
00:00:06 #91 [Verbose] > Building /tmp/!dotnet-repl/20240325-2022-3811-1125-1cdf19e23259/main.spi
00:00:06 #92 [Verbose] >
00:00:06 #93 [Verbose] > ╭─[ 289.10ms - stdout ]────────────────────────────────────────────────────────╮
00:00:06 #94 [Verbose] > │ let rec method1 (v0 : bool) : bool = │
00:00:06 #95 [Verbose] > │ v0 │
00:00:06 #96 [Verbose] > │ and method0 () : unit = │
00:00:06 #97 [Verbose] > │ let v0 : float = 1.0 │
00:00:06 #98 [Verbose] > │ let v1 : float = 2.0 - v0 │
00:00:06 #99 [Verbose] > │ let v2 : float = -v1 │
00:00:06 #100 [Verbose] > │ let v3 : bool = v1 >= v2 │
00:00:06 #101 [Verbose] > │ let v4 : float = │
00:00:06 #102 [Verbose] > │ if v3 then │
00:00:06 #103 [Verbose] > │ v1 │
00:00:06 #104 [Verbose] > │ else │
00:00:06 #105 [Verbose] > │ v2 │
00:00:06 #106 [Verbose] > │ let v5 : bool = v4 < 3.0 │
00:00:06 #107 [Verbose] > │ let v7 : bool = │
00:00:06 #108 [Verbose] > │ if v5 then │
00:00:06 #109 [Verbose] > │ true │
00:00:06 #110 [Verbose] > │ else │
00:00:06 #111 [Verbose] > │ method1(v5) │
00:00:06 #112 [Verbose] > │ let v8 : string = $"__expect / actual: %A{v0} / expected: %A{2.0}" │
00:00:06 #113 [Verbose] > │ let v9 : bool = v7 = false │
00:00:06 #114 [Verbose] > │ if v9 then │
00:00:06 #115 [Verbose] > │ failwith<unit> v8 │
00:00:06 #116 [Verbose] > │ method0() │
00:00:06 #117 [Verbose] > │ │
00:00:06 #118 [Verbose] > │ │
00:00:06 #119 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:06 #120 [Verbose] >
00:00:06 #121 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:06 #122 [Verbose] > inl print_and_return x =
00:00:06 #123 [Verbose] > $"printfn $\"print_and_return / x: {!x}\""
00:00:06 #124 [Verbose] > x
00:00:07 #125 [Verbose] > Building /tmp/!dotnet-repl/20240325-2022-3840-4029-42cb74d39df8/main.spi
00:00:07 #126 [Verbose] >
00:00:07 #127 [Verbose] > ╭─[ 191.26ms - stdout ]────────────────────────────────────────────────────────╮
00:00:07 #128 [Verbose] > │ () │
00:00:07 #129 [Verbose] > │ │
00:00:07 #130 [Verbose] > │ │
00:00:07 #131 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #132 [Verbose] > [NbConvertApp] Converting notebook testing.dib.ipynb to html
00:00:07 #133 [Verbose] > /opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/nbformat/__init__.py:96: MissingIDFieldWarning: Cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:00:07 #134 [Verbose] > validate(nb)
00:00:08 #135 [Verbose] > /opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/nbconvert/filters/highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:00:08 #136 [Verbose] > return _pygments_highlight(
00:00:08 #137 [Verbose] > [NbConvertApp] Writing 282877 bytes to testing.dib.html
00:00:08 #138 [Debug] executeAsync / exitCode: 0 / output.Length: 7588
00:00:08 #139 [Debug] main / executeCommand / exitCode: 0
00:00:00 #1 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #2 [Debug] executeAsync / options: { Command =
"dotnet "/home/runner/work/polyglot/polyglot/deps/The-Spiral-Language/The Spiral Language 2/artifacts/bin/The Spiral Language 2/release/Spiral.dll" --port 13805 --default-int i32 --default-float f64"
WorkingDirectory = None
CancellationToken = Some System.Threading.CancellationToken
OnLine = Some <fun:main@464-1020> }
00:00:00 #3 [Verbose] > pwd: /home/runner/work/polyglot/polyglot/lib/spiral
00:00:00 #4 [Verbose] > dll_path: /home/runner/work/polyglot/polyglot/deps/The-Spiral-Language/The Spiral Language 2/artifacts/bin/The Spiral Language 2/release
00:00:00 #5 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #6 [Verbose] waitForPortAccess / port: 13805 / retry: 0
00:00:00 #7 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #8 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #9 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #10 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #11 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #12 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #13 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #14 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #15 [Verbose] > Starting the Spiral Server. It is bound to: http://localhost:13805
00:00:00 #16 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #17 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #18 [Debug] sendJson / port: 13805 / json: {"Ping":true} / result.Length:
00:00:00 #19 [Verbose] awaitCompiler / Ping / result: Some(null) / port: 13805 / retry: 0
00:00:00 #20 [Verbose] > Server bound to: http://localhost:13805
00:00:00 #21 [Debug] executeAsync / options: { Command = "pwsh -c "../../scripts/invoke-dib.ps1 common.dib""
WorkingDirectory = None
CancellationToken = Some System.Threading.CancellationToken
OnLine = None }
00:00:02 #22 [Verbose] >
00:00:02 #23 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:02 #24 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:02 #25 [Verbose] > │ # common │
00:00:02 #26 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:02 #27 [Verbose] >
00:00:02 #28 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:02 #29 [Verbose] > // // test
00:00:02 #30 [Verbose] >
00:00:02 #31 [Verbose] > open testing
00:00:04 #32 [Verbose] > Building /tmp/!dotnet-repl/20240325-2022-4421-2166-2d91ee67e7f4/main.spi
00:00:06 #33 [Verbose] >
00:00:06 #34 [Verbose] > ╭─[ 3.83s - stdout ]───────────────────────────────────────────────────────────╮
00:00:06 #35 [Verbose] > │ () │
00:00:06 #36 [Verbose] > │ │
00:00:06 #37 [Verbose] > │ │
00:00:06 #38 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:06 #39 [Verbose] >
00:00:06 #40 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:06 #41 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:06 #42 [Verbose] > │ ## types │
00:00:06 #43 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:06 #44 [Verbose] >
00:00:06 #45 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:06 #46 [Verbose] > nominal any = $"obj"
00:00:06 #47 [Verbose] > nominal disposable = $"System.IDisposable"
00:00:06 #48 [Verbose] > nominal exn = $"exn"
00:00:06 #49 [Verbose] > nominal guid = $"System.Guid"
00:00:06 #50 [Verbose] > nominal unativeint = $"unativeint"
00:00:06 #51 [Verbose] >
00:00:06 #52 [Verbose] > let array x = x
00:00:06 #53 [Verbose] >
00:00:06 #54 [Verbose] > inl unativeint forall t {int}. (n : t) : unativeint =
00:00:06 #55 [Verbose] > $"unativeint !n"
00:00:06 #56 [Verbose] > Building /tmp/!dotnet-repl/20240325-2022-4671-7198-71aec25d03eb/main.spi
00:00:06 #57 [Verbose] >
00:00:06 #58 [Verbose] > ╭─[ 193.33ms - stdout ]────────────────────────────────────────────────────────╮
00:00:06 #59 [Verbose] > │ () │
00:00:06 #60 [Verbose] > │ │
00:00:06 #61 [Verbose] > │ │
00:00:06 #62 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:06 #63 [Verbose] >
00:00:06 #64 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:06 #65 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:06 #66 [Verbose] > │ ## prototype │
00:00:06 #67 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:06 #68 [Verbose] >
00:00:06 #69 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:06 #70 [Verbose] > prototype (~:>) r : forall t. t -> r
00:00:06 #71 [Verbose] > prototype append t : t -> t -> t
00:00:06 #72 [Verbose] > prototype of_string t : string -> t
00:00:06 #73 [Verbose] > prototype to_string t : t -> string
00:00:06 #74 [Verbose] > Building /tmp/!dotnet-repl/20240325-2022-4690-9097-940f3c55f9b2/main.spi
00:00:06 #75 [Verbose] >
00:00:06 #76 [Verbose] > ╭─[ 190.98ms - stdout ]────────────────────────────────────────────────────────╮
00:00:06 #77 [Verbose] > │ () │
00:00:06 #78 [Verbose] > │ │
00:00:06 #79 [Verbose] > │ │
00:00:06 #80 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:06 #81 [Verbose] >
00:00:06 #82 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:06 #83 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:06 #84 [Verbose] > │ ## null │
00:00:06 #85 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:06 #86 [Verbose] >
00:00:06 #87 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:06 #88 [Verbose] > inl null forall t. () : t =
00:00:06 #89 [Verbose] > $"null |> unbox<`t>"
00:00:06 #90 [Verbose] > Building /tmp/!dotnet-repl/20240325-2022-4710-1028-19c5f552a739/main.spi
00:00:06 #91 [Verbose] >
00:00:06 #92 [Verbose] > ╭─[ 168.17ms - stdout ]────────────────────────────────────────────────────────╮
00:00:06 #93 [Verbose] > │ () │
00:00:06 #94 [Verbose] > │ │
00:00:06 #95 [Verbose] > │ │
00:00:06 #96 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:06 #97 [Verbose] >
00:00:06 #98 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:06 #99 [Verbose] > inl i32 forall t. (x : t) : i32 =
00:00:06 #100 [Verbose] > $"int32 !x"
00:00:06 #101 [Verbose] >
00:00:06 #102 [Verbose] > inl i64 forall t. (x : t) : i64 =
00:00:06 #103 [Verbose] > $"int64 !x"
00:00:06 #104 [Verbose] >
00:00:06 #105 [Verbose] > inl f32 forall t. (x : t) : f32 =
00:00:06 #106 [Verbose] > $"float32 !x"
00:00:06 #107 [Verbose] >
00:00:06 #108 [Verbose] > inl f64 forall t. (x : t) : f64 =
00:00:06 #109 [Verbose] > $"float !x"
00:00:06 #110 [Verbose] > Building /tmp/!dotnet-repl/20240325-2022-4727-2713-270ca5d278b7/main.spi
00:00:06 #111 [Verbose] >
00:00:06 #112 [Verbose] > ╭─[ 167.66ms - stdout ]────────────────────────────────────────────────────────╮
00:00:06 #113 [Verbose] > │ () │
00:00:06 #114 [Verbose] > │ │
00:00:06 #115 [Verbose] > │ │
00:00:06 #116 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:06 #117 [Verbose] >
00:00:06 #118 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:06 #119 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:06 #120 [Verbose] > │ ## pair │
00:00:06 #121 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:06 #122 [Verbose] >
00:00:06 #123 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:06 #124 [Verbose] > type pair a b = $"(`a * `b)"
00:00:06 #125 [Verbose] >
00:00:06 #126 [Verbose] > inl pair x y =
00:00:06 #127 [Verbose] > x, y
00:00:07 #128 [Verbose] > Building /tmp/!dotnet-repl/20240325-2022-4744-4404-4edae25df412/main.spi
00:00:07 #129 [Verbose] >
00:00:07 #130 [Verbose] > ╭─[ 154.71ms - stdout ]────────────────────────────────────────────────────────╮
00:00:07 #131 [Verbose] > │ () │
00:00:07 #132 [Verbose] > │ │
00:00:07 #133 [Verbose] > │ │
00:00:07 #134 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #135 [Verbose] >
00:00:07 #136 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:07 #137 [Verbose] > // // test
00:00:07 #138 [Verbose] >
00:00:07 #139 [Verbose] > pair 1i32 2i32
00:00:07 #140 [Verbose] > |> _assert_eq (1, 2)
00:00:07 #141 [Verbose] > Building /tmp/!dotnet-repl/20240325-2022-4759-5963-562851c23baf/main.spi
00:00:07 #142 [Verbose] >
00:00:07 #143 [Verbose] > ╭─[ 588.15ms - stdout ]────────────────────────────────────────────────────────╮
00:00:07 #144 [Verbose] > │ let rec method0 () : unit = │
00:00:07 #145 [Verbose] > │ let v0 : string = $"__expect / actual: %A{struct (1, 2)} / expected: │
00:00:07 #146 [Verbose] > │ %A{struct (1, 2)}" │
00:00:07 #147 [Verbose] > │ () │
00:00:07 #148 [Verbose] > │ method0() │
00:00:07 #149 [Verbose] > │ │
00:00:07 #150 [Verbose] > │ │
00:00:07 #151 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #152 [Verbose] >
00:00:07 #153 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:07 #154 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:07 #155 [Verbose] > │ ## new_pair │
00:00:07 #156 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #157 [Verbose] >
00:00:07 #158 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:07 #159 [Verbose] > inl new_pair forall a b. (a : a) (b : b) : pair a b =
00:00:07 #160 [Verbose] > $"!a, !b"
00:00:07 #161 [Verbose] > Building /tmp/!dotnet-repl/20240325-2022-4818-1852-1f894dad9f3e/main.spi
00:00:07 #162 [Verbose] >
00:00:07 #163 [Verbose] > ╭─[ 137.52ms - stdout ]────────────────────────────────────────────────────────╮
00:00:07 #164 [Verbose] > │ () │
00:00:07 #165 [Verbose] > │ │
00:00:07 #166 [Verbose] > │ │
00:00:07 #167 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #168 [Verbose] >
00:00:07 #169 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:07 #170 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:07 #171 [Verbose] > │ ## from_pair │
00:00:07 #172 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #173 [Verbose] >
00:00:07 #174 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:07 #175 [Verbose] > inl from_pair forall a b. (pair : pair a b) : a * b =
00:00:07 #176 [Verbose] > $"let (a, b) = !pair"
00:00:07 #177 [Verbose] > $"a", $"b"
00:00:07 #178 [Verbose] > Building /tmp/!dotnet-repl/20240325-2022-4832-3233-31b964cea816/main.spi
00:00:07 #179 [Verbose] >
00:00:07 #180 [Verbose] > ╭─[ 139.10ms - stdout ]────────────────────────────────────────────────────────╮
00:00:07 #181 [Verbose] > │ () │
00:00:07 #182 [Verbose] > │ │
00:00:07 #183 [Verbose] > │ │
00:00:07 #184 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #185 [Verbose] >
00:00:07 #186 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:07 #187 [Verbose] > // // test
00:00:07 #188 [Verbose] >
00:00:07 #189 [Verbose] > new_pair "a" 1i32
00:00:07 #190 [Verbose] > |> from_pair
00:00:07 #191 [Verbose] > |> _assert_eq ("a", 1i32)
00:00:08 #192 [Verbose] > Building /tmp/!dotnet-repl/20240325-2022-4846-4628-4e04a95f5dc0/main.spi
00:00:08 #193 [Verbose] >
00:00:08 #194 [Verbose] > ╭─[ 241.76ms - stdout ]────────────────────────────────────────────────────────╮
00:00:08 #195 [Verbose] > │ let rec method1 (v0 : bool) : bool = │
00:00:08 #196 [Verbose] > │ v0 │
00:00:08 #197 [Verbose] > │ and method0 () : unit = │
00:00:08 #198 [Verbose] > │ let v0 : string = "a" │
00:00:08 #199 [Verbose] > │ let v1 : (string * int32) = v0, 1 │
00:00:08 #200 [Verbose] > │ let (a, b) = v1 │
00:00:08 #201 [Verbose] > │ let v2 : string = a │
00:00:08 #202 [Verbose] > │ let v3 : int32 = b │
00:00:08 #203 [Verbose] > │ let v4 : bool = v2 = "a" │
00:00:08 #204 [Verbose] > │ let v6 : bool = │
00:00:08 #205 [Verbose] > │ if v4 then │
00:00:08 #206 [Verbose] > │ let v5 : bool = v3 = 1 │
00:00:08 #207 [Verbose] > │ v5 │
00:00:08 #208 [Verbose] > │ else │
00:00:08 #209 [Verbose] > │ false │
00:00:08 #210 [Verbose] > │ let v8 : bool = │
00:00:08 #211 [Verbose] > │ if v6 then │
00:00:08 #212 [Verbose] > │ true │
00:00:08 #213 [Verbose] > │ else │
00:00:08 #214 [Verbose] > │ method1(v6) │
00:00:08 #215 [Verbose] > │ let v9 : string = $"__expect / actual: %A{struct (v2, v3)} / expected: │
00:00:08 #216 [Verbose] > │ %A{struct (v0, 1)}" │
00:00:08 #217 [Verbose] > │ let v10 : bool = v8 = false │
00:00:08 #218 [Verbose] > │ if v10 then │
00:00:08 #219 [Verbose] > │ failwith<unit> v9 │
00:00:08 #220 [Verbose] > │ method0() │
00:00:08 #221 [Verbose] > │ │
00:00:08 #222 [Verbose] > │ │
00:00:08 #223 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #224 [Verbose] >
00:00:08 #225 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:08 #226 [Verbose] > // // test
00:00:08 #227 [Verbose] >
00:00:08 #228 [Verbose] > new_pair "a" (new_pair 1i32 "b")
00:00:08 #229 [Verbose] > |> from_pair
00:00:08 #230 [Verbose] > Building /tmp/!dotnet-repl/20240325-2022-4870-7069-79216bf8b812/main.spi
00:00:08 #231 [Verbose] >
00:00:08 #232 [Verbose] > ╭─[ 254.45ms - return value ]──────────────────────────────────────────────────╮
00:00:08 #233 [Verbose] > │ <details open="open" class="dni-treeview"><summary><span │
00:00:08 #234 [Verbose] > │ class="dni-code-hint"><code>(a, (1, │
00:00:08 #235 [Verbose] > │ b))</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><t │
00:00:08 #236 [Verbose] > │ d>Item1</td><td><div │
00:00:08 #237 [Verbose] > │ class="dni-plaintext"><pre>a</pre></div></td></tr><tr><td>Item2</td><td><det │
00:00:08 #238 [Verbose] > │ ails class="dni-treeview"><summary><span class="dni-code-hint"><code>(1, │
00:00:08 #239 [Verbose] > │ b)</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
00:00:08 #240 [Verbose] > │ >Item1</td><td><div │
00:00:08 #241 [Verbose] > │ class="dni-plaintext"><pre>1</pre></div></td></tr><tr><td>Item2</td><td><div │
00:00:08 #242 [Verbose] > │ class="dni-plaintext"><pre>b</pre></div></td></tr></tbody></table></div></de │
00:00:08 #243 [Verbose] > │ tails></td></tr></tbody></table></div></details><style> │
00:00:08 #244 [Verbose] > │ .dni-code-hint { │
00:00:08 #245 [Verbose] > │ font-style: italic; │
00:00:08 #246 [Verbose] > │ overflow: hidden; │
00:00:08 #247 [Verbose] > │ white-space: nowrap; │
00:00:08 #248 [Verbose] > │ } │
00:00:08 #249 [Verbose] > │ .dni-treeview { │
00:00:08 #250 [Verbose] > │ ... │
00:00:08 #251 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #252 [Verbose] >
00:00:08 #253 [Verbose] > ╭─[ 263.42ms - stdout ]────────────────────────────────────────────────────────╮
00:00:08 #254 [Verbose] > │ let rec method0 () : struct (string * (int32 * string)) = │
00:00:08 #255 [Verbose] > │ let v0 : string = "b" │
00:00:08 #256 [Verbose] > │ let v1 : (int32 * string) = 1, v0 │
00:00:08 #257 [Verbose] > │ let v2 : string = "a" │
00:00:08 #258 [Verbose] > │ let v3 : (string * (int32 * string)) = v2, v1 │
00:00:08 #259 [Verbose] > │ let (a, b) = v3 │
00:00:08 #260 [Verbose] > │ let v4 : string = a │
00:00:08 #261 [Verbose] > │ let v5 : (int32 * string) = b │
00:00:08 #262 [Verbose] > │ struct (v4, v5) │
00:00:08 #263 [Verbose] > │ method0() │
00:00:08 #264 [Verbose] > │ │
00:00:08 #265 [Verbose] > │ │
00:00:08 #266 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #267 [Verbose] >
00:00:08 #268 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:08 #269 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:08 #270 [Verbose] > │ ## log_level_type │
00:00:08 #271 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #272 [Verbose] >
00:00:08 #273 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:08 #274 [Verbose] > union log_level_type =
00:00:08 #275 [Verbose] > | Verbose
00:00:08 #276 [Verbose] > | Debug
00:00:08 #277 [Verbose] > | Info
00:00:08 #278 [Verbose] > | Warning
00:00:08 #279 [Verbose] > | Critical
00:00:08 #280 [Verbose] >
00:00:08 #281 [Verbose] > instance to_string log_level_type = function
00:00:08 #282 [Verbose] > | Verbose => "Verbose"
00:00:08 #283 [Verbose] > | Debug => "Debug"
00:00:08 #284 [Verbose] > | Info => "Info"
00:00:08 #285 [Verbose] > | Warning => "Warning"
00:00:08 #286 [Verbose] > | Critical => "Critical"
00:00:08 #287 [Verbose] >
00:00:08 #288 [Verbose] > instance of_string log_level_type = function
00:00:08 #289 [Verbose] > | "Verbose" => Verbose
00:00:08 #290 [Verbose] > | "Debug" => Debug
00:00:08 #291 [Verbose] > | "Info" => Info
00:00:08 #292 [Verbose] > | "Warning" => Warning
00:00:08 #293 [Verbose] > | "Critical" => Critical
00:00:08 #294 [Verbose] > Building /tmp/!dotnet-repl/20240325-2022-4897-9730-9273a8a2f6df/main.spi
00:00:08 #295 [Verbose] >
00:00:08 #296 [Verbose] > ╭─[ 137.74ms - stdout ]────────────────────────────────────────────────────────╮
00:00:08 #297 [Verbose] > │ () │
00:00:08 #298 [Verbose] > │ │
00:00:08 #299 [Verbose] > │ │
00:00:08 #300 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #301 [Verbose] >
00:00:08 #302 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:08 #303 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:08 #304 [Verbose] > │ ## to_any │
00:00:08 #305 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #306 [Verbose] >
00:00:08 #307 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:08 #308 [Verbose] > inl to_any forall t. (obj : t) : any =
00:00:08 #309 [Verbose] > $"!obj"
00:00:08 #310 [Verbose] >
00:00:08 #311 [Verbose] > instance (~:>) any = to_any
00:00:08 #312 [Verbose] > Building /tmp/!dotnet-repl/20240325-2022-4911-1111-10a3870708af/main.spi
00:00:08 #313 [Verbose] >
00:00:08 #314 [Verbose] > ╭─[ 140.03ms - stdout ]────────────────────────────────────────────────────────╮
00:00:08 #315 [Verbose] > │ () │
00:00:08 #316 [Verbose] > │ │
00:00:08 #317 [Verbose] > │ │
00:00:08 #318 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #319 [Verbose] >
00:00:08 #320 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:08 #321 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:08 #322 [Verbose] > │ ## (/@) │
00:00:08 #323 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #324 [Verbose] >
00:00:08 #325 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:08 #326 [Verbose] > inl (/@) a b =
00:00:08 #327 [Verbose] > b |> append a
00:00:08 #328 [Verbose] > Building /tmp/!dotnet-repl/20240325-2022-4925-2522-29587abed461/main.spi
00:00:08 #329 [Verbose] >
00:00:08 #330 [Verbose] > ╭─[ 147.67ms - stdout ]────────────────────────────────────────────────────────╮
00:00:08 #331 [Verbose] > │ () │
00:00:08 #332 [Verbose] > │ │
00:00:08 #333 [Verbose] > │ │
00:00:08 #334 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #335 [Verbose] >
00:00:08 #336 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:08 #337 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:08 #338 [Verbose] > │ ## unbox │
00:00:08 #339 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #340 [Verbose] >
00:00:08 #341 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:08 #342 [Verbose] > inl unbox forall t u. (x : t) : u =
00:00:08 #343 [Verbose] > $"!x |> unbox<`u>"
00:00:08 #344 [Verbose] > Building /tmp/!dotnet-repl/20240325-2022-4940-4025-48be6966dee0/main.spi
00:00:09 #345 [Verbose] >
00:00:09 #346 [Verbose] > ╭─[ 146.05ms - stdout ]────────────────────────────────────────────────────────╮
00:00:09 #347 [Verbose] > │ () │
00:00:09 #348 [Verbose] > │ │
00:00:09 #349 [Verbose] > │ │
00:00:09 #350 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #351 [Verbose] >
00:00:09 #352 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:09 #353 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:09 #354 [Verbose] > │ ## (/+) │
00:00:09 #355 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #356 [Verbose] >
00:00:09 #357 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:09 #358 [Verbose] > inl (/+) forall t. (a : t) (b : t) : t =
00:00:09 #359 [Verbose] > $"!a + !b"
00:00:09 #360 [Verbose] > Building /tmp/!dotnet-repl/20240325-2022-4954-5489-5aa8097ebb66/main.spi
00:00:09 #361 [Verbose] >
00:00:09 #362 [Verbose] > ╭─[ 146.31ms - stdout ]────────────────────────────────────────────────────────╮
00:00:09 #363 [Verbose] > │ () │
00:00:09 #364 [Verbose] > │ │
00:00:09 #365 [Verbose] > │ │
00:00:09 #366 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #367 [Verbose] >
00:00:09 #368 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:09 #369 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:09 #370 [Verbose] > │ ## (||>) │
00:00:09 #371 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #372 [Verbose] >
00:00:09 #373 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:09 #374 [Verbose] > inl (||>) (arg1, arg2) fn =
00:00:09 #375 [Verbose] > arg2 |> fn arg1
00:00:09 #376 [Verbose] > Building /tmp/!dotnet-repl/20240325-2022-4969-6963-660238716025/main.spi
00:00:09 #377 [Verbose] >
00:00:09 #378 [Verbose] > ╭─[ 202.58ms - stdout ]────────────────────────────────────────────────────────╮
00:00:09 #379 [Verbose] > │ () │
00:00:09 #380 [Verbose] > │ │
00:00:09 #381 [Verbose] > │ │
00:00:09 #382 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #383 [Verbose] >
00:00:09 #384 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:09 #385 [Verbose] > // // test
00:00:09 #386 [Verbose] >
00:00:09 #387 [Verbose] > (3i32, 2i32)
00:00:09 #388 [Verbose] > ||> fun a b => a - b
00:00:09 #389 [Verbose] > |> _assert_eq 1
00:00:09 #390 [Verbose] > Building /tmp/!dotnet-repl/20240325-2022-4989-8994-8c585ea6efb8/main.spi
00:00:09 #391 [Verbose] >
00:00:09 #392 [Verbose] > ╭─[ 156.59ms - stdout ]────────────────────────────────────────────────────────╮
00:00:09 #393 [Verbose] > │ let rec method0 () : unit = │
00:00:09 #394 [Verbose] > │ let v0 : string = $"__expect / actual: %A{1} / expected: %A{1}" │
00:00:09 #395 [Verbose] > │ () │
00:00:09 #396 [Verbose] > │ method0() │
00:00:09 #397 [Verbose] > │ │
00:00:09 #398 [Verbose] > │ │
00:00:09 #399 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #400 [Verbose] >
00:00:09 #401 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:09 #402 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:09 #403 [Verbose] > │ ## flip │
00:00:09 #404 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #405 [Verbose] >
00:00:09 #406 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:09 #407 [Verbose] > inl flip fn a b =
00:00:09 #408 [Verbose] > fn b a
00:00:09 #409 [Verbose] > Building /tmp/!dotnet-repl/20240325-2022-5005-0570-03aad42c28d2/main.spi
00:00:09 #410 [Verbose] >
00:00:09 #411 [Verbose] > ╭─[ 138.12ms - stdout ]────────────────────────────────────────────────────────╮
00:00:09 #412 [Verbose] > │ () │
00:00:09 #413 [Verbose] > │ │
00:00:09 #414 [Verbose] > │ │
00:00:09 #415 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #416 [Verbose] >
00:00:09 #417 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:09 #418 [Verbose] > // // test
00:00:09 #419 [Verbose] >
00:00:09 #420 [Verbose] > (1i32, 2i32)
00:00:09 #421 [Verbose] > ||> flip pair
00:00:09 #422 [Verbose] > |> _assert_eq (2, 1)
00:00:09 #423 [Verbose] > Building /tmp/!dotnet-repl/20240325-2022-5019-1955-16f84a0b638c/main.spi
00:00:09 #424 [Verbose] >
00:00:09 #425 [Verbose] > ╭─[ 150.67ms - stdout ]────────────────────────────────────────────────────────╮
00:00:09 #426 [Verbose] > │ let rec method0 () : unit = │
00:00:09 #427 [Verbose] > │ let v0 : string = $"__expect / actual: %A{struct (2, 1)} / expected: │
00:00:09 #428 [Verbose] > │ %A{struct (2, 1)}" │
00:00:09 #429 [Verbose] > │ () │
00:00:09 #430 [Verbose] > │ method0() │
00:00:09 #431 [Verbose] > │ │
00:00:09 #432 [Verbose] > │ │
00:00:09 #433 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #434 [Verbose] >
00:00:09 #435 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:09 #436 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:09 #437 [Verbose] > │ ## join_body │
00:00:09 #438 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #439 [Verbose] >
00:00:09 #440 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:09 #441 [Verbose] > inl join_body body acc x =
00:00:09 #442 [Verbose] > if var_is x |> not
00:00:09 #443 [Verbose] > then body acc x
00:00:09 #444 [Verbose] > else
00:00:09 #445 [Verbose] > inl acc = dyn acc
00:00:09 #446 [Verbose] > join body acc x
00:00:09 #447 [Verbose] > Building /tmp/!dotnet-repl/20240325-2022-5034-3479-386dceaae9cf/main.spi
00:00:09 #448 [Verbose] >
00:00:09 #449 [Verbose] > ╭─[ 139.03ms - stdout ]────────────────────────────────────────────────────────╮
00:00:09 #450 [Verbose] > │ () │
00:00:09 #451 [Verbose] > │ │
00:00:09 #452 [Verbose] > │ │
00:00:09 #453 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #454 [Verbose] >
00:00:09 #455 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:09 #456 [Verbose] > // // test
00:00:09 #457 [Verbose] >
00:00:09 #458 [Verbose] > inl rec fold_list f s = function
00:00:09 #459 [Verbose] > | Cons (x, x') => fold_list f (f s x) x'
00:00:09 #460 [Verbose] > | Nil => s
00:00:10 #461 [Verbose] > Building /tmp/!dotnet-repl/20240325-2022-5048-4879-4b1b27e5b4de/main.spi
00:00:10 #462 [Verbose] >
00:00:10 #463 [Verbose] > ╭─[ 140.50ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #464 [Verbose] > │ () │
00:00:10 #465 [Verbose] > │ │
00:00:10 #466 [Verbose] > │ │
00:00:10 #467 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #468 [Verbose] >
00:00:10 #469 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #470 [Verbose] > // // test
00:00:10 #471 [Verbose] >
00:00:10 #472 [Verbose] > [[5i32; 4; join 3; 2; 1]]
00:00:10 #473 [Verbose] > |> fold_list (+) 0
00:00:10 #474 [Verbose] > |> _assert_eq 15
00:00:10 #475 [Verbose] > Building /tmp/!dotnet-repl/20240325-2022-5062-6289-6450044cde40/main.spi
00:00:10 #476 [Verbose] >
00:00:10 #477 [Verbose] > ╭─[ 189.42ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #478 [Verbose] > │ let rec method1 () : int32 = │
00:00:10 #479 [Verbose] > │ 3 │
00:00:10 #480 [Verbose] > │ and method2 (v0 : bool) : bool = │
00:00:10 #481 [Verbose] > │ v0 │
00:00:10 #482 [Verbose] > │ and method0 () : unit = │
00:00:10 #483 [Verbose] > │ let v0 : int32 = method1() │
00:00:10 #484 [Verbose] > │ let v1 : int32 = 9 + v0 │
00:00:10 #485 [Verbose] > │ let v2 : int32 = v1 + 2 │
00:00:10 #486 [Verbose] > │ let v3 : int32 = v2 + 1 │
00:00:10 #487 [Verbose] > │ let v4 : bool = v3 = 15 │
00:00:10 #488 [Verbose] > │ let v6 : bool = │
00:00:10 #489 [Verbose] > │ if v4 then │
00:00:10 #490 [Verbose] > │ true │
00:00:10 #491 [Verbose] > │ else │
00:00:10 #492 [Verbose] > │ method2(v4) │
00:00:10 #493 [Verbose] > │ let v7 : string = $"__expect / actual: %A{v3} / expected: %A{15}" │
00:00:10 #494 [Verbose] > │ let v8 : bool = v6 = false │
00:00:10 #495 [Verbose] > │ if v8 then │
00:00:10 #496 [Verbose] > │ failwith<unit> v7 │
00:00:10 #497 [Verbose] > │ method0() │
00:00:10 #498 [Verbose] > │ │
00:00:10 #499 [Verbose] > │ │
00:00:10 #500 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #501 [Verbose] >
00:00:10 #502 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #503 [Verbose] > // // test
00:00:10 #504 [Verbose] >
00:00:10 #505 [Verbose] > [[5i32; 4; join 3; 2; 1]]
00:00:10 #506 [Verbose] > |> fold_list (join_body (+)) 0
00:00:10 #507 [Verbose] > |> _assert_eq 15
00:00:10 #508 [Verbose] > Building /tmp/!dotnet-repl/20240325-2022-5082-8201-8402dfdcc2b0/main.spi
00:00:10 #509 [Verbose] >
00:00:10 #510 [Verbose] > ╭─[ 153.49ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #511 [Verbose] > │ let rec method1 () : int32 = │
00:00:10 #512 [Verbose] > │ 3 │
00:00:10 #513 [Verbose] > │ and method2 (v0 : int32, v1 : int32) : int32 = │
00:00:10 #514 [Verbose] > │ let v2 : int32 = v1 + v0 │
00:00:10 #515 [Verbose] > │ v2 │
00:00:10 #516 [Verbose] > │ and method3 (v0 : bool) : bool = │
00:00:10 #517 [Verbose] > │ v0 │
00:00:10 #518 [Verbose] > │ and method0 () : unit = │
00:00:10 #519 [Verbose] > │ let v0 : int32 = method1() │
00:00:10 #520 [Verbose] > │ let v1 : int32 = 9 │
00:00:10 #521 [Verbose] > │ let v2 : int32 = method2(v0, v1) │
00:00:10 #522 [Verbose] > │ let v3 : int32 = v2 + 2 │
00:00:10 #523 [Verbose] > │ let v4 : int32 = v3 + 1 │
00:00:10 #524 [Verbose] > │ let v5 : bool = v4 = 15 │
00:00:10 #525 [Verbose] > │ let v7 : bool = │
00:00:10 #526 [Verbose] > │ if v5 then │
00:00:10 #527 [Verbose] > │ true │
00:00:10 #528 [Verbose] > │ else │
00:00:10 #529 [Verbose] > │ method3(v5) │
00:00:10 #530 [Verbose] > │ let v8 : string = $"__expect / actual: %A{v4} / expected: %A{15}" │
00:00:10 #531 [Verbose] > │ let v9 : bool = v7 = false │
00:00:10 #532 [Verbose] > │ if v9 then │
00:00:10 #533 [Verbose] > │ failwith<unit> v8 │
00:00:10 #534 [Verbose] > │ method0() │
00:00:10 #535 [Verbose] > │ │
00:00:10 #536 [Verbose] > │ │
00:00:10 #537 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #538 [Verbose] >
00:00:10 #539 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:10 #540 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:10 #541 [Verbose] > │ ## join_body_unit │
00:00:10 #542 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #543 [Verbose] >
00:00:10 #544 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #545 [Verbose] > inl join_body_unit body d x =
00:00:10 #546 [Verbose] > if var_is d |> not
00:00:10 #547 [Verbose] > then body x
00:00:10 #548 [Verbose] > else
00:00:10 #549 [Verbose] > inl x = dyn x
00:00:10 #550 [Verbose] > join body x
00:00:10 #551 [Verbose] > Building /tmp/!dotnet-repl/20240325-2022-5097-9760-994cbfc57fd3/main.spi
00:00:10 #552 [Verbose] >
00:00:10 #553 [Verbose] > ╭─[ 148.19ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #554 [Verbose] > │ () │
00:00:10 #555 [Verbose] > │ │
00:00:10 #556 [Verbose] > │ │
00:00:10 #557 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #558 [Verbose] >
00:00:10 #559 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #560 [Verbose] > // // test
00:00:10 #561 [Verbose] >
00:00:10 #562 [Verbose] > [[5i32; 4; join 3; 2; 1]]
00:00:10 #563 [Verbose] > |> fold_list (fun acc n => join_body_unit ((+) acc) n n) 0
00:00:10 #564 [Verbose] > |> _assert_eq 15
00:00:10 #565 [Verbose] > Building /tmp/!dotnet-repl/20240325-2022-5112-1245-1123b3002f72/main.spi
00:00:10 #566 [Verbose] >
00:00:10 #567 [Verbose] > ╭─[ 147.37ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #568 [Verbose] > │ let rec method1 () : int32 = │
00:00:10 #569 [Verbose] > │ 3 │
00:00:10 #570 [Verbose] > │ and method2 (v0 : int32) : int32 = │
00:00:10 #571 [Verbose] > │ let v1 : int32 = 9 + v0 │
00:00:10 #572 [Verbose] > │ v1 │
00:00:10 #573 [Verbose] > │ and method3 (v0 : bool) : bool = │
00:00:10 #574 [Verbose] > │ v0 │
00:00:10 #575 [Verbose] > │ and method0 () : unit = │
00:00:10 #576 [Verbose] > │ let v0 : int32 = method1() │
00:00:10 #577 [Verbose] > │ let v1 : int32 = method2(v0) │
00:00:10 #578 [Verbose] > │ let v2 : int32 = v1 + 2 │
00:00:10 #579 [Verbose] > │ let v3 : int32 = v2 + 1 │
00:00:10 #580 [Verbose] > │ let v4 : bool = v3 = 15 │
00:00:10 #581 [Verbose] > │ let v6 : bool = │
00:00:10 #582 [Verbose] > │ if v4 then │
00:00:10 #583 [Verbose] > │ true │
00:00:10 #584 [Verbose] > │ else │
00:00:10 #585 [Verbose] > │ method3(v4) │
00:00:10 #586 [Verbose] > │ let v7 : string = $"__expect / actual: %A{v3} / expected: %A{15}" │
00:00:10 #587 [Verbose] > │ let v8 : bool = v6 = false │
00:00:10 #588 [Verbose] > │ if v8 then │
00:00:10 #589 [Verbose] > │ failwith<unit> v7 │
00:00:10 #590 [Verbose] > │ method0() │
00:00:10 #591 [Verbose] > │ │
00:00:10 #592 [Verbose] > │ │
00:00:10 #593 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #594 [Verbose] >
00:00:10 #595 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:10 #596 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:10 #597 [Verbose] > │ ## run_target │
00:00:10 #598 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #599 [Verbose] >
00:00:10 #600 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #601 [Verbose] > union target_runtime =
00:00:10 #602 [Verbose] > | Native
00:00:10 #603 [Verbose] > | Wasm
00:00:10 #604 [Verbose] >
00:00:10 #605 [Verbose] > union target =
00:00:10 #606 [Verbose] > | Rust : target_runtime
00:00:10 #607 [Verbose] > | Fsharp
00:00:10 #608 [Verbose] >
00:00:10 #609 [Verbose] > inl run_target forall t. (fn : target -> (() -> t)) : t =
00:00:10 #610 [Verbose] > $"let mutable result = None"
00:00:10 #611 [Verbose] > $"#if FABLE_COMPILER_RUST"
00:00:10 #612 [Verbose] > $"#if \!WASM"
00:00:10 #613 [Verbose] > fn (Rust Native) () |> fun x => $"!x"
00:00:10 #614 [Verbose] > $"#else"
00:00:10 #615 [Verbose] > fn (Rust Wasm) () |> fun x => $"!x"
00:00:10 #616 [Verbose] > $"#endif"
00:00:10 #617 [Verbose] > $"#else"
00:00:10 #618 [Verbose] > fn Fsharp () |> fun x => $"!x"
00:00:10 #619 [Verbose] > $"#endif"
00:00:10 #620 [Verbose] > $"|> fun x -> result <- Some x"
00:00:10 #621 [Verbose] > $"result |> Option.get"
00:00:10 #622 [Verbose] > Building /tmp/!dotnet-repl/20240325-2022-5127-2751-2163e223eda0/main.spi
00:00:10 #623 [Verbose] >
00:00:10 #624 [Verbose] > ╭─[ 140.86ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #625 [Verbose] > │ () │
00:00:10 #626 [Verbose] > │ │
00:00:10 #627 [Verbose] > │ │
00:00:10 #628 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #629 [Verbose] >
00:00:10 #630 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #631 [Verbose] > // // test
00:00:10 #632 [Verbose] >
00:00:10 #633 [Verbose] > run_target function
00:00:10 #634 [Verbose] > | Fsharp => fun () => $"1uy"
00:00:10 #635 [Verbose] > | Rust (Native) => fun () => $"2uy"
00:00:10 #636 [Verbose] > | Rust (Wasm) => fun () => $"3uy"
00:00:10 #637 [Verbose] > |> _assert_eq 1u8
00:00:10 #638 [Verbose] > Building /tmp/!dotnet-repl/20240325-2022-5141-4155-46ea57318c3c/main.spi
00:00:11 #639 [Verbose] >
00:00:11 #640 [Verbose] > ╭─[ 206.28ms - stdout ]────────────────────────────────────────────────────────╮
00:00:11 #641 [Verbose] > │ let rec method1 (v0 : bool) : bool = │
00:00:11 #642 [Verbose] > │ v0 │
00:00:11 #643 [Verbose] > │ and method0 () : unit = │
00:00:11 #644 [Verbose] > │ let mutable result = None │
00:00:11 #645 [Verbose] > │ #if FABLE_COMPILER_RUST │
00:00:11 #646 [Verbose] > │ #if !WASM │
00:00:11 #647 [Verbose] > │ let v0 : uint8 = 2uy │
00:00:11 #648 [Verbose] > │ v0 │
00:00:11 #649 [Verbose] > │ #else │
00:00:11 #650 [Verbose] > │ let v1 : uint8 = 3uy │
00:00:11 #651 [Verbose] > │ v1 │
00:00:11 #652 [Verbose] > │ #endif │
00:00:11 #653 [Verbose] > │ #else │
00:00:11 #654 [Verbose] > │ let v2 : uint8 = 1uy │
00:00:11 #655 [Verbose] > │ v2 │
00:00:11 #656 [Verbose] > │ #endif │
00:00:11 #657 [Verbose] > │ |> fun x -> result <- Some x │
00:00:11 #658 [Verbose] > │ let v3 : uint8 = result |> Option.get │
00:00:11 #659 [Verbose] > │ let v4 : bool = v3 = 1uy │
00:00:11 #660 [Verbose] > │ let v6 : bool = │
00:00:11 #661 [Verbose] > │ if v4 then │
00:00:11 #662 [Verbose] > │ true │
00:00:11 #663 [Verbose] > │ else │
00:00:11 #664 [Verbose] > │ method1(v4) │
00:00:11 #665 [Verbose] > │ let v7 : string = $"__expect / actual: %A{v3} / expected: %A{1uy}" │
00:00:11 #666 [Verbose] > │ let v8 : bool = v6 = false │
00:00:11 #667 [Verbose] > │ if v8 then │
00:00:11 #668 [Verbose] > │ failwith<unit> v7 │
00:00:11 #669 [Verbose] > │ method0() │
00:00:11 #670 [Verbose] > │ │
00:00:11 #671 [Verbose] > │ │
00:00:11 #672 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #673 [Verbose] >
00:00:11 #674 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:11 #675 [Verbose] > // // test
00:00:11 #676 [Verbose] > // // rust=
00:00:11 #677 [Verbose] >
00:00:11 #678 [Verbose] > run_target function
00:00:11 #679 [Verbose] > | Fsharp => fun () => $"1uy"
00:00:11 #680 [Verbose] > | Rust (Native) => fun () => $"2uy"
00:00:11 #681 [Verbose] > | Rust (Wasm) => fun () => $"3uy"
00:00:11 #682 [Verbose] > |> (=) 2u8
00:00:11 #683 [Verbose] > |> _assert_eq true
00:00:11 #684 [Verbose] > Building /tmp/!dotnet-repl/20240325-2022-5162-6240-6ef54d7cee44/main.spi
00:00:13 #685 [Verbose] >
00:00:13 #686 [Verbose] > ╭─[ 2.74s - return value ]─────────────────────────────────────────────────────╮
00:00:13 #687 [Verbose] > │ .rs output: │
00:00:13 #688 [Verbose] > │ │
00:00:13 #689 [Verbose] > │ │
00:00:13 #690 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #691 [Verbose] >
00:00:13 #692 [Verbose] > ╭─[ 2.74s - stdout ]───────────────────────────────────────────────────────────╮
00:00:13 #693 [Verbose] > │ │
00:00:13 #694 [Verbose] > │ .fsx: │
00:00:13 #695 [Verbose] > │ let rec method1 (v0 : bool) : bool = │
00:00:13 #696 [Verbose] > │ v0 │
00:00:13 #697 [Verbose] > │ and method0 () : unit = │
00:00:13 #698 [Verbose] > │ let mutable result = None │
00:00:13 #699 [Verbose] > │ #if FABLE_COMPILER_RUST │
00:00:13 #700 [Verbose] > │ #if !WASM │
00:00:13 #701 [Verbose] > │ let v0 : uint8 = 2uy │
00:00:13 #702 [Verbose] > │ v0 │
00:00:13 #703 [Verbose] > │ #else │
00:00:13 #704 [Verbose] > │ let v1 : uint8 = 3uy │
00:00:13 #705 [Verbose] > │ v1 │
00:00:13 #706 [Verbose] > │ #endif │
00:00:13 #707 [Verbose] > │ #else │
00:00:13 #708 [Verbose] > │ let v2 : uint8 = 1uy │
00:00:13 #709 [Verbose] > │ v2 │
00:00:13 #710 [Verbose] > │ #endif │
00:00:13 #711 [Verbose] > │ |> fun x -> result <- Some x │
00:00:13 #712 [Verbose] > │ let v3 : uint8 = result |> Option.get │
00:00:13 #713 [Verbose] > │ let v4 : bool = 2uy = v3 │
00:00:13 #714 [Verbose] > │ let v6 : bool = │
00:00:13 #715 [Verbose] > │ if v4 then │
00:00:13 #716 [Verbose] > │ true │
00:00:13 #717 [Verbose] > │ else │
00:00:13 #718 [Verbose] > │ method1(v4) │
00:00:13 #719 [Verbose] > │ let v7 : string = $"__expect / actual: %A{v4} / expected: %A{true}" │
00:00:13 #720 [Verbose] > │ let v8 : bool = v6 = false │
00:00:13 #721 [Verbose] > │ if v8 then │
00:00:13 #722 [Verbose] > │ failwith<unit> v7 │
00:00:13 #723 [Verbose] > │ method0() │
00:00:13 #724 [Verbose] > │ │
00:00:13 #725 [Verbose] > │ │
00:00:13 #726 [Verbose] > │ .rs: │
00:00:13 #727 [Verbose] > │ #![allow(dead_code,)] │
00:00:13 #728 [Verbose] > │ #![allow(non_camel_case_types,)] │
00:00:13 #729 [Verbose] > │ #![allow(non_snake_case,)] │
00:00:13 #730 [Verbose] > │ #![allow(non_upper_case_globals,)] │
00:00:13 #731 [Verbose] > │ #![allow(unreachable_code,)] │
00:00:13 #732 [Verbose] > │ #![allow(unused_attributes,)] │
00:00:13 #733 [Verbose] > │ #![allow(unused_imports,)] │
00:00:13 #734 [Verbose] > │ #![allow(unused_macros,)] │
00:00:13 #735 [Verbose] > │ #![allow(unused_parens,)] │
00:00:13 #736 [Verbose] > │ #![allow(unused_variables,)] │
00:00:13 #737 [Verbose] > │ mod module_ccfa04bf { │
00:00:13 #738 [Verbose] > │ pub mod Spiral_eval { │
00:00:13 #739 [Verbose] > │ use super::*; │
00:00:13 #740 [Verbose] > │ use fable_library_rust::Native_::MutCell; │
00:00:13 #741 [Verbose] > │ use fable_library_rust::Native_::on_startup; │
00:00:13 #742 [Verbose] > │ use fable_library_rust::Option_::getValue; │
00:00:13 #743 [Verbose] > │ use fable_library_rust::String_::sprintf; │
00:00:13 #744 [Verbose] > │ pub fn method1(v0: bool) -> bool { v0 } │
00:00:13 #745 [Verbose] > │ pub fn method0() { │
00:00:13 #746 [Verbose] > │ let result: MutCell<Option<u8>> = MutCell::new(None::<u8>); │
00:00:13 #747 [Verbose] > │ result.set(Some(2_u8)); │
00:00:13 #748 [Verbose] > │ { │
00:00:13 #749 [Verbose] > │ let v4: bool = 2_u8 == getValue(result.get().clone()); │
00:00:13 #750 [Verbose] > │ if (if v4 { true } else { Spiral_eval::method1(v4) }) == │
00:00:13 #751 [Verbose] > │ false │
00:00:13 #752 [Verbose] > │ { │
00:00:13 #753 [Verbose] > │ panic!("{}", │
00:00:13 #754 [Verbose] > │ sprintf!("__expect / actual: {:?} / expected: │
00:00:13 #755 [Verbose] > │ {:?}", v4, true)); │
00:00:13 #756 [Verbose] > │ } │
00:00:13 #757 [Verbose] > │ } │
00:00:13 #758 [Verbose] > │ } │
00:00:13 #759 [Verbose] > │ on_startup!(Spiral_eval::method0()); │
00:00:13 #760 [Verbose] > │ } │
00:00:13 #761 [Verbose] > │ } │
00:00:13 #762 [Verbose] > │ pub use module_ccfa04bf::*; │
00:00:13 #763 [Verbose] > │ │
00:00:13 #764 [Verbose] > │ │
00:00:13 #765 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #766 [Verbose] >
00:00:13 #767 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:13 #768 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:13 #769 [Verbose] > │ ## nameof │
00:00:13 #770 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #771 [Verbose] >
00:00:13 #772 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:13 #773 [Verbose] > inl nameof x : string =
00:00:13 #774 [Verbose] > $"nameof !x"
00:00:13 #775 [Verbose] > Building /tmp/!dotnet-repl/20240325-2022-5436-3661-344509cbcd1a/main.spi
00:00:14 #776 [Verbose] >
00:00:14 #777 [Verbose] > ╭─[ 184.39ms - stdout ]────────────────────────────────────────────────────────╮
00:00:14 #778 [Verbose] > │ () │
00:00:14 #779 [Verbose] > │ │
00:00:14 #780 [Verbose] > │ │
00:00:14 #781 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #782 [Verbose] >
00:00:14 #783 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:14 #784 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:14 #785 [Verbose] > │ ## get_environment_variable │
00:00:14 #786 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #787 [Verbose] >
00:00:14 #788 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:14 #789 [Verbose] > inl get_environment_variable (var : string) : string =
00:00:14 #790 [Verbose] > $"System.Environment.GetEnvironmentVariable !var"
00:00:14 #791 [Verbose] > Building /tmp/!dotnet-repl/20240325-2022-5455-5527-57e40ad54615/main.spi
00:00:14 #792 [Verbose] >
00:00:14 #793 [Verbose] > ╭─[ 131.93ms - stdout ]────────────────────────────────────────────────────────╮
00:00:14 #794 [Verbose] > │ () │
00:00:14 #795 [Verbose] > │ │
00:00:14 #796 [Verbose] > │ │
00:00:14 #797 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #798 [Verbose] >
00:00:14 #799 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:14 #800 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:14 #801 [Verbose] > │ ## new_raw_guid │
00:00:14 #802 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #803 [Verbose] >
00:00:14 #804 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:14 #805 [Verbose] > inl new_raw_guid () : guid =
00:00:14 #806 [Verbose] > $"`guid.NewGuid ()"
00:00:14 #807 [Verbose] > Building /tmp/!dotnet-repl/20240325-2022-5468-6842-66b7056f5a2f/main.spi
00:00:14 #808 [Verbose] >
00:00:14 #809 [Verbose] > ╭─[ 150.56ms - stdout ]────────────────────────────────────────────────────────╮
00:00:14 #810 [Verbose] > │ () │
00:00:14 #811 [Verbose] > │ │
00:00:14 #812 [Verbose] > │ │
00:00:14 #813 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #814 [Verbose] > [NbConvertApp] Converting notebook common.dib.ipynb to html
00:00:15 #815 [Verbose] > /opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/nbformat/__init__.py:96: MissingIDFieldWarning: Cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:00:15 #816 [Verbose] > validate(nb)
00:00:15 #817 [Verbose] > /opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/nbconvert/filters/highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:00:15 #818 [Verbose] > return _pygments_highlight(
00:00:15 #819 [Verbose] > [NbConvertApp] Writing 339251 bytes to common.dib.html
00:00:16 #820 [Debug] executeAsync / exitCode: 0 / output.Length: 56426
00:00:16 #821 [Debug] main / executeCommand / exitCode: 0
00:00:00 #1 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #2 [Debug] executeAsync / options: { Command =
"dotnet "/home/runner/work/polyglot/polyglot/deps/The-Spiral-Language/The Spiral Language 2/artifacts/bin/The Spiral Language 2/release/Spiral.dll" --port 13805 --default-int i32 --default-float f64"
WorkingDirectory = None
CancellationToken = Some System.Threading.CancellationToken
OnLine = Some <fun:main@464-1020> }
00:00:00 #3 [Verbose] > pwd: /home/runner/work/polyglot/polyglot/lib/spiral
00:00:00 #4 [Verbose] > dll_path: /home/runner/work/polyglot/polyglot/deps/The-Spiral-Language/The Spiral Language 2/artifacts/bin/The Spiral Language 2/release
00:00:00 #5 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #6 [Verbose] waitForPortAccess / port: 13805 / retry: 0
00:00:00 #7 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #8 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #9 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #10 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #11 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #12 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #13 [Verbose] > Starting the Spiral Server. It is bound to: http://localhost:13805
00:00:00 #14 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #15 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #16 [Debug] sendJson / port: 13805 / json: {"Ping":true} / result.Length:
00:00:00 #17 [Verbose] awaitCompiler / Ping / result: Some(null) / port: 13805 / retry: 0
00:00:00 #18 [Verbose] > Server bound to: http://localhost:13805
00:00:00 #19 [Debug] executeAsync / options: { Command = "pwsh -c "../../scripts/invoke-dib.ps1 console.dib""
WorkingDirectory = None
CancellationToken = Some System.Threading.CancellationToken
OnLine = None }
00:00:02 #20 [Verbose] >
00:00:02 #21 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:02 #22 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:02 #23 [Verbose] > │ # console │
00:00:02 #24 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:02 #25 [Verbose] >
00:00:02 #26 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:02 #27 [Verbose] > // // test
00:00:02 #28 [Verbose] >
00:00:02 #29 [Verbose] > open testing
00:00:04 #30 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-0073-7357-704353bf1b34/main.spi
00:00:06 #31 [Verbose] >
00:00:06 #32 [Verbose] > ╭─[ 3.79s - stdout ]───────────────────────────────────────────────────────────╮
00:00:06 #33 [Verbose] > │ () │
00:00:06 #34 [Verbose] > │ │
00:00:06 #35 [Verbose] > │ │
00:00:06 #36 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:06 #37 [Verbose] >
00:00:06 #38 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:06 #39 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:06 #40 [Verbose] > │ ## write_line │
00:00:06 #41 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:06 #42 [Verbose] >
00:00:06 #43 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:06 #44 [Verbose] > inl write_line obj : () =
00:00:06 #45 [Verbose] > $"System.Console.WriteLine !obj"
00:00:06 #46 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-0319-1910-139101bc8840/main.spi
00:00:06 #47 [Verbose] >
00:00:06 #48 [Verbose] > ╭─[ 205.50ms - stdout ]────────────────────────────────────────────────────────╮
00:00:06 #49 [Verbose] > │ () │
00:00:06 #50 [Verbose] > │ │
00:00:06 #51 [Verbose] > │ │
00:00:06 #52 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:06 #53 [Verbose] >
00:00:06 #54 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:06 #55 [Verbose] > inl write_line_ ~obj : () =
00:00:06 #56 [Verbose] > $"System.Console.WriteLine !obj"
00:00:06 #57 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-0339-3926-3855ad85d3cc/main.spi
00:00:06 #58 [Verbose] >
00:00:06 #59 [Verbose] > ╭─[ 159.43ms - stdout ]────────────────────────────────────────────────────────╮
00:00:06 #60 [Verbose] > │ () │
00:00:06 #61 [Verbose] > │ │
00:00:06 #62 [Verbose] > │ │
00:00:06 #63 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:06 #64 [Verbose] >
00:00:06 #65 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:06 #66 [Verbose] > nominal console_color = $"System.ConsoleColor"
00:00:06 #67 [Verbose] >
00:00:06 #68 [Verbose] > inl reset_color () : () =
00:00:06 #69 [Verbose] > run_target function
00:00:06 #70 [Verbose] > | Fsharp => fun () => $"System.Console.ResetColor ()"
00:00:06 #71 [Verbose] > | _ => fun () => ()
00:00:06 #72 [Verbose] >
00:00:06 #73 [Verbose] > inl set_foreground_color (color : console_color) : () =
00:00:06 #74 [Verbose] > run_target function
00:00:06 #75 [Verbose] > | Fsharp => fun () => $"System.Console.ForegroundColor <- !color"
00:00:06 #76 [Verbose] > | _ => fun () => ()
00:00:06 #77 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-0355-5542-54f1057116f1/main.spi
00:00:06 #78 [Verbose] >
00:00:06 #79 [Verbose] > ╭─[ 179.29ms - stdout ]────────────────────────────────────────────────────────╮
00:00:06 #80 [Verbose] > │ () │
00:00:06 #81 [Verbose] > │ │
00:00:06 #82 [Verbose] > │ │
00:00:06 #83 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #84 [Verbose] > [NbConvertApp] Converting notebook console.dib.ipynb to html
00:00:07 #85 [Verbose] > /opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/nbformat/__init__.py:96: MissingIDFieldWarning: Cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:00:07 #86 [Verbose] > validate(nb)
00:00:07 #87 [Verbose] > /opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/nbconvert/filters/highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:00:07 #88 [Verbose] > return _pygments_highlight(
00:00:07 #89 [Verbose] > [NbConvertApp] Writing 276929 bytes to console.dib.html
00:00:08 #90 [Debug] executeAsync / exitCode: 0 / output.Length: 4510
00:00:08 #91 [Debug] main / executeCommand / exitCode: 0
00:00:00 #1 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #2 [Debug] executeAsync / options: { Command =
"dotnet "/home/runner/work/polyglot/polyglot/deps/The-Spiral-Language/The Spiral Language 2/artifacts/bin/The Spiral Language 2/release/Spiral.dll" --port 13805 --default-int i32 --default-float f64"
WorkingDirectory = None
CancellationToken = Some System.Threading.CancellationToken
OnLine = Some <fun:main@464-1020> }
00:00:00 #3 [Verbose] > pwd: /home/runner/work/polyglot/polyglot/lib/spiral
00:00:00 #4 [Verbose] > dll_path: /home/runner/work/polyglot/polyglot/deps/The-Spiral-Language/The Spiral Language 2/artifacts/bin/The Spiral Language 2/release
00:00:00 #5 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #6 [Verbose] waitForPortAccess / port: 13805 / retry: 0
00:00:00 #7 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #8 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #9 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #10 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #11 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #12 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #13 [Verbose] > Starting the Spiral Server. It is bound to: http://localhost:13805
00:00:00 #14 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #15 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #16 [Debug] sendJson / port: 13805 / json: {"Ping":true} / result.Length:
00:00:00 #17 [Verbose] awaitCompiler / Ping / result: Some(null) / port: 13805 / retry: 0
00:00:00 #18 [Verbose] > Server bound to: http://localhost:13805
00:00:00 #19 [Debug] executeAsync / options: { Command = "pwsh -c "../../scripts/invoke-dib.ps1 math.dib""
WorkingDirectory = None
CancellationToken = Some System.Threading.CancellationToken
OnLine = None }
00:00:02 #20 [Verbose] >
00:00:02 #21 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:02 #22 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:02 #23 [Verbose] > │ # math │
00:00:02 #24 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:02 #25 [Verbose] >
00:00:02 #26 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:02 #27 [Verbose] > // // test
00:00:02 #28 [Verbose] >
00:00:02 #29 [Verbose] > open testing
00:00:04 #30 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-0935-3514-33f36a38714f/main.spi
00:00:06 #31 [Verbose] >
00:00:06 #32 [Verbose] > ╭─[ 3.80s - stdout ]───────────────────────────────────────────────────────────╮
00:00:06 #33 [Verbose] > │ () │
00:00:06 #34 [Verbose] > │ │
00:00:06 #35 [Verbose] > │ │
00:00:06 #36 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:06 #37 [Verbose] >
00:00:06 #38 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:06 #39 [Verbose] > // // test
00:00:06 #40 [Verbose] >
00:00:06 #41 [Verbose] > 2 * 2 / 0.4f64 |> sqrt
00:00:06 #42 [Verbose] > |> _assert_approx_eq None 3.1622776601683795
00:00:06 #43 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-1182-8255-8aab1b95c629/main.spi
00:00:06 #44 [Verbose] >
00:00:06 #45 [Verbose] > ╭─[ 545.45ms - stdout ]────────────────────────────────────────────────────────╮
00:00:06 #46 [Verbose] > │ let rec method0 () : unit = │
00:00:06 #47 [Verbose] > │ let v0 : string = $"__expect / actual: %A{3.1622776601683795} / │
00:00:06 #48 [Verbose] > │ expected: %A{3.1622776601683795}" │
00:00:06 #49 [Verbose] > │ () │
00:00:06 #50 [Verbose] > │ method0() │
00:00:06 #51 [Verbose] > │ │
00:00:06 #52 [Verbose] > │ │
00:00:06 #53 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:06 #54 [Verbose] >
00:00:06 #55 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:06 #56 [Verbose] > // // test
00:00:06 #57 [Verbose] >
00:00:06 #58 [Verbose] > 2f64 / 3
00:00:06 #59 [Verbose] > |> _assert_approx_eq None 0.6666666666666666
00:00:06 #60 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-1237-3710-387e3e188bf3/main.spi
00:00:06 #61 [Verbose] >
00:00:06 #62 [Verbose] > ╭─[ 159.89ms - stdout ]────────────────────────────────────────────────────────╮
00:00:06 #63 [Verbose] > │ let rec method0 () : unit = │
00:00:06 #64 [Verbose] > │ let v0 : string = $"__expect / actual: %A{0.6666666666666666} / │
00:00:06 #65 [Verbose] > │ expected: %A{0.6666666666666666}" │
00:00:06 #66 [Verbose] > │ () │
00:00:06 #67 [Verbose] > │ method0() │
00:00:06 #68 [Verbose] > │ │
00:00:06 #69 [Verbose] > │ │
00:00:06 #70 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:06 #71 [Verbose] >
00:00:06 #72 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:06 #73 [Verbose] > // // test
00:00:06 #74 [Verbose] >
00:00:06 #75 [Verbose] > 2f64 |> log
00:00:06 #76 [Verbose] > |> _assert_approx_eq None 0.6931471805599453
00:00:06 #77 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-1253-5302-56c7061b0ca6/main.spi
00:00:07 #78 [Verbose] >
00:00:07 #79 [Verbose] > ╭─[ 171.48ms - stdout ]────────────────────────────────────────────────────────╮
00:00:07 #80 [Verbose] > │ let rec method0 () : unit = │
00:00:07 #81 [Verbose] > │ let v0 : string = $"__expect / actual: %A{0.6931471805599453} / │
00:00:07 #82 [Verbose] > │ expected: %A{0.6931471805599453}" │
00:00:07 #83 [Verbose] > │ () │
00:00:07 #84 [Verbose] > │ method0() │
00:00:07 #85 [Verbose] > │ │
00:00:07 #86 [Verbose] > │ │
00:00:07 #87 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #88 [Verbose] >
00:00:07 #89 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:07 #90 [Verbose] > // // test
00:00:07 #91 [Verbose] >
00:00:07 #92 [Verbose] > pi
00:00:07 #93 [Verbose] > |> _assert_approx_eq None 3.141592653589793f64
00:00:07 #94 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-1270-7024-79766db7d0bb/main.spi
00:00:07 #95 [Verbose] >
00:00:07 #96 [Verbose] > ╭─[ 168.81ms - stdout ]────────────────────────────────────────────────────────╮
00:00:07 #97 [Verbose] > │ let rec method0 () : unit = │
00:00:07 #98 [Verbose] > │ let v0 : string = $"__expect / actual: %A{3.141592653589793} / expected: │
00:00:07 #99 [Verbose] > │ %A{3.141592653589793}" │
00:00:07 #100 [Verbose] > │ () │
00:00:07 #101 [Verbose] > │ method0() │
00:00:07 #102 [Verbose] > │ │
00:00:07 #103 [Verbose] > │ │
00:00:07 #104 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #105 [Verbose] >
00:00:07 #106 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:07 #107 [Verbose] > // // test
00:00:07 #108 [Verbose] >
00:00:07 #109 [Verbose] > pi |> cos
00:00:07 #110 [Verbose] > |> _assert_eq -1f64
00:00:07 #111 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-1287-8725-8ee0e03ac4b9/main.spi
00:00:07 #112 [Verbose] >
00:00:07 #113 [Verbose] > ╭─[ 170.59ms - stdout ]────────────────────────────────────────────────────────╮
00:00:07 #114 [Verbose] > │ let rec method0 () : unit = │
00:00:07 #115 [Verbose] > │ let v0 : string = $"__expect / actual: %A{-1.0} / expected: %A{-1.0}" │
00:00:07 #116 [Verbose] > │ () │
00:00:07 #117 [Verbose] > │ method0() │
00:00:07 #118 [Verbose] > │ │
00:00:07 #119 [Verbose] > │ │
00:00:07 #120 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #121 [Verbose] >
00:00:07 #122 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:07 #123 [Verbose] > // // test
00:00:07 #124 [Verbose] >
00:00:07 #125 [Verbose] > pi
00:00:07 #126 [Verbose] > |> cos
00:00:07 #127 [Verbose] > |> fun n => n / 2f64
00:00:07 #128 [Verbose] > |> _assert_approx_eq None -0.5
00:00:07 #129 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-1304-0441-0d847522b8d3/main.spi
00:00:07 #130 [Verbose] >
00:00:07 #131 [Verbose] > ╭─[ 158.71ms - stdout ]────────────────────────────────────────────────────────╮
00:00:07 #132 [Verbose] > │ let rec method0 () : unit = │
00:00:07 #133 [Verbose] > │ let v0 : string = $"__expect / actual: %A{-0.5} / expected: %A{-0.5}" │
00:00:07 #134 [Verbose] > │ () │
00:00:07 #135 [Verbose] > │ method0() │
00:00:07 #136 [Verbose] > │ │
00:00:07 #137 [Verbose] > │ │
00:00:07 #138 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #139 [Verbose] >
00:00:07 #140 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:07 #141 [Verbose] > // // test
00:00:07 #142 [Verbose] >
00:00:07 #143 [Verbose] > pi / 2 |> cos
00:00:07 #144 [Verbose] > |> _assert_approx_eq None 0.00000000000000006123233995736766f64
00:00:07 #145 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-1320-2024-2a14a6f79091/main.spi
00:00:07 #146 [Verbose] >
00:00:07 #147 [Verbose] > ╭─[ 163.30ms - stdout ]────────────────────────────────────────────────────────╮
00:00:07 #148 [Verbose] > │ let rec method0 () : unit = │
00:00:07 #149 [Verbose] > │ let v0 : string = $"__expect / actual: %A{6.123233995736766E-17} / │
00:00:07 #150 [Verbose] > │ expected: %A{6.123233995736766E-17}" │
00:00:07 #151 [Verbose] > │ () │
00:00:07 #152 [Verbose] > │ method0() │
00:00:07 #153 [Verbose] > │ │
00:00:07 #154 [Verbose] > │ │
00:00:07 #155 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #156 [Verbose] >
00:00:07 #157 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:07 #158 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:07 #159 [Verbose] > │ ## atan2 │
00:00:07 #160 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #161 [Verbose] >
00:00:07 #162 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:07 #163 [Verbose] > inl atan2 (y : f64) (x : f64) =
00:00:07 #164 [Verbose] > $"System.Math.Atan2 (!y, !x)" : f64
00:00:07 #165 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-1337-3703-353315c9ea35/main.spi
00:00:07 #166 [Verbose] >
00:00:07 #167 [Verbose] > ╭─[ 159.70ms - stdout ]────────────────────────────────────────────────────────╮
00:00:07 #168 [Verbose] > │ () │
00:00:07 #169 [Verbose] > │ │
00:00:07 #170 [Verbose] > │ │
00:00:07 #171 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #172 [Verbose] >
00:00:07 #173 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:07 #174 [Verbose] > // // test
00:00:07 #175 [Verbose] >
00:00:07 #176 [Verbose] > 0 |> atan2 1
00:00:07 #177 [Verbose] > |> _assert_eq 1.5707963267948966
00:00:07 #178 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-1352-5275-5cf2de489204/main.spi
00:00:08 #179 [Verbose] >
00:00:08 #180 [Verbose] > ╭─[ 345.79ms - stdout ]────────────────────────────────────────────────────────╮
00:00:08 #181 [Verbose] > │ let rec method1 (v0 : bool) : bool = │
00:00:08 #182 [Verbose] > │ v0 │
00:00:08 #183 [Verbose] > │ and method0 () : unit = │
00:00:08 #184 [Verbose] > │ let v0 : float = System.Math.Atan2 (1.0, 0.0) │
00:00:08 #185 [Verbose] > │ let v1 : bool = v0 = 1.5707963267948966 │
00:00:08 #186 [Verbose] > │ let v3 : bool = │
00:00:08 #187 [Verbose] > │ if v1 then │
00:00:08 #188 [Verbose] > │ true │
00:00:08 #189 [Verbose] > │ else │
00:00:08 #190 [Verbose] > │ method1(v1) │
00:00:08 #191 [Verbose] > │ let v4 : string = $"__expect / actual: %A{v0} / expected: │
00:00:08 #192 [Verbose] > │ %A{1.5707963267948966}" │
00:00:08 #193 [Verbose] > │ let v5 : bool = v3 = false │
00:00:08 #194 [Verbose] > │ if v5 then │
00:00:08 #195 [Verbose] > │ failwith<unit> v4 │
00:00:08 #196 [Verbose] > │ method0() │
00:00:08 #197 [Verbose] > │ │
00:00:08 #198 [Verbose] > │ │
00:00:08 #199 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #200 [Verbose] >
00:00:08 #201 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:08 #202 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:08 #203 [Verbose] > │ ## e │
00:00:08 #204 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #205 [Verbose] >
00:00:08 #206 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:08 #207 [Verbose] > inl e () =
00:00:08 #208 [Verbose] > exp 1f64
00:00:08 #209 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-1387-8753-8e88dac32788/main.spi
00:00:08 #210 [Verbose] >
00:00:08 #211 [Verbose] > ╭─[ 151.09ms - stdout ]────────────────────────────────────────────────────────╮
00:00:08 #212 [Verbose] > │ () │
00:00:08 #213 [Verbose] > │ │
00:00:08 #214 [Verbose] > │ │
00:00:08 #215 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #216 [Verbose] >
00:00:08 #217 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:08 #218 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:08 #219 [Verbose] > │ ## floor │
00:00:08 #220 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #221 [Verbose] >
00:00:08 #222 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:08 #223 [Verbose] > inl floor forall t {float}. (x : t) : t =
00:00:08 #224 [Verbose] > $"floor !x"
00:00:08 #225 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-1402-0275-023d51ad1423/main.spi
00:00:08 #226 [Verbose] >
00:00:08 #227 [Verbose] > ╭─[ 163.32ms - stdout ]────────────────────────────────────────────────────────╮
00:00:08 #228 [Verbose] > │ () │
00:00:08 #229 [Verbose] > │ │
00:00:08 #230 [Verbose] > │ │
00:00:08 #231 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #232 [Verbose] >
00:00:08 #233 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:08 #234 [Verbose] > // // test
00:00:08 #235 [Verbose] >
00:00:08 #236 [Verbose] > 0.6 |> floor
00:00:08 #237 [Verbose] > |> _assert_eq 0f64
00:00:08 #238 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-1419-1920-13275135de3b/main.spi
00:00:08 #239 [Verbose] >
00:00:08 #240 [Verbose] > ╭─[ 208.53ms - stdout ]────────────────────────────────────────────────────────╮
00:00:08 #241 [Verbose] > │ let rec method1 (v0 : bool) : bool = │
00:00:08 #242 [Verbose] > │ v0 │
00:00:08 #243 [Verbose] > │ and method0 () : unit = │
00:00:08 #244 [Verbose] > │ let v0 : float = floor 0.6 │
00:00:08 #245 [Verbose] > │ let v1 : bool = v0 = 0.0 │
00:00:08 #246 [Verbose] > │ let v3 : bool = │
00:00:08 #247 [Verbose] > │ if v1 then │
00:00:08 #248 [Verbose] > │ true │
00:00:08 #249 [Verbose] > │ else │
00:00:08 #250 [Verbose] > │ method1(v1) │
00:00:08 #251 [Verbose] > │ let v4 : string = $"__expect / actual: %A{v0} / expected: %A{0.0}" │
00:00:08 #252 [Verbose] > │ let v5 : bool = v3 = false │
00:00:08 #253 [Verbose] > │ if v5 then │
00:00:08 #254 [Verbose] > │ failwith<unit> v4 │
00:00:08 #255 [Verbose] > │ method0() │
00:00:08 #256 [Verbose] > │ │
00:00:08 #257 [Verbose] > │ │
00:00:08 #258 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #259 [Verbose] >
00:00:08 #260 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:08 #261 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:08 #262 [Verbose] > │ ## log_base │
00:00:08 #263 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #264 [Verbose] >
00:00:08 #265 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:08 #266 [Verbose] > inl log_base (new_base : f64) (a : f64) =
00:00:08 #267 [Verbose] > $"System.Math.Log (!a, !new_base)" : f64
00:00:08 #268 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-1440-4046-416bd7d9ad30/main.spi
00:00:08 #269 [Verbose] >
00:00:08 #270 [Verbose] > ╭─[ 158.71ms - stdout ]────────────────────────────────────────────────────────╮
00:00:08 #271 [Verbose] > │ () │
00:00:08 #272 [Verbose] > │ │
00:00:08 #273 [Verbose] > │ │
00:00:08 #274 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #275 [Verbose] >
00:00:08 #276 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:08 #277 [Verbose] > // // test
00:00:08 #278 [Verbose] >
00:00:08 #279 [Verbose] > 100 |> log_base 10
00:00:08 #280 [Verbose] > |> _assert_eq 2
00:00:09 #281 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-1456-5642-521d9c850d8e/main.spi
00:00:09 #282 [Verbose] >
00:00:09 #283 [Verbose] > ╭─[ 159.47ms - stdout ]────────────────────────────────────────────────────────╮
00:00:09 #284 [Verbose] > │ let rec method1 (v0 : bool) : bool = │
00:00:09 #285 [Verbose] > │ v0 │
00:00:09 #286 [Verbose] > │ and method0 () : unit = │
00:00:09 #287 [Verbose] > │ let v0 : float = System.Math.Log (100.0, 10.0) │
00:00:09 #288 [Verbose] > │ let v1 : bool = v0 = 2.0 │
00:00:09 #289 [Verbose] > │ let v3 : bool = │
00:00:09 #290 [Verbose] > │ if v1 then │
00:00:09 #291 [Verbose] > │ true │
00:00:09 #292 [Verbose] > │ else │
00:00:09 #293 [Verbose] > │ method1(v1) │
00:00:09 #294 [Verbose] > │ let v4 : string = $"__expect / actual: %A{v0} / expected: %A{2.0}" │
00:00:09 #295 [Verbose] > │ let v5 : bool = v3 = false │
00:00:09 #296 [Verbose] > │ if v5 then │
00:00:09 #297 [Verbose] > │ failwith<unit> v4 │
00:00:09 #298 [Verbose] > │ method0() │
00:00:09 #299 [Verbose] > │ │
00:00:09 #300 [Verbose] > │ │
00:00:09 #301 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #302 [Verbose] >
00:00:09 #303 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:09 #304 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:09 #305 [Verbose] > │ ## round │
00:00:09 #306 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #307 [Verbose] >
00:00:09 #308 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:09 #309 [Verbose] > inl round forall t {float}. (x : t) : t =
00:00:09 #310 [Verbose] > $"round !x"
00:00:09 #311 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-1472-7245-780388c03e04/main.spi
00:00:09 #312 [Verbose] >
00:00:09 #313 [Verbose] > ╭─[ 148.88ms - stdout ]────────────────────────────────────────────────────────╮
00:00:09 #314 [Verbose] > │ () │
00:00:09 #315 [Verbose] > │ │
00:00:09 #316 [Verbose] > │ │
00:00:09 #317 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #318 [Verbose] >
00:00:09 #319 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:09 #320 [Verbose] > // // test
00:00:09 #321 [Verbose] >
00:00:09 #322 [Verbose] > 0.5 |> round
00:00:09 #323 [Verbose] > |> _assert_eq 0f64
00:00:09 #324 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-1487-8740-82db8325eb5d/main.spi
00:00:09 #325 [Verbose] >
00:00:09 #326 [Verbose] > ╭─[ 143.74ms - stdout ]────────────────────────────────────────────────────────╮
00:00:09 #327 [Verbose] > │ let rec method1 (v0 : bool) : bool = │
00:00:09 #328 [Verbose] > │ v0 │
00:00:09 #329 [Verbose] > │ and method0 () : unit = │
00:00:09 #330 [Verbose] > │ let v0 : float = round 0.5 │
00:00:09 #331 [Verbose] > │ let v1 : bool = v0 = 0.0 │
00:00:09 #332 [Verbose] > │ let v3 : bool = │
00:00:09 #333 [Verbose] > │ if v1 then │
00:00:09 #334 [Verbose] > │ true │
00:00:09 #335 [Verbose] > │ else │
00:00:09 #336 [Verbose] > │ method1(v1) │
00:00:09 #337 [Verbose] > │ let v4 : string = $"__expect / actual: %A{v0} / expected: %A{0.0}" │
00:00:09 #338 [Verbose] > │ let v5 : bool = v3 = false │
00:00:09 #339 [Verbose] > │ if v5 then │
00:00:09 #340 [Verbose] > │ failwith<unit> v4 │
00:00:09 #341 [Verbose] > │ method0() │
00:00:09 #342 [Verbose] > │ │
00:00:09 #343 [Verbose] > │ │
00:00:09 #344 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #345 [Verbose] >
00:00:09 #346 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:09 #347 [Verbose] > // // test
00:00:09 #348 [Verbose] >
00:00:09 #349 [Verbose] > 0.6 |> round
00:00:09 #350 [Verbose] > |> _assert_eq 1f64
00:00:09 #351 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-1502-0212-0bb692da58dc/main.spi
00:00:09 #352 [Verbose] >
00:00:09 #353 [Verbose] > ╭─[ 145.07ms - stdout ]────────────────────────────────────────────────────────╮
00:00:09 #354 [Verbose] > │ let rec method1 (v0 : bool) : bool = │
00:00:09 #355 [Verbose] > │ v0 │
00:00:09 #356 [Verbose] > │ and method0 () : unit = │
00:00:09 #357 [Verbose] > │ let v0 : float = round 0.6 │
00:00:09 #358 [Verbose] > │ let v1 : bool = v0 = 1.0 │
00:00:09 #359 [Verbose] > │ let v3 : bool = │
00:00:09 #360 [Verbose] > │ if v1 then │
00:00:09 #361 [Verbose] > │ true │
00:00:09 #362 [Verbose] > │ else │
00:00:09 #363 [Verbose] > │ method1(v1) │
00:00:09 #364 [Verbose] > │ let v4 : string = $"__expect / actual: %A{v0} / expected: %A{1.0}" │
00:00:09 #365 [Verbose] > │ let v5 : bool = v3 = false │
00:00:09 #366 [Verbose] > │ if v5 then │
00:00:09 #367 [Verbose] > │ failwith<unit> v4 │
00:00:09 #368 [Verbose] > │ method0() │
00:00:09 #369 [Verbose] > │ │
00:00:09 #370 [Verbose] > │ │
00:00:09 #371 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #372 [Verbose] >
00:00:09 #373 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:09 #374 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:09 #375 [Verbose] > │ ## square │
00:00:09 #376 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #377 [Verbose] >
00:00:09 #378 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:09 #379 [Verbose] > inl square x =
00:00:09 #380 [Verbose] > x ** 2
00:00:09 #381 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-1516-1666-179f0b6a9526/main.spi
00:00:09 #382 [Verbose] >
00:00:09 #383 [Verbose] > ╭─[ 136.13ms - stdout ]────────────────────────────────────────────────────────╮
00:00:09 #384 [Verbose] > │ () │
00:00:09 #385 [Verbose] > │ │
00:00:09 #386 [Verbose] > │ │
00:00:09 #387 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #388 [Verbose] >
00:00:09 #389 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:09 #390 [Verbose] > // // test
00:00:09 #391 [Verbose] >
00:00:09 #392 [Verbose] > 5f64
00:00:09 #393 [Verbose] > |> sqrt
00:00:09 #394 [Verbose] > |> square
00:00:09 #395 [Verbose] > |> _assert_approx_eq None 5
00:00:09 #396 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-1530-3034-33f99e2aabf8/main.spi
00:00:09 #397 [Verbose] >
00:00:09 #398 [Verbose] > ╭─[ 138.70ms - stdout ]────────────────────────────────────────────────────────╮
00:00:09 #399 [Verbose] > │ let rec method0 () : unit = │
00:00:09 #400 [Verbose] > │ let v0 : string = $"__expect / actual: %A{5.000000000000001} / expected: │
00:00:09 #401 [Verbose] > │ %A{5.0}" │
00:00:09 #402 [Verbose] > │ () │
00:00:09 #403 [Verbose] > │ method0() │
00:00:09 #404 [Verbose] > │ │
00:00:09 #405 [Verbose] > │ │
00:00:09 #406 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #407 [Verbose] >
00:00:09 #408 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:09 #409 [Verbose] > // // test
00:00:09 #410 [Verbose] >
00:00:09 #411 [Verbose] > e () |> square
00:00:09 #412 [Verbose] > |> _assert_approx_eq None 7.3890560989306495
00:00:09 #413 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-1544-4427-49d897ba1fc3/main.spi
00:00:09 #414 [Verbose] >
00:00:09 #415 [Verbose] > ╭─[ 134.98ms - stdout ]────────────────────────────────────────────────────────╮
00:00:09 #416 [Verbose] > │ let rec method0 () : unit = │
00:00:09 #417 [Verbose] > │ let v0 : string = $"__expect / actual: %A{7.3890560989306495} / │
00:00:09 #418 [Verbose] > │ expected: %A{7.3890560989306495}" │
00:00:09 #419 [Verbose] > │ () │
00:00:09 #420 [Verbose] > │ method0() │
00:00:09 #421 [Verbose] > │ │
00:00:09 #422 [Verbose] > │ │
00:00:09 #423 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #424 [Verbose] > [NbConvertApp] Converting notebook math.dib.ipynb to html
00:00:10 #425 [Verbose] > /opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/nbformat/__init__.py:96: MissingIDFieldWarning: Cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:00:10 #426 [Verbose] > validate(nb)
00:00:11 #427 [Verbose] > /opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/nbconvert/filters/highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:00:11 #428 [Verbose] > return _pygments_highlight(
00:00:11 #429 [Verbose] > [NbConvertApp] Writing 302862 bytes to math.dib.html
00:00:11 #430 [Debug] executeAsync / exitCode: 0 / output.Length: 28739
00:00:11 #431 [Debug] main / executeCommand / exitCode: 0
00:00:00 #1 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #2 [Debug] executeAsync / options: { Command =
"dotnet "/home/runner/work/polyglot/polyglot/deps/The-Spiral-Language/The Spiral Language 2/artifacts/bin/The Spiral Language 2/release/Spiral.dll" --port 13805 --default-int i32 --default-float f64"
WorkingDirectory = None
CancellationToken = Some System.Threading.CancellationToken
OnLine = Some <fun:main@464-1020> }
00:00:00 #3 [Verbose] > pwd: /home/runner/work/polyglot/polyglot/lib/spiral
00:00:00 #4 [Verbose] > dll_path: /home/runner/work/polyglot/polyglot/deps/The-Spiral-Language/The Spiral Language 2/artifacts/bin/The Spiral Language 2/release
00:00:00 #5 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #6 [Verbose] waitForPortAccess / port: 13805 / retry: 0
00:00:00 #7 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #8 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #9 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #10 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #11 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #12 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #13 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #14 [Verbose] > Starting the Spiral Server. It is bound to: http://localhost:13805
00:00:00 #15 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #16 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #17 [Debug] sendJson / port: 13805 / json: {"Ping":true} / result.Length:
00:00:00 #18 [Verbose] awaitCompiler / Ping / result: Some(null) / port: 13805 / retry: 0
00:00:00 #19 [Verbose] > Server bound to: http://localhost:13805
00:00:00 #20 [Debug] executeAsync / options: { Command = "pwsh -c "../../scripts/invoke-dib.ps1 \"optionm'.dib\"""
WorkingDirectory = None
CancellationToken = Some System.Threading.CancellationToken
OnLine = None }
00:00:02 #21 [Verbose] >
00:00:02 #22 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:02 #23 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:02 #24 [Verbose] > │ # optionm │
00:00:02 #25 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:02 #26 [Verbose] >
00:00:02 #27 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:02 #28 [Verbose] > // // test
00:00:02 #29 [Verbose] >
00:00:02 #30 [Verbose] > open testing
00:00:04 #31 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-2133-3377-302bd403923b/main.spi
00:00:06 #32 [Verbose] >
00:00:06 #33 [Verbose] > ╭─[ 3.78s - stdout ]───────────────────────────────────────────────────────────╮
00:00:06 #34 [Verbose] > │ () │
00:00:06 #35 [Verbose] > │ │
00:00:06 #36 [Verbose] > │ │
00:00:06 #37 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:06 #38 [Verbose] >
00:00:06 #39 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:06 #40 [Verbose] > open rust_operators
00:00:06 #41 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-2377-7729-72dc496b927f/main.spi
00:00:06 #42 [Verbose] >
00:00:06 #43 [Verbose] > ╭─[ 173.30ms - stdout ]────────────────────────────────────────────────────────╮
00:00:06 #44 [Verbose] > │ () │
00:00:06 #45 [Verbose] > │ │
00:00:06 #46 [Verbose] > │ │
00:00:06 #47 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:06 #48 [Verbose] >
00:00:06 #49 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:06 #50 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:06 #51 [Verbose] > │ ## default_value │
00:00:06 #52 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:06 #53 [Verbose] >
00:00:06 #54 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:06 #55 [Verbose] > inl default_value d =
00:00:06 #56 [Verbose] > optionm.defaultWith d
00:00:06 #57 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-2394-9487-9e715344f62d/main.spi
00:00:06 #58 [Verbose] >
00:00:06 #59 [Verbose] > ╭─[ 185.81ms - stdout ]────────────────────────────────────────────────────────╮
00:00:06 #60 [Verbose] > │ () │
00:00:06 #61 [Verbose] > │ │
00:00:06 #62 [Verbose] > │ │
00:00:06 #63 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:06 #64 [Verbose] >
00:00:06 #65 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:06 #66 [Verbose] > // // test
00:00:06 #67 [Verbose] >
00:00:06 #68 [Verbose] > None
00:00:06 #69 [Verbose] > |> default_value 3i32
00:00:06 #70 [Verbose] > |> _assert_eq 3i32
00:00:06 #71 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-2413-1322-1e1843925b61/main.spi
00:00:07 #72 [Verbose] >
00:00:07 #73 [Verbose] > ╭─[ 500.05ms - stdout ]────────────────────────────────────────────────────────╮
00:00:07 #74 [Verbose] > │ let rec method0 () : unit = │
00:00:07 #75 [Verbose] > │ let v0 : string = $"__expect / actual: %A{3} / expected: %A{3}" │
00:00:07 #76 [Verbose] > │ () │
00:00:07 #77 [Verbose] > │ method0() │
00:00:07 #78 [Verbose] > │ │
00:00:07 #79 [Verbose] > │ │
00:00:07 #80 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #81 [Verbose] >
00:00:07 #82 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:07 #83 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:07 #84 [Verbose] > │ ## (/??) │
00:00:07 #85 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #86 [Verbose] >
00:00:07 #87 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:07 #88 [Verbose] > inl (/??) a b =
00:00:07 #89 [Verbose] > a |> default_value b
00:00:07 #90 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-2463-6330-6f94743db366/main.spi
00:00:07 #91 [Verbose] >
00:00:07 #92 [Verbose] > ╭─[ 137.74ms - stdout ]────────────────────────────────────────────────────────╮
00:00:07 #93 [Verbose] > │ () │
00:00:07 #94 [Verbose] > │ │
00:00:07 #95 [Verbose] > │ │
00:00:07 #96 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #97 [Verbose] >
00:00:07 #98 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:07 #99 [Verbose] > // // test
00:00:07 #100 [Verbose] >
00:00:07 #101 [Verbose] > None /?? 3i32
00:00:07 #102 [Verbose] > |> _assert_eq 3i32
00:00:07 #103 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-2477-7717-747e963d322e/main.spi
00:00:07 #104 [Verbose] >
00:00:07 #105 [Verbose] > ╭─[ 146.19ms - stdout ]────────────────────────────────────────────────────────╮
00:00:07 #106 [Verbose] > │ let rec method0 () : unit = │
00:00:07 #107 [Verbose] > │ let v0 : string = $"__expect / actual: %A{3} / expected: %A{3}" │
00:00:07 #108 [Verbose] > │ () │
00:00:07 #109 [Verbose] > │ method0() │
00:00:07 #110 [Verbose] > │ │
00:00:07 #111 [Verbose] > │ │
00:00:07 #112 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #113 [Verbose] >
00:00:07 #114 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:07 #115 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:07 #116 [Verbose] > │ ## default_with │
00:00:07 #117 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #118 [Verbose] >
00:00:07 #119 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:07 #120 [Verbose] > inl default_with fn =
00:00:07 #121 [Verbose] > function Some x => x | None => fn ()
00:00:07 #122 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-2491-9192-96c71315111c/main.spi
00:00:07 #123 [Verbose] >
00:00:07 #124 [Verbose] > ╭─[ 135.53ms - stdout ]────────────────────────────────────────────────────────╮
00:00:07 #125 [Verbose] > │ () │
00:00:07 #126 [Verbose] > │ │
00:00:07 #127 [Verbose] > │ │
00:00:07 #128 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #129 [Verbose] >
00:00:07 #130 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:07 #131 [Verbose] > // // test
00:00:07 #132 [Verbose] >
00:00:07 #133 [Verbose] > None
00:00:07 #134 [Verbose] > |> default_with (fun () => 3i32)
00:00:07 #135 [Verbose] > |> _assert_eq 3i32
00:00:07 #136 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-2505-0545-0222f4325b76/main.spi
00:00:07 #137 [Verbose] >
00:00:07 #138 [Verbose] > ╭─[ 143.15ms - stdout ]────────────────────────────────────────────────────────╮
00:00:07 #139 [Verbose] > │ let rec method0 () : unit = │
00:00:07 #140 [Verbose] > │ let v0 : string = $"__expect / actual: %A{3} / expected: %A{3}" │
00:00:07 #141 [Verbose] > │ () │
00:00:07 #142 [Verbose] > │ method0() │
00:00:07 #143 [Verbose] > │ │
00:00:07 #144 [Verbose] > │ │
00:00:07 #145 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #146 [Verbose] >
00:00:07 #147 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:07 #148 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:07 #149 [Verbose] > │ ## choose │
00:00:07 #150 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #151 [Verbose] >
00:00:07 #152 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:07 #153 [Verbose] > inl choose fn a b =
00:00:07 #154 [Verbose] > match a, b with
00:00:07 #155 [Verbose] > | Some x, Some y => fn x y |> Some
00:00:07 #156 [Verbose] > | _ => None
00:00:07 #157 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-2519-1989-1087140a550f/main.spi
00:00:07 #158 [Verbose] >
00:00:07 #159 [Verbose] > ╭─[ 139.46ms - stdout ]────────────────────────────────────────────────────────╮
00:00:07 #160 [Verbose] > │ () │
00:00:07 #161 [Verbose] > │ │
00:00:07 #162 [Verbose] > │ │
00:00:07 #163 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #164 [Verbose] >
00:00:07 #165 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:07 #166 [Verbose] > // // test
00:00:07 #167 [Verbose] >
00:00:07 #168 [Verbose] > (Some 2i32, Some 3)
00:00:07 #169 [Verbose] > ||> choose (+)
00:00:07 #170 [Verbose] > |> _assert_eq (Some 5)
00:00:07 #171 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-2533-3389-37e387bf8cab/main.spi
00:00:08 #172 [Verbose] >
00:00:08 #173 [Verbose] > ╭─[ 644.99ms - stdout ]────────────────────────────────────────────────────────╮
00:00:08 #174 [Verbose] > │ type [<Struct>] US0 = │
00:00:08 #175 [Verbose] > │ | US0_0 │
00:00:08 #176 [Verbose] > │ | US0_1 of f1_0 : int32 │
00:00:08 #177 [Verbose] > │ let rec method0 () : unit = │
00:00:08 #178 [Verbose] > │ let v3 : US0 = US0_1(5) │
00:00:08 #179 [Verbose] > │ let v4 : US0 = US0_1(5) │
00:00:08 #180 [Verbose] > │ let v5 : string = $"__expect / actual: %A{v3} / expected: %A{v4}" │
00:00:08 #181 [Verbose] > │ () │
00:00:08 #182 [Verbose] > │ method0() │
00:00:08 #183 [Verbose] > │ │
00:00:08 #184 [Verbose] > │ │
00:00:08 #185 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #186 [Verbose] >
00:00:08 #187 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:08 #188 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:08 #189 [Verbose] > │ ## iter │
00:00:08 #190 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #191 [Verbose] >
00:00:08 #192 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:08 #193 [Verbose] > inl iter fn = function
00:00:08 #194 [Verbose] > | Some x => fn x
00:00:08 #195 [Verbose] > | None => ()
00:00:08 #196 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-2598-9857-9d57d336a45c/main.spi
00:00:08 #197 [Verbose] >
00:00:08 #198 [Verbose] > ╭─[ 137.42ms - stdout ]────────────────────────────────────────────────────────╮
00:00:08 #199 [Verbose] > │ () │
00:00:08 #200 [Verbose] > │ │
00:00:08 #201 [Verbose] > │ │
00:00:08 #202 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #203 [Verbose] >
00:00:08 #204 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:08 #205 [Verbose] > // // test
00:00:08 #206 [Verbose] >
00:00:08 #207 [Verbose] > inl n = mut 1i32
00:00:08 #208 [Verbose] > inl fn =
00:00:08 #209 [Verbose] > fun n' =>
00:00:08 #210 [Verbose] > n <- *n + n'
00:00:08 #211 [Verbose] > Some 1i32 |> iter fn
00:00:08 #212 [Verbose] > None |> iter fn
00:00:08 #213 [Verbose] > *n
00:00:08 #214 [Verbose] > |> _assert_eq 2i32
00:00:08 #215 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-2612-1233-1838c1162115/main.spi
00:00:08 #216 [Verbose] >
00:00:08 #217 [Verbose] > ╭─[ 277.15ms - stdout ]────────────────────────────────────────────────────────╮
00:00:08 #218 [Verbose] > │ type Mut0 = {mutable l0 : int32} │
00:00:08 #219 [Verbose] > │ let rec method1 (v0 : bool) : bool = │
00:00:08 #220 [Verbose] > │ v0 │
00:00:08 #221 [Verbose] > │ and method0 () : unit = │
00:00:08 #222 [Verbose] > │ let v0 : Mut0 = {l0 = 1} : Mut0 │
00:00:08 #223 [Verbose] > │ let v1 : int32 = v0.l0 │
00:00:08 #224 [Verbose] > │ let v2 : int32 = v1 + 1 │
00:00:08 #225 [Verbose] > │ v0.l0 <- v2 │
00:00:08 #226 [Verbose] > │ let v3 : int32 = v0.l0 │
00:00:08 #227 [Verbose] > │ let v4 : bool = v3 = 2 │
00:00:08 #228 [Verbose] > │ let v6 : bool = │
00:00:08 #229 [Verbose] > │ if v4 then │
00:00:08 #230 [Verbose] > │ true │
00:00:08 #231 [Verbose] > │ else │
00:00:08 #232 [Verbose] > │ method1(v4) │
00:00:08 #233 [Verbose] > │ let v7 : string = $"__expect / actual: %A{v3} / expected: %A{2}" │
00:00:08 #234 [Verbose] > │ let v8 : bool = v6 = false │
00:00:08 #235 [Verbose] > │ if v8 then │
00:00:08 #236 [Verbose] > │ failwith<unit> v7 │
00:00:08 #237 [Verbose] > │ method0() │
00:00:08 #238 [Verbose] > │ │
00:00:08 #239 [Verbose] > │ │
00:00:08 #240 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #241 [Verbose] >
00:00:08 #242 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:08 #243 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:08 #244 [Verbose] > │ ## option' │
00:00:08 #245 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #246 [Verbose] >
00:00:08 #247 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:08 #248 [Verbose] > nominal option' t = $"`t option"
00:00:08 #249 [Verbose] >
00:00:08 #250 [Verbose] > inl unbox forall t. (x : option' t) : option t =
00:00:08 #251 [Verbose] > inl some x : option t = Some x
00:00:08 #252 [Verbose] > inl none : option t = None
00:00:08 #253 [Verbose] > $"!x |> Option.map !some |> Option.defaultValue !none"
00:00:08 #254 [Verbose] >
00:00:08 #255 [Verbose] > inl box forall t. (x : option t) : option' t =
00:00:08 #256 [Verbose] > match x with
00:00:08 #257 [Verbose] > | Some x => $"Some !x"
00:00:08 #258 [Verbose] > | None => $"None"
00:00:08 #259 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-2640-4029-4516ea28ab84/main.spi
00:00:09 #260 [Verbose] >
00:00:09 #261 [Verbose] > ╭─[ 145.60ms - stdout ]────────────────────────────────────────────────────────╮
00:00:09 #262 [Verbose] > │ () │
00:00:09 #263 [Verbose] > │ │
00:00:09 #264 [Verbose] > │ │
00:00:09 #265 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #266 [Verbose] >
00:00:09 #267 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:09 #268 [Verbose] > // // test
00:00:09 #269 [Verbose] >
00:00:09 #270 [Verbose] > inl x = Some 3i32
00:00:09 #271 [Verbose] > inl y : option i32 = None
00:00:09 #272 [Verbose] > inl x' = x |> box |> unbox
00:00:09 #273 [Verbose] > inl y' = y |> box |> unbox
00:00:09 #274 [Verbose] > (x', y') |> _assert_eq (x, y)
00:00:09 #275 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-2654-5491-559f50e4fb54/main.spi
00:00:09 #276 [Verbose] >
00:00:09 #277 [Verbose] > ╭─[ 232.19ms - stdout ]────────────────────────────────────────────────────────╮
00:00:09 #278 [Verbose] > │ type [<Struct>] US0 = │
00:00:09 #279 [Verbose] > │ | US0_0 │
00:00:09 #280 [Verbose] > │ | US0_1 of f1_0 : int32 │
00:00:09 #281 [Verbose] > │ let rec closure0 () (v0 : int32) : US0 = │
00:00:09 #282 [Verbose] > │ US0_1(v0) │
00:00:09 #283 [Verbose] > │ and method1 (v0 : bool) : bool = │
00:00:09 #284 [Verbose] > │ v0 │
00:00:09 #285 [Verbose] > │ and method0 () : unit = │
00:00:09 #286 [Verbose] > │ let v0 : int32 option = Some 3 │
00:00:09 #287 [Verbose] > │ let v1 : (int32 -> US0) = closure0() │
00:00:09 #288 [Verbose] > │ let v2 : US0 = US0_0 │
00:00:09 #289 [Verbose] > │ let v3 : US0 = v0 |> Option.map v1 |> Option.defaultValue v2 │
00:00:09 #290 [Verbose] > │ let v4 : int32 option = None │
00:00:09 #291 [Verbose] > │ let v5 : US0 = US0_0 │
00:00:09 #292 [Verbose] > │ let v6 : US0 = v4 |> Option.map v1 |> Option.defaultValue v5 │
00:00:09 #293 [Verbose] > │ let v11 : bool = │
00:00:09 #294 [Verbose] > │ match v3 with │
00:00:09 #295 [Verbose] > │ | US0_1(v9) -> (* Some *) │
00:00:09 #296 [Verbose] > │ let v10 : bool = v9 = 3 │
00:00:09 #297 [Verbose] > │ v10 │
00:00:09 #298 [Verbose] > │ | _ -> │
00:00:09 #299 [Verbose] > │ false │
00:00:09 #300 [Verbose] > │ let v13 : bool = │
00:00:09 #301 [Verbose] > │ if v11 then │
00:00:09 #302 [Verbose] > │ match v6 with │
00:00:09 #303 [Verbose] > │ | US0_0 -> (* None *) │
00:00:09 #304 [Verbose] > │ true │
00:00:09 #305 [Verbose] > │ | _ -> │
00:00:09 #306 [Verbose] > │ false │
00:00:09 #307 [Verbose] > │ else │
00:00:09 #308 [Verbose] > │ false │
00:00:09 #309 [Verbose] > │ let v15 : bool = │
00:00:09 #310 [Verbose] > │ if v13 then │
00:00:09 #311 [Verbose] > │ true │
00:00:09 #312 [Verbose] > │ else │
00:00:09 #313 [Verbose] > │ method1(v13) │
00:00:09 #314 [Verbose] > │ let v16 : US0 = US0_1(3) │
00:00:09 #315 [Verbose] > │ let v17 : US0 = US0_0 │
00:00:09 #316 [Verbose] > │ let v18 : string = $"__expect / actual: %A{struct (v3, v6)} / expected: │
00:00:09 #317 [Verbose] > │ %A{struct (v16, v17)}" │
00:00:09 #318 [Verbose] > │ let v19 : bool = v15 = false │
00:00:09 #319 [Verbose] > │ if v19 then │
00:00:09 #320 [Verbose] > │ failwith<unit> v18 │
00:00:09 #321 [Verbose] > │ method0() │
00:00:09 #322 [Verbose] > │ │
00:00:09 #323 [Verbose] > │ │
00:00:09 #324 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #325 [Verbose] >
00:00:09 #326 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:09 #327 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:09 #328 [Verbose] > │ ## map │
00:00:09 #329 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #330 [Verbose] >
00:00:09 #331 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:09 #332 [Verbose] > inl map forall t u. (fn : t -> u) (x : option' t) : option' u =
00:00:09 #333 [Verbose] > inl x = join x
00:00:09 #334 [Verbose] > inl fn = join fn
00:00:09 #335 [Verbose] > !\($'"!x.map(|x| !fn(x))"')
00:00:09 #336 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-2678-7850-77849b9cd1b8/main.spi
00:00:09 #337 [Verbose] >
00:00:09 #338 [Verbose] > ╭─[ 142.47ms - stdout ]────────────────────────────────────────────────────────╮
00:00:09 #339 [Verbose] > │ () │
00:00:09 #340 [Verbose] > │ │
00:00:09 #341 [Verbose] > │ │
00:00:09 #342 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #343 [Verbose] >
00:00:09 #344 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:09 #345 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:09 #346 [Verbose] > │ ## flatten │
00:00:09 #347 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #348 [Verbose] >
00:00:09 #349 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:09 #350 [Verbose] > inl flatten x =
00:00:09 #351 [Verbose] > match x with
00:00:09 #352 [Verbose] > | Some (Some x) => Some x
00:00:09 #353 [Verbose] > | _ => None
00:00:09 #354 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-2692-9288-9111bcd77ad1/main.spi
00:00:09 #355 [Verbose] >
00:00:09 #356 [Verbose] > ╭─[ 162.71ms - stdout ]────────────────────────────────────────────────────────╮
00:00:09 #357 [Verbose] > │ () │
00:00:09 #358 [Verbose] > │ │
00:00:09 #359 [Verbose] > │ │
00:00:09 #360 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #361 [Verbose] >
00:00:09 #362 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:09 #363 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:09 #364 [Verbose] > │ ## unwrap │
00:00:09 #365 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #366 [Verbose] >
00:00:09 #367 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:09 #368 [Verbose] > inl unwrap forall t. (x : option' t) : t =
00:00:09 #369 [Verbose] > !\($'"!x.unwrap()"')
00:00:09 #370 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-2709-0926-0bc1d665281d/main.spi
00:00:09 #371 [Verbose] >
00:00:09 #372 [Verbose] > ╭─[ 138.82ms - stdout ]────────────────────────────────────────────────────────╮
00:00:09 #373 [Verbose] > │ () │
00:00:09 #374 [Verbose] > │ │
00:00:09 #375 [Verbose] > │ │
00:00:09 #376 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #377 [Verbose] >
00:00:09 #378 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:09 #379 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:09 #380 [Verbose] > │ ## unwrap_or │
00:00:09 #381 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #382 [Verbose] >
00:00:09 #383 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:09 #384 [Verbose] > inl unwrap_or forall t. (def : t) (x : option' t) : t =
00:00:09 #385 [Verbose] > !\($'"!x.unwrap_or(!def)"')
00:00:09 #386 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-2723-2329-2e961db2724e/main.spi
00:00:09 #387 [Verbose] >
00:00:09 #388 [Verbose] > ╭─[ 142.86ms - stdout ]────────────────────────────────────────────────────────╮
00:00:09 #389 [Verbose] > │ () │
00:00:09 #390 [Verbose] > │ │
00:00:09 #391 [Verbose] > │ │
00:00:09 #392 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #393 [Verbose] >
00:00:09 #394 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:09 #395 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:09 #396 [Verbose] > │ ## rc_upgrade │
00:00:09 #397 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #398 [Verbose] >
00:00:09 #399 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:09 #400 [Verbose] > inl rc_upgrade forall t. (x : rust.weak_rc t) : option (rust.rc t) =
00:00:09 #401 [Verbose] > inl x = join x
00:00:09 #402 [Verbose] > !\($'"std::rc::Weak::upgrade(&!x)"')
00:00:09 #403 [Verbose] > |> unbox
00:00:09 #404 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-2737-3773-386ed7734eb6/main.spi
00:00:09 #405 [Verbose] >
00:00:09 #406 [Verbose] > ╭─[ 139.70ms - stdout ]────────────────────────────────────────────────────────╮
00:00:09 #407 [Verbose] > │ () │
00:00:09 #408 [Verbose] > │ │
00:00:09 #409 [Verbose] > │ │
00:00:09 #410 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #411 [Verbose] > [NbConvertApp] Converting notebook optionm'.dib.ipynb to html
00:00:10 #412 [Verbose] > /opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/nbformat/__init__.py:96: MissingIDFieldWarning: Cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:00:10 #413 [Verbose] > validate(nb)
00:00:11 #414 [Verbose] > /opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/nbconvert/filters/highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:00:11 #415 [Verbose] > return _pygments_highlight(
00:00:11 #416 [Verbose] > [NbConvertApp] Writing 306666 bytes to optionm'.dib.html
00:00:11 #417 [Debug] executeAsync / exitCode: 0 / output.Length: 27248
00:00:11 #418 [Debug] main / executeCommand / exitCode: 0
00:00:00 #1 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #2 [Debug] executeAsync / options: { Command =
"dotnet "/home/runner/work/polyglot/polyglot/deps/The-Spiral-Language/The Spiral Language 2/artifacts/bin/The Spiral Language 2/release/Spiral.dll" --port 13805 --default-int i32 --default-float f64"
WorkingDirectory = None
CancellationToken = Some System.Threading.CancellationToken
OnLine = Some <fun:main@464-1020> }
00:00:00 #3 [Verbose] > pwd: /home/runner/work/polyglot/polyglot/lib/spiral
00:00:00 #4 [Verbose] > dll_path: /home/runner/work/polyglot/polyglot/deps/The-Spiral-Language/The Spiral Language 2/artifacts/bin/The Spiral Language 2/release
00:00:00 #5 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #6 [Verbose] waitForPortAccess / port: 13805 / retry: 0
00:00:00 #7 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #8 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #9 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #10 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #11 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #12 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #13 [Verbose] > Starting the Spiral Server. It is bound to: http://localhost:13805
00:00:00 #14 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #15 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #16 [Debug] sendJson / port: 13805 / json: {"Ping":true} / result.Length:
00:00:00 #17 [Verbose] awaitCompiler / Ping / result: Some(null) / port: 13805 / retry: 0
00:00:00 #18 [Verbose] > Server bound to: http://localhost:13805
00:00:00 #19 [Debug] executeAsync / options: { Command = "pwsh -c "../../scripts/invoke-dib.ps1 \"am'.dib\"""
WorkingDirectory = None
CancellationToken = Some System.Threading.CancellationToken
OnLine = None }
00:00:02 #20 [Verbose] >
00:00:02 #21 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:02 #22 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:02 #23 [Verbose] > │ # am' │
00:00:02 #24 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:02 #25 [Verbose] >
00:00:02 #26 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:02 #27 [Verbose] > // // test
00:00:02 #28 [Verbose] >
00:00:02 #29 [Verbose] > open testing
00:00:02 #30 [Verbose] >
00:00:02 #31 [Verbose] > prototype append t : t -> t -> t
00:00:04 #32 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-3323-2319-29b4ba08e9fb/main.spi
00:00:06 #33 [Verbose] >
00:00:06 #34 [Verbose] > ╭─[ 3.74s - stdout ]───────────────────────────────────────────────────────────╮
00:00:06 #35 [Verbose] > │ () │
00:00:06 #36 [Verbose] > │ │
00:00:06 #37 [Verbose] > │ │
00:00:06 #38 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:06 #39 [Verbose] >
00:00:06 #40 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:06 #41 [Verbose] > open rust_operators
00:00:06 #42 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-3563-6337-60d536dafdc9/main.spi
00:00:06 #43 [Verbose] >
00:00:06 #44 [Verbose] > ╭─[ 200.43ms - stdout ]────────────────────────────────────────────────────────╮
00:00:06 #45 [Verbose] > │ () │
00:00:06 #46 [Verbose] > │ │
00:00:06 #47 [Verbose] > │ │
00:00:06 #48 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:06 #49 [Verbose] >
00:00:06 #50 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:06 #51 [Verbose] > inl types () =
00:00:06 #52 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"[[$0]]\")>]] type Slice<'T> =
00:00:06 #53 [Verbose] > class end"
00:00:06 #54 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"[[$0; $1]]\")>]] type
00:00:06 #55 [Verbose] > Slice'<'T, 'U> = class end"
00:00:06 #56 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"Vec<$0>\")>]] type Vec<'T> =
00:00:06 #57 [Verbose] > class end"
00:00:06 #58 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-3583-8361-8a3283e9a76b/main.spi
00:00:06 #59 [Verbose] >
00:00:06 #60 [Verbose] > ╭─[ 170.94ms - stdout ]────────────────────────────────────────────────────────╮
00:00:06 #61 [Verbose] > │ () │
00:00:06 #62 [Verbose] > │ │
00:00:06 #63 [Verbose] > │ │
00:00:06 #64 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:06 #65 [Verbose] >
00:00:06 #66 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:06 #67 [Verbose] > nominal slice t = $"Slice<`t>"
00:00:06 #68 [Verbose] > nominal slice' t u = $"Slice'<`t, `u>"
00:00:06 #69 [Verbose] > nominal vec t = $"Vec<`t>"
00:00:06 #70 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-3600-0041-04a9b8f004d8/main.spi
00:00:06 #71 [Verbose] >
00:00:06 #72 [Verbose] > ╭─[ 167.59ms - stdout ]────────────────────────────────────────────────────────╮
00:00:06 #73 [Verbose] > │ () │
00:00:06 #74 [Verbose] > │ │
00:00:06 #75 [Verbose] > │ │
00:00:06 #76 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:06 #77 [Verbose] >
00:00:06 #78 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:06 #79 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:06 #80 [Verbose] > │ ## append │
00:00:06 #81 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:06 #82 [Verbose] >
00:00:06 #83 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:06 #84 [Verbose] > instance append a dim {int; number} t =
00:00:06 #85 [Verbose] > am.append
00:00:06 #86 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-3617-1726-1fd43fff7ef0/main.spi
00:00:06 #87 [Verbose] >
00:00:06 #88 [Verbose] > ╭─[ 161.95ms - stdout ]────────────────────────────────────────────────────────╮
00:00:06 #89 [Verbose] > │ () │
00:00:06 #90 [Verbose] > │ │
00:00:06 #91 [Verbose] > │ │
00:00:06 #92 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:06 #93 [Verbose] >
00:00:06 #94 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:06 #95 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:06 #96 [Verbose] > │ ## /@ │
00:00:06 #97 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:06 #98 [Verbose] >
00:00:06 #99 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:06 #100 [Verbose] > inl (/@) a b =
00:00:06 #101 [Verbose] > b |> append a
00:00:06 #102 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-3633-3364-3969c5671411/main.spi
00:00:06 #103 [Verbose] >
00:00:06 #104 [Verbose] > ╭─[ 146.90ms - stdout ]────────────────────────────────────────────────────────╮
00:00:06 #105 [Verbose] > │ () │
00:00:06 #106 [Verbose] > │ │
00:00:06 #107 [Verbose] > │ │
00:00:06 #108 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:06 #109 [Verbose] >
00:00:06 #110 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:06 #111 [Verbose] > // // test
00:00:06 #112 [Verbose] >
00:00:06 #113 [Verbose] > a ;[[ "a"; "b" ]] /@ a ;[[ "c"; "d" ]]
00:00:06 #114 [Verbose] > |> _assert_eq (a ;[[ "a"; "b"; "c"; "d" ]] : _ i32 _)
00:00:07 #115 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-3648-4835-4a6c895441a2/main.spi
00:00:07 #116 [Verbose] >
00:00:07 #117 [Verbose] > ╭─[ 998.42ms - stdout ]────────────────────────────────────────────────────────╮
00:00:07 #118 [Verbose] > │ type Mut0 = {mutable l0 : int32} │
00:00:07 #119 [Verbose] > │ let rec method1 (v0 : (string [])) : (string []) = │
00:00:07 #120 [Verbose] > │ v0 │
00:00:07 #121 [Verbose] > │ and method2 (v0 : int32, v1 : Mut0) : bool = │
00:00:07 #122 [Verbose] > │ let v2 : int32 = v1.l0 │
00:00:07 #123 [Verbose] > │ let v3 : bool = v2 < v0 │
00:00:07 #124 [Verbose] > │ v3 │
00:00:07 #125 [Verbose] > │ and method3 (v0 : (string []), v1 : (string []), v2 : int32) : bool = │
00:00:07 #126 [Verbose] > │ let v3 : int32 = v0.Length │
00:00:07 #127 [Verbose] > │ let v4 : bool = v2 < v3 │
00:00:07 #128 [Verbose] > │ if v4 then │
00:00:07 #129 [Verbose] > │ let v5 : string = v0.[int v2] │
00:00:07 #130 [Verbose] > │ let v6 : string = v1.[int v2] │
00:00:07 #131 [Verbose] > │ let v7 : bool = v5 = v6 │
00:00:07 #132 [Verbose] > │ if v7 then │
00:00:07 #133 [Verbose] > │ let v8 : int32 = v2 + 1 │
00:00:07 #134 [Verbose] > │ method3(v0, v1, v8) │
00:00:07 #135 [Verbose] > │ else │
00:00:07 #136 [Verbose] > │ false │
00:00:07 #137 [Verbose] > │ else │
00:00:07 #138 [Verbose] > │ true │
00:00:07 #139 [Verbose] > │ and method4 (v0 : bool) : bool = │
00:00:07 #140 [Verbose] > │ v0 │
00:00:07 #141 [Verbose] > │ and method0 () : unit = │
00:00:07 #142 [Verbose] > │ let v0 : string = "a" │
00:00:07 #143 [Verbose] > │ let v1 : string = "b" │
00:00:07 #144 [Verbose] > │ let v2 : (string []) = [|v0; v1|] │
00:00:07 #145 [Verbose] > │ let v3 : (string []) = method1(v2) │
00:00:07 #146 [Verbose] > │ let v4 : string = "c" │
00:00:07 #147 [Verbose] > │ let v5 : string = "d" │
00:00:07 #148 [Verbose] > │ let v6 : (string []) = [|v4; v5|] │
00:00:07 #149 [Verbose] > │ let v7 : (string []) = method1(v6) │
00:00:07 #150 [Verbose] > │ let v8 : int32 = v3.Length │
00:00:07 #151 [Verbose] > │ let v9 : int32 = v7.Length │
00:00:07 #152 [Verbose] > │ let v10 : int32 = v8 + v9 │
00:00:07 #153 [Verbose] > │ let v11 : (string []) = Array.zeroCreate<string> (v10) │
00:00:07 #154 [Verbose] > │ let v12 : Mut0 = {l0 = 0} : Mut0 │
00:00:07 #155 [Verbose] > │ while method2(v10, v12) do │
00:00:07 #156 [Verbose] > │ let v14 : int32 = v12.l0 │
00:00:07 #157 [Verbose] > │ let v15 : bool = v14 < v8 │
00:00:07 #158 [Verbose] > │ let v19 : string = │
00:00:07 #159 [Verbose] > │ if v15 then │
00:00:07 #160 [Verbose] > │ let v16 : string = v3.[int v14] │
00:00:07 #161 [Verbose] > │ v16 │
00:00:07 #162 [Verbose] > │ else │
00:00:07 #163 [Verbose] > │ let v17 : int32 = v14 - v8 │
00:00:07 #164 [Verbose] > │ let v18 : string = v7.[int v17] │
00:00:07 #165 [Verbose] > │ v18 │
00:00:07 #166 [Verbose] > │ v11.[int v14] <- v19 │
00:00:07 #167 [Verbose] > │ let v20 : int32 = v14 + 1 │
00:00:07 #168 [Verbose] > │ v12.l0 <- v20 │
00:00:07 #169 [Verbose] > │ () │
00:00:07 #170 [Verbose] > │ let v21 : (string []) = [|v0; v1; v4; v5|] │
00:00:07 #171 [Verbose] > │ let v22 : (string []) = method1(v21) │
00:00:07 #172 [Verbose] > │ let v23 : int32 = v11.Length │
00:00:07 #173 [Verbose] > │ let v24 : int32 = v22.Length │
00:00:07 #174 [Verbose] > │ let v25 : bool = v23 = v24 │
00:00:07 #175 [Verbose] > │ let v26 : bool = v25 <> true │
00:00:07 #176 [Verbose] > │ let v29 : bool = │
00:00:07 #177 [Verbose] > │ if v26 then │
00:00:07 #178 [Verbose] > │ false │
00:00:07 #179 [Verbose] > │ else │
00:00:07 #180 [Verbose] > │ let v27 : int32 = 0 │
00:00:07 #181 [Verbose] > │ method3(v11, v22, v27) │
00:00:07 #182 [Verbose] > │ let v31 : bool = │
00:00:07 #183 [Verbose] > │ if v29 then │
00:00:07 #184 [Verbose] > │ true │
00:00:07 #185 [Verbose] > │ else │
00:00:07 #186 [Verbose] > │ method4(v29) │
00:00:07 #187 [Verbose] > │ let v32 : string = $"__expect / actual: %A{v11} / expected: %A{v22}" │
00:00:07 #188 [Verbose] > │ let v33 : bool = v31 = false │
00:00:07 #189 [Verbose] > │ if v33 then │
00:00:07 #190 [Verbose] > │ failwith<unit> v32 │
00:00:07 #191 [Verbose] > │ method0() │
00:00:07 #192 [Verbose] > │ │
00:00:07 #193 [Verbose] > │ │
00:00:07 #194 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #195 [Verbose] >
00:00:07 #196 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:07 #197 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:07 #198 [Verbose] > │ ## collect │
00:00:07 #199 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #200 [Verbose] >
00:00:07 #201 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:07 #202 [Verbose] > inl collect forall t r. (fn : t -> a i32 r) (items : a i32 t) : a i32 r =
00:00:07 #203 [Verbose] > items
00:00:07 #204 [Verbose] > |> am.map fn
00:00:07 #205 [Verbose] > |> am.fold (/@) (a ;[[]])
00:00:08 #206 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-3748-4871-4d5efedac459/main.spi
00:00:08 #207 [Verbose] >
00:00:08 #208 [Verbose] > ╭─[ 144.42ms - stdout ]────────────────────────────────────────────────────────╮
00:00:08 #209 [Verbose] > │ () │
00:00:08 #210 [Verbose] > │ │
00:00:08 #211 [Verbose] > │ │
00:00:08 #212 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #213 [Verbose] >
00:00:08 #214 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:08 #215 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:08 #216 [Verbose] > │ ## choose │
00:00:08 #217 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #218 [Verbose] >
00:00:08 #219 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:08 #220 [Verbose] > inl choose f l =
00:00:08 #221 [Verbose] > (l, [[]])
00:00:08 #222 [Verbose] > ||> am.foldBack fun x acc =>
00:00:08 #223 [Verbose] > match f x with
00:00:08 #224 [Verbose] > | Some y => y :: acc
00:00:08 #225 [Verbose] > | None => acc
00:00:08 #226 [Verbose] > |> listm.toArray
00:00:08 #227 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-3763-6331-6989d7e3699b/main.spi
00:00:08 #228 [Verbose] >
00:00:08 #229 [Verbose] > ╭─[ 142.23ms - stdout ]────────────────────────────────────────────────────────╮
00:00:08 #230 [Verbose] > │ () │
00:00:08 #231 [Verbose] > │ │
00:00:08 #232 [Verbose] > │ │
00:00:08 #233 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #234 [Verbose] >
00:00:08 #235 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:08 #236 [Verbose] > // // test
00:00:08 #237 [Verbose] >
00:00:08 #238 [Verbose] > (am.init 10i32 id : a _ _)
00:00:08 #239 [Verbose] > |> choose (fun x => if x % 2 = 0 then Some x else None)
00:00:08 #240 [Verbose] > |> _assert_eq (a ;[[ 0; 2; 4; 6; 8 ]] : _ i32 _)
00:00:08 #241 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-3777-7759-7c4793e0e44f/main.spi
00:00:08 #242 [Verbose] >
00:00:08 #243 [Verbose] > ╭─[ 418.04ms - stdout ]────────────────────────────────────────────────────────╮
00:00:08 #244 [Verbose] > │ type Mut0 = {mutable l0 : int32} │
00:00:08 #245 [Verbose] > │ and UH0 = │
00:00:08 #246 [Verbose] > │ | UH0_0 of int32 * UH0 │
00:00:08 #247 [Verbose] > │ | UH0_1 │
00:00:08 #248 [Verbose] > │ and Mut1 = {mutable l0 : int32; mutable l1 : UH0} │
00:00:08 #249 [Verbose] > │ and [<Struct>] US0 = │
00:00:08 #250 [Verbose] > │ | US0_0 │
00:00:08 #251 [Verbose] > │ | US0_1 of f1_0 : int32 │
00:00:08 #252 [Verbose] > │ let rec method1 (v0 : Mut0) : bool = │
00:00:08 #253 [Verbose] > │ let v1 : int32 = v0.l0 │
00:00:08 #254 [Verbose] > │ let v2 : bool = v1 < 10 │
00:00:08 #255 [Verbose] > │ v2 │
00:00:08 #256 [Verbose] > │ and method2 (v0 : int32, v1 : Mut1) : bool = │
00:00:08 #257 [Verbose] > │ let v2 : int32 = v1.l0 │
00:00:08 #258 [Verbose] > │ let v3 : bool = v2 < v0 │
00:00:08 #259 [Verbose] > │ v3 │
00:00:08 #260 [Verbose] > │ and method4 (v0 : UH0, v1 : int32) : int32 = │
00:00:08 #261 [Verbose] > │ match v0 with │
00:00:08 #262 [Verbose] > │ | UH0_0(v2, v3) -> (* Cons *) │
00:00:08 #263 [Verbose] > │ let v4 : int32 = v1 + 1 │
00:00:08 #264 [Verbose] > │ method4(v3, v4) │
00:00:08 #265 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:08 #266 [Verbose] > │ v1 │
00:00:08 #267 [Verbose] > │ and method5 (v0 : (int32 []), v1 : UH0, v2 : int32) : int32 = │
00:00:08 #268 [Verbose] > │ match v1 with │
00:00:08 #269 [Verbose] > │ | UH0_0(v3, v4) -> (* Cons *) │
00:00:08 #270 [Verbose] > │ v0.[int v2] <- v3 │
00:00:08 #271 [Verbose] > │ let v5 : int32 = v2 + 1 │
00:00:08 #272 [Verbose] > │ method5(v0, v4, v5) │
00:00:08 #273 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:08 #274 [Verbose] > │ v2 │
00:00:08 #275 [Verbose] > │ and method3 (v0 : UH0) : (int32 []) = │
00:00:08 #276 [Verbose] > │ let v1 : int32 = 0 │
00:00:08 #277 [Verbose] > │ let v2 : int32 = method4(v0, v1) │
00:00:08 #278 [Verbose] > │ let v3 : (int32 []) = Array.zeroCreate<int32> (v2) │
00:00:08 #279 [Verbose] > │ let v4 : int32 = 0 │
00:00:08 #280 [Verbose] > │ let v5 : int32 = method5(v3, v0, v4) │
00:00:08 #281 [Verbose] > │ v3 │
00:00:08 #282 [Verbose] > │ and method6 (v0 : (int32 [])) : (int32 []) = │
00:00:08 #283 [Verbose] > │ v0 │
00:00:08 #284 [Verbose] > │ and method7 (v0 : (int32 []), v1 : (int32 []), v2 : int32) : bool = │
00:00:08 #285 [Verbose] > │ let v3 : int32 = v0.Length │
00:00:08 #286 [Verbose] > │ let v4 : bool = v2 < v3 │
00:00:08 #287 [Verbose] > │ if v4 then │
00:00:08 #288 [Verbose] > │ let v5 : int32 = v0.[int v2] │
00:00:08 #289 [Verbose] > │ let v6 : int32 = v1.[int v2] │
00:00:08 #290 [Verbose] > │ let v7 : bool = v5 = v6 │
00:00:08 #291 [Verbose] > │ if v7 then │
00:00:08 #292 [Verbose] > │ let v8 : int32 = v2 + 1 │
00:00:08 #293 [Verbose] > │ method7(v0, v1, v8) │
00:00:08 #294 [Verbose] > │ else │
00:00:08 #295 [Verbose] > │ false │
00:00:08 #296 [Verbose] > │ else │
00:00:08 #297 [Verbose] > │ true │
00:00:08 #298 [Verbose] > │ and method8 (v0 : bool) : bool = │
00:00:08 #299 [Verbose] > │ v0 │
00:00:08 #300 [Verbose] > │ and method0 () : unit = │
00:00:08 #301 [Verbose] > │ let v0 : (int32 []) = Array.zeroCreate<int32> (10) │
00:00:08 #302 [Verbose] > │ let v1 : Mut0 = {l0 = 0} : Mut0 │
00:00:08 #303 [Verbose] > │ while method1(v1) do │
00:00:08 #304 [Verbose] > │ let v3 : int32 = v1.l0 │
00:00:08 #305 [Verbose] > │ v0.[int v3] <- v3 │
00:00:08 #306 [Verbose] > │ let v4 : int32 = v3 + 1 │
00:00:08 #307 [Verbose] > │ v1.l0 <- v4 │
00:00:08 #308 [Verbose] > │ () │
00:00:08 #309 [Verbose] > │ let v5 : int32 = v0.Length │
00:00:08 #310 [Verbose] > │ let v6 : UH0 = UH0_1 │
00:00:08 #311 [Verbose] > │ let v7 : Mut1 = {l0 = 0; l1 = v6} : Mut1 │
00:00:08 #312 [Verbose] > │ while method2(v5, v7) do │
00:00:08 #313 [Verbose] > │ let v9 : int32 = v7.l0 │
00:00:08 #314 [Verbose] > │ let v10 : int32 = -v9 │
00:00:08 #315 [Verbose] > │ let v11 : int32 = v10 + v5 │
00:00:08 #316 [Verbose] > │ let v12 : int32 = v11 - 1 │
00:00:08 #317 [Verbose] > │ let v13 : UH0 = v7.l1 │
00:00:08 #318 [Verbose] > │ let v14 : int32 = v0.[int v12] │
00:00:08 #319 [Verbose] > │ let v15 : int32 = v14 % 2 │
00:00:08 #320 [Verbose] > │ let v16 : bool = v15 = 0 │
00:00:08 #321 [Verbose] > │ let v19 : US0 = │
00:00:08 #322 [Verbose] > │ if v16 then │
00:00:08 #323 [Verbose] > │ US0_1(v14) │
00:00:08 #324 [Verbose] > │ else │
00:00:08 #325 [Verbose] > │ US0_0 │
00:00:08 #326 [Verbose] > │ let v23 : UH0 = │
00:00:08 #327 [Verbose] > │ match v19 with │
00:00:08 #328 [Verbose] > │ | US0_0 -> (* None *) │
00:00:08 #329 [Verbose] > │ v13 │
00:00:08 #330 [Verbose] > │ | US0_1(v20) -> (* Some *) │
00:00:08 #331 [Verbose] > │ UH0_0(v20, v13) │
00:00:08 #332 [Verbose] > │ let v24 : int32 = v9 + 1 │
00:00:08 #333 [Verbose] > │ v7.l0 <- v24 │
00:00:08 #334 [Verbose] > │ v7.l1 <- v23 │
00:00:08 #335 [Verbose] > │ () │
00:00:08 #336 [Verbose] > │ let v25 : UH0 = v7.l1 │
00:00:08 #337 [Verbose] > │ let v26 : (int32 []) = method3(v25) │
00:00:08 #338 [Verbose] > │ let v27 : (int32 []) = [|0; 2; 4; 6; 8|] │
00:00:08 #339 [Verbose] > │ let v28 : (int32 []) = method6(v27) │
00:00:08 #340 [Verbose] > │ let v29 : int32 = v26.Length │
00:00:08 #341 [Verbose] > │ let v30 : int32 = v28.Length │
00:00:08 #342 [Verbose] > │ let v31 : bool = v29 = v30 │
00:00:08 #343 [Verbose] > │ let v32 : bool = v31 <> true │
00:00:08 #344 [Verbose] > │ let v35 : bool = │
00:00:08 #345 [Verbose] > │ if v32 then │
00:00:08 #346 [Verbose] > │ false │
00:00:08 #347 [Verbose] > │ else │
00:00:08 #348 [Verbose] > │ let v33 : int32 = 0 │
00:00:08 #349 [Verbose] > │ method7(v26, v28, v33) │
00:00:08 #350 [Verbose] > │ let v37 : bool = │
00:00:08 #351 [Verbose] > │ if v35 then │
00:00:08 #352 [Verbose] > │ true │
00:00:08 #353 [Verbose] > │ else │
00:00:08 #354 [Verbose] > │ method8(v35) │
00:00:08 #355 [Verbose] > │ let v38 : string = $"__expect / actual: %A{v26} / expected: %A{v28}" │
00:00:08 #356 [Verbose] > │ let v39 : bool = v37 = false │
00:00:08 #357 [Verbose] > │ if v39 then │
00:00:08 #358 [Verbose] > │ failwith<unit> v38 │
00:00:08 #359 [Verbose] > │ method0() │
00:00:08 #360 [Verbose] > │ │
00:00:08 #361 [Verbose] > │ │
00:00:08 #362 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #363 [Verbose] >
00:00:08 #364 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:08 #365 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:08 #366 [Verbose] > │ ## sum │
00:00:08 #367 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #368 [Verbose] >
00:00:08 #369 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:08 #370 [Verbose] > inl sum (a' : a _ _) =
00:00:08 #371 [Verbose] > a' |> am.fold (+) 0
00:00:08 #372 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-3820-2015-27a0d45ae08d/main.spi
00:00:08 #373 [Verbose] >
00:00:08 #374 [Verbose] > ╭─[ 149.65ms - stdout ]────────────────────────────────────────────────────────╮
00:00:08 #375 [Verbose] > │ () │
00:00:08 #376 [Verbose] > │ │
00:00:08 #377 [Verbose] > │ │
00:00:08 #378 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #379 [Verbose] >
00:00:08 #380 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:08 #381 [Verbose] > // // test
00:00:08 #382 [Verbose] >
00:00:08 #383 [Verbose] > am.init 10i32 id
00:00:08 #384 [Verbose] > |> sum
00:00:08 #385 [Verbose] > |> _assert_eq 45
00:00:08 #386 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-3835-3512-35ed5b878a4c/main.spi
00:00:09 #387 [Verbose] >
00:00:09 #388 [Verbose] > ╭─[ 281.15ms - stdout ]────────────────────────────────────────────────────────╮
00:00:09 #389 [Verbose] > │ type Mut0 = {mutable l0 : int32} │
00:00:09 #390 [Verbose] > │ and Mut1 = {mutable l0 : int32; mutable l1 : int32} │
00:00:09 #391 [Verbose] > │ let rec method1 (v0 : Mut0) : bool = │
00:00:09 #392 [Verbose] > │ let v1 : int32 = v0.l0 │
00:00:09 #393 [Verbose] > │ let v2 : bool = v1 < 10 │
00:00:09 #394 [Verbose] > │ v2 │
00:00:09 #395 [Verbose] > │ and method2 (v0 : int32, v1 : Mut1) : bool = │
00:00:09 #396 [Verbose] > │ let v2 : int32 = v1.l0 │
00:00:09 #397 [Verbose] > │ let v3 : bool = v2 < v0 │
00:00:09 #398 [Verbose] > │ v3 │
00:00:09 #399 [Verbose] > │ and method3 (v0 : bool) : bool = │
00:00:09 #400 [Verbose] > │ v0 │
00:00:09 #401 [Verbose] > │ and method0 () : unit = │
00:00:09 #402 [Verbose] > │ let v0 : (int32 []) = Array.zeroCreate<int32> (10) │
00:00:09 #403 [Verbose] > │ let v1 : Mut0 = {l0 = 0} : Mut0 │
00:00:09 #404 [Verbose] > │ while method1(v1) do │
00:00:09 #405 [Verbose] > │ let v3 : int32 = v1.l0 │
00:00:09 #406 [Verbose] > │ v0.[int v3] <- v3 │
00:00:09 #407 [Verbose] > │ let v4 : int32 = v3 + 1 │
00:00:09 #408 [Verbose] > │ v1.l0 <- v4 │
00:00:09 #409 [Verbose] > │ () │
00:00:09 #410 [Verbose] > │ let v5 : int32 = v0.Length │
00:00:09 #411 [Verbose] > │ let v6 : Mut1 = {l0 = 0; l1 = 0} : Mut1 │
00:00:09 #412 [Verbose] > │ while method2(v5, v6) do │
00:00:09 #413 [Verbose] > │ let v8 : int32 = v6.l0 │
00:00:09 #414 [Verbose] > │ let v9 : int32 = v6.l1 │
00:00:09 #415 [Verbose] > │ let v10 : int32 = v0.[int v8] │
00:00:09 #416 [Verbose] > │ let v11 : int32 = v9 + v10 │
00:00:09 #417 [Verbose] > │ let v12 : int32 = v8 + 1 │
00:00:09 #418 [Verbose] > │ v6.l0 <- v12 │
00:00:09 #419 [Verbose] > │ v6.l1 <- v11 │
00:00:09 #420 [Verbose] > │ () │
00:00:09 #421 [Verbose] > │ let v13 : int32 = v6.l1 │
00:00:09 #422 [Verbose] > │ let v14 : bool = v13 = 45 │
00:00:09 #423 [Verbose] > │ let v16 : bool = │
00:00:09 #424 [Verbose] > │ if v14 then │
00:00:09 #425 [Verbose] > │ true │
00:00:09 #426 [Verbose] > │ else │
00:00:09 #427 [Verbose] > │ method3(v14) │
00:00:09 #428 [Verbose] > │ let v17 : string = $"__expect / actual: %A{v13} / expected: %A{45}" │
00:00:09 #429 [Verbose] > │ let v18 : bool = v16 = false │
00:00:09 #430 [Verbose] > │ if v18 then │
00:00:09 #431 [Verbose] > │ failwith<unit> v17 │
00:00:09 #432 [Verbose] > │ method0() │
00:00:09 #433 [Verbose] > │ │
00:00:09 #434 [Verbose] > │ │
00:00:09 #435 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #436 [Verbose] >
00:00:09 #437 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:09 #438 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:09 #439 [Verbose] > │ ## init_series │
00:00:09 #440 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #441 [Verbose] >
00:00:09 #442 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:09 #443 [Verbose] > inl init_series start end inc =
00:00:09 #444 [Verbose] > inl total = conv ((end - start) / inc) + 1
00:00:09 #445 [Verbose] > am.init total (conv >> (*) inc >> (+) start) : a i32 _
00:00:09 #446 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-3864-6422-67763c1b5cad/main.spi
00:00:09 #447 [Verbose] >
00:00:09 #448 [Verbose] > ╭─[ 141.42ms - stdout ]────────────────────────────────────────────────────────╮
00:00:09 #449 [Verbose] > │ () │
00:00:09 #450 [Verbose] > │ │
00:00:09 #451 [Verbose] > │ │
00:00:09 #452 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #453 [Verbose] >
00:00:09 #454 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:09 #455 [Verbose] > // // test
00:00:09 #456 [Verbose] >
00:00:09 #457 [Verbose] > init_series 0 1 0.5
00:00:09 #458 [Verbose] > |> _assert_eq (a ;[[0f64; 0.5; 1]])
00:00:09 #459 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-3877-7798-7d57af1f8ea0/main.spi
00:00:09 #460 [Verbose] >
00:00:09 #461 [Verbose] > ╭─[ 175.94ms - stdout ]────────────────────────────────────────────────────────╮
00:00:09 #462 [Verbose] > │ type Mut0 = {mutable l0 : int32} │
00:00:09 #463 [Verbose] > │ let rec method1 (v0 : Mut0) : bool = │
00:00:09 #464 [Verbose] > │ let v1 : int32 = v0.l0 │
00:00:09 #465 [Verbose] > │ let v2 : bool = v1 < 3 │
00:00:09 #466 [Verbose] > │ v2 │
00:00:09 #467 [Verbose] > │ and method2 (v0 : (float [])) : (float []) = │
00:00:09 #468 [Verbose] > │ v0 │
00:00:09 #469 [Verbose] > │ and method3 (v0 : (float []), v1 : (float []), v2 : int32) : bool = │
00:00:09 #470 [Verbose] > │ let v3 : int32 = v0.Length │
00:00:09 #471 [Verbose] > │ let v4 : bool = v2 < v3 │
00:00:09 #472 [Verbose] > │ if v4 then │
00:00:09 #473 [Verbose] > │ let v5 : float = v0.[int v2] │
00:00:09 #474 [Verbose] > │ let v6 : float = v1.[int v2] │
00:00:09 #475 [Verbose] > │ let v7 : bool = v5 = v6 │
00:00:09 #476 [Verbose] > │ if v7 then │
00:00:09 #477 [Verbose] > │ let v8 : int32 = v2 + 1 │
00:00:09 #478 [Verbose] > │ method3(v0, v1, v8) │
00:00:09 #479 [Verbose] > │ else │
00:00:09 #480 [Verbose] > │ false │
00:00:09 #481 [Verbose] > │ else │
00:00:09 #482 [Verbose] > │ true │
00:00:09 #483 [Verbose] > │ and method4 (v0 : bool) : bool = │
00:00:09 #484 [Verbose] > │ v0 │
00:00:09 #485 [Verbose] > │ and method0 () : unit = │
00:00:09 #486 [Verbose] > │ let v0 : (float []) = Array.zeroCreate<float> (3) │
00:00:09 #487 [Verbose] > │ let v1 : Mut0 = {l0 = 0} : Mut0 │
00:00:09 #488 [Verbose] > │ while method1(v1) do │
00:00:09 #489 [Verbose] > │ let v3 : int32 = v1.l0 │
00:00:09 #490 [Verbose] > │ let v4 : float = float v3 │
00:00:09 #491 [Verbose] > │ let v5 : float = 0.5 * v4 │
00:00:09 #492 [Verbose] > │ v0.[int v3] <- v5 │
00:00:09 #493 [Verbose] > │ let v6 : int32 = v3 + 1 │
00:00:09 #494 [Verbose] > │ v1.l0 <- v6 │
00:00:09 #495 [Verbose] > │ () │
00:00:09 #496 [Verbose] > │ let v7 : (float []) = [|0.0; 0.5; 1.0|] │
00:00:09 #497 [Verbose] > │ let v8 : (float []) = method2(v7) │
00:00:09 #498 [Verbose] > │ let v9 : int32 = v0.Length │
00:00:09 #499 [Verbose] > │ let v10 : int32 = v8.Length │
00:00:09 #500 [Verbose] > │ let v11 : bool = v9 = v10 │
00:00:09 #501 [Verbose] > │ let v12 : bool = v11 <> true │
00:00:09 #502 [Verbose] > │ let v15 : bool = │
00:00:09 #503 [Verbose] > │ if v12 then │
00:00:09 #504 [Verbose] > │ false │
00:00:09 #505 [Verbose] > │ else │
00:00:09 #506 [Verbose] > │ let v13 : int32 = 0 │
00:00:09 #507 [Verbose] > │ method3(v0, v8, v13) │
00:00:09 #508 [Verbose] > │ let v17 : bool = │
00:00:09 #509 [Verbose] > │ if v15 then │
00:00:09 #510 [Verbose] > │ true │
00:00:09 #511 [Verbose] > │ else │
00:00:09 #512 [Verbose] > │ method4(v15) │
00:00:09 #513 [Verbose] > │ let v18 : string = $"__expect / actual: %A{v0} / expected: %A{v8}" │
00:00:09 #514 [Verbose] > │ let v19 : bool = v17 = false │
00:00:09 #515 [Verbose] > │ if v19 then │
00:00:09 #516 [Verbose] > │ failwith<unit> v18 │
00:00:09 #517 [Verbose] > │ method0() │
00:00:09 #518 [Verbose] > │ │
00:00:09 #519 [Verbose] > │ │
00:00:09 #520 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #521 [Verbose] >
00:00:09 #522 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:09 #523 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:09 #524 [Verbose] > │ ## head │
00:00:09 #525 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #526 [Verbose] >
00:00:09 #527 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:09 #528 [Verbose] > inl head (ar : a _ _) =
00:00:09 #529 [Verbose] > if var_is ar || length ar > 0
00:00:09 #530 [Verbose] > then index ar 0
00:00:09 #531 [Verbose] > else error_type "The length of the array should be greater than 0."
00:00:09 #532 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-3895-9589-998f9d19aa8c/main.spi
00:00:09 #533 [Verbose] >
00:00:09 #534 [Verbose] > ╭─[ 139.18ms - stdout ]────────────────────────────────────────────────────────╮
00:00:09 #535 [Verbose] > │ () │
00:00:09 #536 [Verbose] > │ │
00:00:09 #537 [Verbose] > │ │
00:00:09 #538 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #539 [Verbose] >
00:00:09 #540 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:09 #541 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:09 #542 [Verbose] > │ ## last │
00:00:09 #543 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #544 [Verbose] >
00:00:09 #545 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:09 #546 [Verbose] > inl last (ar : a _ _) =
00:00:09 #547 [Verbose] > inl len = length ar
00:00:09 #548 [Verbose] > if var_is ar || len > 0
00:00:09 #549 [Verbose] > then index ar (len - 1)
00:00:09 #550 [Verbose] > else error_type "The length of the array should be greater than 0."
00:00:09 #551 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-3909-0997-089241563215/main.spi
00:00:09 #552 [Verbose] >
00:00:09 #553 [Verbose] > ╭─[ 144.22ms - stdout ]────────────────────────────────────────────────────────╮
00:00:09 #554 [Verbose] > │ () │
00:00:09 #555 [Verbose] > │ │
00:00:09 #556 [Verbose] > │ │
00:00:09 #557 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #558 [Verbose] >
00:00:09 #559 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:09 #560 [Verbose] > // // test
00:00:09 #561 [Verbose] >
00:00:09 #562 [Verbose] > am.init 10i32 id
00:00:09 #563 [Verbose] > |> last
00:00:09 #564 [Verbose] > |> _assert_eq 9
00:00:09 #565 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-3924-2444-2ea66a3c1250/main.spi
00:00:09 #566 [Verbose] >
00:00:09 #567 [Verbose] > ╭─[ 160.24ms - stdout ]────────────────────────────────────────────────────────╮
00:00:09 #568 [Verbose] > │ type Mut0 = {mutable l0 : int32} │
00:00:09 #569 [Verbose] > │ let rec method1 (v0 : Mut0) : bool = │
00:00:09 #570 [Verbose] > │ let v1 : int32 = v0.l0 │
00:00:09 #571 [Verbose] > │ let v2 : bool = v1 < 10 │
00:00:09 #572 [Verbose] > │ v2 │
00:00:09 #573 [Verbose] > │ and method2 (v0 : bool) : bool = │
00:00:09 #574 [Verbose] > │ v0 │
00:00:09 #575 [Verbose] > │ and method0 () : unit = │
00:00:09 #576 [Verbose] > │ let v0 : (int32 []) = Array.zeroCreate<int32> (10) │
00:00:09 #577 [Verbose] > │ let v1 : Mut0 = {l0 = 0} : Mut0 │
00:00:09 #578 [Verbose] > │ while method1(v1) do │
00:00:09 #579 [Verbose] > │ let v3 : int32 = v1.l0 │
00:00:09 #580 [Verbose] > │ v0.[int v3] <- v3 │
00:00:09 #581 [Verbose] > │ let v4 : int32 = v3 + 1 │
00:00:09 #582 [Verbose] > │ v1.l0 <- v4 │
00:00:09 #583 [Verbose] > │ () │
00:00:09 #584 [Verbose] > │ let v5 : int32 = v0.Length │
00:00:09 #585 [Verbose] > │ let v6 : int32 = v5 - 1 │
00:00:09 #586 [Verbose] > │ let v7 : int32 = v0.[int v6] │
00:00:09 #587 [Verbose] > │ let v8 : bool = v7 = 9 │
00:00:09 #588 [Verbose] > │ let v10 : bool = │
00:00:09 #589 [Verbose] > │ if v8 then │
00:00:09 #590 [Verbose] > │ true │
00:00:09 #591 [Verbose] > │ else │
00:00:09 #592 [Verbose] > │ method2(v8) │
00:00:09 #593 [Verbose] > │ let v11 : string = $"__expect / actual: %A{v7} / expected: %A{9}" │
00:00:09 #594 [Verbose] > │ let v12 : bool = v10 = false │
00:00:09 #595 [Verbose] > │ if v12 then │
00:00:09 #596 [Verbose] > │ failwith<unit> v11 │
00:00:09 #597 [Verbose] > │ method0() │
00:00:09 #598 [Verbose] > │ │
00:00:09 #599 [Verbose] > │ │
00:00:09 #600 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #601 [Verbose] >
00:00:09 #602 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:09 #603 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:09 #604 [Verbose] > │ ## try_pick │
00:00:09 #605 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #606 [Verbose] >
00:00:09 #607 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:09 #608 [Verbose] > inl try_pick forall t u. (fn : t -> option u) (array : a _ t) : option u =
00:00:09 #609 [Verbose] > (array, None)
00:00:09 #610 [Verbose] > ||> am.foldBack fun x acc =>
00:00:09 #611 [Verbose] > match acc with
00:00:09 #612 [Verbose] > | Some _ => acc
00:00:09 #613 [Verbose] > | None => x |> fn
00:00:09 #614 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-3941-4110-4848432b7e3e/main.spi
00:00:10 #615 [Verbose] >
00:00:10 #616 [Verbose] > ╭─[ 138.07ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #617 [Verbose] > │ () │
00:00:10 #618 [Verbose] > │ │
00:00:10 #619 [Verbose] > │ │
00:00:10 #620 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #621 [Verbose] >
00:00:10 #622 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #623 [Verbose] > // // test
00:00:10 #624 [Verbose] >
00:00:10 #625 [Verbose] > am.init 10i32 id
00:00:10 #626 [Verbose] > |> try_pick (fun x => if x = 5i32 then Some x else None)
00:00:10 #627 [Verbose] > |> _assert_eq (Some 5i32)
00:00:10 #628 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-3954-5480-5c31ee6a33ed/main.spi
00:00:10 #629 [Verbose] >
00:00:10 #630 [Verbose] > ╭─[ 203.28ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #631 [Verbose] > │ type Mut0 = {mutable l0 : int32} │
00:00:10 #632 [Verbose] > │ and [<Struct>] US0 = │
00:00:10 #633 [Verbose] > │ | US0_0 │
00:00:10 #634 [Verbose] > │ | US0_1 of f1_0 : int32 │
00:00:10 #635 [Verbose] > │ and Mut1 = {mutable l0 : int32; mutable l1 : US0} │
00:00:10 #636 [Verbose] > │ let rec method1 (v0 : Mut0) : bool = │
00:00:10 #637 [Verbose] > │ let v1 : int32 = v0.l0 │
00:00:10 #638 [Verbose] > │ let v2 : bool = v1 < 10 │
00:00:10 #639 [Verbose] > │ v2 │
00:00:10 #640 [Verbose] > │ and method2 (v0 : int32, v1 : Mut1) : bool = │
00:00:10 #641 [Verbose] > │ let v2 : int32 = v1.l0 │
00:00:10 #642 [Verbose] > │ let v3 : bool = v2 < v0 │
00:00:10 #643 [Verbose] > │ v3 │
00:00:10 #644 [Verbose] > │ and method3 (v0 : bool) : bool = │
00:00:10 #645 [Verbose] > │ v0 │
00:00:10 #646 [Verbose] > │ and method0 () : unit = │
00:00:10 #647 [Verbose] > │ let v0 : (int32 []) = Array.zeroCreate<int32> (10) │
00:00:10 #648 [Verbose] > │ let v1 : Mut0 = {l0 = 0} : Mut0 │
00:00:10 #649 [Verbose] > │ while method1(v1) do │
00:00:10 #650 [Verbose] > │ let v3 : int32 = v1.l0 │
00:00:10 #651 [Verbose] > │ v0.[int v3] <- v3 │
00:00:10 #652 [Verbose] > │ let v4 : int32 = v3 + 1 │
00:00:10 #653 [Verbose] > │ v1.l0 <- v4 │
00:00:10 #654 [Verbose] > │ () │
00:00:10 #655 [Verbose] > │ let v5 : int32 = v0.Length │
00:00:10 #656 [Verbose] > │ let v6 : US0 = US0_0 │
00:00:10 #657 [Verbose] > │ let v7 : Mut1 = {l0 = 0; l1 = v6} : Mut1 │
00:00:10 #658 [Verbose] > │ while method2(v5, v7) do │
00:00:10 #659 [Verbose] > │ let v9 : int32 = v7.l0 │
00:00:10 #660 [Verbose] > │ let v10 : int32 = -v9 │
00:00:10 #661 [Verbose] > │ let v11 : int32 = v10 + v5 │
00:00:10 #662 [Verbose] > │ let v12 : int32 = v11 - 1 │
00:00:10 #663 [Verbose] > │ let v13 : US0 = v7.l1 │
00:00:10 #664 [Verbose] > │ let v14 : int32 = v0.[int v12] │
00:00:10 #665 [Verbose] > │ let v21 : US0 = │
00:00:10 #666 [Verbose] > │ match v13 with │
00:00:10 #667 [Verbose] > │ | US0_0 -> (* None *) │
00:00:10 #668 [Verbose] > │ let v16 : bool = v14 = 5 │
00:00:10 #669 [Verbose] > │ if v16 then │
00:00:10 #670 [Verbose] > │ US0_1(v14) │
00:00:10 #671 [Verbose] > │ else │
00:00:10 #672 [Verbose] > │ US0_0 │
00:00:10 #673 [Verbose] > │ | US0_1(v15) -> (* Some *) │
00:00:10 #674 [Verbose] > │ v13 │
00:00:10 #675 [Verbose] > │ let v22 : int32 = v9 + 1 │
00:00:10 #676 [Verbose] > │ v7.l0 <- v22 │
00:00:10 #677 [Verbose] > │ v7.l1 <- v21 │
00:00:10 #678 [Verbose] > │ () │
00:00:10 #679 [Verbose] > │ let v23 : US0 = v7.l1 │
00:00:10 #680 [Verbose] > │ let v27 : bool = │
00:00:10 #681 [Verbose] > │ match v23 with │
00:00:10 #682 [Verbose] > │ | US0_1(v25) -> (* Some *) │
00:00:10 #683 [Verbose] > │ let v26 : bool = v25 = 5 │
00:00:10 #684 [Verbose] > │ v26 │
00:00:10 #685 [Verbose] > │ | _ -> │
00:00:10 #686 [Verbose] > │ false │
00:00:10 #687 [Verbose] > │ let v29 : bool = │
00:00:10 #688 [Verbose] > │ if v27 then │
00:00:10 #689 [Verbose] > │ true │
00:00:10 #690 [Verbose] > │ else │
00:00:10 #691 [Verbose] > │ method3(v27) │
00:00:10 #692 [Verbose] > │ let v30 : US0 = US0_1(5) │
00:00:10 #693 [Verbose] > │ let v31 : string = $"__expect / actual: %A{v23} / expected: %A{v30}" │
00:00:10 #694 [Verbose] > │ let v32 : bool = v29 = false │
00:00:10 #695 [Verbose] > │ if v32 then │
00:00:10 #696 [Verbose] > │ failwith<unit> v31 │
00:00:10 #697 [Verbose] > │ method0() │
00:00:10 #698 [Verbose] > │ │
00:00:10 #699 [Verbose] > │ │
00:00:10 #700 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #701 [Verbose] >
00:00:10 #702 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:10 #703 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:10 #704 [Verbose] > │ ## indexed' │
00:00:10 #705 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #706 [Verbose] >
00:00:10 #707 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #708 [Verbose] > inl indexed' forall t dim {int; number} dim' {int; number} u {number}. (ar : a
00:00:10 #709 [Verbose] > dim t) : a dim' (u * t) =
00:00:10 #710 [Verbose] > ((0, a ;[[]]), ar)
00:00:10 #711 [Verbose] > ||> am.fold fun (i, acc) x =>
00:00:10 #712 [Verbose] > i + 1, acc /@ a ;[[i, x]]
00:00:10 #713 [Verbose] > |> snd
00:00:10 #714 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-3975-7557-752a2979f063/main.spi
00:00:10 #715 [Verbose] >
00:00:10 #716 [Verbose] > ╭─[ 135.21ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #717 [Verbose] > │ () │
00:00:10 #718 [Verbose] > │ │
00:00:10 #719 [Verbose] > │ │
00:00:10 #720 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #721 [Verbose] >
00:00:10 #722 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #723 [Verbose] > // // test
00:00:10 #724 [Verbose] >
00:00:10 #725 [Verbose] > am.init 3i32 ((*) 2)
00:00:10 #726 [Verbose] > |> indexed'
00:00:10 #727 [Verbose] > |> _assert_eq (a ;[[0i32, 0; 1, 2; 2, 4]] : a i32 _)
00:00:10 #728 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-3989-8911-821c48975ca2/main.spi
00:00:10 #729 [Verbose] >
00:00:10 #730 [Verbose] > ╭─[ 217.14ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #731 [Verbose] > │ type Mut0 = {mutable l0 : int32} │
00:00:10 #732 [Verbose] > │ and Mut1 = {mutable l0 : int32; mutable l1 : int32; mutable l2 : (struct │
00:00:10 #733 [Verbose] > │ (int32 * int32) [])} │
00:00:10 #734 [Verbose] > │ let rec method1 (v0 : Mut0) : bool = │
00:00:10 #735 [Verbose] > │ let v1 : int32 = v0.l0 │
00:00:10 #736 [Verbose] > │ let v2 : bool = v1 < 3 │
00:00:10 #737 [Verbose] > │ v2 │
00:00:10 #738 [Verbose] > │ and method2 (v0 : (struct (int32 * int32) [])) : (struct (int32 * int32) []) │
00:00:10 #739 [Verbose] > │ = │
00:00:10 #740 [Verbose] > │ v0 │
00:00:10 #741 [Verbose] > │ and method3 (v0 : int32, v1 : Mut1) : bool = │
00:00:10 #742 [Verbose] > │ let v2 : int32 = v1.l0 │
00:00:10 #743 [Verbose] > │ let v3 : bool = v2 < v0 │
00:00:10 #744 [Verbose] > │ v3 │
00:00:10 #745 [Verbose] > │ and method4 (v0 : int32, v1 : Mut0) : bool = │
00:00:10 #746 [Verbose] > │ let v2 : int32 = v1.l0 │
00:00:10 #747 [Verbose] > │ let v3 : bool = v2 < v0 │
00:00:10 #748 [Verbose] > │ v3 │
00:00:10 #749 [Verbose] > │ and method5 (v0 : (struct (int32 * int32) []), v1 : (struct (int32 * int32) │
00:00:10 #750 [Verbose] > │ []), v2 : int32) : bool = │
00:00:10 #751 [Verbose] > │ let v3 : int32 = v0.Length │
00:00:10 #752 [Verbose] > │ let v4 : bool = v2 < v3 │
00:00:10 #753 [Verbose] > │ if v4 then │
00:00:10 #754 [Verbose] > │ let struct (v5 : int32, v6 : int32) = v0.[int v2] │
00:00:10 #755 [Verbose] > │ let struct (v7 : int32, v8 : int32) = v1.[int v2] │
00:00:10 #756 [Verbose] > │ let v9 : bool = v5 = v7 │
00:00:10 #757 [Verbose] > │ let v11 : bool = │
00:00:10 #758 [Verbose] > │ if v9 then │
00:00:10 #759 [Verbose] > │ let v10 : bool = v6 = v8 │
00:00:10 #760 [Verbose] > │ v10 │
00:00:10 #761 [Verbose] > │ else │
00:00:10 #762 [Verbose] > │ false │
00:00:10 #763 [Verbose] > │ if v11 then │
00:00:10 #764 [Verbose] > │ let v12 : int32 = v2 + 1 │
00:00:10 #765 [Verbose] > │ method5(v0, v1, v12) │
00:00:10 #766 [Verbose] > │ else │
00:00:10 #767 [Verbose] > │ false │
00:00:10 #768 [Verbose] > │ else │
00:00:10 #769 [Verbose] > │ true │
00:00:10 #770 [Verbose] > │ and method6 (v0 : bool) : bool = │
00:00:10 #771 [Verbose] > │ v0 │
00:00:10 #772 [Verbose] > │ and method0 () : unit = │
00:00:10 #773 [Verbose] > │ let v0 : (int32 []) = Array.zeroCreate<int32> (3) │
00:00:10 #774 [Verbose] > │ let v1 : Mut0 = {l0 = 0} : Mut0 │
00:00:10 #775 [Verbose] > │ while method1(v1) do │
00:00:10 #776 [Verbose] > │ let v3 : int32 = v1.l0 │
00:00:10 #777 [Verbose] > │ let v4 : int32 = 2 * v3 │
00:00:10 #778 [Verbose] > │ v0.[int v3] <- v4 │
00:00:10 #779 [Verbose] > │ let v5 : int32 = v3 + 1 │
00:00:10 #780 [Verbose] > │ v1.l0 <- v5 │
00:00:10 #781 [Verbose] > │ () │
00:00:10 #782 [Verbose] > │ let v6 : (struct (int32 * int32) []) = [||] │
00:00:10 #783 [Verbose] > │ let v7 : (struct (int32 * int32) []) = method2(v6) │
00:00:10 #784 [Verbose] > │ let v8 : int32 = v0.Length │
00:00:10 #785 [Verbose] > │ let v9 : Mut1 = {l0 = 0; l1 = 0; l2 = v7} : Mut1 │
00:00:10 #786 [Verbose] > │ while method3(v8, v9) do │
00:00:10 #787 [Verbose] > │ let v11 : int32 = v9.l0 │
00:00:10 #788 [Verbose] > │ let struct (v12 : int32, v13 : (struct (int32 * int32) [])) = v9.l1, │
00:00:10 #789 [Verbose] > │ v9.l2 │
00:00:10 #790 [Verbose] > │ let v14 : int32 = v0.[int v11] │
00:00:10 #791 [Verbose] > │ let v15 : int32 = v12 + 1 │
00:00:10 #792 [Verbose] > │ let v16 : (struct (int32 * int32) []) = [|struct (v12, v14)|] │
00:00:10 #793 [Verbose] > │ let v17 : (struct (int32 * int32) []) = method2(v16) │
00:00:10 #794 [Verbose] > │ let v18 : int32 = v13.Length │
00:00:10 #795 [Verbose] > │ let v19 : int32 = v17.Length │
00:00:10 #796 [Verbose] > │ let v20 : int32 = v18 + v19 │
00:00:10 #797 [Verbose] > │ let v21 : (struct (int32 * int32) []) = Array.zeroCreate<struct │
00:00:10 #798 [Verbose] > │ (int32 * int32)> (v20) │
00:00:10 #799 [Verbose] > │ let v22 : Mut0 = {l0 = 0} : Mut0 │
00:00:10 #800 [Verbose] > │ while method4(v20, v22) do │
00:00:10 #801 [Verbose] > │ let v24 : int32 = v22.l0 │
00:00:10 #802 [Verbose] > │ let v25 : bool = v24 < v18 │
00:00:10 #803 [Verbose] > │ let struct (v31 : int32, v32 : int32) = │
00:00:10 #804 [Verbose] > │ if v25 then │
00:00:10 #805 [Verbose] > │ let struct (v26 : int32, v27 : int32) = v13.[int v24] │
00:00:10 #806 [Verbose] > │ struct (v26, v27) │
00:00:10 #807 [Verbose] > │ else │
00:00:10 #808 [Verbose] > │ let v28 : int32 = v24 - v18 │
00:00:10 #809 [Verbose] > │ let struct (v29 : int32, v30 : int32) = v17.[int v28] │
00:00:10 #810 [Verbose] > │ struct (v29, v30) │
00:00:10 #811 [Verbose] > │ v21.[int v24] <- struct (v31, v32) │
00:00:10 #812 [Verbose] > │ let v33 : int32 = v24 + 1 │
00:00:10 #813 [Verbose] > │ v22.l0 <- v33 │
00:00:10 #814 [Verbose] > │ () │
00:00:10 #815 [Verbose] > │ let v34 : int32 = v11 + 1 │
00:00:10 #816 [Verbose] > │ v9.l0 <- v34 │
00:00:10 #817 [Verbose] > │ v9.l1 <- v15 │
00:00:10 #818 [Verbose] > │ v9.l2 <- v21 │
00:00:10 #819 [Verbose] > │ () │
00:00:10 #820 [Verbose] > │ let struct (v35 : int32, v36 : (struct (int32 * int32) [])) = v9.l1, │
00:00:10 #821 [Verbose] > │ v9.l2 │
00:00:10 #822 [Verbose] > │ let v37 : (struct (int32 * int32) []) = [|struct (0, 0); struct (1, 2); │
00:00:10 #823 [Verbose] > │ struct (2, 4)|] │
00:00:10 #824 [Verbose] > │ let v38 : (struct (int32 * int32) []) = method2(v37) │
00:00:10 #825 [Verbose] > │ let v39 : int32 = v36.Length │
00:00:10 #826 [Verbose] > │ let v40 : int32 = v38.Length │
00:00:10 #827 [Verbose] > │ let v41 : bool = v39 = v40 │
00:00:10 #828 [Verbose] > │ let v42 : bool = v41 <> true │
00:00:10 #829 [Verbose] > │ let v45 : bool = │
00:00:10 #830 [Verbose] > │ if v42 then │
00:00:10 #831 [Verbose] > │ false │
00:00:10 #832 [Verbose] > │ else │
00:00:10 #833 [Verbose] > │ let v43 : int32 = 0 │
00:00:10 #834 [Verbose] > │ method5(v36, v38, v43) │
00:00:10 #835 [Verbose] > │ let v47 : bool = │
00:00:10 #836 [Verbose] > │ if v45 then │
00:00:10 #837 [Verbose] > │ true │
00:00:10 #838 [Verbose] > │ else │
00:00:10 #839 [Verbose] > │ method6(v45) │
00:00:10 #840 [Verbose] > │ let v48 : string = $"__expect / actual: %A{v36} / expected: %A{v38}" │
00:00:10 #841 [Verbose] > │ let v49 : bool = v47 = false │
00:00:10 #842 [Verbose] > │ if v49 then │
00:00:10 #843 [Verbose] > │ failwith<unit> v48 │
00:00:10 #844 [Verbose] > │ method0() │
00:00:10 #845 [Verbose] > │ │
00:00:10 #846 [Verbose] > │ │
00:00:10 #847 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #848 [Verbose] >
00:00:10 #849 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:10 #850 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:10 #851 [Verbose] > │ ## map_base │
00:00:10 #852 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #853 [Verbose] >
00:00:10 #854 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #855 [Verbose] > inl map_base forall t u. (fn : t -> u) (x : array_base t) : array_base u =
00:00:10 #856 [Verbose] > a x
00:00:10 #857 [Verbose] > |> am.map fn
00:00:10 #858 [Verbose] > |> fun (a x : _ i64 _) => x
00:00:10 #859 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-4011-1176-1eaae0ef2a4a/main.spi
00:00:10 #860 [Verbose] >
00:00:10 #861 [Verbose] > ╭─[ 149.17ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #862 [Verbose] > │ () │
00:00:10 #863 [Verbose] > │ │
00:00:10 #864 [Verbose] > │ │
00:00:10 #865 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #866 [Verbose] >
00:00:10 #867 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #868 [Verbose] > inl average forall el {number}. (array : a _ el) : el =
00:00:10 #869 [Verbose] > $"!array |> Array.average"
00:00:10 #870 [Verbose] >
00:00:10 #871 [Verbose] > inl length forall dim el {number}. (array : a dim el) : dim =
00:00:10 #872 [Verbose] > $"!array |> Array.length"
00:00:10 #873 [Verbose] >
00:00:10 #874 [Verbose] > inl parallel_map forall dim el el'. (fn : el -> el') (array : a dim el) : a dim
00:00:10 #875 [Verbose] > el' =
00:00:10 #876 [Verbose] > $"!array |> Array.Parallel.map !fn"
00:00:10 #877 [Verbose] >
00:00:10 #878 [Verbose] > inl sort_by forall dim el. (fn : el -> _) (array : a dim el) : a dim el =
00:00:10 #879 [Verbose] > $"!array |> Array.sortBy !fn"
00:00:10 #880 [Verbose] >
00:00:10 #881 [Verbose] > inl sort_descending forall dim el. (array : a dim el) : a dim el =
00:00:10 #882 [Verbose] > $"!array |> Array.sortDescending"
00:00:10 #883 [Verbose] >
00:00:10 #884 [Verbose] > inl transpose forall dim el. (array : a dim (a dim el)) : a dim (a dim el) =
00:00:10 #885 [Verbose] > $"!array |> Array.transpose"
00:00:10 #886 [Verbose] >
00:00:10 #887 [Verbose] > inl try_item forall dim el. (i : i32) (array : a dim el) : option el =
00:00:10 #888 [Verbose] > $"!array |> Array.tryItem !i" |> optionm'.unbox
00:00:10 #889 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-4026-2679-28a3c53556f0/main.spi
00:00:10 #890 [Verbose] >
00:00:10 #891 [Verbose] > ╭─[ 134.79ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #892 [Verbose] > │ () │
00:00:10 #893 [Verbose] > │ │
00:00:10 #894 [Verbose] > │ │
00:00:10 #895 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #896 [Verbose] >
00:00:10 #897 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:10 #898 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:10 #899 [Verbose] > │ ## indexed │
00:00:10 #900 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #901 [Verbose] >
00:00:10 #902 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #903 [Verbose] > inl indexed (array : a _ _) =
00:00:10 #904 [Verbose] > (([[]], 0), array)
00:00:10 #905 [Verbose] > ||> am.fold fun (acc, i) x =>
00:00:10 #906 [Verbose] > (i, x) :: acc, i + 1
00:00:10 #907 [Verbose] > |> fst
00:00:10 #908 [Verbose] > |> listm.rev
00:00:10 #909 [Verbose] > |> listm.toArray
00:00:10 #910 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-4040-4033-4f333c028ddc/main.spi
00:00:11 #911 [Verbose] >
00:00:11 #912 [Verbose] > ╭─[ 139.02ms - stdout ]────────────────────────────────────────────────────────╮
00:00:11 #913 [Verbose] > │ () │
00:00:11 #914 [Verbose] > │ │
00:00:11 #915 [Verbose] > │ │
00:00:11 #916 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #917 [Verbose] >
00:00:11 #918 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:11 #919 [Verbose] > // // test
00:00:11 #920 [Verbose] >
00:00:11 #921 [Verbose] > am.init 3i32 ((*) 2)
00:00:11 #922 [Verbose] > |> indexed
00:00:11 #923 [Verbose] > |> _assert_eq (a ;[[0i32, 0; 1, 2; 2, 4]] : a i32 _)
00:00:11 #924 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-4054-5427-53444caef47d/main.spi
00:00:11 #925 [Verbose] >
00:00:11 #926 [Verbose] > ╭─[ 319.84ms - stdout ]────────────────────────────────────────────────────────╮
00:00:11 #927 [Verbose] > │ type Mut0 = {mutable l0 : int32} │
00:00:11 #928 [Verbose] > │ and UH0 = │
00:00:11 #929 [Verbose] > │ | UH0_0 of int32 * int32 * UH0 │
00:00:11 #930 [Verbose] > │ | UH0_1 │
00:00:11 #931 [Verbose] > │ and Mut1 = {mutable l0 : int32; mutable l1 : UH0; mutable l2 : int32} │
00:00:11 #932 [Verbose] > │ let rec method1 (v0 : Mut0) : bool = │
00:00:11 #933 [Verbose] > │ let v1 : int32 = v0.l0 │
00:00:11 #934 [Verbose] > │ let v2 : bool = v1 < 3 │
00:00:11 #935 [Verbose] > │ v2 │
00:00:11 #936 [Verbose] > │ and method2 (v0 : int32, v1 : Mut1) : bool = │
00:00:11 #937 [Verbose] > │ let v2 : int32 = v1.l0 │
00:00:11 #938 [Verbose] > │ let v3 : bool = v2 < v0 │
00:00:11 #939 [Verbose] > │ v3 │
00:00:11 #940 [Verbose] > │ and method3 (v0 : UH0, v1 : UH0) : UH0 = │
00:00:11 #941 [Verbose] > │ match v0 with │
00:00:11 #942 [Verbose] > │ | UH0_0(v2, v3, v4) -> (* Cons *) │
00:00:11 #943 [Verbose] > │ let v5 : UH0 = UH0_0(v2, v3, v1) │
00:00:11 #944 [Verbose] > │ method3(v4, v5) │
00:00:11 #945 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:11 #946 [Verbose] > │ v1 │
00:00:11 #947 [Verbose] > │ and method5 (v0 : UH0, v1 : int32) : int32 = │
00:00:11 #948 [Verbose] > │ match v0 with │
00:00:11 #949 [Verbose] > │ | UH0_0(v2, v3, v4) -> (* Cons *) │
00:00:11 #950 [Verbose] > │ let v5 : int32 = v1 + 1 │
00:00:11 #951 [Verbose] > │ method5(v4, v5) │
00:00:11 #952 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:11 #953 [Verbose] > │ v1 │
00:00:11 #954 [Verbose] > │ and method6 (v0 : (struct (int32 * int32) []), v1 : UH0, v2 : int32) : int32 │
00:00:11 #955 [Verbose] > │ = │
00:00:11 #956 [Verbose] > │ match v1 with │
00:00:11 #957 [Verbose] > │ | UH0_0(v3, v4, v5) -> (* Cons *) │
00:00:11 #958 [Verbose] > │ v0.[int v2] <- struct (v3, v4) │
00:00:11 #959 [Verbose] > │ let v6 : int32 = v2 + 1 │
00:00:11 #960 [Verbose] > │ method6(v0, v5, v6) │
00:00:11 #961 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:11 #962 [Verbose] > │ v2 │
00:00:11 #963 [Verbose] > │ and method4 (v0 : UH0) : (struct (int32 * int32) []) = │
00:00:11 #964 [Verbose] > │ let v1 : int32 = 0 │
00:00:11 #965 [Verbose] > │ let v2 : int32 = method5(v0, v1) │
00:00:11 #966 [Verbose] > │ let v3 : (struct (int32 * int32) []) = Array.zeroCreate<struct (int32 * │
00:00:11 #967 [Verbose] > │ int32)> (v2) │
00:00:11 #968 [Verbose] > │ let v4 : int32 = 0 │
00:00:11 #969 [Verbose] > │ let v5 : int32 = method6(v3, v0, v4) │
00:00:11 #970 [Verbose] > │ v3 │
00:00:11 #971 [Verbose] > │ and method7 (v0 : (struct (int32 * int32) [])) : (struct (int32 * int32) []) │
00:00:11 #972 [Verbose] > │ = │
00:00:11 #973 [Verbose] > │ v0 │
00:00:11 #974 [Verbose] > │ and method8 (v0 : (struct (int32 * int32) []), v1 : (struct (int32 * int32) │
00:00:11 #975 [Verbose] > │ []), v2 : int32) : bool = │
00:00:11 #976 [Verbose] > │ let v3 : int32 = v0.Length │
00:00:11 #977 [Verbose] > │ let v4 : bool = v2 < v3 │
00:00:11 #978 [Verbose] > │ if v4 then │
00:00:11 #979 [Verbose] > │ let struct (v5 : int32, v6 : int32) = v0.[int v2] │
00:00:11 #980 [Verbose] > │ let struct (v7 : int32, v8 : int32) = v1.[int v2] │
00:00:11 #981 [Verbose] > │ let v9 : bool = v5 = v7 │
00:00:11 #982 [Verbose] > │ let v11 : bool = │
00:00:11 #983 [Verbose] > │ if v9 then │
00:00:11 #984 [Verbose] > │ let v10 : bool = v6 = v8 │
00:00:11 #985 [Verbose] > │ v10 │
00:00:11 #986 [Verbose] > │ else │
00:00:11 #987 [Verbose] > │ false │
00:00:11 #988 [Verbose] > │ if v11 then │
00:00:11 #989 [Verbose] > │ let v12 : int32 = v2 + 1 │
00:00:11 #990 [Verbose] > │ method8(v0, v1, v12) │
00:00:11 #991 [Verbose] > │ else │
00:00:11 #992 [Verbose] > │ false │
00:00:11 #993 [Verbose] > │ else │
00:00:11 #994 [Verbose] > │ true │
00:00:11 #995 [Verbose] > │ and method9 (v0 : bool) : bool = │
00:00:11 #996 [Verbose] > │ v0 │
00:00:11 #997 [Verbose] > │ and method0 () : unit = │
00:00:11 #998 [Verbose] > │ let v0 : (int32 []) = Array.zeroCreate<int32> (3) │
00:00:11 #999 [Verbose] > │ let v1 : Mut0 = {l0 = 0} : Mut0 │
00:00:11 #1000 [Verbose] > │ while method1(v1) do │
00:00:11 #1001 [Verbose] > │ let v3 : int32 = v1.l0 │
00:00:11 #1002 [Verbose] > │ let v4 : int32 = 2 * v3 │
00:00:11 #1003 [Verbose] > │ v0.[int v3] <- v4 │
00:00:11 #1004 [Verbose] > │ let v5 : int32 = v3 + 1 │
00:00:11 #1005 [Verbose] > │ v1.l0 <- v5 │
00:00:11 #1006 [Verbose] > │ () │
00:00:11 #1007 [Verbose] > │ let v6 : int32 = v0.Length │
00:00:11 #1008 [Verbose] > │ let v7 : UH0 = UH0_1 │
00:00:11 #1009 [Verbose] > │ let v8 : Mut1 = {l0 = 0; l1 = v7; l2 = 0} : Mut1 │
00:00:11 #1010 [Verbose] > │ while method2(v6, v8) do │
00:00:11 #1011 [Verbose] > │ let v10 : int32 = v8.l0 │
00:00:11 #1012 [Verbose] > │ let struct (v11 : UH0, v12 : int32) = v8.l1, v8.l2 │
00:00:11 #1013 [Verbose] > │ let v13 : int32 = v0.[int v10] │
00:00:11 #1014 [Verbose] > │ let v14 : int32 = v12 + 1 │
00:00:11 #1015 [Verbose] > │ let v15 : int32 = v10 + 1 │
00:00:11 #1016 [Verbose] > │ let v16 : UH0 = UH0_0(v12, v13, v11) │
00:00:11 #1017 [Verbose] > │ v8.l0 <- v15 │
00:00:11 #1018 [Verbose] > │ v8.l1 <- v16 │
00:00:11 #1019 [Verbose] > │ v8.l2 <- v14 │
00:00:11 #1020 [Verbose] > │ () │
00:00:11 #1021 [Verbose] > │ let struct (v17 : UH0, v18 : int32) = v8.l1, v8.l2 │
00:00:11 #1022 [Verbose] > │ let v19 : UH0 = UH0_1 │
00:00:11 #1023 [Verbose] > │ let v20 : UH0 = method3(v17, v19) │
00:00:11 #1024 [Verbose] > │ let v21 : (struct (int32 * int32) []) = method4(v20) │
00:00:11 #1025 [Verbose] > │ let v22 : (struct (int32 * int32) []) = [|struct (0, 0); struct (1, 2); │
00:00:11 #1026 [Verbose] > │ struct (2, 4)|] │
00:00:11 #1027 [Verbose] > │ let v23 : (struct (int32 * int32) []) = method7(v22) │
00:00:11 #1028 [Verbose] > │ let v24 : int32 = v21.Length │
00:00:11 #1029 [Verbose] > │ let v25 : int32 = v23.Length │
00:00:11 #1030 [Verbose] > │ let v26 : bool = v24 = v25 │
00:00:11 #1031 [Verbose] > │ let v27 : bool = v26 <> true │
00:00:11 #1032 [Verbose] > │ let v30 : bool = │
00:00:11 #1033 [Verbose] > │ if v27 then │
00:00:11 #1034 [Verbose] > │ false │
00:00:11 #1035 [Verbose] > │ else │
00:00:11 #1036 [Verbose] > │ let v28 : int32 = 0 │
00:00:11 #1037 [Verbose] > │ method8(v21, v23, v28) │
00:00:11 #1038 [Verbose] > │ let v32 : bool = │
00:00:11 #1039 [Verbose] > │ if v30 then │
00:00:11 #1040 [Verbose] > │ true │
00:00:11 #1041 [Verbose] > │ else │
00:00:11 #1042 [Verbose] > │ method9(v30) │
00:00:11 #1043 [Verbose] > │ let v33 : string = $"__expect / actual: %A{v21} / expected: %A{v23}" │
00:00:11 #1044 [Verbose] > │ let v34 : bool = v32 = false │
00:00:11 #1045 [Verbose] > │ if v34 then │
00:00:11 #1046 [Verbose] > │ failwith<unit> v33 │
00:00:11 #1047 [Verbose] > │ method0() │
00:00:11 #1048 [Verbose] > │ │
00:00:11 #1049 [Verbose] > │ │
00:00:11 #1050 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #1051 [Verbose] >
00:00:11 #1052 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:11 #1053 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:11 #1054 [Verbose] > │ ## from_vec │
00:00:11 #1055 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #1056 [Verbose] >
00:00:11 #1057 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:11 #1058 [Verbose] > inl from_vec forall dim el. (vec : vec el) : a dim el =
00:00:11 #1059 [Verbose] > inl vec = join vec
00:00:11 #1060 [Verbose] > !\($'"fable_library_rust::NativeArray_::array_from(!vec)"')
00:00:11 #1061 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-4087-8746-8617d61940b5/main.spi
00:00:11 #1062 [Verbose] >
00:00:11 #1063 [Verbose] > ╭─[ 147.61ms - stdout ]────────────────────────────────────────────────────────╮
00:00:11 #1064 [Verbose] > │ () │
00:00:11 #1065 [Verbose] > │ │
00:00:11 #1066 [Verbose] > │ │
00:00:11 #1067 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #1068 [Verbose] >
00:00:11 #1069 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:11 #1070 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:11 #1071 [Verbose] > │ ## to_vec │
00:00:11 #1072 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #1073 [Verbose] >
00:00:11 #1074 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:11 #1075 [Verbose] > inl to_vec forall t. (ar : array_base t) : vec t =
00:00:11 #1076 [Verbose] > inl ar = join ar
00:00:11 #1077 [Verbose] > !\($'"!ar.to_vec()"')
00:00:11 #1078 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-4102-0212-0cac2c689cd0/main.spi
00:00:11 #1079 [Verbose] >
00:00:11 #1080 [Verbose] > ╭─[ 134.44ms - stdout ]────────────────────────────────────────────────────────╮
00:00:11 #1081 [Verbose] > │ () │
00:00:11 #1082 [Verbose] > │ │
00:00:11 #1083 [Verbose] > │ │
00:00:11 #1084 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #1085 [Verbose] >
00:00:11 #1086 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:11 #1087 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:11 #1088 [Verbose] > │ ## vec_push │
00:00:11 #1089 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #1090 [Verbose] >
00:00:11 #1091 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:11 #1092 [Verbose] > inl vec_push forall el. (el : el) (vec : vec el) : vec el =
00:00:11 #1093 [Verbose] > inl el = join el
00:00:11 #1094 [Verbose] > inl vec = join vec
00:00:11 #1095 [Verbose] > !\($'"let mut !vec = !vec"')
00:00:11 #1096 [Verbose] > // inl vec = vec |> rust.to_mut
00:00:11 #1097 [Verbose] > !\($'"!vec.push(!el)"')
00:00:11 #1098 [Verbose] > !\($'"!vec"')
00:00:11 #1099 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-4115-1571-1235eba7b1e5/main.spi
00:00:11 #1100 [Verbose] >
00:00:11 #1101 [Verbose] > ╭─[ 133.28ms - stdout ]────────────────────────────────────────────────────────╮
00:00:11 #1102 [Verbose] > │ () │
00:00:11 #1103 [Verbose] > │ │
00:00:11 #1104 [Verbose] > │ │
00:00:11 #1105 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #1106 [Verbose] >
00:00:11 #1107 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:11 #1108 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:11 #1109 [Verbose] > │ ## vec_reverse │
00:00:11 #1110 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #1111 [Verbose] >
00:00:11 #1112 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:11 #1113 [Verbose] > inl vec_reverse forall el. (vec : vec el) : vec el =
00:00:11 #1114 [Verbose] > inl vec = join vec
00:00:11 #1115 [Verbose] > !\($'"let mut !vec = !vec"')
00:00:11 #1116 [Verbose] > !\($'"!vec.reverse()"')
00:00:11 #1117 [Verbose] > !\($'"!vec"')
00:00:11 #1118 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-4129-2912-20a5ccf7b367/main.spi
00:00:11 #1119 [Verbose] >
00:00:11 #1120 [Verbose] > ╭─[ 135.17ms - stdout ]────────────────────────────────────────────────────────╮
00:00:11 #1121 [Verbose] > │ () │
00:00:11 #1122 [Verbose] > │ │
00:00:11 #1123 [Verbose] > │ │
00:00:11 #1124 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #1125 [Verbose] >
00:00:11 #1126 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:11 #1127 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:11 #1128 [Verbose] > │ ## vec_retain │
00:00:11 #1129 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #1130 [Verbose] >
00:00:11 #1131 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:11 #1132 [Verbose] > inl vec_retain forall el. (fn : el -> bool) (vec : vec el) : vec el =
00:00:11 #1133 [Verbose] > inl vec = join vec
00:00:11 #1134 [Verbose] > inl fn = join fn
00:00:11 #1135 [Verbose] > !\($'"let mut !vec = !vec"')
00:00:11 #1136 [Verbose] > // inl vec = vec |> rust.to_mut
00:00:11 #1137 [Verbose] > !\($'"!vec.retain(|x| !fn(x.clone()))"')
00:00:11 #1138 [Verbose] > !\($'"!vec"')
00:00:11 #1139 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-4142-4274-438ef21a70df/main.spi
00:00:12 #1140 [Verbose] >
00:00:12 #1141 [Verbose] > ╭─[ 136.66ms - stdout ]────────────────────────────────────────────────────────╮
00:00:12 #1142 [Verbose] > │ () │
00:00:12 #1143 [Verbose] > │ │
00:00:12 #1144 [Verbose] > │ │
00:00:12 #1145 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #1146 [Verbose] >
00:00:12 #1147 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:12 #1148 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:12 #1149 [Verbose] > │ ## vec_sort_by_key │
00:00:12 #1150 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #1151 [Verbose] >
00:00:12 #1152 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 #1153 [Verbose] > inl vec_sort_by_key forall el t. (fn : el -> t) (vec : vec el) : vec el =
00:00:12 #1154 [Verbose] > inl vec = join vec
00:00:12 #1155 [Verbose] > inl fn = join fn
00:00:12 #1156 [Verbose] > !\($'"let mut !vec = !vec"')
00:00:12 #1157 [Verbose] > // inl vec = vec |> rust.to_mut
00:00:12 #1158 [Verbose] > !\($'"!vec.sort_by_key(|x| !fn(x.clone()))"')
00:00:12 #1159 [Verbose] > !\($'"!vec"')
00:00:12 #1160 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-4156-5651-50b97738f0f6/main.spi
00:00:12 #1161 [Verbose] >
00:00:12 #1162 [Verbose] > ╭─[ 145.44ms - stdout ]────────────────────────────────────────────────────────╮
00:00:12 #1163 [Verbose] > │ () │
00:00:12 #1164 [Verbose] > │ │
00:00:12 #1165 [Verbose] > │ │
00:00:12 #1166 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #1167 [Verbose] >
00:00:12 #1168 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:12 #1169 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:12 #1170 [Verbose] > │ ## vec_extend │
00:00:12 #1171 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #1172 [Verbose] >
00:00:12 #1173 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 #1174 [Verbose] > inl vec_extend forall el. (el : vec el) (vec : vec el) : vec el =
00:00:12 #1175 [Verbose] > inl el = join el
00:00:12 #1176 [Verbose] > inl vec = join vec
00:00:12 #1177 [Verbose] > !\($'"let mut !vec = !vec"')
00:00:12 #1178 [Verbose] > // inl vec = vec |> rust.to_mut
00:00:12 #1179 [Verbose] > !\($'"!vec.extend(!el)"')
00:00:12 #1180 [Verbose] > !\($'"!vec"')
00:00:12 #1181 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-4171-7123-72af41979242/main.spi
00:00:12 #1182 [Verbose] >
00:00:12 #1183 [Verbose] > ╭─[ 135.58ms - stdout ]────────────────────────────────────────────────────────╮
00:00:12 #1184 [Verbose] > │ () │
00:00:12 #1185 [Verbose] > │ │
00:00:12 #1186 [Verbose] > │ │
00:00:12 #1187 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #1188 [Verbose] >
00:00:12 #1189 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:12 #1190 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:12 #1191 [Verbose] > │ ## vec_collect │
00:00:12 #1192 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #1193 [Verbose] >
00:00:12 #1194 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 #1195 [Verbose] > inl vec_collect fn vec =
00:00:12 #1196 [Verbose] > ((;[[]] |> to_vec), (vec |> from_vec : _ i32 _))
00:00:12 #1197 [Verbose] > ||> am.fold fun acc x =>
00:00:12 #1198 [Verbose] > acc |> vec_extend (fn x)
00:00:12 #1199 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-4184-8477-8ae8c9b0592c/main.spi
00:00:12 #1200 [Verbose] >
00:00:12 #1201 [Verbose] > ╭─[ 142.86ms - stdout ]────────────────────────────────────────────────────────╮
00:00:12 #1202 [Verbose] > │ () │
00:00:12 #1203 [Verbose] > │ │
00:00:12 #1204 [Verbose] > │ │
00:00:12 #1205 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #1206 [Verbose] >
00:00:12 #1207 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:12 #1208 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:12 #1209 [Verbose] > │ ## vec_collect_option │
00:00:12 #1210 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #1211 [Verbose] >
00:00:12 #1212 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 #1213 [Verbose] > inl vec_collect_option vec =
00:00:12 #1214 [Verbose] > ((;[[]] |> to_vec |> Ok), (vec |> from_vec : _ i32 _))
00:00:12 #1215 [Verbose] > ||> am.fold fun acc x =>
00:00:12 #1216 [Verbose] > x
00:00:12 #1217 [Verbose] > |> resultm.unbox
00:00:12 #1218 [Verbose] > |> fun x =>
00:00:12 #1219 [Verbose] > match acc, x |> resultm.map optionm'.unbox with
00:00:12 #1220 [Verbose] > | Ok acc, Ok (Some x) => acc |> vec_extend x |> Ok
00:00:12 #1221 [Verbose] > | _, Error error => error |> Error
00:00:12 #1222 [Verbose] > | _ => acc
00:00:12 #1223 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-4199-9922-93d90bd7d39f/main.spi
00:00:12 #1224 [Verbose] >
00:00:12 #1225 [Verbose] > ╭─[ 135.19ms - stdout ]────────────────────────────────────────────────────────╮
00:00:12 #1226 [Verbose] > │ () │
00:00:12 #1227 [Verbose] > │ │
00:00:12 #1228 [Verbose] > │ │
00:00:12 #1229 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #1230 [Verbose] >
00:00:12 #1231 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:12 #1232 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:12 #1233 [Verbose] > │ ## vec_collect_into │
00:00:12 #1234 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #1235 [Verbose] >
00:00:12 #1236 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 #1237 [Verbose] > inl vec_collect_into forall (c : * -> * -> *) t e.
00:00:12 #1238 [Verbose] > (x : vec (c t e))
00:00:12 #1239 [Verbose] > : c (vec t) e
00:00:12 #1240 [Verbose] > =
00:00:12 #1241 [Verbose] > !\($'"!x.into_iter().collect()"')
00:00:12 #1242 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-4212-1280-1bf47b2e6e3c/main.spi
00:00:12 #1243 [Verbose] >
00:00:12 #1244 [Verbose] > ╭─[ 143.00ms - stdout ]────────────────────────────────────────────────────────╮
00:00:12 #1245 [Verbose] > │ () │
00:00:12 #1246 [Verbose] > │ │
00:00:12 #1247 [Verbose] > │ │
00:00:12 #1248 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #1249 [Verbose] >
00:00:12 #1250 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:12 #1251 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:12 #1252 [Verbose] > │ ## vec_mapi │
00:00:12 #1253 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #1254 [Verbose] >
00:00:12 #1255 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 #1256 [Verbose] > inl vec_mapi forall dim t u. (fn : dim -> t -> u) (ar : vec t) : vec u =
00:00:12 #1257 [Verbose] > inl fn = join fn
00:00:12 #1258 [Verbose] > inl ar = join ar
00:00:12 #1259 [Verbose] > !\($'"!ar.iter().enumerate().map(|(i, x)|
00:00:12 #1260 [Verbose] > !fn(i.try_into().unwrap())(x.clone())).collect()"')
00:00:12 #1261 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-4227-2718-2292f7a89662/main.spi
00:00:12 #1262 [Verbose] >
00:00:12 #1263 [Verbose] > ╭─[ 155.75ms - stdout ]────────────────────────────────────────────────────────╮
00:00:12 #1264 [Verbose] > │ () │
00:00:12 #1265 [Verbose] > │ │
00:00:12 #1266 [Verbose] > │ │
00:00:12 #1267 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #1268 [Verbose] >
00:00:12 #1269 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:12 #1270 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:12 #1271 [Verbose] > │ ## vec_map │
00:00:12 #1272 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #1273 [Verbose] >
00:00:12 #1274 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 #1275 [Verbose] > inl vec_map forall t u. (fn : t -> u) (ar : vec t) : vec u =
00:00:12 #1276 [Verbose] > inl fn = join fn
00:00:12 #1277 [Verbose] > inl ar = join ar
00:00:12 #1278 [Verbose] > !\($'"!ar.iter().map(|x| !fn(x.clone())).collect()"')
00:00:12 #1279 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-4242-4289-47c2ec44ece7/main.spi
00:00:13 #1280 [Verbose] >
00:00:13 #1281 [Verbose] > ╭─[ 137.54ms - stdout ]────────────────────────────────────────────────────────╮
00:00:13 #1282 [Verbose] > │ () │
00:00:13 #1283 [Verbose] > │ │
00:00:13 #1284 [Verbose] > │ │
00:00:13 #1285 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #1286 [Verbose] >
00:00:13 #1287 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:13 #1288 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:13 #1289 [Verbose] > │ ## vec_filter │
00:00:13 #1290 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #1291 [Verbose] >
00:00:13 #1292 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:13 #1293 [Verbose] > inl vec_filter forall t. (fn : t -> bool) (ar : vec t) : vec t =
00:00:13 #1294 [Verbose] > inl fn = join fn
00:00:13 #1295 [Verbose] > inl ar = join ar
00:00:13 #1296 [Verbose] > !\($'"!ar.into_iter().filter(|x| !fn(x.clone().clone())).collect()"')
00:00:13 #1297 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-4256-5671-51fc2ce03061/main.spi
00:00:13 #1298 [Verbose] >
00:00:13 #1299 [Verbose] > ╭─[ 159.59ms - stdout ]────────────────────────────────────────────────────────╮
00:00:13 #1300 [Verbose] > │ () │
00:00:13 #1301 [Verbose] > │ │
00:00:13 #1302 [Verbose] > │ │
00:00:13 #1303 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #1304 [Verbose] >
00:00:13 #1305 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:13 #1306 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:13 #1307 [Verbose] > │ ## enumerate │
00:00:13 #1308 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #1309 [Verbose] >
00:00:13 #1310 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:13 #1311 [Verbose] > inl enumerate forall dim {int; number} t. (ar : a dim t) : a dim (unativeint *
00:00:13 #1312 [Verbose] > t) =
00:00:13 #1313 [Verbose] > inl (a ar) = ar
00:00:13 #1314 [Verbose] > inl ar = ar |> to_vec
00:00:13 #1315 [Verbose] > !\($'"!ar.into_iter().enumerate().map(std::rc::Rc::new).collect()"')
00:00:13 #1316 [Verbose] > |> vec_map from_pair
00:00:13 #1317 [Verbose] > |> from_vec
00:00:13 #1318 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-4272-7279-76bb324c4329/main.spi
00:00:13 #1319 [Verbose] >
00:00:13 #1320 [Verbose] > ╭─[ 134.43ms - stdout ]────────────────────────────────────────────────────────╮
00:00:13 #1321 [Verbose] > │ () │
00:00:13 #1322 [Verbose] > │ │
00:00:13 #1323 [Verbose] > │ │
00:00:13 #1324 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #1325 [Verbose] >
00:00:13 #1326 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:13 #1327 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:13 #1328 [Verbose] > │ ## slice' │
00:00:13 #1329 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #1330 [Verbose] >
00:00:13 #1331 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:13 #1332 [Verbose] > inl slice' forall dim el. (x : option el) : slice' el dim =
00:00:13 #1333 [Verbose] > match x with
00:00:13 #1334 [Verbose] > | Some x => !\($'"[[!x]]"')
00:00:13 #1335 [Verbose] > | None =>
00:00:13 #1336 [Verbose] > !\($'"[[\\\"\\\".to_string()]]"') : slice' el dim
00:00:13 #1337 [Verbose] > // emit_expr `(()) `(slice' el dim) () ($'"[[@dim]]"' : string) :
00:00:13 #1338 [Verbose] > slice' el 10
00:00:13 #1339 [Verbose] > // !\( : string) : slice' el i32 // !\($'"[[]]"')
00:00:13 #1340 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-4286-8636-822bff31f54e/main.spi
00:00:13 #1341 [Verbose] >
00:00:13 #1342 [Verbose] > ╭─[ 135.03ms - stdout ]────────────────────────────────────────────────────────╮
00:00:13 #1343 [Verbose] > │ () │
00:00:13 #1344 [Verbose] > │ │
00:00:13 #1345 [Verbose] > │ │
00:00:13 #1346 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #1347 [Verbose] >
00:00:13 #1348 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:13 #1349 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:13 #1350 [Verbose] > │ ## as_slice │
00:00:13 #1351 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #1352 [Verbose] >
00:00:13 #1353 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:13 #1354 [Verbose] > inl as_slice forall t. (x : array_base t) : rust.ref' (slice t) =
00:00:13 #1355 [Verbose] > inl x = x |> to_vec
00:00:13 #1356 [Verbose] > !\($'"!x.as_slice()"')
00:00:13 #1357 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-4299-9995-954d20c050c0/main.spi
00:00:13 #1358 [Verbose] >
00:00:13 #1359 [Verbose] > ╭─[ 132.41ms - stdout ]────────────────────────────────────────────────────────╮
00:00:13 #1360 [Verbose] > │ () │
00:00:13 #1361 [Verbose] > │ │
00:00:13 #1362 [Verbose] > │ │
00:00:13 #1363 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #1364 [Verbose] > [NbConvertApp] Converting notebook am'.dib.ipynb to html
00:00:14 #1365 [Verbose] > /opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/nbformat/__init__.py:96: MissingIDFieldWarning: Cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:00:14 #1366 [Verbose] > validate(nb)
00:00:14 #1367 [Verbose] > /opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/nbconvert/filters/highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:00:14 #1368 [Verbose] > return _pygments_highlight(
00:00:15 #1369 [Verbose] > [NbConvertApp] Writing 384201 bytes to am'.dib.html
00:00:15 #1370 [Debug] executeAsync / exitCode: 0 / output.Length: 109728
00:00:15 #1371 [Debug] main / executeCommand / exitCode: 0
00:00:00 #1 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #2 [Debug] executeAsync / options: { Command =
"dotnet "/home/runner/work/polyglot/polyglot/deps/The-Spiral-Language/The Spiral Language 2/artifacts/bin/The Spiral Language 2/release/Spiral.dll" --port 13805 --default-int i32 --default-float f64"
WorkingDirectory = None
CancellationToken = Some System.Threading.CancellationToken
OnLine = Some <fun:main@464-1020> }
00:00:00 #3 [Verbose] > pwd: /home/runner/work/polyglot/polyglot/lib/spiral
00:00:00 #4 [Verbose] > dll_path: /home/runner/work/polyglot/polyglot/deps/The-Spiral-Language/The Spiral Language 2/artifacts/bin/The Spiral Language 2/release
00:00:00 #5 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #6 [Verbose] waitForPortAccess / port: 13805 / retry: 0
00:00:00 #7 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #8 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #9 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #10 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #11 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #12 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #13 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #14 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #15 [Verbose] > Starting the Spiral Server. It is bound to: http://localhost:13805
00:00:00 #16 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #17 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #18 [Debug] sendJson / port: 13805 / json: {"Ping":true} / result.Length:
00:00:00 #19 [Verbose] awaitCompiler / Ping / result: Some(null) / port: 13805 / retry: 0
00:00:00 #20 [Verbose] > Server bound to: http://localhost:13805
00:00:00 #21 [Debug] executeAsync / options: { Command = "pwsh -c "../../scripts/invoke-dib.ps1 \"sm'.dib\"""
WorkingDirectory = None
CancellationToken = Some System.Threading.CancellationToken
OnLine = None }
00:00:02 #22 [Verbose] >
00:00:02 #23 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:02 #24 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:02 #25 [Verbose] > │ # sm' │
00:00:02 #26 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:02 #27 [Verbose] >
00:00:02 #28 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:02 #29 [Verbose] > // // test
00:00:02 #30 [Verbose] >
00:00:02 #31 [Verbose] > open testing
00:00:04 #32 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-4922-2233-21564a86f309/main.spi
00:00:06 #33 [Verbose] >
00:00:06 #34 [Verbose] > ╭─[ 3.85s - stdout ]───────────────────────────────────────────────────────────╮
00:00:06 #35 [Verbose] > │ () │
00:00:06 #36 [Verbose] > │ │
00:00:06 #37 [Verbose] > │ │
00:00:06 #38 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:06 #39 [Verbose] >
00:00:06 #40 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:06 #41 [Verbose] > open rust_operators
00:00:06 #42 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-5171-7188-7815d3644492/main.spi
00:00:06 #43 [Verbose] >
00:00:06 #44 [Verbose] > ╭─[ 188.05ms - stdout ]────────────────────────────────────────────────────────╮
00:00:06 #45 [Verbose] > │ () │
00:00:06 #46 [Verbose] > │ │
00:00:06 #47 [Verbose] > │ │
00:00:06 #48 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:06 #49 [Verbose] >
00:00:06 #50 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:06 #51 [Verbose] > inl types () =
00:00:06 #52 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"str\")>]] type Str = class
00:00:06 #53 [Verbose] > end"
00:00:06 #54 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"base64::DecodeError\")>]]
00:00:06 #55 [Verbose] > type base64_DecodeError = class end"
00:00:06 #56 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"borsh::io::Error\")>]] type
00:00:06 #57 [Verbose] > borsh_io_Error = class end"
00:00:06 #58 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"js_sys::JsString\")>]] type
00:00:06 #59 [Verbose] > js_sys_JsString = class end"
00:00:06 #60 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"serde_json::Error\")>]] type
00:00:06 #61 [Verbose] > serde_json_Error = class end"
00:00:06 #62 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"serde_json::Value\")>]] type
00:00:06 #63 [Verbose] > serde_json_Value = class end"
00:00:06 #64 [Verbose] > global "[[<Fable.Core.Erase;
00:00:06 #65 [Verbose] > Fable.Core.Emit(\"serde_wasm_bindgen::Error\")>]] type serde_wasm_bindgen_Error
00:00:06 #66 [Verbose] > = class end"
00:00:06 #67 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"std::str::Utf8Error\")>]]
00:00:06 #68 [Verbose] > type std_str_Utf8Error = class end"
00:00:06 #69 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"std::string::String\")>]]
00:00:06 #70 [Verbose] > type std_string_String = class end"
00:00:06 #71 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-5190-9090-942be3d1d67a/main.spi
00:00:06 #72 [Verbose] >
00:00:06 #73 [Verbose] > ╭─[ 174.55ms - stdout ]────────────────────────────────────────────────────────╮
00:00:06 #74 [Verbose] > │ () │
00:00:06 #75 [Verbose] > │ │
00:00:06 #76 [Verbose] > │ │
00:00:06 #77 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:06 #78 [Verbose] >
00:00:06 #79 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:06 #80 [Verbose] > // // test
00:00:06 #81 [Verbose] >
00:00:06 #82 [Verbose] > inl types () =
00:00:06 #83 [Verbose] > rust.types ()
00:00:06 #84 [Verbose] > types ()
00:00:06 #85 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-5208-0802-0c290345aa0c/main.spi
00:00:06 #86 [Verbose] >
00:00:06 #87 [Verbose] > ╭─[ 158.72ms - stdout ]────────────────────────────────────────────────────────╮
00:00:06 #88 [Verbose] > │ () │
00:00:06 #89 [Verbose] > │ │
00:00:06 #90 [Verbose] > │ │
00:00:06 #91 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:06 #92 [Verbose] >
00:00:06 #93 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:06 #94 [Verbose] > nominal base64_decode_error = $"base64_DecodeError"
00:00:06 #95 [Verbose] > nominal borsh_io_error = $"borsh_io_Error"
00:00:06 #96 [Verbose] > nominal utf8_error = $"std_str_Utf8Error"
00:00:06 #97 [Verbose] > nominal json_value = $"serde_json_Value"
00:00:06 #98 [Verbose] > nominal json_error = $"serde_json_Error"
00:00:06 #99 [Verbose] > nominal serde_wasm_bindgen_error = $"serde_wasm_bindgen_Error"
00:00:06 #100 [Verbose] > nominal std_string = $"std_string_String"
00:00:06 #101 [Verbose] > nominal js_string = $"js_sys_JsString"
00:00:06 #102 [Verbose] > nominal str = $"Str"
00:00:06 #103 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-5223-2392-24ab4c1eb81c/main.spi
00:00:06 #104 [Verbose] >
00:00:06 #105 [Verbose] > ╭─[ 171.17ms - stdout ]────────────────────────────────────────────────────────╮
00:00:06 #106 [Verbose] > │ () │
00:00:06 #107 [Verbose] > │ │
00:00:06 #108 [Verbose] > │ │
00:00:06 #109 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:06 #110 [Verbose] >
00:00:06 #111 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:06 #112 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:06 #113 [Verbose] > │ ## contains │
00:00:06 #114 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:06 #115 [Verbose] >
00:00:06 #116 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:06 #117 [Verbose] > inl contains (value : string) (s : string) : bool =
00:00:06 #118 [Verbose] > $"!s.Contains !value"
00:00:07 #119 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-5241-4124-47cded2d0485/main.spi
00:00:07 #120 [Verbose] >
00:00:07 #121 [Verbose] > ╭─[ 151.87ms - stdout ]────────────────────────────────────────────────────────╮
00:00:07 #122 [Verbose] > │ () │
00:00:07 #123 [Verbose] > │ │
00:00:07 #124 [Verbose] > │ │
00:00:07 #125 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #126 [Verbose] >
00:00:07 #127 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:07 #128 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:07 #129 [Verbose] > │ ## ends_with │
00:00:07 #130 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #131 [Verbose] >
00:00:07 #132 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:07 #133 [Verbose] > inl ends_with (value : string) (s : string) : bool =
00:00:07 #134 [Verbose] > $"!s.EndsWith !value"
00:00:07 #135 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-5256-5653-59ef3539128b/main.spi
00:00:07 #136 [Verbose] >
00:00:07 #137 [Verbose] > ╭─[ 145.60ms - stdout ]────────────────────────────────────────────────────────╮
00:00:07 #138 [Verbose] > │ () │
00:00:07 #139 [Verbose] > │ │
00:00:07 #140 [Verbose] > │ │
00:00:07 #141 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #142 [Verbose] >
00:00:07 #143 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:07 #144 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:07 #145 [Verbose] > │ ## pad_left │
00:00:07 #146 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #147 [Verbose] >
00:00:07 #148 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:07 #149 [Verbose] > inl pad_left total_width padding_char (s : string) : string =
00:00:07 #150 [Verbose] > $"!s.PadLeft (!total_width, !padding_char)"
00:00:07 #151 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-5271-7115-72be4e0ef894/main.spi
00:00:07 #152 [Verbose] >
00:00:07 #153 [Verbose] > ╭─[ 131.88ms - stdout ]────────────────────────────────────────────────────────╮
00:00:07 #154 [Verbose] > │ () │
00:00:07 #155 [Verbose] > │ │
00:00:07 #156 [Verbose] > │ │
00:00:07 #157 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #158 [Verbose] >
00:00:07 #159 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:07 #160 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:07 #161 [Verbose] > │ ## pad_right │
00:00:07 #162 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #163 [Verbose] >
00:00:07 #164 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:07 #165 [Verbose] > inl pad_right (pad : i32) (s : string) : string =
00:00:07 #166 [Verbose] > $"!s.PadRight !pad"
00:00:07 #167 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-5284-8449-8717441568aa/main.spi
00:00:07 #168 [Verbose] >
00:00:07 #169 [Verbose] > ╭─[ 154.27ms - stdout ]────────────────────────────────────────────────────────╮
00:00:07 #170 [Verbose] > │ () │
00:00:07 #171 [Verbose] > │ │
00:00:07 #172 [Verbose] > │ │
00:00:07 #173 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #174 [Verbose] >
00:00:07 #175 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:07 #176 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:07 #177 [Verbose] > │ ## replace │
00:00:07 #178 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #179 [Verbose] >
00:00:07 #180 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:07 #181 [Verbose] > inl replace (old_value : string) (new_value : string) (s : string) : string =
00:00:07 #182 [Verbose] > $"!s.Replace (!old_value, !new_value)"
00:00:07 #183 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-5299-9997-96f3ed972c4d/main.spi
00:00:07 #184 [Verbose] >
00:00:07 #185 [Verbose] > ╭─[ 134.52ms - stdout ]────────────────────────────────────────────────────────╮
00:00:07 #186 [Verbose] > │ () │
00:00:07 #187 [Verbose] > │ │
00:00:07 #188 [Verbose] > │ │
00:00:07 #189 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #190 [Verbose] >
00:00:07 #191 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:07 #192 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:07 #193 [Verbose] > │ ## split │
00:00:07 #194 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #195 [Verbose] >
00:00:07 #196 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:07 #197 [Verbose] > inl split (separator : string) (str : string) : array_base string =
00:00:07 #198 [Verbose] > $"!str.Split !separator"
00:00:07 #199 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-5313-1358-127ef4aef081/main.spi
00:00:07 #200 [Verbose] >
00:00:07 #201 [Verbose] > ╭─[ 175.61ms - stdout ]────────────────────────────────────────────────────────╮
00:00:07 #202 [Verbose] > │ () │
00:00:07 #203 [Verbose] > │ │
00:00:07 #204 [Verbose] > │ │
00:00:07 #205 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #206 [Verbose] >
00:00:07 #207 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:07 #208 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:07 #209 [Verbose] > │ ## split_string │
00:00:07 #210 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #211 [Verbose] >
00:00:07 #212 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:07 #213 [Verbose] > inl split_string (separator : array_base string) (str : string) : array_base
00:00:07 #214 [Verbose] > string =
00:00:07 #215 [Verbose] > $"!str.Split (!separator, StringSplitOptions.None)"
00:00:07 #216 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-5331-3137-305d2dab71ed/main.spi
00:00:07 #217 [Verbose] >
00:00:07 #218 [Verbose] > ╭─[ 137.35ms - stdout ]────────────────────────────────────────────────────────╮
00:00:07 #219 [Verbose] > │ () │
00:00:07 #220 [Verbose] > │ │
00:00:07 #221 [Verbose] > │ │
00:00:07 #222 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #223 [Verbose] >
00:00:07 #224 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:07 #225 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:07 #226 [Verbose] > │ ## starts_with │
00:00:07 #227 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #228 [Verbose] >
00:00:07 #229 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:07 #230 [Verbose] > inl starts_with (value : std_string) (s : std_string) : bool =
00:00:07 #231 [Verbose] > inl s = join s
00:00:07 #232 [Verbose] > !\($'"!s.starts_with(&!value)"')
00:00:08 #233 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-5345-4512-4dcb7b04141b/main.spi
00:00:08 #234 [Verbose] >
00:00:08 #235 [Verbose] > ╭─[ 138.73ms - stdout ]────────────────────────────────────────────────────────╮
00:00:08 #236 [Verbose] > │ () │
00:00:08 #237 [Verbose] > │ │
00:00:08 #238 [Verbose] > │ │
00:00:08 #239 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #240 [Verbose] >
00:00:08 #241 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:08 #242 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:08 #243 [Verbose] > │ ## substring │
00:00:08 #244 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #245 [Verbose] >
00:00:08 #246 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:08 #247 [Verbose] > inl substring forall t {int}. (start : t) (len : t) (str : string) : string =
00:00:08 #248 [Verbose] > $"!str.Substring (!start, !len)"
00:00:08 #249 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-5359-5914-5b7c2b8ef394/main.spi
00:00:08 #250 [Verbose] >
00:00:08 #251 [Verbose] > ╭─[ 143.62ms - stdout ]────────────────────────────────────────────────────────╮
00:00:08 #252 [Verbose] > │ () │
00:00:08 #253 [Verbose] > │ │
00:00:08 #254 [Verbose] > │ │
00:00:08 #255 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #256 [Verbose] >
00:00:08 #257 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:08 #258 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:08 #259 [Verbose] > │ ## to_lower │
00:00:08 #260 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #261 [Verbose] >
00:00:08 #262 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:08 #263 [Verbose] > inl to_lower (input : string) : string =
00:00:08 #264 [Verbose] > $"!input.ToLower ()"
00:00:08 #265 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-5373-7361-7bd4bbe883b4/main.spi
00:00:08 #266 [Verbose] >
00:00:08 #267 [Verbose] > ╭─[ 183.05ms - stdout ]────────────────────────────────────────────────────────╮
00:00:08 #268 [Verbose] > │ () │
00:00:08 #269 [Verbose] > │ │
00:00:08 #270 [Verbose] > │ │
00:00:08 #271 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #272 [Verbose] >
00:00:08 #273 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:08 #274 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:08 #275 [Verbose] > │ ## to_upper │
00:00:08 #276 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #277 [Verbose] >
00:00:08 #278 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:08 #279 [Verbose] > inl to_upper (input : string) : string =
00:00:08 #280 [Verbose] > $"!input.ToUpper ()"
00:00:08 #281 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-5391-9198-9c69ee79e62e/main.spi
00:00:08 #282 [Verbose] >
00:00:08 #283 [Verbose] > ╭─[ 144.36ms - stdout ]────────────────────────────────────────────────────────╮
00:00:08 #284 [Verbose] > │ () │
00:00:08 #285 [Verbose] > │ │
00:00:08 #286 [Verbose] > │ │
00:00:08 #287 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #288 [Verbose] >
00:00:08 #289 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:08 #290 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:08 #291 [Verbose] > │ ## trim │
00:00:08 #292 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #293 [Verbose] >
00:00:08 #294 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:08 #295 [Verbose] > inl trim (input : string) : string =
00:00:08 #296 [Verbose] > $"!input.Trim ()"
00:00:08 #297 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-5406-0658-00f90201aa11/main.spi
00:00:08 #298 [Verbose] >
00:00:08 #299 [Verbose] > ╭─[ 140.68ms - stdout ]────────────────────────────────────────────────────────╮
00:00:08 #300 [Verbose] > │ () │
00:00:08 #301 [Verbose] > │ │
00:00:08 #302 [Verbose] > │ │
00:00:08 #303 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #304 [Verbose] >
00:00:08 #305 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:08 #306 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:08 #307 [Verbose] > │ ## trim_end │
00:00:08 #308 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #309 [Verbose] >
00:00:08 #310 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:08 #311 [Verbose] > inl trim_end (trim_chars : array_base char) (input : string) : string =
00:00:08 #312 [Verbose] > $"!input.TrimEnd !trim_chars"
00:00:08 #313 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-5420-2093-248e4f02207b/main.spi
00:00:08 #314 [Verbose] >
00:00:08 #315 [Verbose] > ╭─[ 141.79ms - stdout ]────────────────────────────────────────────────────────╮
00:00:08 #316 [Verbose] > │ () │
00:00:08 #317 [Verbose] > │ │
00:00:08 #318 [Verbose] > │ │
00:00:08 #319 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #320 [Verbose] >
00:00:08 #321 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:08 #322 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:08 #323 [Verbose] > │ ## trim_start │
00:00:08 #324 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #325 [Verbose] >
00:00:08 #326 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:08 #327 [Verbose] > inl trim_start (trim_chars : array_base char) (input : string) : string =
00:00:08 #328 [Verbose] > $"!input.TrimStart !trim_chars"
00:00:08 #329 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-5435-3520-37c370d9351d/main.spi
00:00:09 #330 [Verbose] >
00:00:09 #331 [Verbose] > ╭─[ 167.58ms - stdout ]────────────────────────────────────────────────────────╮
00:00:09 #332 [Verbose] > │ () │
00:00:09 #333 [Verbose] > │ │
00:00:09 #334 [Verbose] > │ │
00:00:09 #335 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #336 [Verbose] >
00:00:09 #337 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:09 #338 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:09 #339 [Verbose] > │ ## ellipsis │
00:00:09 #340 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #341 [Verbose] >
00:00:09 #342 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:09 #343 [Verbose] > inl ellipsis forall t {int; number}. (max : t) (s : string) =
00:00:09 #344 [Verbose] > if sm.length s <= max
00:00:09 #345 [Verbose] > then s
00:00:09 #346 [Verbose] > else s |> substring 0 max |> fun x => $'!x + "..."'
00:00:09 #347 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-5452-5207-5d313bd311bd/main.spi
00:00:09 #348 [Verbose] >
00:00:09 #349 [Verbose] > ╭─[ 137.98ms - stdout ]────────────────────────────────────────────────────────╮
00:00:09 #350 [Verbose] > │ () │
00:00:09 #351 [Verbose] > │ │
00:00:09 #352 [Verbose] > │ │
00:00:09 #353 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #354 [Verbose] >
00:00:09 #355 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:09 #356 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:09 #357 [Verbose] > │ ## raw_string_literal │
00:00:09 #358 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #359 [Verbose] >
00:00:09 #360 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:09 #361 [Verbose] > inl raw_string_literal (s : string) : rust.ref' str =
00:00:09 #362 [Verbose] > !\($"\"r#\\\"\" + !s + \"\\\"#\"")
00:00:09 #363 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-5465-6596-64173598231c/main.spi
00:00:09 #364 [Verbose] >
00:00:09 #365 [Verbose] > ╭─[ 169.89ms - stdout ]────────────────────────────────────────────────────────╮
00:00:09 #366 [Verbose] > │ () │
00:00:09 #367 [Verbose] > │ │
00:00:09 #368 [Verbose] > │ │
00:00:09 #369 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #370 [Verbose] >
00:00:09 #371 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:09 #372 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:09 #373 [Verbose] > │ ## raw_string_literal_static │
00:00:09 #374 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #375 [Verbose] >
00:00:09 #376 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:09 #377 [Verbose] > inl raw_string_literal_static (s : string) : rust.static_ref' str =
00:00:09 #378 [Verbose] > !\($"\"r#\\\"\" + !s + \"\\\"#\"")
00:00:09 #379 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-5483-8316-829395544df9/main.spi
00:00:09 #380 [Verbose] >
00:00:09 #381 [Verbose] > ╭─[ 135.83ms - stdout ]────────────────────────────────────────────────────────╮
00:00:09 #382 [Verbose] > │ () │
00:00:09 #383 [Verbose] > │ │
00:00:09 #384 [Verbose] > │ │
00:00:09 #385 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #386 [Verbose] >
00:00:09 #387 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:09 #388 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:09 #389 [Verbose] > │ ## include_str │
00:00:09 #390 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #391 [Verbose] >
00:00:09 #392 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:09 #393 [Verbose] > inl include_str (path : string) : rust.ref' str =
00:00:09 #394 [Verbose] > !\($'"include_str\!(\\\"" + !path + "\\\")"')
00:00:09 #395 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-5496-9681-93fdf2faed3c/main.spi
00:00:09 #396 [Verbose] >
00:00:09 #397 [Verbose] > ╭─[ 138.57ms - stdout ]────────────────────────────────────────────────────────╮
00:00:09 #398 [Verbose] > │ () │
00:00:09 #399 [Verbose] > │ │
00:00:09 #400 [Verbose] > │ │
00:00:09 #401 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #402 [Verbose] >
00:00:09 #403 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:09 #404 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:09 #405 [Verbose] > │ ## as_str │
00:00:09 #406 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #407 [Verbose] >
00:00:09 #408 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:09 #409 [Verbose] > inl as_str (s : string) : rust.ref' str =
00:00:09 #410 [Verbose] > inl s = join s
00:00:09 #411 [Verbose] > !\($'$"fable_library_rust::String_::LrcStr::as_str(&!s)"')
00:00:09 #412 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-5510-1078-1ecb981d96e0/main.spi
00:00:09 #413 [Verbose] >
00:00:09 #414 [Verbose] > ╭─[ 139.37ms - stdout ]────────────────────────────────────────────────────────╮
00:00:09 #415 [Verbose] > │ () │
00:00:09 #416 [Verbose] > │ │
00:00:09 #417 [Verbose] > │ │
00:00:09 #418 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #419 [Verbose] >
00:00:09 #420 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:09 #421 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:09 #422 [Verbose] > │ ## from_std_string │
00:00:09 #423 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #424 [Verbose] >
00:00:09 #425 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:09 #426 [Verbose] > inl from_std_string (str : std_string) : string =
00:00:09 #427 [Verbose] > inl str = join str
00:00:09 #428 [Verbose] > !\($'"fable_library_rust::String_::fromString(!str)"')
00:00:09 #429 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-5524-2481-2eecdbbf7d0f/main.spi
00:00:09 #430 [Verbose] >
00:00:09 #431 [Verbose] > ╭─[ 138.74ms - stdout ]────────────────────────────────────────────────────────╮
00:00:09 #432 [Verbose] > │ () │
00:00:09 #433 [Verbose] > │ │
00:00:09 #434 [Verbose] > │ │
00:00:09 #435 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #436 [Verbose] >
00:00:09 #437 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:09 #438 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:09 #439 [Verbose] > │ ## ref_to_std_string │
00:00:09 #440 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #441 [Verbose] >
00:00:09 #442 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:09 #443 [Verbose] > inl ref_to_std_string (str : rust.ref' str) : std_string =
00:00:09 #444 [Verbose] > !\($'"String::from(!str)"')
00:00:09 #445 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-5538-3876-3f99984bf18c/main.spi
00:00:10 #446 [Verbose] >
00:00:10 #447 [Verbose] > ╭─[ 140.61ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #448 [Verbose] > │ () │
00:00:10 #449 [Verbose] > │ │
00:00:10 #450 [Verbose] > │ │
00:00:10 #451 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #452 [Verbose] >
00:00:10 #453 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:10 #454 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:10 #455 [Verbose] > │ ## to_std_string │
00:00:10 #456 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #457 [Verbose] >
00:00:10 #458 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #459 [Verbose] > inl to_std_string (s : string) : std_string =
00:00:10 #460 [Verbose] > inl s = join s
00:00:10 #461 [Verbose] > s |> as_str |> ref_to_std_string
00:00:10 #462 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-5552-5294-5642ef5a718c/main.spi
00:00:10 #463 [Verbose] >
00:00:10 #464 [Verbose] > ╭─[ 134.34ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #465 [Verbose] > │ () │
00:00:10 #466 [Verbose] > │ │
00:00:10 #467 [Verbose] > │ │
00:00:10 #468 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #469 [Verbose] >
00:00:10 #470 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:10 #471 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:10 #472 [Verbose] > │ ## as_str_std │
00:00:10 #473 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #474 [Verbose] >
00:00:10 #475 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #476 [Verbose] > inl as_str_std (s : std_string) : rust.ref' str =
00:00:10 #477 [Verbose] > inl s = join s
00:00:10 #478 [Verbose] > !\($'"!s.as_str()"')
00:00:10 #479 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-5566-6655-60dbb51314d7/main.spi
00:00:10 #480 [Verbose] >
00:00:10 #481 [Verbose] > ╭─[ 134.78ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #482 [Verbose] > │ () │
00:00:10 #483 [Verbose] > │ │
00:00:10 #484 [Verbose] > │ │
00:00:10 #485 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #486 [Verbose] >
00:00:10 #487 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:10 #488 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:10 #489 [Verbose] > │ ## into_boxed_str │
00:00:10 #490 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #491 [Verbose] >
00:00:10 #492 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #493 [Verbose] > inl into_boxed_str (s : std_string) : rust.box str =
00:00:10 #494 [Verbose] > !\($'"!s.into_boxed_str()"')
00:00:10 #495 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-5580-8022-857bb6dbfe22/main.spi
00:00:10 #496 [Verbose] >
00:00:10 #497 [Verbose] > ╭─[ 132.48ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #498 [Verbose] > │ () │
00:00:10 #499 [Verbose] > │ │
00:00:10 #500 [Verbose] > │ │
00:00:10 #501 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #502 [Verbose] >
00:00:10 #503 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:10 #504 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:10 #505 [Verbose] > │ ## format' │
00:00:10 #506 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #507 [Verbose] >
00:00:10 #508 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #509 [Verbose] > inl format' x : std_string =
00:00:10 #510 [Verbose] > !\\(x, $'@@$"format\!(""{{}}"", $0)"')
00:00:10 #511 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-5593-9355-98e81372e1fb/main.spi
00:00:10 #512 [Verbose] >
00:00:10 #513 [Verbose] > ╭─[ 132.54ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #514 [Verbose] > │ () │
00:00:10 #515 [Verbose] > │ │
00:00:10 #516 [Verbose] > │ │
00:00:10 #517 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #518 [Verbose] >
00:00:10 #519 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:10 #520 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:10 #521 [Verbose] > │ ## format_debug │
00:00:10 #522 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #523 [Verbose] >
00:00:10 #524 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #525 [Verbose] > inl format_debug x : string =
00:00:10 #526 [Verbose] > $"$\"%A{!x}\""
00:00:10 #527 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-5606-0691-0d13fe4047b7/main.spi
00:00:10 #528 [Verbose] >
00:00:10 #529 [Verbose] > ╭─[ 135.50ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #530 [Verbose] > │ () │
00:00:10 #531 [Verbose] > │ │
00:00:10 #532 [Verbose] > │ │
00:00:10 #533 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #534 [Verbose] >
00:00:10 #535 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:10 #536 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:10 #537 [Verbose] > │ ## format_debug' │
00:00:10 #538 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #539 [Verbose] >
00:00:10 #540 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #541 [Verbose] > inl format_debug' x : std_string =
00:00:10 #542 [Verbose] > !\\(x, $'@@$"format\!(""{{:?}}"", $0)"')
00:00:10 #543 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-5620-2057-293102a62eea/main.spi
00:00:10 #544 [Verbose] >
00:00:10 #545 [Verbose] > ╭─[ 150.26ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #546 [Verbose] > │ () │
00:00:10 #547 [Verbose] > │ │
00:00:10 #548 [Verbose] > │ │
00:00:10 #549 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #550 [Verbose] >
00:00:10 #551 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:10 #552 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:10 #553 [Verbose] > │ ## format_pretty' │
00:00:10 #554 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #555 [Verbose] >
00:00:10 #556 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #557 [Verbose] > inl format_pretty' x : std_string =
00:00:10 #558 [Verbose] > !\\(x, $'@@$"format\!(""{{:#?}}"", $0)"')
00:00:10 #559 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-5635-3577-31f0b15f1f20/main.spi
00:00:11 #560 [Verbose] >
00:00:11 #561 [Verbose] > ╭─[ 139.05ms - stdout ]────────────────────────────────────────────────────────╮
00:00:11 #562 [Verbose] > │ () │
00:00:11 #563 [Verbose] > │ │
00:00:11 #564 [Verbose] > │ │
00:00:11 #565 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #566 [Verbose] >
00:00:11 #567 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:11 #568 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:11 #569 [Verbose] > │ ## format_ellipsis' │
00:00:11 #570 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #571 [Verbose] >
00:00:11 #572 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:11 #573 [Verbose] > inl format_ellipsis' s =
00:00:11 #574 [Verbose] > s
00:00:11 #575 [Verbose] > |> format_debug
00:00:11 #576 [Verbose] > |> ellipsis 400i32
00:00:11 #577 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-5649-4977-4a8a8a2d201f/main.spi
00:00:11 #578 [Verbose] >
00:00:11 #579 [Verbose] > ╭─[ 148.54ms - stdout ]────────────────────────────────────────────────────────╮
00:00:11 #580 [Verbose] > │ () │
00:00:11 #581 [Verbose] > │ │
00:00:11 #582 [Verbose] > │ │
00:00:11 #583 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #584 [Verbose] >
00:00:11 #585 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:11 #586 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:11 #587 [Verbose] > │ ## obj_to_string │
00:00:11 #588 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #589 [Verbose] >
00:00:11 #590 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:11 #591 [Verbose] > inl obj_to_string x : string =
00:00:11 #592 [Verbose] > $"!x.ToString ()"
00:00:11 #593 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-5664-6474-6351e1342f41/main.spi
00:00:11 #594 [Verbose] >
00:00:11 #595 [Verbose] > ╭─[ 131.66ms - stdout ]────────────────────────────────────────────────────────╮
00:00:11 #596 [Verbose] > │ () │
00:00:11 #597 [Verbose] > │ │
00:00:11 #598 [Verbose] > │ │
00:00:11 #599 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #600 [Verbose] >
00:00:11 #601 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:11 #602 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:11 #603 [Verbose] > │ ## to_string any │
00:00:11 #604 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #605 [Verbose] >
00:00:11 #606 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:11 #607 [Verbose] > instance to_string any =
00:00:11 #608 [Verbose] > obj_to_string
00:00:11 #609 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-5678-7800-792c05dbefa3/main.spi
00:00:11 #610 [Verbose] >
00:00:11 #611 [Verbose] > ╭─[ 138.64ms - stdout ]────────────────────────────────────────────────────────╮
00:00:11 #612 [Verbose] > │ () │
00:00:11 #613 [Verbose] > │ │
00:00:11 #614 [Verbose] > │ │
00:00:11 #615 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #616 [Verbose] >
00:00:11 #617 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:11 #618 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:11 #619 [Verbose] > │ ## to_string result t u │
00:00:11 #620 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #621 [Verbose] >
00:00:11 #622 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:11 #623 [Verbose] > instance to_string result t u = fun x =>
00:00:11 #624 [Verbose] > real
00:00:11 #625 [Verbose] > open rust
00:00:11 #626 [Verbose] > typecase (t * u) with
00:00:11 #627 [Verbose] > | string * string =>
00:00:11 #628 [Verbose] > match x with
00:00:11 #629 [Verbose] > | Ok x => x
00:00:11 #630 [Verbose] > | Error x => $'"Error: " + !x + ""' : string
00:00:11 #631 [Verbose] > | std_string * std_string =>
00:00:11 #632 [Verbose] > match x with
00:00:11 #633 [Verbose] > | Ok x => from_std_string x
00:00:11 #634 [Verbose] > | Error x => $'"Error: " + string !x + ""' : string
00:00:11 #635 [Verbose] > | _ => obj_to_string `u x
00:00:11 #636 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-5692-9200-9df394dc9dcf/main.spi
00:00:11 #637 [Verbose] >
00:00:11 #638 [Verbose] > ╭─[ 168.30ms - stdout ]────────────────────────────────────────────────────────╮
00:00:11 #639 [Verbose] > │ () │
00:00:11 #640 [Verbose] > │ │
00:00:11 #641 [Verbose] > │ │
00:00:11 #642 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #643 [Verbose] >
00:00:11 #644 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:11 #645 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:11 #646 [Verbose] > │ ## serialize │
00:00:11 #647 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #648 [Verbose] >
00:00:11 #649 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:11 #650 [Verbose] > inl serialize forall t. (x : t) : resultm.result' std_string json_error =
00:00:11 #651 [Verbose] > !\($'"serde_json::to_string(&!x)"')
00:00:11 #652 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-5708-0893-09bcab093c1b/main.spi
00:00:11 #653 [Verbose] >
00:00:11 #654 [Verbose] > ╭─[ 167.46ms - stdout ]────────────────────────────────────────────────────────╮
00:00:11 #655 [Verbose] > │ () │
00:00:11 #656 [Verbose] > │ │
00:00:11 #657 [Verbose] > │ │
00:00:11 #658 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #659 [Verbose] >
00:00:11 #660 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:11 #661 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:11 #662 [Verbose] > │ ## deserialize │
00:00:11 #663 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #664 [Verbose] >
00:00:11 #665 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:11 #666 [Verbose] > inl deserialize forall t. (json : string) : resultm.result' t std_string =
00:00:11 #667 [Verbose] > inl json = json |> as_str
00:00:11 #668 [Verbose] > !\($'"serde_json::from_str(&!json)"')
00:00:11 #669 [Verbose] > |> resultm.map_error' fun (x : json_error) => x |> format'
00:00:11 #670 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-5725-2583-2f99c26b644e/main.spi
00:00:12 #671 [Verbose] >
00:00:12 #672 [Verbose] > ╭─[ 240.65ms - stdout ]────────────────────────────────────────────────────────╮
00:00:12 #673 [Verbose] > │ () │
00:00:12 #674 [Verbose] > │ │
00:00:12 #675 [Verbose] > │ │
00:00:12 #676 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #677 [Verbose] >
00:00:12 #678 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:12 #679 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:12 #680 [Verbose] > │ ## borsh_deserialize │
00:00:12 #681 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #682 [Verbose] >
00:00:12 #683 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 #684 [Verbose] > inl borsh_deserialize forall t. (data : array_base u8) : resultm.result' t
00:00:12 #685 [Verbose] > std_string =
00:00:12 #686 [Verbose] > inl data = data |> am'.as_slice
00:00:12 #687 [Verbose] > !\($'"let mut !data = !data"')
00:00:12 #688 [Verbose] > inl result = !\($'"borsh::BorshDeserialize::deserialize(&mut !data)"')
00:00:12 #689 [Verbose] > result
00:00:12 #690 [Verbose] > |> resultm.map_error' fun (x : borsh_io_error) => x |> format'
00:00:12 #691 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-5750-5008-5eb97ccd9721/main.spi
00:00:12 #692 [Verbose] >
00:00:12 #693 [Verbose] > ╭─[ 134.33ms - stdout ]────────────────────────────────────────────────────────╮
00:00:12 #694 [Verbose] > │ () │
00:00:12 #695 [Verbose] > │ │
00:00:12 #696 [Verbose] > │ │
00:00:12 #697 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #698 [Verbose] >
00:00:12 #699 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:12 #700 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:12 #701 [Verbose] > │ ## deserialize_vec │
00:00:12 #702 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #703 [Verbose] >
00:00:12 #704 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 #705 [Verbose] > inl deserialize_vec (value : json_value) : resultm.result' (am'.vec u8)
00:00:12 #706 [Verbose] > std_string =
00:00:12 #707 [Verbose] > inl value = join value
00:00:12 #708 [Verbose] > !\($'"serde_json::from_value(!value)"')
00:00:12 #709 [Verbose] > |> resultm.map_error' fun (x : json_error) => x |> format'
00:00:12 #710 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-5763-6353-60e5e0a213a3/main.spi
00:00:12 #711 [Verbose] >
00:00:12 #712 [Verbose] > ╭─[ 136.15ms - stdout ]────────────────────────────────────────────────────────╮
00:00:12 #713 [Verbose] > │ () │
00:00:12 #714 [Verbose] > │ │
00:00:12 #715 [Verbose] > │ │
00:00:12 #716 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #717 [Verbose] >
00:00:12 #718 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:12 #719 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:12 #720 [Verbose] > │ ## encode_uri_component │
00:00:12 #721 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #722 [Verbose] >
00:00:12 #723 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 #724 [Verbose] > inl encode_uri_component (s : std_string) : js_string =
00:00:12 #725 [Verbose] > !\($'"js_sys::encode_uri_component(&!s)"')
00:00:12 #726 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-5777-7723-7fb30c51eb68/main.spi
00:00:12 #727 [Verbose] >
00:00:12 #728 [Verbose] > ╭─[ 129.34ms - stdout ]────────────────────────────────────────────────────────╮
00:00:12 #729 [Verbose] > │ () │
00:00:12 #730 [Verbose] > │ │
00:00:12 #731 [Verbose] > │ │
00:00:12 #732 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #733 [Verbose] >
00:00:12 #734 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:12 #735 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:12 #736 [Verbose] > │ ## strip_prefix │
00:00:12 #737 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #738 [Verbose] >
00:00:12 #739 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 #740 [Verbose] > inl strip_prefix (prefix : char) (s : std_string) : optionm'.option' (rust.ref'
00:00:12 #741 [Verbose] > str) =
00:00:12 #742 [Verbose] > inl s = join s
00:00:12 #743 [Verbose] > !\($'"!s.strip_prefix(!prefix)"')
00:00:12 #744 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-5790-9027-943091b2ef74/main.spi
00:00:12 #745 [Verbose] >
00:00:12 #746 [Verbose] > ╭─[ 139.42ms - stdout ]────────────────────────────────────────────────────────╮
00:00:12 #747 [Verbose] > │ () │
00:00:12 #748 [Verbose] > │ │
00:00:12 #749 [Verbose] > │ │
00:00:12 #750 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #751 [Verbose] >
00:00:12 #752 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:12 #753 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:12 #754 [Verbose] > │ ## base64_decode │
00:00:12 #755 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #756 [Verbose] >
00:00:12 #757 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 #758 [Verbose] > inl base64_decode (s : std_string) : result std_string std_string =
00:00:12 #759 [Verbose] > fun () =>
00:00:12 #760 [Verbose] > inl s = join s
00:00:12 #761 [Verbose] > inl bytes : resultm.result' (am'.vec u8) base64_decode_error =
00:00:12 #762 [Verbose] >
00:00:12 #763 [Verbose] > !\($'"base64::Engine::decode(&base64::engine::general_purpose::STANDARD, !s)"')
00:00:12 #764 [Verbose] > inl bytes =
00:00:12 #765 [Verbose] > bytes
00:00:12 #766 [Verbose] > |> resultm.map_error' format'
00:00:12 #767 [Verbose] > |> resultm.try'
00:00:12 #768 [Verbose] > inl result : resultm.result' std_string utf8_error =
00:00:12 #769 [Verbose] > !\($'"std::str::from_utf8(&!bytes).map(String::from)"')
00:00:12 #770 [Verbose] > result
00:00:12 #771 [Verbose] > |> resultm.map_error' format'
00:00:12 #772 [Verbose] > |> fun x =>
00:00:12 #773 [Verbose] > join x ()
00:00:12 #774 [Verbose] > |> resultm.unbox
00:00:12 #775 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-5804-0442-0e34c1d016ed/main.spi
00:00:12 #776 [Verbose] >
00:00:12 #777 [Verbose] > ╭─[ 166.29ms - stdout ]────────────────────────────────────────────────────────╮
00:00:12 #778 [Verbose] > │ () │
00:00:12 #779 [Verbose] > │ │
00:00:12 #780 [Verbose] > │ │
00:00:12 #781 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #782 [Verbose] >
00:00:12 #783 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:12 #784 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:12 #785 [Verbose] > │ ## concat_array_trailing │
00:00:12 #786 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #787 [Verbose] >
00:00:12 #788 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 #789 [Verbose] > inl concat_array_trailing separator input =
00:00:12 #790 [Verbose] > ("", input)
00:00:12 #791 [Verbose] > ||> am.fold fun acc (x : string) =>
00:00:12 #792 [Verbose] > $'!acc + !x + !separator + ""'
00:00:12 #793 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-5821-2111-2e86303e51dd/main.spi
00:00:12 #794 [Verbose] >
00:00:12 #795 [Verbose] > ╭─[ 135.07ms - stdout ]────────────────────────────────────────────────────────╮
00:00:12 #796 [Verbose] > │ () │
00:00:12 #797 [Verbose] > │ │
00:00:12 #798 [Verbose] > │ │
00:00:12 #799 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #800 [Verbose] >
00:00:12 #801 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 #802 [Verbose] > // // test
00:00:12 #803 [Verbose] > // // rust=
00:00:12 #804 [Verbose] >
00:00:12 #805 [Verbose] > ;[[
00:00:12 #806 [Verbose] > "1"
00:00:12 #807 [Verbose] > "2"
00:00:12 #808 [Verbose] > "3"
00:00:12 #809 [Verbose] > ]]
00:00:12 #810 [Verbose] > |> fun x =>
00:00:12 #811 [Verbose] > inl code = (a x : _ i32 _) |> concat_array_trailing "\n"
00:00:12 #812 [Verbose] > code
00:00:12 #813 [Verbose] > |> _assert_eq "1\n2\n3\n"
00:00:12 #814 [Verbose] > Building /tmp/!dotnet-repl/20240325-2023-5834-3474-308b793953be/main.spi
00:00:16 #815 [Verbose] >
00:00:16 #816 [Verbose] > ╭─[ 3.17s - return value ]─────────────────────────────────────────────────────╮
00:00:16 #817 [Verbose] > │ .rs output: │
00:00:16 #818 [Verbose] > │ │
00:00:16 #819 [Verbose] > │ │
00:00:16 #820 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 #821 [Verbose] >
00:00:16 #822 [Verbose] > ╭─[ 3.18s - stdout ]───────────────────────────────────────────────────────────╮
00:00:16 #823 [Verbose] > │ │
00:00:16 #824 [Verbose] > │ .fsx: │
00:00:16 #825 [Verbose] > │ type Mut0 = {mutable l0 : int32; mutable l1 : string} │
00:00:16 #826 [Verbose] > │ let rec method1 (v0 : (string [])) : (string []) = │
00:00:16 #827 [Verbose] > │ v0 │
00:00:16 #828 [Verbose] > │ and method2 (v0 : int32, v1 : Mut0) : bool = │
00:00:16 #829 [Verbose] > │ let v2 : int32 = v1.l0 │
00:00:16 #830 [Verbose] > │ let v3 : bool = v2 < v0 │
00:00:16 #831 [Verbose] > │ v3 │
00:00:16 #832 [Verbose] > │ and method3 (v0 : bool) : bool = │
00:00:16 #833 [Verbose] > │ v0 │
00:00:16 #834 [Verbose] > │ and method0 () : unit = │
00:00:16 #835 [Verbose] > │ let v0 : string = "1" │
00:00:16 #836 [Verbose] > │ let v1 : string = "2" │
00:00:16 #837 [Verbose] > │ let v2 : string = "3" │
00:00:16 #838 [Verbose] > │ let v3 : (string []) = [|v0; v1; v2|] │
00:00:16 #839 [Verbose] > │ let v4 : (string []) = method1(v3) │
00:00:16 #840 [Verbose] > │ let v5 : int32 = v4.Length │
00:00:16 #841 [Verbose] > │ let v6 : string = "" │
00:00:16 #842 [Verbose] > │ let v7 : Mut0 = {l0 = 0; l1 = v6} : Mut0 │
00:00:16 #843 [Verbose] > │ while method2(v5, v7) do │
00:00:16 #844 [Verbose] > │ let v9 : int32 = v7.l0 │
00:00:16 #845 [Verbose] > │ let v10 : string = v7.l1 │
00:00:16 #846 [Verbose] > │ let v11 : string = v4.[int v9] │
00:00:16 #847 [Verbose] > │ let v12 : string = "\n" │
00:00:16 #848 [Verbose] > │ let v13 : string = v10 + v11 + v12 + "" │
00:00:16 #849 [Verbose] > │ let v14 : int32 = v9 + 1 │
00:00:16 #850 [Verbose] > │ v7.l0 <- v14 │
00:00:16 #851 [Verbose] > │ v7.l1 <- v13 │
00:00:16 #852 [Verbose] > │ () │
00:00:16 #853 [Verbose] > │ let v15 : string = v7.l1 │
00:00:16 #854 [Verbose] > │ let v17 : bool = v15 = "1\n2\n3\n" │
00:00:16 #855 [Verbose] > │ let v19 : bool = │
00:00:16 #856 [Verbose] > │ if v17 then │
00:00:16 #857 [Verbose] > │ true │
00:00:16 #858 [Verbose] > │ else │
00:00:16 #859 [Verbose] > │ method3(v17) │
00:00:16 #860 [Verbose] > │ let v20 : string = "1\n2\n3\n" │
00:00:16 #861 [Verbose] > │ let v21 : string = $"__expect / actual: %A{v15} / expected: %A{v20}" │
00:00:16 #862 [Verbose] > │ let v22 : bool = v19 = false │
00:00:16 #863 [Verbose] > │ if v22 then │
00:00:16 #864 [Verbose] > │ failwith<unit> v21 │
00:00:16 #865 [Verbose] > │ method0() │
00:00:16 #866 [Verbose] > │ │
00:00:16 #867 [Verbose] > │ │
00:00:16 #868 [Verbose] > │ .rs: │
00:00:16 #869 [Verbose] > │ #![allow(dead_code,)] │
00:00:16 #870 [Verbose] > │ #![allow(non_camel_case_types,)] │
00:00:16 #871 [Verbose] > │ #![allow(non_snake_case,)] │
00:00:16 #872 [Verbose] > │ #![allow(non_upper_case_globals,)] │
00:00:16 #873 [Verbose] > │ #![allow(unreachable_code,)] │
00:00:16 #874 [Verbose] > │ #![allow(unused_attributes,)] │
00:00:16 #875 [Verbose] > │ #![allow(unused_imports,)] │
00:00:16 #876 [Verbose] > │ #![allow(unused_macros,)] │
00:00:16 #877 [Verbose] > │ #![allow(unused_parens,)] │
00:00:16 #878 [Verbose] > │ #![allow(unused_variables,)] │
00:00:16 #879 [Verbose] > │ mod module_ccfa04bf { │
00:00:16 #880 [Verbose] > │ pub mod Spiral_eval { │
00:00:16 #881 [Verbose] > │ use super::*; │
00:00:16 #882 [Verbose] > │ use fable_library_rust::Native_::LrcPtr; │
00:00:16 #883 [Verbose] > │ use fable_library_rust::Native_::MutCell; │
00:00:16 #884 [Verbose] > │ use fable_library_rust::Native_::on_startup; │
00:00:16 #885 [Verbose] > │ use fable_library_rust::NativeArray_::Array; │
00:00:16 #886 [Verbose] > │ use fable_library_rust::NativeArray_::count; │
00:00:16 #887 [Verbose] > │ use fable_library_rust::NativeArray_::new_array; │
00:00:16 #888 [Verbose] > │ use fable_library_rust::String_::append; │
00:00:16 #889 [Verbose] > │ use fable_library_rust::String_::sprintf; │
00:00:16 #890 [Verbose] > │ use fable_library_rust::String_::string; │
00:00:16 #891 [Verbose] > │ #[derive(Clone, Debug, Default, PartialEq, PartialOrd, Hash, Eq,)] │
00:00:16 #892 [Verbose] > │ pub struct Mut0 { │
00:00:16 #893 [Verbose] > │ pub l0: MutCell<i32>, │
00:00:16 #894 [Verbose] > │ pub l1: MutCell<string>, │
00:00:16 #895 [Verbose] > │ } │
00:00:16 #896 [Verbose] > │ impl core::fmt::Display for Spiral_eval::Mut0 { │
00:00:16 #897 [Verbose] > │ fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result │
00:00:16 #898 [Verbose] > │ { │
00:00:16 #899 [Verbose] > │ write!(f, "{}", core::any::type_name::<Self>()) │
00:00:16 #900 [Verbose] > │ } │
00:00:16 #901 [Verbose] > │ } │
00:00:16 #902 [Verbose] > │ pub fn method1(v0: Array<string>) -> Array<string> { v0 } │
00:00:16 #903 [Verbose] > │ pub fn method2(v0: i32, v1: LrcPtr<Spiral_eval::Mut0>) -> bool { │
00:00:16 #904 [Verbose] > │ v1.l0.get().clone() < v0 │
00:00:16 #905 [Verbose] > │ } │
00:00:16 #906 [Verbose] > │ pub fn method3(v0: bool) -> bool { v0 } │
00:00:16 #907 [Verbose] > │ pub fn method0() { │
00:00:16 #908 [Verbose] > │ let v4: Array<string> = │
00:00:16 #909 [Verbose] > │ Spiral_eval::method1(new_array(&[string("1"), string("2"), │
00:00:16 #910 [Verbose] > │ string("3")])); │
00:00:16 #911 [Verbose] > │ let v5: i32 = count(v4.clone()); │
00:00:16 #912 [Verbose] > │ let v7: LrcPtr<Spiral_eval::Mut0> = │
00:00:16 #913 [Verbose] > │ LrcPtr::new(Spiral_eval::Mut0{l0: MutCell::new(0_i32), │
00:00:16 #914 [Verbose] > │ l1: │
00:00:16 #915 [Verbose] > │ MutCell::new(string("")),}); │
00:00:16 #916 [Verbose] > │ while Spiral_eval::method2(v5, v7.clone()) { │
00:00:16 #917 [Verbose] > │ let v9: i32 = v7.l0.get().clone(); │
00:00:16 #918 [Verbose] > │ let v13: string = │
00:00:16 #919 [Verbose] > │ append(append(append(v7.l1.get().clone(), v4[ │
00:00:16 #920 [Verbose] > │ v9].clone()), │
00:00:16 #921 [Verbose] > │ string("\n")), string("")); │
00:00:16 #922 [Verbose] > │ let v14: i32 = v9 + 1_i32; │
00:00:16 #923 [Verbose] > │ v7.l0.set(v14); │
00:00:16 #924 [Verbose] > │ v7.l1.set(v13); │
00:00:16 #925 [Verbose] > │ () │
00:00:16 #926 [Verbose] > │ } │
00:00:16 #927 [Verbose] > │ { │
00:00:16 #928 [Verbose] > │ let v15: string = v7.l1.get().clone(); │
00:00:16 #929 [Verbose] > │ let v17: bool = v15.clone() == string("1\n2\n3\n"); │
00:00:16 #930 [Verbose] > │ if (if v17 { true } else { Spiral_eval::method3(v17) }) == │
00:00:16 #931 [Verbose] > │ false { │
00:00:16 #932 [Verbose] > │ panic!("{}", │
00:00:16 #933 [Verbose] > │ sprintf!("__expect / actual: {:?} / expected: │
00:00:16 #934 [Verbose] > │ {:?}", v15, string("1\n2\n3\n"))); │
00:00:16 #935 [Verbose] > │ } │
00:00:16 #936 [Verbose] > │ } │
00:00:16 #937 [Verbose] > │ } │
00:00:16 #938 [Verbose] > │ on_startup!(Spiral_eval::method0()); │
00:00:16 #939 [Verbose] > │ } │
00:00:16 #940 [Verbose] > │ } │
00:00:16 #941 [Verbose] > │ pub use module_ccfa04bf::*; │
00:00:16 #942 [Verbose] > │ │
00:00:16 #943 [Verbose] > │ │
00:00:16 #944 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 #945 [Verbose] >
00:00:16 #946 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:16 #947 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:16 #948 [Verbose] > │ ## concat_list_trailing │
00:00:16 #949 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 #950 [Verbose] >
00:00:16 #951 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:16 #952 [Verbose] > inl concat_list_trailing separator input =
00:00:16 #953 [Verbose] > ("", input)
00:00:16 #954 [Verbose] > ||> listm.fold fun acc (x : string) =>
00:00:16 #955 [Verbose] > $'!acc + !x + !separator + ""'
00:00:16 #956 [Verbose] > Building /tmp/!dotnet-repl/20240325-2024-0152-5299-54cac7e2c27d/main.spi
00:00:16 #957 [Verbose] >
00:00:16 #958 [Verbose] > ╭─[ 139.94ms - stdout ]────────────────────────────────────────────────────────╮
00:00:16 #959 [Verbose] > │ () │
00:00:16 #960 [Verbose] > │ │
00:00:16 #961 [Verbose] > │ │
00:00:16 #962 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 #963 [Verbose] >
00:00:16 #964 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:16 #965 [Verbose] > // // test
00:00:16 #966 [Verbose] > // // rust=
00:00:16 #967 [Verbose] >
00:00:16 #968 [Verbose] > [[
00:00:16 #969 [Verbose] > "1"
00:00:16 #970 [Verbose] > "2"
00:00:16 #971 [Verbose] > "3"
00:00:16 #972 [Verbose] > ]]
00:00:16 #973 [Verbose] > |> fun x =>
00:00:16 #974 [Verbose] > inl code = (x : _) |> sm'.concat_list_trailing "\n"
00:00:16 #975 [Verbose] > code
00:00:16 #976 [Verbose] > |> _assert_eq "1\n2\n3\n"
00:00:16 #977 [Verbose] > Building /tmp/!dotnet-repl/20240325-2024-0167-6705-67b34356508a/main.spi
00:00:18 #978 [Verbose] >
00:00:18 #979 [Verbose] > ╭─[ 2.59s - return value ]─────────────────────────────────────────────────────╮
00:00:18 #980 [Verbose] > │ .rs output: │
00:00:18 #981 [Verbose] > │ │
00:00:18 #982 [Verbose] > │ │
00:00:18 #983 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:18 #984 [Verbose] >
00:00:18 #985 [Verbose] > ╭─[ 2.59s - stdout ]───────────────────────────────────────────────────────────╮
00:00:18 #986 [Verbose] > │ │
00:00:18 #987 [Verbose] > │ .fsx: │
00:00:18 #988 [Verbose] > │ let rec method1 (v0 : bool) : bool = │
00:00:18 #989 [Verbose] > │ v0 │
00:00:18 #990 [Verbose] > │ and method0 () : unit = │
00:00:18 #991 [Verbose] > │ let v0 : string = "" │
00:00:18 #992 [Verbose] > │ let v1 : string = "1" │
00:00:18 #993 [Verbose] > │ let v2 : string = "\n" │
00:00:18 #994 [Verbose] > │ let v3 : string = v0 + v1 + v2 + "" │
00:00:18 #995 [Verbose] > │ let v4 : string = "2" │
00:00:18 #996 [Verbose] > │ let v5 : string = v3 + v4 + v2 + "" │
00:00:18 #997 [Verbose] > │ let v6 : string = "3" │
00:00:18 #998 [Verbose] > │ let v7 : string = v5 + v6 + v2 + "" │
00:00:18 #999 [Verbose] > │ let v9 : bool = v7 = "1\n2\n3\n" │
00:00:18 #1000 [Verbose] > │ let v11 : bool = │
00:00:18 #1001 [Verbose] > │ if v9 then │
00:00:18 #1002 [Verbose] > │ true │
00:00:18 #1003 [Verbose] > │ else │
00:00:18 #1004 [Verbose] > │ method1(v9) │
00:00:18 #1005 [Verbose] > │ let v12 : string = "1\n2\n3\n" │
00:00:18 #1006 [Verbose] > │ let v13 : string = $"__expect / actual: %A{v7} / expected: %A{v12}" │
00:00:18 #1007 [Verbose] > │ let v14 : bool = v11 = false │
00:00:18 #1008 [Verbose] > │ if v14 then │
00:00:18 #1009 [Verbose] > │ failwith<unit> v13 │
00:00:18 #1010 [Verbose] > │ method0() │
00:00:18 #1011 [Verbose] > │ │
00:00:18 #1012 [Verbose] > │ │
00:00:18 #1013 [Verbose] > │ .rs: │
00:00:18 #1014 [Verbose] > │ #![allow(dead_code,)] │
00:00:18 #1015 [Verbose] > │ #![allow(non_camel_case_types,)] │
00:00:18 #1016 [Verbose] > │ #![allow(non_snake_case,)] │
00:00:18 #1017 [Verbose] > │ #![allow(non_upper_case_globals,)] │
00:00:18 #1018 [Verbose] > │ #![allow(unreachable_code,)] │
00:00:18 #1019 [Verbose] > │ #![allow(unused_attributes,)] │
00:00:18 #1020 [Verbose] > │ #![allow(unused_imports,)] │
00:00:18 #1021 [Verbose] > │ #![allow(unused_macros,)] │
00:00:18 #1022 [Verbose] > │ #![allow(unused_parens,)] │
00:00:18 #1023 [Verbose] > │ #![allow(unused_variables,)] │
00:00:18 #1024 [Verbose] > │ mod module_ccfa04bf { │
00:00:18 #1025 [Verbose] > │ pub mod Spiral_eval { │
00:00:18 #1026 [Verbose] > │ use super::*; │
00:00:18 #1027 [Verbose] > │ use fable_library_rust::Native_::on_startup; │
00:00:18 #1028 [Verbose] > │ use fable_library_rust::String_::sprintf; │
00:00:18 #1029 [Verbose] > │ use fable_library_rust::String_::string; │
00:00:18 #1030 [Verbose] > │ pub fn method1(v0: bool) -> bool { v0 } │
00:00:18 #1031 [Verbose] > │ pub fn method0() { │
00:00:18 #1032 [Verbose] > │ let v7: string = string("1\n2\n3\n"); │
00:00:18 #1033 [Verbose] > │ let v9: bool = v7.clone() == string("1\n2\n3\n"); │
00:00:18 #1034 [Verbose] > │ if (if v9 { true } else { Spiral_eval::method1(v9) }) == false { │
00:00:18 #1035 [Verbose] > │ panic!("{}", │
00:00:18 #1036 [Verbose] > │ sprintf!("__expect / actual: {:?} / expected: {:?}", │
00:00:18 #1037 [Verbose] > │ v7, string("1\n2\n3\n"))); │
00:00:18 #1038 [Verbose] > │ } │
00:00:18 #1039 [Verbose] > │ } │
00:00:18 #1040 [Verbose] > │ on_startup!(Spiral_eval::method0()); │
00:00:18 #1041 [Verbose] > │ } │
00:00:18 #1042 [Verbose] > │ } │
00:00:18 #1043 [Verbose] > │ pub use module_ccfa04bf::*; │
00:00:18 #1044 [Verbose] > │ │
00:00:18 #1045 [Verbose] > │ │
00:00:18 #1046 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:18 #1047 [Verbose] >
00:00:18 #1048 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:18 #1049 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:18 #1050 [Verbose] > │ ## concat_list_heap_trailing │
00:00:18 #1051 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:18 #1052 [Verbose] >
00:00:18 #1053 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:18 #1054 [Verbose] > inl concat_list_heap_trailing separator input =
00:00:18 #1055 [Verbose] > ("", input)
00:00:18 #1056 [Verbose] > ||> listm.fold fun acc (x : string) =>
00:00:18 #1057 [Verbose] > inl acc = acc |> to_std_string
00:00:18 #1058 [Verbose] > inl x = x |> as_str
00:00:18 #1059 [Verbose] > inl separator = separator |> as_str
00:00:18 #1060 [Verbose] > !\($'"!acc + !x + !separator"')
00:00:18 #1061 [Verbose] > |> from_std_string
00:00:18 #1062 [Verbose] > Building /tmp/!dotnet-repl/20240325-2024-0426-2665-2d867b7678a5/main.spi
00:00:18 #1063 [Verbose] >
00:00:18 #1064 [Verbose] > ╭─[ 134.92ms - stdout ]────────────────────────────────────────────────────────╮
00:00:18 #1065 [Verbose] > │ () │
00:00:18 #1066 [Verbose] > │ │
00:00:18 #1067 [Verbose] > │ │
00:00:18 #1068 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:18 #1069 [Verbose] >
00:00:18 #1070 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:18 #1071 [Verbose] > // // test
00:00:18 #1072 [Verbose] > // // rust=
00:00:18 #1073 [Verbose] >
00:00:18 #1074 [Verbose] > types ()
00:00:18 #1075 [Verbose] >
00:00:18 #1076 [Verbose] > [[
00:00:18 #1077 [Verbose] > "1"
00:00:18 #1078 [Verbose] > "2"
00:00:18 #1079 [Verbose] > "3"
00:00:18 #1080 [Verbose] > ]]
00:00:18 #1081 [Verbose] > |> fun x =>
00:00:18 #1082 [Verbose] > inl code = (x : _) |> sm'.concat_list_heap_trailing "\n"
00:00:18 #1083 [Verbose] > code
00:00:18 #1084 [Verbose] > |> _assert_eq "1\n2\n3\n"
00:00:18 #1085 [Verbose] > Building /tmp/!dotnet-repl/20240325-2024-0440-4019-400e108ec667/main.spi
00:00:21 #1086 [Verbose] >
00:00:21 #1087 [Verbose] > ╭─[ 2.96s - return value ]─────────────────────────────────────────────────────╮
00:00:21 #1088 [Verbose] > │ .rs output: │
00:00:21 #1089 [Verbose] > │ │
00:00:21 #1090 [Verbose] > │ │
00:00:21 #1091 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:21 #1092 [Verbose] >
00:00:21 #1093 [Verbose] > ╭─[ 2.96s - stdout ]───────────────────────────────────────────────────────────╮
00:00:21 #1094 [Verbose] > │ │
00:00:21 #1095 [Verbose] > │ .fsx: │
00:00:21 #1096 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("Func0<$0>")>] type Func0<'T> = class │
00:00:21 #1097 [Verbose] > │ end │
00:00:21 #1098 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("Func1<$0, $1>")>] type Func0<'T, 'U> = │
00:00:21 #1099 [Verbose] > │ class end │
00:00:21 #1100 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("Box<$0>")>] type Box<'T> = class end │
00:00:21 #1101 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("dyn $0")>] type Dyn<'T> = class end │
00:00:21 #1102 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("Fn() -> $0")>] type Fn<'T> = class end │
00:00:21 #1103 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("Fn()")>] type FnUnit = class end │
00:00:21 #1104 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("FnOnce() -> $0")>] type FnOnce<'T> = │
00:00:21 #1105 [Verbose] > │ class end │
00:00:21 #1106 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("Fn($0, $1)")>] type ActionFn2<'T, 'U> = │
00:00:21 #1107 [Verbose] > │ class end │
00:00:21 #1108 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("impl $0")>] type Impl<'T> = class end │
00:00:21 #1109 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("mut $0")>] type Mut<'T> = class end │
00:00:21 #1110 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("&$0")>] type Ref<'T> = class end │
00:00:21 #1111 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("&'static $0")>] type StaticRef<'T> = │
00:00:21 #1112 [Verbose] > │ class end │
00:00:21 #1113 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("MutCell<$0>")>] type MutCell<'T> = │
00:00:21 #1114 [Verbose] > │ class end │
00:00:21 #1115 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::any::Any")>] type std_any_Any = │
00:00:21 #1116 [Verbose] > │ class end │
00:00:21 #1117 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::cell::RefCell<$0>")>] type │
00:00:21 #1118 [Verbose] > │ std_cell_RefCell<'T> = class end │
00:00:21 #1119 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::pin::Pin<$0>")>] type │
00:00:21 #1120 [Verbose] > │ std_pin_Pin<'T> = class end │
00:00:21 #1121 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::rc::Rc<$0>")>] type std_rc_Rc<'T> │
00:00:21 #1122 [Verbose] > │ = class end │
00:00:21 #1123 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::rc::Weak<$0>")>] type │
00:00:21 #1124 [Verbose] > │ std_rc_Weak<'T> = class end │
00:00:21 #1125 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::sync::Arc<$0>")>] type │
00:00:21 #1126 [Verbose] > │ std_sync_Arc<'T> = class end │
00:00:21 #1127 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("str")>] type Str = class end │
00:00:21 #1128 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("base64::DecodeError")>] type │
00:00:21 #1129 [Verbose] > │ base64_DecodeError = class end │
00:00:21 #1130 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("borsh::io::Error")>] type │
00:00:21 #1131 [Verbose] > │ borsh_io_Error = class end │
00:00:21 #1132 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("js_sys::JsString")>] type │
00:00:21 #1133 [Verbose] > │ js_sys_JsString = class end │
00:00:21 #1134 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("serde_json::Error")>] type │
00:00:21 #1135 [Verbose] > │ serde_json_Error = class end │
00:00:21 #1136 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("serde_json::Value")>] type │
00:00:21 #1137 [Verbose] > │ serde_json_Value = class end │
00:00:21 #1138 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("serde_wasm_bindgen::Error")>] type │
00:00:21 #1139 [Verbose] > │ serde_wasm_bindgen_Error = class end │
00:00:21 #1140 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::str::Utf8Error")>] type │
00:00:21 #1141 [Verbose] > │ std_str_Utf8Error = class end │
00:00:21 #1142 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::string::String")>] type │
00:00:21 #1143 [Verbose] > │ std_string_String = class end │
00:00:21 #1144 [Verbose] > │ let rec method1 () : string = │
00:00:21 #1145 [Verbose] > │ let v0 : string = "" │
00:00:21 #1146 [Verbose] > │ v0 │
00:00:21 #1147 [Verbose] > │ and method2 (v0 : string) : string = │
00:00:21 #1148 [Verbose] > │ v0 │
00:00:21 #1149 [Verbose] > │ and method3 () : string = │
00:00:21 #1150 [Verbose] > │ let v0 : string = "1" │
00:00:21 #1151 [Verbose] > │ v0 │
00:00:21 #1152 [Verbose] > │ and method4 () : string = │
00:00:21 #1153 [Verbose] > │ let v0 : string = "\n" │
00:00:21 #1154 [Verbose] > │ v0 │
00:00:21 #1155 [Verbose] > │ and method5 (v0 : std_string_String) : std_string_String = │
00:00:21 #1156 [Verbose] > │ v0 │
00:00:21 #1157 [Verbose] > │ and method6 (v0 : string) : string = │
00:00:21 #1158 [Verbose] > │ v0 │
00:00:21 #1159 [Verbose] > │ and method7 () : string = │
00:00:21 #1160 [Verbose] > │ let v0 : string = "2" │
00:00:21 #1161 [Verbose] > │ v0 │
00:00:21 #1162 [Verbose] > │ and method8 () : string = │
00:00:21 #1163 [Verbose] > │ let v0 : string = "3" │
00:00:21 #1164 [Verbose] > │ v0 │
00:00:21 #1165 [Verbose] > │ and method9 (v0 : bool) : bool = │
00:00:21 #1166 [Verbose] > │ v0 │
00:00:21 #1167 [Verbose] > │ and method0 () : unit = │
00:00:21 #1168 [Verbose] > │ let v0 : string = method1() │
00:00:21 #1169 [Verbose] > │ let v1 : string = method2(v0) │
00:00:21 #1170 [Verbose] > │ let v2 : string = $"fable_library_rust::String_::LrcStr::as_str(&v1)" │
00:00:21 #1171 [Verbose] > │ let v3 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v2 │
00:00:21 #1172 [Verbose] > │ let v4 : string = "String::from(v3)" │
00:00:21 #1173 [Verbose] > │ let v5 : std_string_String = Fable.Core.RustInterop.emitRustExpr () v4 │
00:00:21 #1174 [Verbose] > │ let v6 : string = method3() │
00:00:21 #1175 [Verbose] > │ let v7 : string = $"fable_library_rust::String_::LrcStr::as_str(&v6)" │
00:00:21 #1176 [Verbose] > │ let v8 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v7 │
00:00:21 #1177 [Verbose] > │ let v9 : string = method4() │
00:00:21 #1178 [Verbose] > │ let v10 : string = $"fable_library_rust::String_::LrcStr::as_str(&v9)" │
00:00:21 #1179 [Verbose] > │ let v11 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v10 │
00:00:21 #1180 [Verbose] > │ let v12 : string = "v5 + v8 + v11" │
00:00:21 #1181 [Verbose] > │ let v13 : std_string_String = Fable.Core.RustInterop.emitRustExpr () v12 │
00:00:21 #1182 [Verbose] > │ let v14 : std_string_String = method5(v13) │
00:00:21 #1183 [Verbose] > │ let v15 : string = "fable_library_rust::String_::fromString(v14)" │
00:00:21 #1184 [Verbose] > │ let v16 : string = Fable.Core.RustInterop.emitRustExpr () v15 │
00:00:21 #1185 [Verbose] > │ let v17 : string = method6(v16) │
00:00:21 #1186 [Verbose] > │ let v18 : string = method2(v17) │
00:00:21 #1187 [Verbose] > │ let v19 : string = $"fable_library_rust::String_::LrcStr::as_str(&v18)" │
00:00:21 #1188 [Verbose] > │ let v20 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v19 │
00:00:21 #1189 [Verbose] > │ let v21 : string = "String::from(v20)" │
00:00:21 #1190 [Verbose] > │ let v22 : std_string_String = Fable.Core.RustInterop.emitRustExpr () v21 │
00:00:21 #1191 [Verbose] > │ let v23 : string = method7() │
00:00:21 #1192 [Verbose] > │ let v24 : string = $"fable_library_rust::String_::LrcStr::as_str(&v23)" │
00:00:21 #1193 [Verbose] > │ let v25 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v24 │
00:00:21 #1194 [Verbose] > │ let v26 : string = method4() │
00:00:21 #1195 [Verbose] > │ let v27 : string = $"fable_library_rust::String_::LrcStr::as_str(&v26)" │
00:00:21 #1196 [Verbose] > │ let v28 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v27 │
00:00:21 #1197 [Verbose] > │ let v29 : string = "v22 + v25 + v28" │
00:00:21 #1198 [Verbose] > │ let v30 : std_string_String = Fable.Core.RustInterop.emitRustExpr () v29 │
00:00:21 #1199 [Verbose] > │ let v31 : std_string_String = method5(v30) │
00:00:21 #1200 [Verbose] > │ let v32 : string = "fable_library_rust::String_::fromString(v31)" │
00:00:21 #1201 [Verbose] > │ let v33 : string = Fable.Core.RustInterop.emitRustExpr () v32 │
00:00:21 #1202 [Verbose] > │ let v34 : string = method6(v33) │
00:00:21 #1203 [Verbose] > │ let v35 : string = method2(v34) │
00:00:21 #1204 [Verbose] > │ let v36 : string = $"fable_library_rust::String_::LrcStr::as_str(&v35)" │
00:00:21 #1205 [Verbose] > │ let v37 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v36 │
00:00:21 #1206 [Verbose] > │ let v38 : string = "String::from(v37)" │
00:00:21 #1207 [Verbose] > │ let v39 : std_string_String = Fable.Core.RustInterop.emitRustExpr () v38 │
00:00:21 #1208 [Verbose] > │ let v40 : string = method8() │
00:00:21 #1209 [Verbose] > │ let v41 : string = $"fable_library_rust::String_::LrcStr::as_str(&v40)" │
00:00:21 #1210 [Verbose] > │ let v42 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v41 │
00:00:21 #1211 [Verbose] > │ let v43 : string = method4() │
00:00:21 #1212 [Verbose] > │ let v44 : string = $"fable_library_rust::String_::LrcStr::as_str(&v43)" │
00:00:21 #1213 [Verbose] > │ let v45 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v44 │
00:00:21 #1214 [Verbose] > │ let v46 : string = "v39 + v42 + v45" │
00:00:21 #1215 [Verbose] > │ let v47 : std_string_String = Fable.Core.RustInterop.emitRustExpr () v46 │
00:00:21 #1216 [Verbose] > │ let v48 : std_string_String = method5(v47) │
00:00:21 #1217 [Verbose] > │ let v49 : string = "fable_library_rust::String_::fromString(v48)" │
00:00:21 #1218 [Verbose] > │ let v50 : string = Fable.Core.RustInterop.emitRustExpr () v49 │
00:00:21 #1219 [Verbose] > │ let v52 : bool = v50 = "1\n2\n3\n" │
00:00:21 #1220 [Verbose] > │ let v54 : bool = │
00:00:21 #1221 [Verbose] > │ if v52 then │
00:00:21 #1222 [Verbose] > │ true │
00:00:21 #1223 [Verbose] > │ else │
00:00:21 #1224 [Verbose] > │ method9(v52) │
00:00:21 #1225 [Verbose] > │ let v55 : string = "1\n2\n3\n" │
00:00:21 #1226 [Verbose] > │ let v56 : string = $"__expect / actual: %A{v50} / expected: %A{v55}" │
00:00:21 #1227 [Verbose] > │ let v57 : bool = v54 = false │
00:00:21 #1228 [Verbose] > │ if v57 then │
00:00:21 #1229 [Verbose] > │ failwith<unit> v56 │
00:00:21 #1230 [Verbose] > │ method0() │
00:00:21 #1231 [Verbose] > │ │
00:00:21 #1232 [Verbose] > │ │
00:00:21 #1233 [Verbose] > │ .rs: │
00:00:21 #1234 [Verbose] > │ #![allow(dead_code,)] │
00:00:21 #1235 [Verbose] > │ #![allow(non_camel_case_types,)] │
00:00:21 #1236 [Verbose] > │ #![allow(non_snake_case,)] │
00:00:21 #1237 [Verbose] > │ #![allow(non_upper_case_globals,)] │
00:00:21 #1238 [Verbose] > │ #![allow(unreachable_code,)] │
00:00:21 #1239 [Verbose] > │ #![allow(unused_attributes,)] │
00:00:21 #1240 [Verbose] > │ #![allow(unused_imports,)] │
00:00:21 #1241 [Verbose] > │ #![allow(unused_macros,)] │
00:00:21 #1242 [Verbose] > │ #![allow(unused_parens,)] │
00:00:21 #1243 [Verbose] > │ #![allow(unused_variables,)] │
00:00:21 #1244 [Verbose] > │ mod module_ccfa04bf { │
00:00:21 #1245 [Verbose] > │ pub mod Spiral_eval { │
00:00:21 #1246 [Verbose] > │ use super::*; │
00:00:21 #1247 [Verbose] > │ use fable_library_rust::Native_::on_startup; │
00:00:21 #1248 [Verbose] > │ use fable_library_rust::String_::sprintf; │
00:00:21 #1249 [Verbose] > │ use fable_library_rust::String_::string; │
00:00:21 #1250 [Verbose] > │ pub fn method1() -> string { string("") } │
00:00:21 #1251 [Verbose] > │ pub fn method2(v0: string) -> string { v0 } │
00:00:21 #1252 [Verbose] > │ pub fn method3() -> string { string("1") } │
00:00:21 #1253 [Verbose] > │ pub fn method4() -> string { string("\n") } │
00:00:21 #1254 [Verbose] > │ pub fn method5(v0: std::string::String) -> std::string::String { v0 │
00:00:21 #1255 [Verbose] > │ } │
00:00:21 #1256 [Verbose] > │ pub fn method6(v0: string) -> string { v0 } │
00:00:21 #1257 [Verbose] > │ pub fn method7() -> string { string("2") } │
00:00:21 #1258 [Verbose] > │ pub fn method8() -> string { string("3") } │
00:00:21 #1259 [Verbose] > │ pub fn method9(v0: bool) -> bool { v0 } │
00:00:21 #1260 [Verbose] > │ pub fn method0() { │
00:00:21 #1261 [Verbose] > │ let v1: string = Spiral_eval::method2(Spiral_eval::method1()); │
00:00:21 #1262 [Verbose] > │ let v3: &str = fable_library_rust::String_::LrcStr::as_str(&v1); │
00:00:21 #1263 [Verbose] > │ let v5: std::string::String = String::from(v3); │
00:00:21 #1264 [Verbose] > │ let v6: string = Spiral_eval::method3(); │
00:00:21 #1265 [Verbose] > │ let v8: &str = fable_library_rust::String_::LrcStr::as_str(&v6); │
00:00:21 #1266 [Verbose] > │ let v9: string = Spiral_eval::method4(); │
00:00:21 #1267 [Verbose] > │ let v11: &str = │
00:00:21 #1268 [Verbose] > │ fable_library_rust::String_::LrcStr::as_str(&v9); │
00:00:21 #1269 [Verbose] > │ let v14: std::string::String = │
00:00:21 #1270 [Verbose] > │ Spiral_eval::method5(v5 + v8 + v11); │
00:00:21 #1271 [Verbose] > │ let v18: string = │
00:00:21 #1272 [Verbose] > │ │
00:00:21 #1273 [Verbose] > │ Spiral_eval::method2(Spiral_eval::method6(fable_library_rust::String_::fromS │
00:00:21 #1274 [Verbose] > │ tring(v14))); │
00:00:21 #1275 [Verbose] > │ let v20: &str = │
00:00:21 #1276 [Verbose] > │ fable_library_rust::String_::LrcStr::as_str(&v18); │
00:00:21 #1277 [Verbose] > │ let v22: std::string::String = String::from(v20); │
00:00:21 #1278 [Verbose] > │ let v23: string = Spiral_eval::method7(); │
00:00:21 #1279 [Verbose] > │ let v25: &str = │
00:00:21 #1280 [Verbose] > │ fable_library_rust::String_::LrcStr::as_str(&v23); │
00:00:21 #1281 [Verbose] > │ let v26: string = Spiral_eval::method4(); │
00:00:21 #1282 [Verbose] > │ let v28: &str = │
00:00:21 #1283 [Verbose] > │ fable_library_rust::String_::LrcStr::as_str(&v26); │
00:00:21 #1284 [Verbose] > │ let v31: std::string::String = │
00:00:21 #1285 [Verbose] > │ Spiral_eval::method5(v22 + v25 + v28); │
00:00:21 #1286 [Verbose] > │ let v35: string = │
00:00:21 #1287 [Verbose] > │ │
00:00:21 #1288 [Verbose] > │ Spiral_eval::method2(Spiral_eval::method6(fable_library_rust::String_::fromS │
00:00:21 #1289 [Verbose] > │ tring(v31))); │
00:00:21 #1290 [Verbose] > │ let v37: &str = │
00:00:21 #1291 [Verbose] > │ fable_library_rust::String_::LrcStr::as_str(&v35); │
00:00:21 #1292 [Verbose] > │ let v39: std::string::String = String::from(v37); │
00:00:21 #1293 [Verbose] > │ let v40: string = Spiral_eval::method8(); │
00:00:21 #1294 [Verbose] > │ let v42: &str = │
00:00:21 #1295 [Verbose] > │ fable_library_rust::String_::LrcStr::as_str(&v40); │
00:00:21 #1296 [Verbose] > │ let v43: string = Spiral_eval::method4(); │
00:00:21 #1297 [Verbose] > │ let v45: &str = │
00:00:21 #1298 [Verbose] > │ fable_library_rust::String_::LrcStr::as_str(&v43); │
00:00:21 #1299 [Verbose] > │ let v48: std::string::String = │
00:00:21 #1300 [Verbose] > │ Spiral_eval::method5(v39 + v42 + v45); │
00:00:21 #1301 [Verbose] > │ let v50: string = fable_library_rust::String_::fromString(v48); │
00:00:21 #1302 [Verbose] > │ let v52: bool = v50.clone() == string("1\n2\n3\n"); │
00:00:21 #1303 [Verbose] > │ if (if v52 { true } else { Spiral_eval::method9(v52) }) == false │
00:00:21 #1304 [Verbose] > │ { │
00:00:21 #1305 [Verbose] > │ panic!("{}", │
00:00:21 #1306 [Verbose] > │ sprintf!("__expect / actual: {:?} / expected: {:?}", │
00:00:21 #1307 [Verbose] > │ v50, string("1\n2\n3\n"))); │
00:00:21 #1308 [Verbose] > │ } │
00:00:21 #1309 [Verbose] > │ } │
00:00:21 #1310 [Verbose] > │ on_startup!(Spiral_eval::method0()); │
00:00:21 #1311 [Verbose] > │ } │
00:00:21 #1312 [Verbose] > │ } │
00:00:21 #1313 [Verbose] > │ pub use module_ccfa04bf::*; │
00:00:21 #1314 [Verbose] > │ │
00:00:21 #1315 [Verbose] > │ │
00:00:21 #1316 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:21 #1317 [Verbose] >
00:00:21 #1318 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:21 #1319 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:21 #1320 [Verbose] > │ ## concat │
00:00:21 #1321 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:21 #1322 [Verbose] >
00:00:21 #1323 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:21 #1324 [Verbose] > inl concat (a : string) (b : a _ _) : string =
00:00:21 #1325 [Verbose] > $"!b |> String.concat !a"
00:00:21 #1326 [Verbose] > Building /tmp/!dotnet-repl/20240325-2024-0736-3689-3db564a2d96e/main.spi
00:00:22 #1327 [Verbose] >
00:00:22 #1328 [Verbose] > ╭─[ 136.65ms - stdout ]────────────────────────────────────────────────────────╮
00:00:22 #1329 [Verbose] > │ () │
00:00:22 #1330 [Verbose] > │ │
00:00:22 #1331 [Verbose] > │ │
00:00:22 #1332 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:22 #1333 [Verbose] >
00:00:22 #1334 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:22 #1335 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:22 #1336 [Verbose] > │ ## join' │
00:00:22 #1337 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:22 #1338 [Verbose] >
00:00:22 #1339 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:22 #1340 [Verbose] > inl join' (concat : string) (s : a _ string) : string =
00:00:22 #1341 [Verbose] > $"System.String.Join (!concat, !s)"
00:00:22 #1342 [Verbose] > Building /tmp/!dotnet-repl/20240325-2024-0750-5063-531923d99a2e/main.spi
00:00:22 #1343 [Verbose] >
00:00:22 #1344 [Verbose] > ╭─[ 131.21ms - stdout ]────────────────────────────────────────────────────────╮
00:00:22 #1345 [Verbose] > │ () │
00:00:22 #1346 [Verbose] > │ │
00:00:22 #1347 [Verbose] > │ │
00:00:22 #1348 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:22 #1349 [Verbose] >
00:00:22 #1350 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:22 #1351 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:22 #1352 [Verbose] > │ ## to_string std_string │
00:00:22 #1353 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:22 #1354 [Verbose] >
00:00:22 #1355 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:22 #1356 [Verbose] > open rust
00:00:22 #1357 [Verbose] > instance to_string std_string = from_std_string
00:00:22 #1358 [Verbose] > Building /tmp/!dotnet-repl/20240325-2024-0763-6380-6db8c8fa80e4/main.spi
00:00:22 #1359 [Verbose] >
00:00:22 #1360 [Verbose] > ╭─[ 136.39ms - stdout ]────────────────────────────────────────────────────────╮
00:00:22 #1361 [Verbose] > │ () │
00:00:22 #1362 [Verbose] > │ │
00:00:22 #1363 [Verbose] > │ │
00:00:22 #1364 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:23 #1365 [Verbose] > [NbConvertApp] Converting notebook sm'.dib.ipynb to html
00:00:23 #1366 [Verbose] > /opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/nbformat/__init__.py:96: MissingIDFieldWarning: Cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:00:23 #1367 [Verbose] > validate(nb)
00:00:23 #1368 [Verbose] > /opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/nbconvert/filters/highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:00:23 #1369 [Verbose] > return _pygments_highlight(
00:00:23 #1370 [Verbose] > [NbConvertApp] Writing 395505 bytes to sm'.dib.html
00:00:24 #1371 [Debug] executeAsync / exitCode: 0 / output.Length: 102841
00:00:24 #1372 [Debug] main / executeCommand / exitCode: 0
00:00:00 #1 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #2 [Debug] executeAsync / options: { Command =
"dotnet "/home/runner/work/polyglot/polyglot/deps/The-Spiral-Language/The Spiral Language 2/artifacts/bin/The Spiral Language 2/release/Spiral.dll" --port 13805 --default-int i32 --default-float f64"
WorkingDirectory = None
CancellationToken = Some System.Threading.CancellationToken
OnLine = Some <fun:main@464-1020> }
00:00:00 #3 [Verbose] > pwd: /home/runner/work/polyglot/polyglot/lib/spiral
00:00:00 #4 [Verbose] > dll_path: /home/runner/work/polyglot/polyglot/deps/The-Spiral-Language/The Spiral Language 2/artifacts/bin/The Spiral Language 2/release
00:00:00 #5 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #6 [Verbose] waitForPortAccess / port: 13805 / retry: 0
00:00:00 #7 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #8 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #9 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #10 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #11 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #12 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #13 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #14 [Verbose] > Starting the Spiral Server. It is bound to: http://localhost:13805
00:00:00 #15 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #16 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #17 [Debug] sendJson / port: 13805 / json: {"Ping":true} / result.Length:
00:00:00 #18 [Verbose] awaitCompiler / Ping / result: Some(null) / port: 13805 / retry: 0
00:00:00 #19 [Verbose] > Server bound to: http://localhost:13805
00:00:00 #20 [Debug] executeAsync / options: { Command = "pwsh -c "../../scripts/invoke-dib.ps1 \"listm'.dib\"""
WorkingDirectory = None
CancellationToken = Some System.Threading.CancellationToken
OnLine = None }
00:00:02 #21 [Verbose] >
00:00:02 #22 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:02 #23 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:02 #24 [Verbose] > │ # listm │
00:00:02 #25 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:02 #26 [Verbose] >
00:00:02 #27 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:02 #28 [Verbose] > // // test
00:00:02 #29 [Verbose] >
00:00:02 #30 [Verbose] > open testing
00:00:02 #31 [Verbose] >
00:00:02 #32 [Verbose] > prototype append t : t -> t -> t
00:00:04 #33 [Verbose] > Building /tmp/!dotnet-repl/20240325-2024-1389-8903-88202d1aefd3/main.spi
00:00:06 #34 [Verbose] >
00:00:06 #35 [Verbose] > ╭─[ 3.84s - stdout ]───────────────────────────────────────────────────────────╮
00:00:06 #36 [Verbose] > │ () │
00:00:06 #37 [Verbose] > │ │
00:00:06 #38 [Verbose] > │ │
00:00:06 #39 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:06 #40 [Verbose] >
00:00:06 #41 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:06 #42 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:06 #43 [Verbose] > │ ## append │
00:00:06 #44 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:06 #45 [Verbose] >
00:00:06 #46 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:06 #47 [Verbose] > instance append list t =
00:00:06 #48 [Verbose] > listm.append
00:00:06 #49 [Verbose] > Building /tmp/!dotnet-repl/20240325-2024-1637-3743-37849e481d96/main.spi
00:00:06 #50 [Verbose] >
00:00:06 #51 [Verbose] > ╭─[ 172.52ms - stdout ]────────────────────────────────────────────────────────╮
00:00:06 #52 [Verbose] > │ () │
00:00:06 #53 [Verbose] > │ │
00:00:06 #54 [Verbose] > │ │
00:00:06 #55 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:06 #56 [Verbose] >
00:00:06 #57 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:06 #58 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:06 #59 [Verbose] > │ ## /@ │
00:00:06 #60 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:06 #61 [Verbose] >
00:00:06 #62 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:06 #63 [Verbose] > inl (/@) a b =
00:00:06 #64 [Verbose] > b |> append a
00:00:06 #65 [Verbose] > Building /tmp/!dotnet-repl/20240325-2024-1655-5503-56c4d7a14d99/main.spi
00:00:06 #66 [Verbose] >
00:00:06 #67 [Verbose] > ╭─[ 170.76ms - stdout ]────────────────────────────────────────────────────────╮
00:00:06 #68 [Verbose] > │ () │
00:00:06 #69 [Verbose] > │ │
00:00:06 #70 [Verbose] > │ │
00:00:06 #71 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:06 #72 [Verbose] >
00:00:06 #73 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:06 #74 [Verbose] > // // test
00:00:06 #75 [Verbose] >
00:00:06 #76 [Verbose] > [[ "a"; "b" ]] /@ [[ "c"; "d" ]]
00:00:06 #77 [Verbose] > |> _assert_eq [[ "a"; "b"; "c"; "d" ]]
00:00:06 #78 [Verbose] > Building /tmp/!dotnet-repl/20240325-2024-1671-7193-7fcde199709f/main.spi
00:00:07 #79 [Verbose] >
00:00:07 #80 [Verbose] > ╭─[ 866.17ms - stdout ]────────────────────────────────────────────────────────╮
00:00:07 #81 [Verbose] > │ type UH0 = │
00:00:07 #82 [Verbose] > │ | UH0_0 of string * UH0 │
00:00:07 #83 [Verbose] > │ | UH0_1 │
00:00:07 #84 [Verbose] > │ let rec method0 () : unit = │
00:00:07 #85 [Verbose] > │ let v43 : string = "a" │
00:00:07 #86 [Verbose] > │ let v44 : string = "b" │
00:00:07 #87 [Verbose] > │ let v45 : string = "c" │
00:00:07 #88 [Verbose] > │ let v46 : string = "d" │
00:00:07 #89 [Verbose] > │ let v47 : UH0 = UH0_1 │
00:00:07 #90 [Verbose] > │ let v48 : UH0 = UH0_0(v46, v47) │
00:00:07 #91 [Verbose] > │ let v49 : UH0 = UH0_0(v45, v48) │
00:00:07 #92 [Verbose] > │ let v50 : UH0 = UH0_0(v44, v49) │
00:00:07 #93 [Verbose] > │ let v51 : UH0 = UH0_0(v43, v50) │
00:00:07 #94 [Verbose] > │ let v52 : UH0 = UH0_1 │
00:00:07 #95 [Verbose] > │ let v53 : UH0 = UH0_0(v46, v52) │
00:00:07 #96 [Verbose] > │ let v54 : UH0 = UH0_0(v45, v53) │
00:00:07 #97 [Verbose] > │ let v55 : UH0 = UH0_0(v44, v54) │
00:00:07 #98 [Verbose] > │ let v56 : UH0 = UH0_0(v43, v55) │
00:00:07 #99 [Verbose] > │ let v57 : string = $"__expect / actual: %A{v51} / expected: %A{v56}" │
00:00:07 #100 [Verbose] > │ () │
00:00:07 #101 [Verbose] > │ method0() │
00:00:07 #102 [Verbose] > │ │
00:00:07 #103 [Verbose] > │ │
00:00:07 #104 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #105 [Verbose] >
00:00:07 #106 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:07 #107 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:07 #108 [Verbose] > │ ## init_series │
00:00:07 #109 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #110 [Verbose] >
00:00:07 #111 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:07 #112 [Verbose] > inl init_series start end inc =
00:00:07 #113 [Verbose] > inl total : f64 = conv ((end - start) / inc) + 1
00:00:07 #114 [Verbose] > listm.init total (conv >> (*) inc >> (+) start)
00:00:07 #115 [Verbose] > Building /tmp/!dotnet-repl/20240325-2024-1758-5865-5ede9c87fb5e/main.spi
00:00:07 #116 [Verbose] >
00:00:07 #117 [Verbose] > ╭─[ 136.98ms - stdout ]────────────────────────────────────────────────────────╮
00:00:07 #118 [Verbose] > │ () │
00:00:07 #119 [Verbose] > │ │
00:00:07 #120 [Verbose] > │ │
00:00:07 #121 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #122 [Verbose] >
00:00:07 #123 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:07 #124 [Verbose] > // // test
00:00:07 #125 [Verbose] >
00:00:07 #126 [Verbose] > init_series 0 1 0.5
00:00:07 #127 [Verbose] > |> _assert_eq [[ 0f64; 0.5; 1 ]]
00:00:07 #128 [Verbose] > Building /tmp/!dotnet-repl/20240325-2024-1772-7243-7a9dd3bc3da2/main.spi
00:00:07 #129 [Verbose] >
00:00:07 #130 [Verbose] > ╭─[ 194.56ms - stdout ]────────────────────────────────────────────────────────╮
00:00:07 #131 [Verbose] > │ type UH0 = │
00:00:07 #132 [Verbose] > │ | UH0_0 of float * UH0 │
00:00:07 #133 [Verbose] > │ | UH0_1 │
00:00:07 #134 [Verbose] > │ let rec method0 () : unit = │
00:00:07 #135 [Verbose] > │ let v18 : UH0 = UH0_1 │
00:00:07 #136 [Verbose] > │ let v19 : UH0 = UH0_0(1.0, v18) │
00:00:07 #137 [Verbose] > │ let v20 : UH0 = UH0_0(0.5, v19) │
00:00:07 #138 [Verbose] > │ let v21 : UH0 = UH0_0(0.0, v20) │
00:00:07 #139 [Verbose] > │ let v22 : UH0 = UH0_1 │
00:00:07 #140 [Verbose] > │ let v23 : UH0 = UH0_0(1.0, v22) │
00:00:07 #141 [Verbose] > │ let v24 : UH0 = UH0_0(0.5, v23) │
00:00:07 #142 [Verbose] > │ let v25 : UH0 = UH0_0(0.0, v24) │
00:00:07 #143 [Verbose] > │ let v26 : string = $"__expect / actual: %A{v21} / expected: %A{v25}" │
00:00:07 #144 [Verbose] > │ () │
00:00:07 #145 [Verbose] > │ method0() │
00:00:07 #146 [Verbose] > │ │
00:00:07 #147 [Verbose] > │ │
00:00:07 #148 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #149 [Verbose] >
00:00:07 #150 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:07 #151 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:07 #152 [Verbose] > │ ## try_item │
00:00:07 #153 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #154 [Verbose] >
00:00:07 #155 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:07 #156 [Verbose] > inl rec try_item i = function
00:00:07 #157 [Verbose] > | Cons (x, _) when i = 0 => Some x
00:00:07 #158 [Verbose] > | Cons (_, xs) => try_item (i - 1) xs
00:00:07 #159 [Verbose] > | Nil => None
00:00:07 #160 [Verbose] > Building /tmp/!dotnet-repl/20240325-2024-1792-9208-940cabd2278e/main.spi
00:00:07 #161 [Verbose] >
00:00:07 #162 [Verbose] > ╭─[ 147.05ms - stdout ]────────────────────────────────────────────────────────╮
00:00:07 #163 [Verbose] > │ () │
00:00:07 #164 [Verbose] > │ │
00:00:07 #165 [Verbose] > │ │
00:00:07 #166 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #167 [Verbose] >
00:00:07 #168 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:07 #169 [Verbose] > // // test
00:00:07 #170 [Verbose] >
00:00:07 #171 [Verbose] > listm.init 10i32 id
00:00:07 #172 [Verbose] > |> try_item 9i32
00:00:07 #173 [Verbose] > |> _assert_eq (Some 9)
00:00:08 #174 [Verbose] > Building /tmp/!dotnet-repl/20240325-2024-1806-0687-015402cf06c3/main.spi
00:00:08 #175 [Verbose] >
00:00:08 #176 [Verbose] > ╭─[ 232.03ms - stdout ]────────────────────────────────────────────────────────╮
00:00:08 #177 [Verbose] > │ type [<Struct>] US0 = │
00:00:08 #178 [Verbose] > │ | US0_0 │
00:00:08 #179 [Verbose] > │ | US0_1 of f1_0 : int32 │
00:00:08 #180 [Verbose] > │ let rec method0 () : unit = │
00:00:08 #181 [Verbose] > │ let v3 : US0 = US0_1(9) │
00:00:08 #182 [Verbose] > │ let v4 : US0 = US0_1(9) │
00:00:08 #183 [Verbose] > │ let v5 : string = $"__expect / actual: %A{v3} / expected: %A{v4}" │
00:00:08 #184 [Verbose] > │ () │
00:00:08 #185 [Verbose] > │ method0() │
00:00:08 #186 [Verbose] > │ │
00:00:08 #187 [Verbose] > │ │
00:00:08 #188 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #189 [Verbose] >
00:00:08 #190 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:08 #191 [Verbose] > // // test
00:00:08 #192 [Verbose] >
00:00:08 #193 [Verbose] > listm.init 10i32 id
00:00:08 #194 [Verbose] > |> try_item 10i32
00:00:08 #195 [Verbose] > |> _assert_eq None
00:00:08 #196 [Verbose] > Building /tmp/!dotnet-repl/20240325-2024-1830-3013-370089b5781a/main.spi
00:00:08 #197 [Verbose] >
00:00:08 #198 [Verbose] > ╭─[ 176.53ms - stdout ]────────────────────────────────────────────────────────╮
00:00:08 #199 [Verbose] > │ type [<Struct>] US0 = │
00:00:08 #200 [Verbose] > │ | US0_0 │
00:00:08 #201 [Verbose] > │ | US0_1 of f1_0 : int32 │
00:00:08 #202 [Verbose] > │ let rec method0 () : unit = │
00:00:08 #203 [Verbose] > │ let v3 : US0 = US0_0 │
00:00:08 #204 [Verbose] > │ let v4 : US0 = US0_0 │
00:00:08 #205 [Verbose] > │ let v5 : string = $"__expect / actual: %A{v3} / expected: %A{v4}" │
00:00:08 #206 [Verbose] > │ () │
00:00:08 #207 [Verbose] > │ method0() │
00:00:08 #208 [Verbose] > │ │
00:00:08 #209 [Verbose] > │ │
00:00:08 #210 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #211 [Verbose] >
00:00:08 #212 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:08 #213 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:08 #214 [Verbose] > │ ## list_item │
00:00:08 #215 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #216 [Verbose] >
00:00:08 #217 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:08 #218 [Verbose] > inl item i =
00:00:08 #219 [Verbose] > try_item i >> optionm.value
00:00:08 #220 [Verbose] > Building /tmp/!dotnet-repl/20240325-2024-1847-4790-429d0ee59885/main.spi
00:00:08 #221 [Verbose] >
00:00:08 #222 [Verbose] > ╭─[ 153.00ms - stdout ]────────────────────────────────────────────────────────╮
00:00:08 #223 [Verbose] > │ () │
00:00:08 #224 [Verbose] > │ │
00:00:08 #225 [Verbose] > │ │
00:00:08 #226 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #227 [Verbose] >
00:00:08 #228 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:08 #229 [Verbose] > // // test
00:00:08 #230 [Verbose] >
00:00:08 #231 [Verbose] > listm.init 10i32 id
00:00:08 #232 [Verbose] > |> item 9i32
00:00:08 #233 [Verbose] > |> _assert_eq 9
00:00:08 #234 [Verbose] > Building /tmp/!dotnet-repl/20240325-2024-1863-6326-66d0a76afd11/main.spi
00:00:08 #235 [Verbose] >
00:00:08 #236 [Verbose] > ╭─[ 149.66ms - stdout ]────────────────────────────────────────────────────────╮
00:00:08 #237 [Verbose] > │ let rec method0 () : unit = │
00:00:08 #238 [Verbose] > │ let v0 : string = $"__expect / actual: %A{9} / expected: %A{9}" │
00:00:08 #239 [Verbose] > │ () │
00:00:08 #240 [Verbose] > │ method0() │
00:00:08 #241 [Verbose] > │ │
00:00:08 #242 [Verbose] > │ │
00:00:08 #243 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #244 [Verbose] >
00:00:08 #245 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:08 #246 [Verbose] > // // test
00:00:08 #247 [Verbose] >
00:00:08 #248 [Verbose] > fun () =>
00:00:08 #249 [Verbose] > listm.init 10i32 id
00:00:08 #250 [Verbose] > |> item 10i32
00:00:08 #251 [Verbose] > |> ignore
00:00:08 #252 [Verbose] > |> _throws
00:00:08 #253 [Verbose] > |> _assert_eq (Some "Option does not have a value.")
00:00:08 #254 [Verbose] > Building /tmp/!dotnet-repl/20240325-2024-1878-7844-79f0e1f7bcd2/main.spi
00:00:08 #255 [Verbose] >
00:00:08 #256 [Verbose] > ╭─[ 291.60ms - stdout ]────────────────────────────────────────────────────────╮
00:00:08 #257 [Verbose] > │ type [<Struct>] US0 = │
00:00:08 #258 [Verbose] > │ | US0_0 │
00:00:08 #259 [Verbose] > │ | US0_1 of f1_0 : string │
00:00:08 #260 [Verbose] > │ let rec closure0 () () : unit = │
00:00:08 #261 [Verbose] > │ let v0 : int32 = failwith<int32> "Option does not have a value." │
00:00:08 #262 [Verbose] > │ () │
00:00:08 #263 [Verbose] > │ and closure1 () (v0 : string) : US0 = │
00:00:08 #264 [Verbose] > │ US0_1(v0) │
00:00:08 #265 [Verbose] > │ and method1 (v0 : bool) : bool = │
00:00:08 #266 [Verbose] > │ v0 │
00:00:08 #267 [Verbose] > │ and method0 () : unit = │
00:00:08 #268 [Verbose] > │ let v0 : (unit -> unit) = closure0() │
00:00:08 #269 [Verbose] > │ let v1 : US0 = US0_0 │
00:00:08 #270 [Verbose] > │ let v2 : (string -> US0) = closure1() │
00:00:08 #271 [Verbose] > │ let v3 : US0 = try v0 (); v1 with ex -> v2 ex.Message │
00:00:08 #272 [Verbose] > │ let v8 : bool = │
00:00:08 #273 [Verbose] > │ match v3 with │
00:00:08 #274 [Verbose] > │ | US0_1(v6) -> (* Some *) │
00:00:08 #275 [Verbose] > │ let v7 : bool = v6 = "Option does not have a value." │
00:00:08 #276 [Verbose] > │ v7 │
00:00:08 #277 [Verbose] > │ | _ -> │
00:00:08 #278 [Verbose] > │ false │
00:00:08 #279 [Verbose] > │ let v10 : bool = │
00:00:08 #280 [Verbose] > │ if v8 then │
00:00:08 #281 [Verbose] > │ true │
00:00:08 #282 [Verbose] > │ else │
00:00:08 #283 [Verbose] > │ method1(v8) │
00:00:08 #284 [Verbose] > │ let v11 : string = "Option does not have a value." │
00:00:08 #285 [Verbose] > │ let v12 : US0 = US0_1(v11) │
00:00:08 #286 [Verbose] > │ let v13 : string = $"__expect / actual: %A{v3} / expected: %A{v12}" │
00:00:08 #287 [Verbose] > │ let v14 : bool = v10 = false │
00:00:08 #288 [Verbose] > │ if v14 then │
00:00:08 #289 [Verbose] > │ failwith<unit> v13 │
00:00:08 #290 [Verbose] > │ method0() │
00:00:08 #291 [Verbose] > │ │
00:00:08 #292 [Verbose] > │ │
00:00:08 #293 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #294 [Verbose] >
00:00:08 #295 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:08 #296 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:08 #297 [Verbose] > │ ## try_item_ │
00:00:08 #298 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #299 [Verbose] >
00:00:08 #300 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:08 #301 [Verbose] > let rec try_item_ i = function
00:00:08 #302 [Verbose] > | Cons (x, _) when i = 0 => Some x
00:00:08 #303 [Verbose] > | Cons (_, xs) => try_item_ (i - 1) xs
00:00:08 #304 [Verbose] > | Nil => None
00:00:09 #305 [Verbose] > Building /tmp/!dotnet-repl/20240325-2024-1907-0777-064d4059c071/main.spi
00:00:09 #306 [Verbose] >
00:00:09 #307 [Verbose] > ╭─[ 141.18ms - stdout ]────────────────────────────────────────────────────────╮
00:00:09 #308 [Verbose] > │ () │
00:00:09 #309 [Verbose] > │ │
00:00:09 #310 [Verbose] > │ │
00:00:09 #311 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #312 [Verbose] >
00:00:09 #313 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:09 #314 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:09 #315 [Verbose] > │ ## item_ │
00:00:09 #316 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #317 [Verbose] >
00:00:09 #318 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:09 #319 [Verbose] > inl item_ i =
00:00:09 #320 [Verbose] > try_item_ i >> optionm.value
00:00:09 #321 [Verbose] > Building /tmp/!dotnet-repl/20240325-2024-1921-2197-24157834e403/main.spi
00:00:09 #322 [Verbose] >
00:00:09 #323 [Verbose] > ╭─[ 135.26ms - stdout ]────────────────────────────────────────────────────────╮
00:00:09 #324 [Verbose] > │ () │
00:00:09 #325 [Verbose] > │ │
00:00:09 #326 [Verbose] > │ │
00:00:09 #327 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #328 [Verbose] >
00:00:09 #329 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:09 #330 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:09 #331 [Verbose] > │ ## sum │
00:00:09 #332 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #333 [Verbose] >
00:00:09 #334 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:09 #335 [Verbose] > inl sum list =
00:00:09 #336 [Verbose] > list |> listm.fold (+) 0
00:00:09 #337 [Verbose] > Building /tmp/!dotnet-repl/20240325-2024-1935-3563-39bbb3fcb72f/main.spi
00:00:09 #338 [Verbose] >
00:00:09 #339 [Verbose] > ╭─[ 135.53ms - stdout ]────────────────────────────────────────────────────────╮
00:00:09 #340 [Verbose] > │ () │
00:00:09 #341 [Verbose] > │ │
00:00:09 #342 [Verbose] > │ │
00:00:09 #343 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #344 [Verbose] >
00:00:09 #345 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:09 #346 [Verbose] > // // test
00:00:09 #347 [Verbose] >
00:00:09 #348 [Verbose] > listm.init 10i32 id
00:00:09 #349 [Verbose] > |> sum
00:00:09 #350 [Verbose] > |> _assert_eq 45
00:00:09 #351 [Verbose] > Building /tmp/!dotnet-repl/20240325-2024-1949-4919-4c782901ea07/main.spi
00:00:09 #352 [Verbose] >
00:00:09 #353 [Verbose] > ╭─[ 156.27ms - stdout ]────────────────────────────────────────────────────────╮
00:00:09 #354 [Verbose] > │ let rec method0 () : unit = │
00:00:09 #355 [Verbose] > │ let v0 : string = $"__expect / actual: %A{45} / expected: %A{45}" │
00:00:09 #356 [Verbose] > │ () │
00:00:09 #357 [Verbose] > │ method0() │
00:00:09 #358 [Verbose] > │ │
00:00:09 #359 [Verbose] > │ │
00:00:09 #360 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #361 [Verbose] >
00:00:09 #362 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:09 #363 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:09 #364 [Verbose] > │ ## unzip │
00:00:09 #365 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #366 [Verbose] >
00:00:09 #367 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:09 #368 [Verbose] > inl unzip list =
00:00:09 #369 [Verbose] > (([[]], [[]]), list)
00:00:09 #370 [Verbose] > ||> listm.fold fun (acc_x, acc_y) (x, y) =>
00:00:09 #371 [Verbose] > x :: acc_x, y :: acc_y
00:00:09 #372 [Verbose] > |> fun x, y =>
00:00:09 #373 [Verbose] > x |> listm.rev, y |> listm.rev
00:00:09 #374 [Verbose] > Building /tmp/!dotnet-repl/20240325-2024-1965-6512-6ae33b3898a6/main.spi
00:00:09 #375 [Verbose] >
00:00:09 #376 [Verbose] > ╭─[ 136.78ms - stdout ]────────────────────────────────────────────────────────╮
00:00:09 #377 [Verbose] > │ () │
00:00:09 #378 [Verbose] > │ │
00:00:09 #379 [Verbose] > │ │
00:00:09 #380 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #381 [Verbose] >
00:00:09 #382 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:09 #383 [Verbose] > // // test
00:00:09 #384 [Verbose] >
00:00:09 #385 [Verbose] > listm.init 10i32 id
00:00:09 #386 [Verbose] > |> listm.map (fun x => x, x)
00:00:09 #387 [Verbose] > |> unzip
00:00:09 #388 [Verbose] > |> fun x, y =>
00:00:09 #389 [Verbose] > x |> sum
00:00:09 #390 [Verbose] > |> _assert_eq 45
00:00:09 #391 [Verbose] >
00:00:09 #392 [Verbose] > y |> sum
00:00:09 #393 [Verbose] > |> _assert_eq 45
00:00:09 #394 [Verbose] > Building /tmp/!dotnet-repl/20240325-2024-1978-7891-72b05cb6e6c9/main.spi
00:00:09 #395 [Verbose] >
00:00:09 #396 [Verbose] > ╭─[ 147.23ms - stdout ]────────────────────────────────────────────────────────╮
00:00:09 #397 [Verbose] > │ let rec method0 () : unit = │
00:00:09 #398 [Verbose] > │ let v0 : string = $"__expect / actual: %A{45} / expected: %A{45}" │
00:00:09 #399 [Verbose] > │ let v1 : string = $"__expect / actual: %A{45} / expected: %A{45}" │
00:00:09 #400 [Verbose] > │ () │
00:00:09 #401 [Verbose] > │ method0() │
00:00:09 #402 [Verbose] > │ │
00:00:09 #403 [Verbose] > │ │
00:00:09 #404 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #405 [Verbose] >
00:00:09 #406 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:09 #407 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:09 #408 [Verbose] > │ ## try_index_of │
00:00:09 #409 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #410 [Verbose] >
00:00:09 #411 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:09 #412 [Verbose] > inl try_index_of item list =
00:00:09 #413 [Verbose] > inl rec loop i = function
00:00:09 #414 [Verbose] > | [[]] => None
00:00:09 #415 [Verbose] > | x :: xs =>
00:00:09 #416 [Verbose] > if x = item
00:00:09 #417 [Verbose] > then Some i
00:00:09 #418 [Verbose] > else loop (i + 1) xs
00:00:09 #419 [Verbose] > loop 0 list
00:00:09 #420 [Verbose] >
00:00:09 #421 [Verbose] > inl index_of item =
00:00:09 #422 [Verbose] > try_index_of item >> optionm.value
00:00:09 #423 [Verbose] >
00:00:09 #424 [Verbose] > inl try_index_of_ item list =
00:00:09 #425 [Verbose] > let rec loop i = function
00:00:09 #426 [Verbose] > | [[]] => None
00:00:09 #427 [Verbose] > | x :: xs =>
00:00:09 #428 [Verbose] > if x = item
00:00:09 #429 [Verbose] > then Some i
00:00:09 #430 [Verbose] > else loop (i + 1) xs
00:00:09 #431 [Verbose] > loop 0 list
00:00:09 #432 [Verbose] >
00:00:09 #433 [Verbose] > inl index_of_ item =
00:00:09 #434 [Verbose] > try_index_of_ item >> optionm.value
00:00:09 #435 [Verbose] >
00:00:09 #436 [Verbose] > inl try_index_of__ item list =
00:00:09 #437 [Verbose] > inl i = mut 0
00:00:09 #438 [Verbose] > inl list = mut list
00:00:09 #439 [Verbose] > inl result = mut None
00:00:09 #440 [Verbose] > let rec loop () =
00:00:09 #441 [Verbose] > match *list with
00:00:09 #442 [Verbose] > | [[]] => result <- None
00:00:09 #443 [Verbose] > | x :: xs =>
00:00:09 #444 [Verbose] > if x = item
00:00:09 #445 [Verbose] > then result <- Some *i
00:00:09 #446 [Verbose] > else
00:00:09 #447 [Verbose] > i <- *i + 1
00:00:09 #448 [Verbose] > list <- xs
00:00:09 #449 [Verbose] > loop ()
00:00:09 #450 [Verbose] > loop ()
00:00:09 #451 [Verbose] > *result
00:00:09 #452 [Verbose] >
00:00:09 #453 [Verbose] > inl index_of__ item =
00:00:09 #454 [Verbose] > try_index_of__ item >> optionm.value
00:00:09 #455 [Verbose] > Building /tmp/!dotnet-repl/20240325-2024-1993-9366-9b514a86a415/main.spi
00:00:10 #456 [Verbose] >
00:00:10 #457 [Verbose] > ╭─[ 246.20ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #458 [Verbose] > │ () │
00:00:10 #459 [Verbose] > │ │
00:00:10 #460 [Verbose] > │ │
00:00:10 #461 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #462 [Verbose] >
00:00:10 #463 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #464 [Verbose] > // // test
00:00:10 #465 [Verbose] >
00:00:10 #466 [Verbose] > listm.init 10i32 id
00:00:10 #467 [Verbose] > |> index_of 5i32
00:00:10 #468 [Verbose] > |> _assert_eq 5i32
00:00:10 #469 [Verbose] > Building /tmp/!dotnet-repl/20240325-2024-2018-1836-1fe3cf0ccb01/main.spi
00:00:10 #470 [Verbose] >
00:00:10 #471 [Verbose] > ╭─[ 138.83ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #472 [Verbose] > │ let rec method0 () : unit = │
00:00:10 #473 [Verbose] > │ let v0 : string = $"__expect / actual: %A{5} / expected: %A{5}" │
00:00:10 #474 [Verbose] > │ () │
00:00:10 #475 [Verbose] > │ method0() │
00:00:10 #476 [Verbose] > │ │
00:00:10 #477 [Verbose] > │ │
00:00:10 #478 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #479 [Verbose] >
00:00:10 #480 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #481 [Verbose] > // // test
00:00:10 #482 [Verbose] >
00:00:10 #483 [Verbose] > listm.init 10i32 id
00:00:10 #484 [Verbose] > |> try_index_of 10i32
00:00:10 #485 [Verbose] > |> _assert_eq (None : option i32)
00:00:10 #486 [Verbose] > Building /tmp/!dotnet-repl/20240325-2024-2032-3224-3532439a1fff/main.spi
00:00:10 #487 [Verbose] >
00:00:10 #488 [Verbose] > ╭─[ 161.27ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #489 [Verbose] > │ type [<Struct>] US0 = │
00:00:10 #490 [Verbose] > │ | US0_0 │
00:00:10 #491 [Verbose] > │ | US0_1 of f1_0 : int32 │
00:00:10 #492 [Verbose] > │ let rec method0 () : unit = │
00:00:10 #493 [Verbose] > │ let v3 : US0 = US0_0 │
00:00:10 #494 [Verbose] > │ let v4 : US0 = US0_0 │
00:00:10 #495 [Verbose] > │ let v5 : string = $"__expect / actual: %A{v3} / expected: %A{v4}" │
00:00:10 #496 [Verbose] > │ () │
00:00:10 #497 [Verbose] > │ method0() │
00:00:10 #498 [Verbose] > │ │
00:00:10 #499 [Verbose] > │ │
00:00:10 #500 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #501 [Verbose] >
00:00:10 #502 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:10 #503 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:10 #504 [Verbose] > │ ## try_find │
00:00:10 #505 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #506 [Verbose] >
00:00:10 #507 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #508 [Verbose] > inl try_find fn list =
00:00:10 #509 [Verbose] > inl rec loop = function
00:00:10 #510 [Verbose] > | [[]] => None
00:00:10 #511 [Verbose] > | x :: xs =>
00:00:10 #512 [Verbose] > if fn x
00:00:10 #513 [Verbose] > then Some x
00:00:10 #514 [Verbose] > else loop xs
00:00:10 #515 [Verbose] > loop list
00:00:10 #516 [Verbose] >
00:00:10 #517 [Verbose] > inl try_find_ fn list =
00:00:10 #518 [Verbose] > let rec loop = function
00:00:10 #519 [Verbose] > | [[]] => None
00:00:10 #520 [Verbose] > | x :: xs =>
00:00:10 #521 [Verbose] > if fn x
00:00:10 #522 [Verbose] > then Some x
00:00:10 #523 [Verbose] > else loop xs
00:00:10 #524 [Verbose] > loop list
00:00:10 #525 [Verbose] > Building /tmp/!dotnet-repl/20240325-2024-2048-4847-4bb82c4c6f84/main.spi
00:00:10 #526 [Verbose] >
00:00:10 #527 [Verbose] > ╭─[ 138.65ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #528 [Verbose] > │ () │
00:00:10 #529 [Verbose] > │ │
00:00:10 #530 [Verbose] > │ │
00:00:10 #531 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #532 [Verbose] >
00:00:10 #533 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #534 [Verbose] > // // test
00:00:10 #535 [Verbose] >
00:00:10 #536 [Verbose] > listm.init 10i32 id
00:00:10 #537 [Verbose] > |> try_find ((=) 5i32)
00:00:10 #538 [Verbose] > |> _assert_eq (Some 5i32)
00:00:10 #539 [Verbose] > Building /tmp/!dotnet-repl/20240325-2024-2062-6240-6b6baee16630/main.spi
00:00:10 #540 [Verbose] >
00:00:10 #541 [Verbose] > ╭─[ 154.00ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #542 [Verbose] > │ type [<Struct>] US0 = │
00:00:10 #543 [Verbose] > │ | US0_0 │
00:00:10 #544 [Verbose] > │ | US0_1 of f1_0 : int32 │
00:00:10 #545 [Verbose] > │ let rec method0 () : unit = │
00:00:10 #546 [Verbose] > │ let v3 : US0 = US0_1(5) │
00:00:10 #547 [Verbose] > │ let v4 : US0 = US0_1(5) │
00:00:10 #548 [Verbose] > │ let v5 : string = $"__expect / actual: %A{v3} / expected: %A{v4}" │
00:00:10 #549 [Verbose] > │ () │
00:00:10 #550 [Verbose] > │ method0() │
00:00:10 #551 [Verbose] > │ │
00:00:10 #552 [Verbose] > │ │
00:00:10 #553 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #554 [Verbose] >
00:00:10 #555 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #556 [Verbose] > inl find x =
00:00:10 #557 [Verbose] > try_find x >> optionm.value
00:00:10 #558 [Verbose] >
00:00:10 #559 [Verbose] > inl find_ x =
00:00:10 #560 [Verbose] > try_find_ x >> optionm.value
00:00:10 #561 [Verbose] > Building /tmp/!dotnet-repl/20240325-2024-2077-7784-7c5a28b82c50/main.spi
00:00:10 #562 [Verbose] >
00:00:10 #563 [Verbose] > ╭─[ 136.93ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #564 [Verbose] > │ () │
00:00:10 #565 [Verbose] > │ │
00:00:10 #566 [Verbose] > │ │
00:00:10 #567 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #568 [Verbose] >
00:00:10 #569 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #570 [Verbose] > // // test
00:00:10 #571 [Verbose] >
00:00:10 #572 [Verbose] > listm.init 10i32 id
00:00:10 #573 [Verbose] > |> find ((=) 5i32)
00:00:10 #574 [Verbose] > |> _assert_eq 5i32
00:00:10 #575 [Verbose] > Building /tmp/!dotnet-repl/20240325-2024-2091-9152-9aade114d0f1/main.spi
00:00:10 #576 [Verbose] >
00:00:10 #577 [Verbose] > ╭─[ 153.39ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #578 [Verbose] > │ let rec method0 () : unit = │
00:00:10 #579 [Verbose] > │ let v0 : string = $"__expect / actual: %A{5} / expected: %A{5}" │
00:00:10 #580 [Verbose] > │ () │
00:00:10 #581 [Verbose] > │ method0() │
00:00:10 #582 [Verbose] > │ │
00:00:10 #583 [Verbose] > │ │
00:00:10 #584 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #585 [Verbose] >
00:00:10 #586 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:10 #587 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:10 #588 [Verbose] > │ ## choose │
00:00:10 #589 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #590 [Verbose] >
00:00:10 #591 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #592 [Verbose] > inl choose f l =
00:00:10 #593 [Verbose] > (l, [[]])
00:00:10 #594 [Verbose] > ||> listm.foldBack fun x acc =>
00:00:10 #595 [Verbose] > match f x with
00:00:10 #596 [Verbose] > | Some y => y :: acc
00:00:10 #597 [Verbose] > | None => acc
00:00:11 #598 [Verbose] > Building /tmp/!dotnet-repl/20240325-2024-2107-0700-093cd20588f6/main.spi
00:00:11 #599 [Verbose] >
00:00:11 #600 [Verbose] > ╭─[ 141.15ms - stdout ]────────────────────────────────────────────────────────╮
00:00:11 #601 [Verbose] > │ () │
00:00:11 #602 [Verbose] > │ │
00:00:11 #603 [Verbose] > │ │
00:00:11 #604 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #605 [Verbose] >
00:00:11 #606 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:11 #607 [Verbose] > // // test
00:00:11 #608 [Verbose] >
00:00:11 #609 [Verbose] > listm.init 10i32 id
00:00:11 #610 [Verbose] > |> choose (fun x => if x % 2 = 0 then Some x else None)
00:00:11 #611 [Verbose] > |> _assert_eq [[ 0; 2; 4; 6; 8 ]]
00:00:11 #612 [Verbose] > Building /tmp/!dotnet-repl/20240325-2024-2121-2116-2bd57da30e30/main.spi
00:00:11 #613 [Verbose] >
00:00:11 #614 [Verbose] > ╭─[ 164.85ms - stdout ]────────────────────────────────────────────────────────╮
00:00:11 #615 [Verbose] > │ type UH0 = │
00:00:11 #616 [Verbose] > │ | UH0_0 of int32 * UH0 │
00:00:11 #617 [Verbose] > │ | UH0_1 │
00:00:11 #618 [Verbose] > │ let rec method0 () : unit = │
00:00:11 #619 [Verbose] > │ let v33 : UH0 = UH0_1 │
00:00:11 #620 [Verbose] > │ let v34 : UH0 = UH0_0(8, v33) │
00:00:11 #621 [Verbose] > │ let v35 : UH0 = UH0_0(6, v34) │
00:00:11 #622 [Verbose] > │ let v36 : UH0 = UH0_0(4, v35) │
00:00:11 #623 [Verbose] > │ let v37 : UH0 = UH0_0(2, v36) │
00:00:11 #624 [Verbose] > │ let v38 : UH0 = UH0_0(0, v37) │
00:00:11 #625 [Verbose] > │ let v39 : UH0 = UH0_1 │
00:00:11 #626 [Verbose] > │ let v40 : UH0 = UH0_0(8, v39) │
00:00:11 #627 [Verbose] > │ let v41 : UH0 = UH0_0(6, v40) │
00:00:11 #628 [Verbose] > │ let v42 : UH0 = UH0_0(4, v41) │
00:00:11 #629 [Verbose] > │ let v43 : UH0 = UH0_0(2, v42) │
00:00:11 #630 [Verbose] > │ let v44 : UH0 = UH0_0(0, v43) │
00:00:11 #631 [Verbose] > │ let v45 : string = $"__expect / actual: %A{v38} / expected: %A{v44}" │
00:00:11 #632 [Verbose] > │ () │
00:00:11 #633 [Verbose] > │ method0() │
00:00:11 #634 [Verbose] > │ │
00:00:11 #635 [Verbose] > │ │
00:00:11 #636 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #637 [Verbose] >
00:00:11 #638 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:11 #639 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:11 #640 [Verbose] > │ ## zip_with │
00:00:11 #641 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #642 [Verbose] >
00:00:11 #643 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:11 #644 [Verbose] > inl zip_with fn xs ys =
00:00:11 #645 [Verbose] > inl rec loop acc xs ys =
00:00:11 #646 [Verbose] > match xs, ys with
00:00:11 #647 [Verbose] > | Cons (x, xs), Cons (y, ys) =>
00:00:11 #648 [Verbose] > loop (fn x y :: acc) xs ys
00:00:11 #649 [Verbose] > | _ => listm.rev acc
00:00:11 #650 [Verbose] > loop [[]] xs ys
00:00:11 #651 [Verbose] >
00:00:11 #652 [Verbose] > inl zip_with_ fn xs ys =
00:00:11 #653 [Verbose] > let rec loop acc xs ys =
00:00:11 #654 [Verbose] > match xs, ys with
00:00:11 #655 [Verbose] > | Cons (x, xs), Cons (y, ys) =>
00:00:11 #656 [Verbose] > loop (fn x y :: acc) xs ys
00:00:11 #657 [Verbose] > | _ => listm.rev acc
00:00:11 #658 [Verbose] > loop [[]] xs ys
00:00:11 #659 [Verbose] > Building /tmp/!dotnet-repl/20240325-2024-2137-3788-38cb9c2aa5cb/main.spi
00:00:11 #660 [Verbose] >
00:00:11 #661 [Verbose] > ╭─[ 144.28ms - stdout ]────────────────────────────────────────────────────────╮
00:00:11 #662 [Verbose] > │ () │
00:00:11 #663 [Verbose] > │ │
00:00:11 #664 [Verbose] > │ │
00:00:11 #665 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #666 [Verbose] >
00:00:11 #667 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:11 #668 [Verbose] > // // test
00:00:11 #669 [Verbose] >
00:00:11 #670 [Verbose] > ([[ 1i32; 2; 3 ]], [[ 4; 5; 6 ]])
00:00:11 #671 [Verbose] > ||> zip_with (+)
00:00:11 #672 [Verbose] > |> _assert_eq [[ 5; 7; 9 ]]
00:00:11 #673 [Verbose] > Building /tmp/!dotnet-repl/20240325-2024-2152-5230-5672464f36c6/main.spi
00:00:11 #674 [Verbose] >
00:00:11 #675 [Verbose] > ╭─[ 210.40ms - stdout ]────────────────────────────────────────────────────────╮
00:00:11 #676 [Verbose] > │ type UH0 = │
00:00:11 #677 [Verbose] > │ | UH0_0 of int32 * UH0 │
00:00:11 #678 [Verbose] > │ | UH0_1 │
00:00:11 #679 [Verbose] > │ let rec method0 () : unit = │
00:00:11 #680 [Verbose] > │ let v18 : UH0 = UH0_1 │
00:00:11 #681 [Verbose] > │ let v19 : UH0 = UH0_0(9, v18) │
00:00:11 #682 [Verbose] > │ let v20 : UH0 = UH0_0(7, v19) │
00:00:11 #683 [Verbose] > │ let v21 : UH0 = UH0_0(5, v20) │
00:00:11 #684 [Verbose] > │ let v22 : UH0 = UH0_1 │
00:00:11 #685 [Verbose] > │ let v23 : UH0 = UH0_0(9, v22) │
00:00:11 #686 [Verbose] > │ let v24 : UH0 = UH0_0(7, v23) │
00:00:11 #687 [Verbose] > │ let v25 : UH0 = UH0_0(5, v24) │
00:00:11 #688 [Verbose] > │ let v26 : string = $"__expect / actual: %A{v21} / expected: %A{v25}" │
00:00:11 #689 [Verbose] > │ () │
00:00:11 #690 [Verbose] > │ method0() │
00:00:11 #691 [Verbose] > │ │
00:00:11 #692 [Verbose] > │ │
00:00:11 #693 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #694 [Verbose] >
00:00:11 #695 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:11 #696 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:11 #697 [Verbose] > │ ## zip │
00:00:11 #698 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #699 [Verbose] >
00:00:11 #700 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:11 #701 [Verbose] > inl zip xs ys =
00:00:11 #702 [Verbose] > zip_with pair xs ys
00:00:11 #703 [Verbose] >
00:00:11 #704 [Verbose] > inl zip_ xs ys =
00:00:11 #705 [Verbose] > zip_with_ pair xs ys
00:00:11 #706 [Verbose] > Building /tmp/!dotnet-repl/20240325-2024-2173-7362-7e298dcaf350/main.spi
00:00:11 #707 [Verbose] >
00:00:11 #708 [Verbose] > ╭─[ 142.50ms - stdout ]────────────────────────────────────────────────────────╮
00:00:11 #709 [Verbose] > │ () │
00:00:11 #710 [Verbose] > │ │
00:00:11 #711 [Verbose] > │ │
00:00:11 #712 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #713 [Verbose] >
00:00:11 #714 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:11 #715 [Verbose] > // // test
00:00:11 #716 [Verbose] >
00:00:11 #717 [Verbose] > ([[ 1i32; 2; 3 ]], [[ 4i32; 5; 6 ]])
00:00:11 #718 [Verbose] > ||> zip
00:00:11 #719 [Verbose] > |> _assert_eq [[ 1, 4; 2, 5; 3, 6 ]]
00:00:11 #720 [Verbose] > Building /tmp/!dotnet-repl/20240325-2024-2187-8788-8d6c4de2e36d/main.spi
00:00:11 #721 [Verbose] >
00:00:11 #722 [Verbose] > ╭─[ 195.34ms - stdout ]────────────────────────────────────────────────────────╮
00:00:11 #723 [Verbose] > │ type UH0 = │
00:00:11 #724 [Verbose] > │ | UH0_0 of int32 * int32 * UH0 │
00:00:11 #725 [Verbose] > │ | UH0_1 │
00:00:11 #726 [Verbose] > │ let rec method0 () : unit = │
00:00:11 #727 [Verbose] > │ let v18 : UH0 = UH0_1 │
00:00:11 #728 [Verbose] > │ let v19 : UH0 = UH0_0(3, 6, v18) │
00:00:11 #729 [Verbose] > │ let v20 : UH0 = UH0_0(2, 5, v19) │
00:00:11 #730 [Verbose] > │ let v21 : UH0 = UH0_0(1, 4, v20) │
00:00:11 #731 [Verbose] > │ let v22 : UH0 = UH0_1 │
00:00:11 #732 [Verbose] > │ let v23 : UH0 = UH0_0(3, 6, v22) │
00:00:11 #733 [Verbose] > │ let v24 : UH0 = UH0_0(2, 5, v23) │
00:00:11 #734 [Verbose] > │ let v25 : UH0 = UH0_0(1, 4, v24) │
00:00:11 #735 [Verbose] > │ let v26 : string = $"__expect / actual: %A{v21} / expected: %A{v25}" │
00:00:11 #736 [Verbose] > │ () │
00:00:11 #737 [Verbose] > │ method0() │
00:00:11 #738 [Verbose] > │ │
00:00:11 #739 [Verbose] > │ │
00:00:11 #740 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #741 [Verbose] >
00:00:11 #742 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:11 #743 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:11 #744 [Verbose] > │ ## indexed │
00:00:11 #745 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #746 [Verbose] >
00:00:11 #747 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:11 #748 [Verbose] > inl indexed list =
00:00:11 #749 [Verbose] > (([[]], 0), list)
00:00:11 #750 [Verbose] > ||> listm.fold fun (acc, i) x =>
00:00:11 #751 [Verbose] > (i, x) :: acc, i + 1
00:00:11 #752 [Verbose] > |> fst
00:00:11 #753 [Verbose] > |> listm.rev
00:00:12 #754 [Verbose] > Building /tmp/!dotnet-repl/20240325-2024-2207-0765-09a73524a546/main.spi
00:00:12 #755 [Verbose] >
00:00:12 #756 [Verbose] > ╭─[ 142.61ms - stdout ]────────────────────────────────────────────────────────╮
00:00:12 #757 [Verbose] > │ () │
00:00:12 #758 [Verbose] > │ │
00:00:12 #759 [Verbose] > │ │
00:00:12 #760 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #761 [Verbose] >
00:00:12 #762 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 #763 [Verbose] > // // test
00:00:12 #764 [Verbose] >
00:00:12 #765 [Verbose] > listm.init 5i32 ((*) 2)
00:00:12 #766 [Verbose] > |> indexed
00:00:12 #767 [Verbose] > |> _assert_eq [[ 0i32, 0; 1, 2; 2, 4; 3, 6; 4, 8 ]]
00:00:12 #768 [Verbose] > Building /tmp/!dotnet-repl/20240325-2024-2221-2197-208ecdc65f2b/main.spi
00:00:12 #769 [Verbose] >
00:00:12 #770 [Verbose] > ╭─[ 169.29ms - stdout ]────────────────────────────────────────────────────────╮
00:00:12 #771 [Verbose] > │ type UH0 = │
00:00:12 #772 [Verbose] > │ | UH0_0 of int32 * int32 * UH0 │
00:00:12 #773 [Verbose] > │ | UH0_1 │
00:00:12 #774 [Verbose] > │ let rec method0 () : unit = │
00:00:12 #775 [Verbose] > │ let v33 : UH0 = UH0_1 │
00:00:12 #776 [Verbose] > │ let v34 : UH0 = UH0_0(4, 8, v33) │
00:00:12 #777 [Verbose] > │ let v35 : UH0 = UH0_0(3, 6, v34) │
00:00:12 #778 [Verbose] > │ let v36 : UH0 = UH0_0(2, 4, v35) │
00:00:12 #779 [Verbose] > │ let v37 : UH0 = UH0_0(1, 2, v36) │
00:00:12 #780 [Verbose] > │ let v38 : UH0 = UH0_0(0, 0, v37) │
00:00:12 #781 [Verbose] > │ let v39 : UH0 = UH0_1 │
00:00:12 #782 [Verbose] > │ let v40 : UH0 = UH0_0(4, 8, v39) │
00:00:12 #783 [Verbose] > │ let v41 : UH0 = UH0_0(3, 6, v40) │
00:00:12 #784 [Verbose] > │ let v42 : UH0 = UH0_0(2, 4, v41) │
00:00:12 #785 [Verbose] > │ let v43 : UH0 = UH0_0(1, 2, v42) │
00:00:12 #786 [Verbose] > │ let v44 : UH0 = UH0_0(0, 0, v43) │
00:00:12 #787 [Verbose] > │ let v45 : string = $"__expect / actual: %A{v38} / expected: %A{v44}" │
00:00:12 #788 [Verbose] > │ () │
00:00:12 #789 [Verbose] > │ method0() │
00:00:12 #790 [Verbose] > │ │
00:00:12 #791 [Verbose] > │ │
00:00:12 #792 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #793 [Verbose] >
00:00:12 #794 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:12 #795 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:12 #796 [Verbose] > │ ## group_by │
00:00:12 #797 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #798 [Verbose] >
00:00:12 #799 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 #800 [Verbose] > inl group_by fn list =
00:00:12 #801 [Verbose] > (list, [[]])
00:00:12 #802 [Verbose] > ||> listm.foldBack fun x acc =>
00:00:12 #803 [Verbose] > inl xk = fn x
00:00:12 #804 [Verbose] > inl found, new_acc =
00:00:12 #805 [Verbose] > ((false, [[]]), acc)
00:00:12 #806 [Verbose] > ||> listm.fold fun (found, acc') (k, xs) =>
00:00:12 #807 [Verbose] > if k = xk
00:00:12 #808 [Verbose] > then true, (k, x :: xs) :: acc'
00:00:12 #809 [Verbose] > else found, (k, xs) :: acc'
00:00:12 #810 [Verbose] > if found
00:00:12 #811 [Verbose] > then new_acc
00:00:12 #812 [Verbose] > else (xk, [[ x ]]) :: new_acc
00:00:12 #813 [Verbose] > Building /tmp/!dotnet-repl/20240325-2024-2239-3909-354b956a64da/main.spi
00:00:12 #814 [Verbose] >
00:00:12 #815 [Verbose] > ╭─[ 144.00ms - stdout ]────────────────────────────────────────────────────────╮
00:00:12 #816 [Verbose] > │ () │
00:00:12 #817 [Verbose] > │ │
00:00:12 #818 [Verbose] > │ │
00:00:12 #819 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #820 [Verbose] >
00:00:12 #821 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 #822 [Verbose] > // // test
00:00:12 #823 [Verbose] >
00:00:12 #824 [Verbose] > listm.init 10i32 id
00:00:12 #825 [Verbose] > |> group_by (fun x => x % 2 = 0)
00:00:12 #826 [Verbose] > |> _assert_eq [[ true, [[ 0; 2; 4; 6; 8 ]]; false, [[ 1; 3; 5; 7; 9 ]] ]]
00:00:12 #827 [Verbose] > Building /tmp/!dotnet-repl/20240325-2024-2253-5353-557d3687c887/main.spi
00:00:12 #828 [Verbose] >
00:00:12 #829 [Verbose] > ╭─[ 254.52ms - stdout ]────────────────────────────────────────────────────────╮
00:00:12 #830 [Verbose] > │ type UH0 = │
00:00:12 #831 [Verbose] > │ | UH0_0 of int32 * UH0 │
00:00:12 #832 [Verbose] > │ | UH0_1 │
00:00:12 #833 [Verbose] > │ and UH1 = │
00:00:12 #834 [Verbose] > │ | UH1_0 of bool * UH0 * UH1 │
00:00:12 #835 [Verbose] > │ | UH1_1 │
00:00:12 #836 [Verbose] > │ let rec method0 () : unit = │
00:00:12 #837 [Verbose] > │ let v96 : UH0 = UH0_1 │
00:00:12 #838 [Verbose] > │ let v97 : UH0 = UH0_0(8, v96) │
00:00:12 #839 [Verbose] > │ let v98 : UH0 = UH0_0(6, v97) │
00:00:12 #840 [Verbose] > │ let v99 : UH0 = UH0_0(4, v98) │
00:00:12 #841 [Verbose] > │ let v100 : UH0 = UH0_0(2, v99) │
00:00:12 #842 [Verbose] > │ let v101 : UH0 = UH0_0(0, v100) │
00:00:12 #843 [Verbose] > │ let v102 : UH0 = UH0_1 │
00:00:12 #844 [Verbose] > │ let v103 : UH0 = UH0_0(9, v102) │
00:00:12 #845 [Verbose] > │ let v104 : UH0 = UH0_0(7, v103) │
00:00:12 #846 [Verbose] > │ let v105 : UH0 = UH0_0(5, v104) │
00:00:12 #847 [Verbose] > │ let v106 : UH0 = UH0_0(3, v105) │
00:00:12 #848 [Verbose] > │ let v107 : UH0 = UH0_0(1, v106) │
00:00:12 #849 [Verbose] > │ let v108 : UH1 = UH1_1 │
00:00:12 #850 [Verbose] > │ let v109 : UH1 = UH1_0(false, v107, v108) │
00:00:12 #851 [Verbose] > │ let v110 : UH1 = UH1_0(true, v101, v109) │
00:00:12 #852 [Verbose] > │ let v111 : UH0 = UH0_1 │
00:00:12 #853 [Verbose] > │ let v112 : UH0 = UH0_0(8, v111) │
00:00:12 #854 [Verbose] > │ let v113 : UH0 = UH0_0(6, v112) │
00:00:12 #855 [Verbose] > │ let v114 : UH0 = UH0_0(4, v113) │
00:00:12 #856 [Verbose] > │ let v115 : UH0 = UH0_0(2, v114) │
00:00:12 #857 [Verbose] > │ let v116 : UH0 = UH0_0(0, v115) │
00:00:12 #858 [Verbose] > │ let v117 : UH0 = UH0_1 │
00:00:12 #859 [Verbose] > │ let v118 : UH0 = UH0_0(9, v117) │
00:00:12 #860 [Verbose] > │ let v119 : UH0 = UH0_0(7, v118) │
00:00:12 #861 [Verbose] > │ let v120 : UH0 = UH0_0(5, v119) │
00:00:12 #862 [Verbose] > │ let v121 : UH0 = UH0_0(3, v120) │
00:00:12 #863 [Verbose] > │ let v122 : UH0 = UH0_0(1, v121) │
00:00:12 #864 [Verbose] > │ let v123 : UH1 = UH1_1 │
00:00:12 #865 [Verbose] > │ let v124 : UH1 = UH1_0(false, v122, v123) │
00:00:12 #866 [Verbose] > │ let v125 : UH1 = UH1_0(true, v116, v124) │
00:00:12 #867 [Verbose] > │ let v126 : string = $"__expect / actual: %A{v110} / expected: %A{v125}" │
00:00:12 #868 [Verbose] > │ () │
00:00:12 #869 [Verbose] > │ method0() │
00:00:12 #870 [Verbose] > │ │
00:00:12 #871 [Verbose] > │ │
00:00:12 #872 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #873 [Verbose] >
00:00:12 #874 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:12 #875 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:12 #876 [Verbose] > │ ## forall' │
00:00:12 #877 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #878 [Verbose] >
00:00:12 #879 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 #880 [Verbose] > inl forall' fn (head :: tail) =
00:00:12 #881 [Verbose] > (true, tail)
00:00:12 #882 [Verbose] > ||> listm.fold fun acc x =>
00:00:12 #883 [Verbose] > acc && x = head
00:00:12 #884 [Verbose] > Building /tmp/!dotnet-repl/20240325-2024-2280-8024-859e77ecbbbb/main.spi
00:00:12 #885 [Verbose] >
00:00:12 #886 [Verbose] > ╭─[ 143.14ms - stdout ]────────────────────────────────────────────────────────╮
00:00:12 #887 [Verbose] > │ () │
00:00:12 #888 [Verbose] > │ │
00:00:12 #889 [Verbose] > │ │
00:00:12 #890 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #891 [Verbose] >
00:00:12 #892 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 #893 [Verbose] > // // test
00:00:12 #894 [Verbose] >
00:00:12 #895 [Verbose] > [[ 1i32; 1; 1; 1; 1 ]]
00:00:12 #896 [Verbose] > |> forall' ((=) 1i32)
00:00:12 #897 [Verbose] > |> _assert_eq true
00:00:12 #898 [Verbose] > Building /tmp/!dotnet-repl/20240325-2024-2294-9439-95ee199caedb/main.spi
00:00:12 #899 [Verbose] >
00:00:12 #900 [Verbose] > ╭─[ 145.76ms - stdout ]────────────────────────────────────────────────────────╮
00:00:12 #901 [Verbose] > │ let rec method0 () : unit = │
00:00:12 #902 [Verbose] > │ let v0 : string = $"__expect / actual: %A{true} / expected: %A{true}" │
00:00:12 #903 [Verbose] > │ () │
00:00:12 #904 [Verbose] > │ method0() │
00:00:12 #905 [Verbose] > │ │
00:00:12 #906 [Verbose] > │ │
00:00:12 #907 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #908 [Verbose] >
00:00:12 #909 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:12 #910 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:12 #911 [Verbose] > │ ## last │
00:00:12 #912 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #913 [Verbose] >
00:00:12 #914 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 #915 [Verbose] > inl last list =
00:00:12 #916 [Verbose] > list
00:00:12 #917 [Verbose] > |> listm.rev
00:00:12 #918 [Verbose] > |> item 0i32
00:00:13 #919 [Verbose] > Building /tmp/!dotnet-repl/20240325-2024-2309-0907-0a6394326446/main.spi
00:00:13 #920 [Verbose] >
00:00:13 #921 [Verbose] > ╭─[ 139.60ms - stdout ]────────────────────────────────────────────────────────╮
00:00:13 #922 [Verbose] > │ () │
00:00:13 #923 [Verbose] > │ │
00:00:13 #924 [Verbose] > │ │
00:00:13 #925 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #926 [Verbose] >
00:00:13 #927 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:13 #928 [Verbose] > // // test
00:00:13 #929 [Verbose] >
00:00:13 #930 [Verbose] > listm.init 10i32 id
00:00:13 #931 [Verbose] > |> last
00:00:13 #932 [Verbose] > |> _assert_eq 9
00:00:13 #933 [Verbose] > Building /tmp/!dotnet-repl/20240325-2024-2323-2306-219154359eef/main.spi
00:00:13 #934 [Verbose] >
00:00:13 #935 [Verbose] > ╭─[ 142.71ms - stdout ]────────────────────────────────────────────────────────╮
00:00:13 #936 [Verbose] > │ let rec method0 () : unit = │
00:00:13 #937 [Verbose] > │ let v0 : string = $"__expect / actual: %A{9} / expected: %A{9}" │
00:00:13 #938 [Verbose] > │ () │
00:00:13 #939 [Verbose] > │ method0() │
00:00:13 #940 [Verbose] > │ │
00:00:13 #941 [Verbose] > │ │
00:00:13 #942 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #943 [Verbose] >
00:00:13 #944 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:13 #945 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:13 #946 [Verbose] > │ ## try_pick │
00:00:13 #947 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #948 [Verbose] >
00:00:13 #949 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:13 #950 [Verbose] > inl try_pick fn list =
00:00:13 #951 [Verbose] > inl rec body fn = function
00:00:13 #952 [Verbose] > | [[]] => None
00:00:13 #953 [Verbose] > | x :: xs =>
00:00:13 #954 [Verbose] > match fn x with
00:00:13 #955 [Verbose] > | Some y => Some y
00:00:13 #956 [Verbose] > | None => loop xs
00:00:13 #957 [Verbose] > and inl loop list =
00:00:13 #958 [Verbose] > if var_is list |> not
00:00:13 #959 [Verbose] > then body fn list
00:00:13 #960 [Verbose] > else
00:00:13 #961 [Verbose] > inl fn = join fn
00:00:13 #962 [Verbose] > inl list = dyn list
00:00:13 #963 [Verbose] > join body fn list
00:00:13 #964 [Verbose] > loop list
00:00:13 #965 [Verbose] > Building /tmp/!dotnet-repl/20240325-2024-2337-3750-33c53f01249c/main.spi
00:00:13 #966 [Verbose] >
00:00:13 #967 [Verbose] > ╭─[ 136.22ms - stdout ]────────────────────────────────────────────────────────╮
00:00:13 #968 [Verbose] > │ () │
00:00:13 #969 [Verbose] > │ │
00:00:13 #970 [Verbose] > │ │
00:00:13 #971 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #972 [Verbose] >
00:00:13 #973 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:13 #974 [Verbose] > // // test
00:00:13 #975 [Verbose] >
00:00:13 #976 [Verbose] > listm.init 10i32 id
00:00:13 #977 [Verbose] > |> try_pick (fun x => if x = 5i32 then Some x else None)
00:00:13 #978 [Verbose] > |> _assert_eq (Some 5i32)
00:00:13 #979 [Verbose] > Building /tmp/!dotnet-repl/20240325-2024-2351-5113-5074ccfd8298/main.spi
00:00:13 #980 [Verbose] >
00:00:13 #981 [Verbose] > ╭─[ 161.08ms - stdout ]────────────────────────────────────────────────────────╮
00:00:13 #982 [Verbose] > │ type [<Struct>] US0 = │
00:00:13 #983 [Verbose] > │ | US0_0 │
00:00:13 #984 [Verbose] > │ | US0_1 of f1_0 : int32 │
00:00:13 #985 [Verbose] > │ let rec method0 () : unit = │
00:00:13 #986 [Verbose] > │ let v3 : US0 = US0_1(5) │
00:00:13 #987 [Verbose] > │ let v4 : US0 = US0_1(5) │
00:00:13 #988 [Verbose] > │ let v5 : string = $"__expect / actual: %A{v3} / expected: %A{v4}" │
00:00:13 #989 [Verbose] > │ () │
00:00:13 #990 [Verbose] > │ method0() │
00:00:13 #991 [Verbose] > │ │
00:00:13 #992 [Verbose] > │ │
00:00:13 #993 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #994 [Verbose] > [NbConvertApp] Converting notebook listm'.dib.ipynb to html
00:00:14 #995 [Verbose] > /opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/nbformat/__init__.py:96: MissingIDFieldWarning: Cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:00:14 #996 [Verbose] > validate(nb)
00:00:14 #997 [Verbose] > /opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/nbconvert/filters/highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:00:14 #998 [Verbose] > return _pygments_highlight(
00:00:15 #999 [Verbose] > [NbConvertApp] Writing 362860 bytes to listm'.dib.html
00:00:15 #1000 [Debug] executeAsync / exitCode: 0 / output.Length: 64268
00:00:15 #1001 [Debug] main / executeCommand / exitCode: 0
00:00:00 #1 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #2 [Debug] executeAsync / options: { Command =
"dotnet "/home/runner/work/polyglot/polyglot/deps/The-Spiral-Language/The Spiral Language 2/artifacts/bin/The Spiral Language 2/release/Spiral.dll" --port 13805 --default-int i32 --default-float f64"
WorkingDirectory = None
CancellationToken = Some System.Threading.CancellationToken
OnLine = Some <fun:main@464-1020> }
00:00:00 #3 [Verbose] > pwd: /home/runner/work/polyglot/polyglot/lib/spiral
00:00:00 #4 [Verbose] > dll_path: /home/runner/work/polyglot/polyglot/deps/The-Spiral-Language/The Spiral Language 2/artifacts/bin/The Spiral Language 2/release
00:00:00 #5 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #6 [Verbose] waitForPortAccess / port: 13805 / retry: 0
00:00:00 #7 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #8 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #9 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #10 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #11 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #12 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #13 [Verbose] > Starting the Spiral Server. It is bound to: http://localhost:13805
00:00:00 #14 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #15 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #16 [Debug] sendJson / port: 13805 / json: {"Ping":true} / result.Length:
00:00:00 #17 [Verbose] awaitCompiler / Ping / result: Some(null) / port: 13805 / retry: 0
00:00:00 #18 [Verbose] > Server bound to: http://localhost:13805
00:00:00 #19 [Debug] executeAsync / options: { Command = "pwsh -c "../../scripts/invoke-dib.ps1 benchmark.dib""
WorkingDirectory = None
CancellationToken = Some System.Threading.CancellationToken
OnLine = None }
00:00:02 #20 [Verbose] >
00:00:02 #21 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:02 #22 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:02 #23 [Verbose] > │ ## benchmark (Polyglot) │
00:00:02 #24 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:02 #25 [Verbose] >
00:00:02 #26 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:02 #27 [Verbose] > // // test
00:00:02 #28 [Verbose] >
00:00:02 #29 [Verbose] > open testing
00:00:04 #30 [Verbose] > Building /tmp/!dotnet-repl/20240325-2024-2970-7014-79a02478b89a/main.spi
00:00:06 #31 [Verbose] >
00:00:06 #32 [Verbose] > ╭─[ 3.76s - stdout ]───────────────────────────────────────────────────────────╮
00:00:06 #33 [Verbose] > │ () │
00:00:06 #34 [Verbose] > │ │
00:00:06 #35 [Verbose] > │ │
00:00:06 #36 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:06 #37 [Verbose] >
00:00:06 #38 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:06 #39 [Verbose] > inl (/@) x = listm'.(/@) x
00:00:06 #40 [Verbose] > Building /tmp/!dotnet-repl/20240325-2024-3211-1190-1d06bf76e96b/main.spi
00:00:06 #41 [Verbose] >
00:00:06 #42 [Verbose] > ╭─[ 203.23ms - stdout ]────────────────────────────────────────────────────────╮
00:00:06 #43 [Verbose] > │ () │
00:00:06 #44 [Verbose] > │ │
00:00:06 #45 [Verbose] > │ │
00:00:06 #46 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:06 #47 [Verbose] >
00:00:06 #48 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:06 #49 [Verbose] > inl gc_collect () =
00:00:06 #50 [Verbose] > run_target function
00:00:06 #51 [Verbose] > | Fsharp => fun () => $"System.GC.Collect ()"
00:00:06 #52 [Verbose] > | _ => fun () => ()
00:00:06 #53 [Verbose] >
00:00:06 #54 [Verbose] > inl printfn x =
00:00:06 #55 [Verbose] > console.write_line x
00:00:06 #56 [Verbose] >
00:00:06 #57 [Verbose] > nominal stopwatch = $"System.Diagnostics.Stopwatch"
00:00:06 #58 [Verbose] >
00:00:06 #59 [Verbose] > inl stopwatch () : stopwatch =
00:00:06 #60 [Verbose] > $"`stopwatch" ()
00:00:06 #61 [Verbose] >
00:00:06 #62 [Verbose] > inl stopwatch_elapsed_milliseconds (stopwatch : stopwatch) : i64 =
00:00:06 #63 [Verbose] > $"!stopwatch.ElapsedMilliseconds"
00:00:06 #64 [Verbose] >
00:00:06 #65 [Verbose] > inl stopwatch_start (stopwatch : stopwatch) : () =
00:00:06 #66 [Verbose] > $"!stopwatch.Start ()"
00:00:06 #67 [Verbose] > Building /tmp/!dotnet-repl/20240325-2024-3231-3170-3a5c8d7eb9f4/main.spi
00:00:06 #68 [Verbose] >
00:00:06 #69 [Verbose] > ╭─[ 162.99ms - stdout ]────────────────────────────────────────────────────────╮
00:00:06 #70 [Verbose] > │ () │
00:00:06 #71 [Verbose] > │ │
00:00:06 #72 [Verbose] > │ │
00:00:06 #73 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:06 #74 [Verbose] >
00:00:06 #75 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:06 #76 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:06 #77 [Verbose] > │ ## test_case_result │
00:00:06 #78 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:06 #79 [Verbose] >
00:00:06 #80 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:06 #81 [Verbose] > type test_case_result =
00:00:06 #82 [Verbose] > {
00:00:06 #83 [Verbose] > Input : string
00:00:06 #84 [Verbose] > Expected : string
00:00:06 #85 [Verbose] > Result : string
00:00:06 #86 [Verbose] > TimeList : a u64 i64
00:00:06 #87 [Verbose] > }
00:00:06 #88 [Verbose] > Building /tmp/!dotnet-repl/20240325-2024-3248-4810-488b7e3d5e02/main.spi
00:00:06 #89 [Verbose] >
00:00:06 #90 [Verbose] > ╭─[ 181.68ms - stdout ]────────────────────────────────────────────────────────╮
00:00:06 #91 [Verbose] > │ () │
00:00:06 #92 [Verbose] > │ │
00:00:06 #93 [Verbose] > │ │
00:00:06 #94 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:06 #95 [Verbose] >
00:00:06 #96 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:06 #97 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:06 #98 [Verbose] > │ ## run │
00:00:06 #99 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:06 #100 [Verbose] >
00:00:06 #101 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:06 #102 [Verbose] > inl run forall input expected.
00:00:06 #103 [Verbose] > count
00:00:06 #104 [Verbose] > (solutions : list (string * (input -> expected)))
00:00:06 #105 [Verbose] > ((input, expected) : (input * expected))
00:00:06 #106 [Verbose] > : test_case_result
00:00:06 #107 [Verbose] > =
00:00:06 #108 [Verbose] > inl input_str = input |> sm'.format_debug
00:00:06 #109 [Verbose] >
00:00:06 #110 [Verbose] > printfn ""
00:00:06 #111 [Verbose] > printfn ($"$\"Solution: {!input_str} \"" : string)
00:00:06 #112 [Verbose] >
00:00:06 #113 [Verbose] > inl performance_invoke (fn : () -> expected) =
00:00:06 #114 [Verbose] > gc_collect ()
00:00:06 #115 [Verbose] > inl stopwatch = stopwatch ()
00:00:06 #116 [Verbose] > stopwatch |> stopwatch_start
00:00:06 #117 [Verbose] > inl time1 = stopwatch |> stopwatch_elapsed_milliseconds
00:00:06 #118 [Verbose] > inl result : expected =
00:00:06 #119 [Verbose] > am'.init_series 0 count 1i32
00:00:06 #120 [Verbose] > |> am'.parallel_map fun _n => fn ()
00:00:06 #121 [Verbose] > |> am'.last
00:00:06 #122 [Verbose] > inl time2 = (stopwatch |> stopwatch_elapsed_milliseconds) - time1
00:00:06 #123 [Verbose] > result, time2
00:00:06 #124 [Verbose] >
00:00:06 #125 [Verbose] > inl results_with_time : a u64 _ =
00:00:06 #126 [Verbose] > solutions
00:00:06 #127 [Verbose] > |> listm'.indexed
00:00:06 #128 [Verbose] > |> listm.toArray
00:00:06 #129 [Verbose] > |> am.map fun ((i : i32), (test_name, solution)) =>
00:00:06 #130 [Verbose] > inl result, time = performance_invoke fun () => solution input
00:00:06 #131 [Verbose] > printfn ($"$\"Test case {!i + 1}. {!test_name}. Time: {!time} \"" :
00:00:06 #132 [Verbose] > string)
00:00:06 #133 [Verbose] > result, time
00:00:06 #134 [Verbose] >
00:00:06 #135 [Verbose] > match results_with_time |> am.map fst with
00:00:06 #136 [Verbose] > | array when length array <= 1 => ()
00:00:06 #137 [Verbose] > | array when array |> am.forall' ((=) (index array 0)) => ()
00:00:06 #138 [Verbose] > | results => failwith ($"$\"Challenge error: {!results}\"" : string)
00:00:06 #139 [Verbose] >
00:00:06 #140 [Verbose] > {
00:00:06 #141 [Verbose] > Input = input_str
00:00:06 #142 [Verbose] > Expected = expected |> sm'.format_debug
00:00:06 #143 [Verbose] > Result = results_with_time |> am.map fst |> fun array => index array 0
00:00:06 #144 [Verbose] > |> sm'.format_debug
00:00:06 #145 [Verbose] > TimeList = results_with_time |> am.map snd
00:00:06 #146 [Verbose] > }
00:00:06 #147 [Verbose] > Building /tmp/!dotnet-repl/20240325-2024-3266-6645-60c25dc91ffb/main.spi
00:00:06 #148 [Verbose] >
00:00:06 #149 [Verbose] > ╭─[ 167.55ms - stdout ]────────────────────────────────────────────────────────╮
00:00:06 #150 [Verbose] > │ () │
00:00:06 #151 [Verbose] > │ │
00:00:06 #152 [Verbose] > │ │
00:00:06 #153 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:06 #154 [Verbose] >
00:00:06 #155 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:06 #156 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:06 #157 [Verbose] > │ ## run_all │
00:00:06 #158 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:06 #159 [Verbose] >
00:00:06 #160 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:06 #161 [Verbose] > inl run_all forall input expected.
00:00:06 #162 [Verbose] > test_name
00:00:06 #163 [Verbose] > count
00:00:06 #164 [Verbose] > (solutions : list (string * (input -> expected)))
00:00:06 #165 [Verbose] > test_cases
00:00:06 #166 [Verbose] > =
00:00:06 #167 [Verbose] > printfn ""
00:00:06 #168 [Verbose] > printfn ""
00:00:06 #169 [Verbose] > printfn ($"$\"Test: {!test_name}\"" : string)
00:00:06 #170 [Verbose] > test_cases
00:00:06 #171 [Verbose] > |> listm.toArray
00:00:06 #172 [Verbose] > |> am.map (run count solutions)
00:00:06 #173 [Verbose] > Building /tmp/!dotnet-repl/20240325-2024-3283-8332-8432fd067a10/main.spi
00:00:07 #174 [Verbose] >
00:00:07 #175 [Verbose] > ╭─[ 162.56ms - stdout ]────────────────────────────────────────────────────────╮
00:00:07 #176 [Verbose] > │ () │
00:00:07 #177 [Verbose] > │ │
00:00:07 #178 [Verbose] > │ │
00:00:07 #179 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #180 [Verbose] >
00:00:07 #181 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:07 #182 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:07 #183 [Verbose] > │ ## sort_result_list │
00:00:07 #184 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #185 [Verbose] >
00:00:07 #186 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:07 #187 [Verbose] > inl sort_result_list results =
00:00:07 #188 [Verbose] > inl table =
00:00:07 #189 [Verbose] > inl rows =
00:00:07 #190 [Verbose] > results
00:00:07 #191 [Verbose] > |> am.map fun (result : test_case_result) =>
00:00:07 #192 [Verbose] > inl best =
00:00:07 #193 [Verbose] > result.TimeList
00:00:07 #194 [Verbose] > |> am'.indexed
00:00:07 #195 [Verbose] > |> am.map fun (i, time) =>
00:00:07 #196 [Verbose] > i + 1i64, time
00:00:07 #197 [Verbose] > |> am'.sort_by snd
00:00:07 #198 [Verbose] > |> fun array => index array 0i32
00:00:07 #199 [Verbose] > |> sm'.format_debug
00:00:07 #200 [Verbose] > inl row =
00:00:07 #201 [Verbose] > [[
00:00:07 #202 [Verbose] > result.Input
00:00:07 #203 [Verbose] > result.Expected
00:00:07 #204 [Verbose] > result.Result
00:00:07 #205 [Verbose] > best
00:00:07 #206 [Verbose] > ]]
00:00:07 #207 [Verbose] > inl color : option console.console_color =
00:00:07 #208 [Verbose] > open console
00:00:07 #209 [Verbose] > match result.Expected = result.Result with
00:00:07 #210 [Verbose] > | true => Some $"`console_color.DarkGreen"
00:00:07 #211 [Verbose] > | false => Some $"`console_color.DarkRed"
00:00:07 #212 [Verbose] > row, color
00:00:07 #213 [Verbose] >
00:00:07 #214 [Verbose] > inl header =
00:00:07 #215 [Verbose] > [[
00:00:07 #216 [Verbose] > [[
00:00:07 #217 [Verbose] > "Input"
00:00:07 #218 [Verbose] > "Expected"
00:00:07 #219 [Verbose] > "Result"
00:00:07 #220 [Verbose] > "Best"
00:00:07 #221 [Verbose] > ]]
00:00:07 #222 [Verbose] > [[
00:00:07 #223 [Verbose] > "---"
00:00:07 #224 [Verbose] > "---"
00:00:07 #225 [Verbose] > "---"
00:00:07 #226 [Verbose] > "---"
00:00:07 #227 [Verbose] > ]]
00:00:07 #228 [Verbose] > ]]
00:00:07 #229 [Verbose] > |> listm.map fun row => row, None
00:00:07 #230 [Verbose] > |> listm.toArray
00:00:07 #231 [Verbose] > rows |> am.append header
00:00:07 #232 [Verbose] >
00:00:07 #233 [Verbose] > inl formattedTable =
00:00:07 #234 [Verbose] > inl lengthMap : mapm.map i32 i64 =
00:00:07 #235 [Verbose] > table
00:00:07 #236 [Verbose] > |> am.map (fst >> listm.toArray)
00:00:07 #237 [Verbose] > |> am'.transpose
00:00:07 #238 [Verbose] > |> am.map fun column =>
00:00:07 #239 [Verbose] > column
00:00:07 #240 [Verbose] > |> am.map sm.length
00:00:07 #241 [Verbose] > |> am'.sort_descending
00:00:07 #242 [Verbose] > |> am'.try_item 0i32
00:00:07 #243 [Verbose] > |> optionm'.default_value 0i64
00:00:07 #244 [Verbose] > |> am'.indexed
00:00:07 #245 [Verbose] > |> fun (x : a i32 _) => x
00:00:07 #246 [Verbose] > |> mapm.of_array
00:00:07 #247 [Verbose] > table
00:00:07 #248 [Verbose] > |> am.map fun (row, color) =>
00:00:07 #249 [Verbose] > inl newRow =
00:00:07 #250 [Verbose] > row
00:00:07 #251 [Verbose] > |> listm'.indexed
00:00:07 #252 [Verbose] > |> listm.map fun (i, cell) =>
00:00:07 #253 [Verbose] > cell |> sm'.pad_right (lengthMap |> mapm.item i |> conv)
00:00:07 #254 [Verbose] > |> listm.toArray
00:00:07 #255 [Verbose] > newRow, color
00:00:07 #256 [Verbose] >
00:00:07 #257 [Verbose] > printfn ""
00:00:07 #258 [Verbose] > formattedTable
00:00:07 #259 [Verbose] > |> am.iter fun ((row : a i32 string), color) =>
00:00:07 #260 [Verbose] > match color with
00:00:07 #261 [Verbose] > | Some color => color |> console.set_foreground_color
00:00:07 #262 [Verbose] > | None => console.reset_color ()
00:00:07 #263 [Verbose] >
00:00:07 #264 [Verbose] > printfn (row |> sm'.join' "\t| ")
00:00:07 #265 [Verbose] >
00:00:07 #266 [Verbose] > console.reset_color ()
00:00:07 #267 [Verbose] >
00:00:07 #268 [Verbose] > inl averages : a u64 _ =
00:00:07 #269 [Verbose] > results
00:00:07 #270 [Verbose] > |> am.map fun result =>
00:00:07 #271 [Verbose] > result.TimeList
00:00:07 #272 [Verbose] > |> am.map ($"float" : i64 -> f64)
00:00:07 #273 [Verbose] > |> am'.transpose
00:00:07 #274 [Verbose] > |> am.map am'.average
00:00:07 #275 [Verbose] > |> am.map ($"int64" : f64 -> i64)
00:00:07 #276 [Verbose] > |> am'.indexed
00:00:07 #277 [Verbose] >
00:00:07 #278 [Verbose] > printfn ""
00:00:07 #279 [Verbose] > printfn "Average Ranking "
00:00:07 #280 [Verbose] > averages
00:00:07 #281 [Verbose] > |> am'.sort_by snd
00:00:07 #282 [Verbose] > |> am.iter fun ((i : i32), avg) =>
00:00:07 #283 [Verbose] > printfn ($"$\"Test case %d{!i + 1}. Average Time: %A{!avg} \"" :
00:00:07 #284 [Verbose] > string)
00:00:07 #285 [Verbose] > Building /tmp/!dotnet-repl/20240325-2024-3299-9976-984688a66d20/main.spi
00:00:07 #286 [Verbose] >
00:00:07 #287 [Verbose] > ╭─[ 175.54ms - stdout ]────────────────────────────────────────────────────────╮
00:00:07 #288 [Verbose] > │ () │
00:00:07 #289 [Verbose] > │ │
00:00:07 #290 [Verbose] > │ │
00:00:07 #291 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #292 [Verbose] >
00:00:07 #293 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:07 #294 [Verbose] > // // test
00:00:07 #295 [Verbose] >
00:00:07 #296 [Verbose] > inl is_fast () =
00:00:07 #297 [Verbose] > false
00:00:07 #298 [Verbose] > Building /tmp/!dotnet-repl/20240325-2024-3317-1711-1c07a443e316/main.spi
00:00:07 #299 [Verbose] >
00:00:07 #300 [Verbose] > ╭─[ 163.05ms - stdout ]────────────────────────────────────────────────────────╮
00:00:07 #301 [Verbose] > │ () │
00:00:07 #302 [Verbose] > │ │
00:00:07 #303 [Verbose] > │ │
00:00:07 #304 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #305 [Verbose] >
00:00:07 #306 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:07 #307 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:07 #308 [Verbose] > │ ## empty2Tests │
00:00:07 #309 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #310 [Verbose] >
00:00:07 #311 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:07 #312 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:07 #313 [Verbose] > │ Test: Empty2 │
00:00:07 #314 [Verbose] > │ │
00:00:07 #315 [Verbose] > │ Solution: (a, a) │
00:00:07 #316 [Verbose] > │ Test case 1. A. Time: 59L │
00:00:07 #317 [Verbose] > │ │
00:00:07 #318 [Verbose] > │ Solution: (a, a) │
00:00:07 #319 [Verbose] > │ Test case 1. A. Time: 53L │
00:00:07 #320 [Verbose] > │ │
00:00:07 #321 [Verbose] > │ Input | Expected | Result | Best │
00:00:07 #322 [Verbose] > │ --- | --- | --- | --- │
00:00:07 #323 [Verbose] > │ (a, a) | a | a | (1, 59) │
00:00:07 #324 [Verbose] > │ (a, a) | a | a | (1, 53) │
00:00:07 #325 [Verbose] > │ │
00:00:07 #326 [Verbose] > │ Averages │
00:00:07 #327 [Verbose] > │ Test case 1. Average Time: 56L │
00:00:07 #328 [Verbose] > │ │
00:00:07 #329 [Verbose] > │ Ranking │
00:00:07 #330 [Verbose] > │ Test case 1. Average Time: 56L │
00:00:07 #331 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #332 [Verbose] >
00:00:07 #333 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:07 #334 [Verbose] > // // test
00:00:07 #335 [Verbose] >
00:00:07 #336 [Verbose] > inl get_solutions () =
00:00:07 #337 [Verbose] > [[
00:00:07 #338 [Verbose] > "A",
00:00:07 #339 [Verbose] > fun (a, _b) =>
00:00:07 #340 [Verbose] > a
00:00:07 #341 [Verbose] >
00:00:07 #342 [Verbose] > "B",
00:00:07 #343 [Verbose] > fun (_a, b) =>
00:00:07 #344 [Verbose] > b
00:00:07 #345 [Verbose] > ]]
00:00:07 #346 [Verbose] >
00:00:07 #347 [Verbose] > inl rec empty_2_tests () =
00:00:07 #348 [Verbose] > inl test_cases = [[
00:00:07 #349 [Verbose] > ("a", "a"), "a"
00:00:07 #350 [Verbose] > ("b", "b"), "b"
00:00:07 #351 [Verbose] > ]]
00:00:07 #352 [Verbose] >
00:00:07 #353 [Verbose] > inl solutions = get_solutions ()
00:00:07 #354 [Verbose] >
00:00:07 #355 [Verbose] > // inl is_fast () = true
00:00:07 #356 [Verbose] >
00:00:07 #357 [Verbose] > inl count =
00:00:07 #358 [Verbose] > if is_fast ()
00:00:07 #359 [Verbose] > then 1000i32
00:00:07 #360 [Verbose] > else 2000000i32
00:00:07 #361 [Verbose] >
00:00:07 #362 [Verbose] > run_all (nameof empty_2_tests) count solutions test_cases
00:00:07 #363 [Verbose] > |> sort_result_list
00:00:07 #364 [Verbose] >
00:00:07 #365 [Verbose] > empty_2_tests ()
00:00:07 #366 [Verbose] > Building /tmp/!dotnet-repl/20240325-2024-3333-3377-335f8ce95e2d/main.spi
00:00:14 #367 [Verbose] >
00:00:14 #368 [Verbose] > ╭─[ 7.01s - stdout ]───────────────────────────────────────────────────────────╮
00:00:14 #369 [Verbose] > │ type UH0 = │
00:00:14 #370 [Verbose] > │ | UH0_0 of string * string * string * UH0 │
00:00:14 #371 [Verbose] > │ | UH0_1 │
00:00:14 #372 [Verbose] > │ and Mut0 = {mutable l0 : uint64} │
00:00:14 #373 [Verbose] > │ and UH1 = │
00:00:14 #374 [Verbose] > │ | UH1_0 of int32 * string * (struct (string * string) -> string) * UH1 │
00:00:14 #375 [Verbose] > │ | UH1_1 │
00:00:14 #376 [Verbose] > │ and Mut1 = {mutable l0 : int32} │
00:00:14 #377 [Verbose] > │ and UH2 = │
00:00:14 #378 [Verbose] > │ | UH2_0 of string * UH2 │
00:00:14 #379 [Verbose] > │ | UH2_1 │
00:00:14 #380 [Verbose] > │ and [<Struct>] US0 = │
00:00:14 #381 [Verbose] > │ | US0_0 │
00:00:14 #382 [Verbose] > │ | US0_1 of f1_0 : System.ConsoleColor │
00:00:14 #383 [Verbose] > │ and UH3 = │
00:00:14 #384 [Verbose] > │ | UH3_0 of int64 * int64 * UH3 │
00:00:14 #385 [Verbose] > │ | UH3_1 │
00:00:14 #386 [Verbose] > │ and Mut2 = {mutable l0 : uint64; mutable l1 : UH3; mutable l2 : int64} │
00:00:14 #387 [Verbose] > │ and UH4 = │
00:00:14 #388 [Verbose] > │ | UH4_0 of UH2 * US0 * UH4 │
00:00:14 #389 [Verbose] > │ | UH4_1 │
00:00:14 #390 [Verbose] > │ and [<Struct>] US1 = │
00:00:14 #391 [Verbose] > │ | US1_0 │
00:00:14 #392 [Verbose] > │ | US1_1 of f1_0 : int64 │
00:00:14 #393 [Verbose] > │ and UH5 = │
00:00:14 #394 [Verbose] > │ | UH5_0 of int32 * int64 * UH5 │
00:00:14 #395 [Verbose] > │ | UH5_1 │
00:00:14 #396 [Verbose] > │ and Mut3 = {mutable l0 : uint64; mutable l1 : UH5; mutable l2 : int32} │
00:00:14 #397 [Verbose] > │ and UH6 = │
00:00:14 #398 [Verbose] > │ | UH6_0 of int32 * string * UH6 │
00:00:14 #399 [Verbose] > │ | UH6_1 │
00:00:14 #400 [Verbose] > │ let rec method2 (v0 : UH0, v1 : uint64) : uint64 = │
00:00:14 #401 [Verbose] > │ match v0 with │
00:00:14 #402 [Verbose] > │ | UH0_0(v2, v3, v4, v5) -> (* Cons *) │
00:00:14 #403 [Verbose] > │ let v6 : uint64 = v1 + 1UL │
00:00:14 #404 [Verbose] > │ method2(v5, v6) │
00:00:14 #405 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:14 #406 [Verbose] > │ v1 │
00:00:14 #407 [Verbose] > │ and method3 (v0 : (struct (string * string * string) []), v1 : UH0, v2 : │
00:00:14 #408 [Verbose] > │ uint64) : uint64 = │
00:00:14 #409 [Verbose] > │ match v1 with │
00:00:14 #410 [Verbose] > │ | UH0_0(v3, v4, v5, v6) -> (* Cons *) │
00:00:14 #411 [Verbose] > │ v0.[int v2] <- struct (v3, v4, v5) │
00:00:14 #412 [Verbose] > │ let v7 : uint64 = v2 + 1UL │
00:00:14 #413 [Verbose] > │ method3(v0, v6, v7) │
00:00:14 #414 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:14 #415 [Verbose] > │ v2 │
00:00:14 #416 [Verbose] > │ and method1 (v0 : UH0) : (struct (string * string * string) []) = │
00:00:14 #417 [Verbose] > │ let v1 : uint64 = 0UL │
00:00:14 #418 [Verbose] > │ let v2 : uint64 = method2(v0, v1) │
00:00:14 #419 [Verbose] > │ let v3 : (struct (string * string * string) []) = │
00:00:14 #420 [Verbose] > │ Array.zeroCreate<struct (string * string * string)> │
00:00:14 #421 [Verbose] > │ (System.Convert.ToInt32(v2)) │
00:00:14 #422 [Verbose] > │ let v4 : uint64 = 0UL │
00:00:14 #423 [Verbose] > │ let v5 : uint64 = method3(v3, v0, v4) │
00:00:14 #424 [Verbose] > │ v3 │
00:00:14 #425 [Verbose] > │ and method4 (v0 : uint64, v1 : Mut0) : bool = │
00:00:14 #426 [Verbose] > │ let v2 : uint64 = v1.l0 │
00:00:14 #427 [Verbose] > │ let v3 : bool = v2 < v0 │
00:00:14 #428 [Verbose] > │ v3 │
00:00:14 #429 [Verbose] > │ and closure1 () struct (v0 : string, v1 : string) : string = │
00:00:14 #430 [Verbose] > │ v0 │
00:00:14 #431 [Verbose] > │ and closure2 () struct (v0 : string, v1 : string) : string = │
00:00:14 #432 [Verbose] > │ v1 │
00:00:14 #433 [Verbose] > │ and method6 (v0 : UH1, v1 : uint64) : uint64 = │
00:00:14 #434 [Verbose] > │ match v0 with │
00:00:14 #435 [Verbose] > │ | UH1_0(v2, v3, v4, v5) -> (* Cons *) │
00:00:14 #436 [Verbose] > │ let v6 : uint64 = v1 + 1UL │
00:00:14 #437 [Verbose] > │ method6(v5, v6) │
00:00:14 #438 [Verbose] > │ | UH1_1 -> (* Nil *) │
00:00:14 #439 [Verbose] > │ v1 │
00:00:14 #440 [Verbose] > │ and method7 (v0 : (struct (int32 * string * (struct (string * string) -> │
00:00:14 #441 [Verbose] > │ string)) []), v1 : UH1, v2 : uint64) : uint64 = │
00:00:14 #442 [Verbose] > │ match v1 with │
00:00:14 #443 [Verbose] > │ | UH1_0(v3, v4, v5, v6) -> (* Cons *) │
00:00:14 #444 [Verbose] > │ v0.[int v2] <- struct (v3, v4, v5) │
00:00:14 #445 [Verbose] > │ let v7 : uint64 = v2 + 1UL │
00:00:14 #446 [Verbose] > │ method7(v0, v6, v7) │
00:00:14 #447 [Verbose] > │ | UH1_1 -> (* Nil *) │
00:00:14 #448 [Verbose] > │ v2 │
00:00:14 #449 [Verbose] > │ and method5 (v0 : UH1) : (struct (int32 * string * (struct (string * string) │
00:00:14 #450 [Verbose] > │ -> string)) []) = │
00:00:14 #451 [Verbose] > │ let v1 : uint64 = 0UL │
00:00:14 #452 [Verbose] > │ let v2 : uint64 = method6(v0, v1) │
00:00:14 #453 [Verbose] > │ let v3 : (struct (int32 * string * (struct (string * string) -> string)) │
00:00:14 #454 [Verbose] > │ []) = Array.zeroCreate<struct (int32 * string * (struct (string * string) -> │
00:00:14 #455 [Verbose] > │ string))> (System.Convert.ToInt32(v2)) │
00:00:14 #456 [Verbose] > │ let v4 : uint64 = 0UL │
00:00:14 #457 [Verbose] > │ let v5 : uint64 = method7(v3, v0, v4) │
00:00:14 #458 [Verbose] > │ v3 │
00:00:14 #459 [Verbose] > │ and method8 (v0 : Mut1) : bool = │
00:00:14 #460 [Verbose] > │ let v1 : int32 = v0.l0 │
00:00:14 #461 [Verbose] > │ let v2 : bool = v1 < 2000001 │
00:00:14 #462 [Verbose] > │ v2 │
00:00:14 #463 [Verbose] > │ and closure3 (v0 : string, v1 : string, v2 : (struct (string * string) -> │
00:00:14 #464 [Verbose] > │ string)) (v3 : int32) : string = │
00:00:14 #465 [Verbose] > │ v2 struct (v0, v1) │
00:00:14 #466 [Verbose] > │ and method9 (v0 : string, v1 : (string []), v2 : uint64) : bool = │
00:00:14 #467 [Verbose] > │ let v3 : uint64 = System.Convert.ToUInt64 v1.Length │
00:00:14 #468 [Verbose] > │ let v4 : bool = v2 < v3 │
00:00:14 #469 [Verbose] > │ if v4 then │
00:00:14 #470 [Verbose] > │ let v5 : string = v1.[int v2] │
00:00:14 #471 [Verbose] > │ let v6 : bool = v0 = v5 │
00:00:14 #472 [Verbose] > │ if v6 then │
00:00:14 #473 [Verbose] > │ let v7 : uint64 = v2 + 1UL │
00:00:14 #474 [Verbose] > │ method9(v0, v1, v7) │
00:00:14 #475 [Verbose] > │ else │
00:00:14 #476 [Verbose] > │ false │
00:00:14 #477 [Verbose] > │ else │
00:00:14 #478 [Verbose] > │ true │
00:00:14 #479 [Verbose] > │ and method10 (v0 : uint64, v1 : Mut2) : bool = │
00:00:14 #480 [Verbose] > │ let v2 : uint64 = v1.l0 │
00:00:14 #481 [Verbose] > │ let v3 : bool = v2 < v0 │
00:00:14 #482 [Verbose] > │ v3 │
00:00:14 #483 [Verbose] > │ and method11 (v0 : UH3, v1 : UH3) : UH3 = │
00:00:14 #484 [Verbose] > │ match v0 with │
00:00:14 #485 [Verbose] > │ | UH3_0(v2, v3, v4) -> (* Cons *) │
00:00:14 #486 [Verbose] > │ let v5 : UH3 = UH3_0(v2, v3, v1) │
00:00:14 #487 [Verbose] > │ method11(v4, v5) │
00:00:14 #488 [Verbose] > │ | UH3_1 -> (* Nil *) │
00:00:14 #489 [Verbose] > │ v1 │
00:00:14 #490 [Verbose] > │ and method13 (v0 : UH3, v1 : int32) : int32 = │
00:00:14 #491 [Verbose] > │ match v0 with │
00:00:14 #492 [Verbose] > │ | UH3_0(v2, v3, v4) -> (* Cons *) │
00:00:14 #493 [Verbose] > │ let v5 : int32 = v1 + 1 │
00:00:14 #494 [Verbose] > │ method13(v4, v5) │
00:00:14 #495 [Verbose] > │ | UH3_1 -> (* Nil *) │
00:00:14 #496 [Verbose] > │ v1 │
00:00:14 #497 [Verbose] > │ and method14 (v0 : (struct (int64 * int64) []), v1 : UH3, v2 : int32) : │
00:00:14 #498 [Verbose] > │ int32 = │
00:00:14 #499 [Verbose] > │ match v1 with │
00:00:14 #500 [Verbose] > │ | UH3_0(v3, v4, v5) -> (* Cons *) │
00:00:14 #501 [Verbose] > │ v0.[int v2] <- struct (v3, v4) │
00:00:14 #502 [Verbose] > │ let v6 : int32 = v2 + 1 │
00:00:14 #503 [Verbose] > │ method14(v0, v5, v6) │
00:00:14 #504 [Verbose] > │ | UH3_1 -> (* Nil *) │
00:00:14 #505 [Verbose] > │ v2 │
00:00:14 #506 [Verbose] > │ and method12 (v0 : UH3) : (struct (int64 * int64) []) = │
00:00:14 #507 [Verbose] > │ let v1 : int32 = 0 │
00:00:14 #508 [Verbose] > │ let v2 : int32 = method13(v0, v1) │
00:00:14 #509 [Verbose] > │ let v3 : (struct (int64 * int64) []) = Array.zeroCreate<struct (int64 * │
00:00:14 #510 [Verbose] > │ int64)> (v2) │
00:00:14 #511 [Verbose] > │ let v4 : int32 = 0 │
00:00:14 #512 [Verbose] > │ let v5 : int32 = method14(v3, v0, v4) │
00:00:14 #513 [Verbose] > │ v3 │
00:00:14 #514 [Verbose] > │ and method15 (v0 : int32, v1 : Mut1) : bool = │
00:00:14 #515 [Verbose] > │ let v2 : int32 = v1.l0 │
00:00:14 #516 [Verbose] > │ let v3 : bool = v2 < v0 │
00:00:14 #517 [Verbose] > │ v3 │
00:00:14 #518 [Verbose] > │ and closure4 () struct (v0 : int64, v1 : int64) : int64 = │
00:00:14 #519 [Verbose] > │ v1 │
00:00:14 #520 [Verbose] > │ and method17 (v0 : UH4, v1 : uint64) : uint64 = │
00:00:14 #521 [Verbose] > │ match v0 with │
00:00:14 #522 [Verbose] > │ | UH4_0(v2, v3, v4) -> (* Cons *) │
00:00:14 #523 [Verbose] > │ let v5 : uint64 = v1 + 1UL │
00:00:14 #524 [Verbose] > │ method17(v4, v5) │
00:00:14 #525 [Verbose] > │ | UH4_1 -> (* Nil *) │
00:00:14 #526 [Verbose] > │ v1 │
00:00:14 #527 [Verbose] > │ and method18 (v0 : (struct (UH2 * US0) []), v1 : UH4, v2 : uint64) : uint64 │
00:00:14 #528 [Verbose] > │ = │
00:00:14 #529 [Verbose] > │ match v1 with │
00:00:14 #530 [Verbose] > │ | UH4_0(v3, v4, v5) -> (* Cons *) │
00:00:14 #531 [Verbose] > │ v0.[int v2] <- struct (v3, v4) │
00:00:14 #532 [Verbose] > │ let v6 : uint64 = v2 + 1UL │
00:00:14 #533 [Verbose] > │ method18(v0, v5, v6) │
00:00:14 #534 [Verbose] > │ | UH4_1 -> (* Nil *) │
00:00:14 #535 [Verbose] > │ v2 │
00:00:14 #536 [Verbose] > │ and method16 (v0 : UH4) : (struct (UH2 * US0) []) = │
00:00:14 #537 [Verbose] > │ let v1 : uint64 = 0UL │
00:00:14 #538 [Verbose] > │ let v2 : uint64 = method17(v0, v1) │
00:00:14 #539 [Verbose] > │ let v3 : (struct (UH2 * US0) []) = Array.zeroCreate<struct (UH2 * US0)> │
00:00:14 #540 [Verbose] > │ (System.Convert.ToInt32(v2)) │
00:00:14 #541 [Verbose] > │ let v4 : uint64 = 0UL │
00:00:14 #542 [Verbose] > │ let v5 : uint64 = method18(v3, v0, v4) │
00:00:14 #543 [Verbose] > │ v3 │
00:00:14 #544 [Verbose] > │ and method20 (v0 : UH2, v1 : uint64) : uint64 = │
00:00:14 #545 [Verbose] > │ match v0 with │
00:00:14 #546 [Verbose] > │ | UH2_0(v2, v3) -> (* Cons *) │
00:00:14 #547 [Verbose] > │ let v4 : uint64 = v1 + 1UL │
00:00:14 #548 [Verbose] > │ method20(v3, v4) │
00:00:14 #549 [Verbose] > │ | UH2_1 -> (* Nil *) │
00:00:14 #550 [Verbose] > │ v1 │
00:00:14 #551 [Verbose] > │ and method21 (v0 : (string []), v1 : UH2, v2 : uint64) : uint64 = │
00:00:14 #552 [Verbose] > │ match v1 with │
00:00:14 #553 [Verbose] > │ | UH2_0(v3, v4) -> (* Cons *) │
00:00:14 #554 [Verbose] > │ v0.[int v2] <- v3 │
00:00:14 #555 [Verbose] > │ let v5 : uint64 = v2 + 1UL │
00:00:14 #556 [Verbose] > │ method21(v0, v4, v5) │
00:00:14 #557 [Verbose] > │ | UH2_1 -> (* Nil *) │
00:00:14 #558 [Verbose] > │ v2 │
00:00:14 #559 [Verbose] > │ and method19 (v0 : UH2) : (string []) = │
00:00:14 #560 [Verbose] > │ let v1 : uint64 = 0UL │
00:00:14 #561 [Verbose] > │ let v2 : uint64 = method20(v0, v1) │
00:00:14 #562 [Verbose] > │ let v3 : (string []) = Array.zeroCreate<string> │
00:00:14 #563 [Verbose] > │ (System.Convert.ToInt32(v2)) │
00:00:14 #564 [Verbose] > │ let v4 : uint64 = 0UL │
00:00:14 #565 [Verbose] > │ let v5 : uint64 = method21(v3, v0, v4) │
00:00:14 #566 [Verbose] > │ v3 │
00:00:14 #567 [Verbose] > │ and closure5 () (v0 : int64) : US1 = │
00:00:14 #568 [Verbose] > │ US1_1(v0) │
00:00:14 #569 [Verbose] > │ and method22 (v0 : uint64, v1 : Mut3) : bool = │
00:00:14 #570 [Verbose] > │ let v2 : uint64 = v1.l0 │
00:00:14 #571 [Verbose] > │ let v3 : bool = v2 < v0 │
00:00:14 #572 [Verbose] > │ v3 │
00:00:14 #573 [Verbose] > │ and method23 (v0 : UH5, v1 : UH5) : UH5 = │
00:00:14 #574 [Verbose] > │ match v0 with │
00:00:14 #575 [Verbose] > │ | UH5_0(v2, v3, v4) -> (* Cons *) │
00:00:14 #576 [Verbose] > │ let v5 : UH5 = UH5_0(v2, v3, v1) │
00:00:14 #577 [Verbose] > │ method23(v4, v5) │
00:00:14 #578 [Verbose] > │ | UH5_1 -> (* Nil *) │
00:00:14 #579 [Verbose] > │ v1 │
00:00:14 #580 [Verbose] > │ and method25 (v0 : UH5, v1 : int32) : int32 = │
00:00:14 #581 [Verbose] > │ match v0 with │
00:00:14 #582 [Verbose] > │ | UH5_0(v2, v3, v4) -> (* Cons *) │
00:00:14 #583 [Verbose] > │ let v5 : int32 = v1 + 1 │
00:00:14 #584 [Verbose] > │ method25(v4, v5) │
00:00:14 #585 [Verbose] > │ | UH5_1 -> (* Nil *) │
00:00:14 #586 [Verbose] > │ v1 │
00:00:14 #587 [Verbose] > │ and method26 (v0 : (struct (int32 * int64) []), v1 : UH5, v2 : int32) : │
00:00:14 #588 [Verbose] > │ int32 = │
00:00:14 #589 [Verbose] > │ match v1 with │
00:00:14 #590 [Verbose] > │ | UH5_0(v3, v4, v5) -> (* Cons *) │
00:00:14 #591 [Verbose] > │ v0.[int v2] <- struct (v3, v4) │
00:00:14 #592 [Verbose] > │ let v6 : int32 = v2 + 1 │
00:00:14 #593 [Verbose] > │ method26(v0, v5, v6) │
00:00:14 #594 [Verbose] > │ | UH5_1 -> (* Nil *) │
00:00:14 #595 [Verbose] > │ v2 │
00:00:14 #596 [Verbose] > │ and method24 (v0 : UH5) : (struct (int32 * int64) []) = │
00:00:14 #597 [Verbose] > │ let v1 : int32 = 0 │
00:00:14 #598 [Verbose] > │ let v2 : int32 = method25(v0, v1) │
00:00:14 #599 [Verbose] > │ let v3 : (struct (int32 * int64) []) = Array.zeroCreate<struct (int32 * │
00:00:14 #600 [Verbose] > │ int64)> (v2) │
00:00:14 #601 [Verbose] > │ let v4 : int32 = 0 │
00:00:14 #602 [Verbose] > │ let v5 : int32 = method26(v3, v0, v4) │
00:00:14 #603 [Verbose] > │ v3 │
00:00:14 #604 [Verbose] > │ and method27 (v0 : UH2, v1 : UH6, v2 : int32) : struct (UH6 * int32) = │
00:00:14 #605 [Verbose] > │ match v0 with │
00:00:14 #606 [Verbose] > │ | UH2_0(v3, v4) -> (* Cons *) │
00:00:14 #607 [Verbose] > │ let v5 : int32 = v2 + 1 │
00:00:14 #608 [Verbose] > │ let v6 : UH6 = UH6_0(v2, v3, v1) │
00:00:14 #609 [Verbose] > │ method27(v4, v6, v5) │
00:00:14 #610 [Verbose] > │ | UH2_1 -> (* Nil *) │
00:00:14 #611 [Verbose] > │ struct (v1, v2) │
00:00:14 #612 [Verbose] > │ and method28 (v0 : UH6, v1 : UH6) : UH6 = │
00:00:14 #613 [Verbose] > │ match v0 with │
00:00:14 #614 [Verbose] > │ | UH6_0(v2, v3, v4) -> (* Cons *) │
00:00:14 #615 [Verbose] > │ let v5 : UH6 = UH6_0(v2, v3, v1) │
00:00:14 #616 [Verbose] > │ method28(v4, v5) │
00:00:14 #617 [Verbose] > │ | UH6_1 -> (* Nil *) │
00:00:14 #618 [Verbose] > │ v1 │
00:00:14 #619 [Verbose] > │ and method29 (v0 : Map<int32, int64>, v1 : UH6, v2 : UH2) : UH2 = │
00:00:14 #620 [Verbose] > │ match v1 with │
00:00:14 #621 [Verbose] > │ | UH6_0(v3, v4, v5) -> (* Cons *) │
00:00:14 #622 [Verbose] > │ let v6 : UH2 = method29(v0, v5, v2) │
00:00:14 #623 [Verbose] > │ let v7 : int64 = v0.[v3] │
00:00:14 #624 [Verbose] > │ let v8 : int32 = int32 v7 │
00:00:14 #625 [Verbose] > │ let v9 : string = v4.PadRight v8 │
00:00:14 #626 [Verbose] > │ UH2_0(v9, v6) │
00:00:14 #627 [Verbose] > │ | UH6_1 -> (* Nil *) │
00:00:14 #628 [Verbose] > │ v2 │
00:00:14 #629 [Verbose] > │ and method31 (v0 : UH2, v1 : int32) : int32 = │
00:00:14 #630 [Verbose] > │ match v0 with │
00:00:14 #631 [Verbose] > │ | UH2_0(v2, v3) -> (* Cons *) │
00:00:14 #632 [Verbose] > │ let v4 : int32 = v1 + 1 │
00:00:14 #633 [Verbose] > │ method31(v3, v4) │
00:00:14 #634 [Verbose] > │ | UH2_1 -> (* Nil *) │
00:00:14 #635 [Verbose] > │ v1 │
00:00:14 #636 [Verbose] > │ and method32 (v0 : (string []), v1 : UH2, v2 : int32) : int32 = │
00:00:14 #637 [Verbose] > │ match v1 with │
00:00:14 #638 [Verbose] > │ | UH2_0(v3, v4) -> (* Cons *) │
00:00:14 #639 [Verbose] > │ v0.[int v2] <- v3 │
00:00:14 #640 [Verbose] > │ let v5 : int32 = v2 + 1 │
00:00:14 #641 [Verbose] > │ method32(v0, v4, v5) │
00:00:14 #642 [Verbose] > │ | UH2_1 -> (* Nil *) │
00:00:14 #643 [Verbose] > │ v2 │
00:00:14 #644 [Verbose] > │ and method30 (v0 : UH2) : (string []) = │
00:00:14 #645 [Verbose] > │ let v1 : int32 = 0 │
00:00:14 #646 [Verbose] > │ let v2 : int32 = method31(v0, v1) │
00:00:14 #647 [Verbose] > │ let v3 : (string []) = Array.zeroCreate<string> (v2) │
00:00:14 #648 [Verbose] > │ let v4 : int32 = 0 │
00:00:14 #649 [Verbose] > │ let v5 : int32 = method32(v3, v0, v4) │
00:00:14 #650 [Verbose] > │ v3 │
00:00:14 #651 [Verbose] > │ and method34 (v0 : UH5, v1 : uint64) : uint64 = │
00:00:14 #652 [Verbose] > │ match v0 with │
00:00:14 #653 [Verbose] > │ | UH5_0(v2, v3, v4) -> (* Cons *) │
00:00:14 #654 [Verbose] > │ let v5 : uint64 = v1 + 1UL │
00:00:14 #655 [Verbose] > │ method34(v4, v5) │
00:00:14 #656 [Verbose] > │ | UH5_1 -> (* Nil *) │
00:00:14 #657 [Verbose] > │ v1 │
00:00:14 #658 [Verbose] > │ and method35 (v0 : (struct (int32 * int64) []), v1 : UH5, v2 : uint64) : │
00:00:14 #659 [Verbose] > │ uint64 = │
00:00:14 #660 [Verbose] > │ match v1 with │
00:00:14 #661 [Verbose] > │ | UH5_0(v3, v4, v5) -> (* Cons *) │
00:00:14 #662 [Verbose] > │ v0.[int v2] <- struct (v3, v4) │
00:00:14 #663 [Verbose] > │ let v6 : uint64 = v2 + 1UL │
00:00:14 #664 [Verbose] > │ method35(v0, v5, v6) │
00:00:14 #665 [Verbose] > │ | UH5_1 -> (* Nil *) │
00:00:14 #666 [Verbose] > │ v2 │
00:00:14 #667 [Verbose] > │ and method33 (v0 : UH5) : (struct (int32 * int64) []) = │
00:00:14 #668 [Verbose] > │ let v1 : uint64 = 0UL │
00:00:14 #669 [Verbose] > │ let v2 : uint64 = method34(v0, v1) │
00:00:14 #670 [Verbose] > │ let v3 : (struct (int32 * int64) []) = Array.zeroCreate<struct (int32 * │
00:00:14 #671 [Verbose] > │ int64)> (System.Convert.ToInt32(v2)) │
00:00:14 #672 [Verbose] > │ let v4 : uint64 = 0UL │
00:00:14 #673 [Verbose] > │ let v5 : uint64 = method35(v3, v0, v4) │
00:00:14 #674 [Verbose] > │ v3 │
00:00:14 #675 [Verbose] > │ and closure6 () struct (v0 : int32, v1 : int64) : int64 = │
00:00:14 #676 [Verbose] > │ v1 │
00:00:14 #677 [Verbose] > │ and closure0 () () : unit = │
00:00:14 #678 [Verbose] > │ let v0 : (unit -> unit) = closure0() │
00:00:14 #679 [Verbose] > │ let v1 : string = nameof v0 │
00:00:14 #680 [Verbose] > │ let v2 : string = "" │
00:00:14 #681 [Verbose] > │ System.Console.WriteLine v2 │
00:00:14 #682 [Verbose] > │ System.Console.WriteLine v2 │
00:00:14 #683 [Verbose] > │ let v3 : string = $"Test: {v1}" │
00:00:14 #684 [Verbose] > │ System.Console.WriteLine v3 │
00:00:14 #685 [Verbose] > │ let v4 : string = "a" │
00:00:14 #686 [Verbose] > │ let v5 : string = "b" │
00:00:14 #687 [Verbose] > │ let v6 : UH0 = UH0_1 │
00:00:14 #688 [Verbose] > │ let v7 : UH0 = UH0_0(v5, v5, v5, v6) │
00:00:14 #689 [Verbose] > │ let v8 : UH0 = UH0_0(v4, v4, v4, v7) │
00:00:14 #690 [Verbose] > │ let v9 : (struct (string * string * string) []) = method1(v8) │
00:00:14 #691 [Verbose] > │ let v10 : uint64 = System.Convert.ToUInt64 v9.Length │
00:00:14 #692 [Verbose] > │ let v11 : (struct (string * string * string * (int64 [])) []) = │
00:00:14 #693 [Verbose] > │ Array.zeroCreate<struct (string * string * string * (int64 []))> │
00:00:14 #694 [Verbose] > │ (System.Convert.ToInt32(v10)) │
00:00:14 #695 [Verbose] > │ let v12 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:14 #696 [Verbose] > │ while method4(v10, v12) do │
00:00:14 #697 [Verbose] > │ let v14 : uint64 = v12.l0 │
00:00:14 #698 [Verbose] > │ let struct (v15 : string, v16 : string, v17 : string) = v9.[int v14] │
00:00:14 #699 [Verbose] > │ let v18 : string = $"%A{struct (v15, v16)}" │
00:00:14 #700 [Verbose] > │ System.Console.WriteLine v2 │
00:00:14 #701 [Verbose] > │ let v19 : string = $"Solution: {v18} " │
00:00:14 #702 [Verbose] > │ System.Console.WriteLine v19 │
00:00:14 #703 [Verbose] > │ let v20 : int32 = 0 │
00:00:14 #704 [Verbose] > │ let v21 : string = "A" │
00:00:14 #705 [Verbose] > │ let v22 : (struct (string * string) -> string) = closure1() │
00:00:14 #706 [Verbose] > │ let v23 : int32 = 1 │
00:00:14 #707 [Verbose] > │ let v24 : string = "B" │
00:00:14 #708 [Verbose] > │ let v25 : (struct (string * string) -> string) = closure2() │
00:00:14 #709 [Verbose] > │ let v26 : UH1 = UH1_1 │
00:00:14 #710 [Verbose] > │ let v27 : UH1 = UH1_0(v23, v24, v25, v26) │
00:00:14 #711 [Verbose] > │ let v28 : UH1 = UH1_0(v20, v21, v22, v27) │
00:00:14 #712 [Verbose] > │ let v29 : (struct (int32 * string * (struct (string * string) -> │
00:00:14 #713 [Verbose] > │ string)) []) = method5(v28) │
00:00:14 #714 [Verbose] > │ let v30 : uint64 = System.Convert.ToUInt64 v29.Length │
00:00:14 #715 [Verbose] > │ let v31 : (struct (string * int64) []) = Array.zeroCreate<struct │
00:00:14 #716 [Verbose] > │ (string * int64)> (System.Convert.ToInt32(v30)) │
00:00:14 #717 [Verbose] > │ let v32 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:14 #718 [Verbose] > │ while method4(v30, v32) do │
00:00:14 #719 [Verbose] > │ let v34 : uint64 = v32.l0 │
00:00:14 #720 [Verbose] > │ let struct (v35 : int32, v36 : string, v37 : (struct (string * │
00:00:14 #721 [Verbose] > │ string) -> string)) = v29.[int v34] │
00:00:14 #722 [Verbose] > │ let mutable result = None │
00:00:14 #723 [Verbose] > │ #if FABLE_COMPILER_RUST │
00:00:14 #724 [Verbose] > │ #if !WASM │
00:00:14 #725 [Verbose] > │ () │
00:00:14 #726 [Verbose] > │ #else │
00:00:14 #727 [Verbose] > │ () │
00:00:14 #728 [Verbose] > │ #endif │
00:00:14 #729 [Verbose] > │ #else │
00:00:14 #730 [Verbose] > │ System.GC.Collect () │
00:00:14 #731 [Verbose] > │ () │
00:00:14 #732 [Verbose] > │ #endif │
00:00:14 #733 [Verbose] > │ |> fun x -> result <- Some x │
00:00:14 #734 [Verbose] > │ result |> Option.get │
00:00:14 #735 [Verbose] > │ let v38 : (unit -> System.Diagnostics.Stopwatch) = │
00:00:14 #736 [Verbose] > │ System.Diagnostics.Stopwatch │
00:00:14 #737 [Verbose] > │ let v39 : System.Diagnostics.Stopwatch = v38 () │
00:00:14 #738 [Verbose] > │ v39.Start () │
00:00:14 #739 [Verbose] > │ let v40 : int64 = v39.ElapsedMilliseconds │
00:00:14 #740 [Verbose] > │ let v41 : (int32 []) = Array.zeroCreate<int32> (2000001) │
00:00:14 #741 [Verbose] > │ let v42 : Mut1 = {l0 = 0} : Mut1 │
00:00:14 #742 [Verbose] > │ while method8(v42) do │
00:00:14 #743 [Verbose] > │ let v44 : int32 = v42.l0 │
00:00:14 #744 [Verbose] > │ v41.[int v44] <- v44 │
00:00:14 #745 [Verbose] > │ let v45 : int32 = v44 + 1 │
00:00:14 #746 [Verbose] > │ v42.l0 <- v45 │
00:00:14 #747 [Verbose] > │ () │
00:00:14 #748 [Verbose] > │ let v46 : (int32 -> string) = closure3(v15, v16, v37) │
00:00:14 #749 [Verbose] > │ let v47 : (string []) = v41 |> Array.Parallel.map v46 │
00:00:14 #750 [Verbose] > │ let v48 : int32 = v47.Length │
00:00:14 #751 [Verbose] > │ let v49 : int32 = v48 - 1 │
00:00:14 #752 [Verbose] > │ let v50 : string = v47.[int v49] │
00:00:14 #753 [Verbose] > │ let v51 : int64 = v39.ElapsedMilliseconds │
00:00:14 #754 [Verbose] > │ let v52 : int64 = v51 - v40 │
00:00:14 #755 [Verbose] > │ let v53 : string = $"Test case {v35 + 1}. {v36}. Time: {v52} " │
00:00:14 #756 [Verbose] > │ System.Console.WriteLine v53 │
00:00:14 #757 [Verbose] > │ v31.[int v34] <- struct (v50, v52) │
00:00:14 #758 [Verbose] > │ let v54 : uint64 = v34 + 1UL │
00:00:14 #759 [Verbose] > │ v32.l0 <- v54 │
00:00:14 #760 [Verbose] > │ () │
00:00:14 #761 [Verbose] > │ let v55 : uint64 = System.Convert.ToUInt64 v31.Length │
00:00:14 #762 [Verbose] > │ let v56 : (string []) = Array.zeroCreate<string> │
00:00:14 #763 [Verbose] > │ (System.Convert.ToInt32(v55)) │
00:00:14 #764 [Verbose] > │ let v57 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:14 #765 [Verbose] > │ while method4(v55, v57) do │
00:00:14 #766 [Verbose] > │ let v59 : uint64 = v57.l0 │
00:00:14 #767 [Verbose] > │ let struct (v60 : string, v61 : int64) = v31.[int v59] │
00:00:14 #768 [Verbose] > │ v56.[int v59] <- v60 │
00:00:14 #769 [Verbose] > │ let v62 : uint64 = v59 + 1UL │
00:00:14 #770 [Verbose] > │ v57.l0 <- v62 │
00:00:14 #771 [Verbose] > │ () │
00:00:14 #772 [Verbose] > │ let v63 : uint64 = System.Convert.ToUInt64 v56.Length │
00:00:14 #773 [Verbose] > │ let v64 : bool = v63 <= 1UL │
00:00:14 #774 [Verbose] > │ if v64 then │
00:00:14 #775 [Verbose] > │ () │
00:00:14 #776 [Verbose] > │ else │
00:00:14 #777 [Verbose] > │ let v65 : string = v56.[int 0UL] │
00:00:14 #778 [Verbose] > │ let v66 : uint64 = 0UL │
00:00:14 #779 [Verbose] > │ let v67 : bool = method9(v65, v56, v66) │
00:00:14 #780 [Verbose] > │ if v67 then │
00:00:14 #781 [Verbose] > │ () │
00:00:14 #782 [Verbose] > │ else │
00:00:14 #783 [Verbose] > │ let v68 : string = $"Challenge error: {v56}" │
00:00:14 #784 [Verbose] > │ failwith<unit> v68 │
00:00:14 #785 [Verbose] > │ let v69 : string = $"%A{v17}" │
00:00:14 #786 [Verbose] > │ let v70 : (string []) = Array.zeroCreate<string> │
00:00:14 #787 [Verbose] > │ (System.Convert.ToInt32(v55)) │
00:00:14 #788 [Verbose] > │ let v71 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:14 #789 [Verbose] > │ while method4(v55, v71) do │
00:00:14 #790 [Verbose] > │ let v73 : uint64 = v71.l0 │
00:00:14 #791 [Verbose] > │ let struct (v74 : string, v75 : int64) = v31.[int v73] │
00:00:14 #792 [Verbose] > │ v70.[int v73] <- v74 │
00:00:14 #793 [Verbose] > │ let v76 : uint64 = v73 + 1UL │
00:00:14 #794 [Verbose] > │ v71.l0 <- v76 │
00:00:14 #795 [Verbose] > │ () │
00:00:14 #796 [Verbose] > │ let v77 : string = v70.[int 0UL] │
00:00:14 #797 [Verbose] > │ let v78 : string = $"%A{v77}" │
00:00:14 #798 [Verbose] > │ let v79 : (int64 []) = Array.zeroCreate<int64> │
00:00:14 #799 [Verbose] > │ (System.Convert.ToInt32(v55)) │
00:00:14 #800 [Verbose] > │ let v80 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:14 #801 [Verbose] > │ while method4(v55, v80) do │
00:00:14 #802 [Verbose] > │ let v82 : uint64 = v80.l0 │
00:00:14 #803 [Verbose] > │ let struct (v83 : string, v84 : int64) = v31.[int v82] │
00:00:14 #804 [Verbose] > │ v79.[int v82] <- v84 │
00:00:14 #805 [Verbose] > │ let v85 : uint64 = v82 + 1UL │
00:00:14 #806 [Verbose] > │ v80.l0 <- v85 │
00:00:14 #807 [Verbose] > │ () │
00:00:14 #808 [Verbose] > │ v11.[int v14] <- struct (v69, v18, v78, v79) │
00:00:14 #809 [Verbose] > │ let v86 : uint64 = v14 + 1UL │
00:00:14 #810 [Verbose] > │ v12.l0 <- v86 │
00:00:14 #811 [Verbose] > │ () │
00:00:14 #812 [Verbose] > │ let v87 : uint64 = System.Convert.ToUInt64 v11.Length │
00:00:14 #813 [Verbose] > │ let v88 : (struct (UH2 * US0) []) = Array.zeroCreate<struct (UH2 * US0)> │
00:00:14 #814 [Verbose] > │ (System.Convert.ToInt32(v87)) │
00:00:14 #815 [Verbose] > │ let v89 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:14 #816 [Verbose] > │ while method4(v87, v89) do │
00:00:14 #817 [Verbose] > │ let v91 : uint64 = v89.l0 │
00:00:14 #818 [Verbose] > │ let struct (v92 : string, v93 : string, v94 : string, v95 : (int64 [ │
00:00:14 #819 [Verbose] > │ ])) = v11.[int v91] │
00:00:14 #820 [Verbose] > │ let v96 : uint64 = System.Convert.ToUInt64 v95.Length │
00:00:14 #821 [Verbose] > │ let v97 : UH3 = UH3_1 │
00:00:14 #822 [Verbose] > │ let v98 : Mut2 = {l0 = 0UL; l1 = v97; l2 = 0L} : Mut2 │
00:00:14 #823 [Verbose] > │ while method10(v96, v98) do │
00:00:14 #824 [Verbose] > │ let v100 : uint64 = v98.l0 │
00:00:14 #825 [Verbose] > │ let struct (v101 : UH3, v102 : int64) = v98.l1, v98.l2 │
00:00:14 #826 [Verbose] > │ let v103 : int64 = v95.[int v100] │
00:00:14 #827 [Verbose] > │ let v104 : int64 = v102 + 1L │
00:00:14 #828 [Verbose] > │ let v105 : uint64 = v100 + 1UL │
00:00:14 #829 [Verbose] > │ let v106 : UH3 = UH3_0(v102, v103, v101) │
00:00:14 #830 [Verbose] > │ v98.l0 <- v105 │
00:00:14 #831 [Verbose] > │ v98.l1 <- v106 │
00:00:14 #832 [Verbose] > │ v98.l2 <- v104 │
00:00:14 #833 [Verbose] > │ () │
00:00:14 #834 [Verbose] > │ let struct (v107 : UH3, v108 : int64) = v98.l1, v98.l2 │
00:00:14 #835 [Verbose] > │ let v109 : UH3 = UH3_1 │
00:00:14 #836 [Verbose] > │ let v110 : UH3 = method11(v107, v109) │
00:00:14 #837 [Verbose] > │ let v111 : (struct (int64 * int64) []) = method12(v110) │
00:00:14 #838 [Verbose] > │ let v112 : int32 = v111.Length │
00:00:14 #839 [Verbose] > │ let v113 : (struct (int64 * int64) []) = Array.zeroCreate<struct │
00:00:14 #840 [Verbose] > │ (int64 * int64)> (v112) │
00:00:14 #841 [Verbose] > │ let v114 : Mut1 = {l0 = 0} : Mut1 │
00:00:14 #842 [Verbose] > │ while method15(v112, v114) do │
00:00:14 #843 [Verbose] > │ let v116 : int32 = v114.l0 │
00:00:14 #844 [Verbose] > │ let struct (v117 : int64, v118 : int64) = v111.[int v116] │
00:00:14 #845 [Verbose] > │ let v119 : int64 = v117 + 1L │
00:00:14 #846 [Verbose] > │ v113.[int v116] <- struct (v119, v118) │
00:00:14 #847 [Verbose] > │ let v120 : int32 = v116 + 1 │
00:00:14 #848 [Verbose] > │ v114.l0 <- v120 │
00:00:14 #849 [Verbose] > │ () │
00:00:14 #850 [Verbose] > │ let v121 : (struct (int64 * int64) -> int64) = closure4() │
00:00:14 #851 [Verbose] > │ let v122 : (struct (int64 * int64) []) = v113 |> Array.sortBy v121 │
00:00:14 #852 [Verbose] > │ let struct (v123 : int64, v124 : int64) = v122.[int 0] │
00:00:14 #853 [Verbose] > │ let v125 : string = $"%A{struct (v123, v124)}" │
00:00:14 #854 [Verbose] > │ let v126 : bool = v92 = v94 │
00:00:14 #855 [Verbose] > │ let v131 : US0 = │
00:00:14 #856 [Verbose] > │ if v126 then │
00:00:14 #857 [Verbose] > │ let v127 : System.ConsoleColor = │
00:00:14 #858 [Verbose] > │ System.ConsoleColor.DarkGreen │
00:00:14 #859 [Verbose] > │ US0_1(v127) │
00:00:14 #860 [Verbose] > │ else │
00:00:14 #861 [Verbose] > │ let v129 : System.ConsoleColor = System.ConsoleColor.DarkRed │
00:00:14 #862 [Verbose] > │ US0_1(v129) │
00:00:14 #863 [Verbose] > │ let v132 : UH2 = UH2_1 │
00:00:14 #864 [Verbose] > │ let v133 : UH2 = UH2_0(v125, v132) │
00:00:14 #865 [Verbose] > │ let v134 : UH2 = UH2_0(v94, v133) │
00:00:14 #866 [Verbose] > │ let v135 : UH2 = UH2_0(v92, v134) │
00:00:14 #867 [Verbose] > │ let v136 : UH2 = UH2_0(v93, v135) │
00:00:14 #868 [Verbose] > │ v88.[int v91] <- struct (v136, v131) │
00:00:14 #869 [Verbose] > │ let v137 : uint64 = v91 + 1UL │
00:00:14 #870 [Verbose] > │ v89.l0 <- v137 │
00:00:14 #871 [Verbose] > │ () │
00:00:14 #872 [Verbose] > │ let v138 : string = "Input" │
00:00:14 #873 [Verbose] > │ let v139 : string = "Expected" │
00:00:14 #874 [Verbose] > │ let v140 : string = "Result" │
00:00:14 #875 [Verbose] > │ let v141 : string = "Best" │
00:00:14 #876 [Verbose] > │ let v142 : UH2 = UH2_1 │
00:00:14 #877 [Verbose] > │ let v143 : UH2 = UH2_0(v141, v142) │
00:00:14 #878 [Verbose] > │ let v144 : UH2 = UH2_0(v140, v143) │
00:00:14 #879 [Verbose] > │ let v145 : UH2 = UH2_0(v139, v144) │
00:00:14 #880 [Verbose] > │ let v146 : UH2 = UH2_0(v138, v145) │
00:00:14 #881 [Verbose] > │ let v147 : US0 = US0_0 │
00:00:14 #882 [Verbose] > │ let v148 : string = "---" │
00:00:14 #883 [Verbose] > │ let v149 : UH2 = UH2_1 │
00:00:14 #884 [Verbose] > │ let v150 : UH2 = UH2_0(v148, v149) │
00:00:14 #885 [Verbose] > │ let v151 : UH2 = UH2_0(v148, v150) │
00:00:14 #886 [Verbose] > │ let v152 : UH2 = UH2_0(v148, v151) │
00:00:14 #887 [Verbose] > │ let v153 : UH2 = UH2_0(v148, v152) │
00:00:14 #888 [Verbose] > │ let v154 : US0 = US0_0 │
00:00:14 #889 [Verbose] > │ let v155 : UH4 = UH4_1 │
00:00:14 #890 [Verbose] > │ let v156 : UH4 = UH4_0(v153, v154, v155) │
00:00:14 #891 [Verbose] > │ let v157 : UH4 = UH4_0(v146, v147, v156) │
00:00:14 #892 [Verbose] > │ let v158 : (struct (UH2 * US0) []) = method16(v157) │
00:00:14 #893 [Verbose] > │ let v159 : uint64 = System.Convert.ToUInt64 v158.Length │
00:00:14 #894 [Verbose] > │ let v160 : uint64 = System.Convert.ToUInt64 v88.Length │
00:00:14 #895 [Verbose] > │ let v161 : uint64 = v159 + v160 │
00:00:14 #896 [Verbose] > │ let v162 : (struct (UH2 * US0) []) = Array.zeroCreate<struct (UH2 * │
00:00:14 #897 [Verbose] > │ US0)> (System.Convert.ToInt32(v161)) │
00:00:14 #898 [Verbose] > │ let v163 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:14 #899 [Verbose] > │ while method4(v161, v163) do │
00:00:14 #900 [Verbose] > │ let v165 : uint64 = v163.l0 │
00:00:14 #901 [Verbose] > │ let v166 : bool = v165 < v159 │
00:00:14 #902 [Verbose] > │ let struct (v172 : UH2, v173 : US0) = │
00:00:14 #903 [Verbose] > │ if v166 then │
00:00:14 #904 [Verbose] > │ let struct (v167 : UH2, v168 : US0) = v158.[int v165] │
00:00:14 #905 [Verbose] > │ struct (v167, v168) │
00:00:14 #906 [Verbose] > │ else │
00:00:14 #907 [Verbose] > │ let v169 : uint64 = v165 - v159 │
00:00:14 #908 [Verbose] > │ let struct (v170 : UH2, v171 : US0) = v88.[int v169] │
00:00:14 #909 [Verbose] > │ struct (v170, v171) │
00:00:14 #910 [Verbose] > │ v162.[int v165] <- struct (v172, v173) │
00:00:14 #911 [Verbose] > │ let v174 : uint64 = v165 + 1UL │
00:00:14 #912 [Verbose] > │ v163.l0 <- v174 │
00:00:14 #913 [Verbose] > │ () │
00:00:14 #914 [Verbose] > │ let v175 : uint64 = System.Convert.ToUInt64 v162.Length │
00:00:14 #915 [Verbose] > │ let v176 : ((string []) []) = Array.zeroCreate<(string [])> │
00:00:14 #916 [Verbose] > │ (System.Convert.ToInt32(v175)) │
00:00:14 #917 [Verbose] > │ let v177 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:14 #918 [Verbose] > │ while method4(v175, v177) do │
00:00:14 #919 [Verbose] > │ let v179 : uint64 = v177.l0 │
00:00:14 #920 [Verbose] > │ let struct (v180 : UH2, v181 : US0) = v162.[int v179] │
00:00:14 #921 [Verbose] > │ let v182 : (string []) = method19(v180) │
00:00:14 #922 [Verbose] > │ v176.[int v179] <- v182 │
00:00:14 #923 [Verbose] > │ let v183 : uint64 = v179 + 1UL │
00:00:14 #924 [Verbose] > │ v177.l0 <- v183 │
00:00:14 #925 [Verbose] > │ () │
00:00:14 #926 [Verbose] > │ let v184 : ((string []) []) = v176 |> Array.transpose │
00:00:14 #927 [Verbose] > │ let v185 : uint64 = System.Convert.ToUInt64 v184.Length │
00:00:14 #928 [Verbose] > │ let v186 : (int64 []) = Array.zeroCreate<int64> │
00:00:14 #929 [Verbose] > │ (System.Convert.ToInt32(v185)) │
00:00:14 #930 [Verbose] > │ let v187 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:14 #931 [Verbose] > │ while method4(v185, v187) do │
00:00:14 #932 [Verbose] > │ let v189 : uint64 = v187.l0 │
00:00:14 #933 [Verbose] > │ let v190 : (string []) = v184.[int v189] │
00:00:14 #934 [Verbose] > │ let v191 : uint64 = System.Convert.ToUInt64 v190.Length │
00:00:14 #935 [Verbose] > │ let v192 : (int64 []) = Array.zeroCreate<int64> │
00:00:14 #936 [Verbose] > │ (System.Convert.ToInt32(v191)) │
00:00:14 #937 [Verbose] > │ let v193 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:14 #938 [Verbose] > │ while method4(v191, v193) do │
00:00:14 #939 [Verbose] > │ let v195 : uint64 = v193.l0 │
00:00:14 #940 [Verbose] > │ let v196 : string = v190.[int v195] │
00:00:14 #941 [Verbose] > │ let v197 : int64 = System.Convert.ToInt64 v196.Length │
00:00:14 #942 [Verbose] > │ v192.[int v195] <- v197 │
00:00:14 #943 [Verbose] > │ let v198 : uint64 = v195 + 1UL │
00:00:14 #944 [Verbose] > │ v193.l0 <- v198 │
00:00:14 #945 [Verbose] > │ () │
00:00:14 #946 [Verbose] > │ let v199 : (int64 []) = v192 |> Array.sortDescending │
00:00:14 #947 [Verbose] > │ let v200 : int64 option = v199 |> Array.tryItem 0 │
00:00:14 #948 [Verbose] > │ let v201 : (int64 -> US1) = closure5() │
00:00:14 #949 [Verbose] > │ let v202 : US1 = US1_0 │
00:00:14 #950 [Verbose] > │ let v203 : US1 = v200 |> Option.map v201 |> Option.defaultValue v202 │
00:00:14 #951 [Verbose] > │ let v206 : int64 = │
00:00:14 #952 [Verbose] > │ match v203 with │
00:00:14 #953 [Verbose] > │ | US1_0 -> (* None *) │
00:00:14 #954 [Verbose] > │ 0L │
00:00:14 #955 [Verbose] > │ | US1_1(v204) -> (* Some *) │
00:00:14 #956 [Verbose] > │ v204 │
00:00:14 #957 [Verbose] > │ v186.[int v189] <- v206 │
00:00:14 #958 [Verbose] > │ let v207 : uint64 = v189 + 1UL │
00:00:14 #959 [Verbose] > │ v187.l0 <- v207 │
00:00:14 #960 [Verbose] > │ () │
00:00:14 #961 [Verbose] > │ let v208 : uint64 = System.Convert.ToUInt64 v186.Length │
00:00:14 #962 [Verbose] > │ let v209 : UH5 = UH5_1 │
00:00:14 #963 [Verbose] > │ let v210 : Mut3 = {l0 = 0UL; l1 = v209; l2 = 0} : Mut3 │
00:00:14 #964 [Verbose] > │ while method22(v208, v210) do │
00:00:14 #965 [Verbose] > │ let v212 : uint64 = v210.l0 │
00:00:14 #966 [Verbose] > │ let struct (v213 : UH5, v214 : int32) = v210.l1, v210.l2 │
00:00:14 #967 [Verbose] > │ let v215 : int64 = v186.[int v212] │
00:00:14 #968 [Verbose] > │ let v216 : int32 = v214 + 1 │
00:00:14 #969 [Verbose] > │ let v217 : uint64 = v212 + 1UL │
00:00:14 #970 [Verbose] > │ let v218 : UH5 = UH5_0(v214, v215, v213) │
00:00:14 #971 [Verbose] > │ v210.l0 <- v217 │
00:00:14 #972 [Verbose] > │ v210.l1 <- v218 │
00:00:14 #973 [Verbose] > │ v210.l2 <- v216 │
00:00:14 #974 [Verbose] > │ () │
00:00:14 #975 [Verbose] > │ let struct (v219 : UH5, v220 : int32) = v210.l1, v210.l2 │
00:00:14 #976 [Verbose] > │ let v221 : UH5 = UH5_1 │
00:00:14 #977 [Verbose] > │ let v222 : UH5 = method23(v219, v221) │
00:00:14 #978 [Verbose] > │ let v223 : (struct (int32 * int64) []) = method24(v222) │
00:00:14 #979 [Verbose] > │ let v224 : Map<int32, int64> = v223 |> Array.map (fun (struct (a, b)) -> │
00:00:14 #980 [Verbose] > │ a, b) |> Map.ofArray │
00:00:14 #981 [Verbose] > │ let v225 : (struct ((string []) * US0) []) = Array.zeroCreate<struct │
00:00:14 #982 [Verbose] > │ ((string []) * US0)> (System.Convert.ToInt32(v175)) │
00:00:14 #983 [Verbose] > │ let v226 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:14 #984 [Verbose] > │ while method4(v175, v226) do │
00:00:14 #985 [Verbose] > │ let v228 : uint64 = v226.l0 │
00:00:14 #986 [Verbose] > │ let struct (v229 : UH2, v230 : US0) = v162.[int v228] │
00:00:14 #987 [Verbose] > │ let v231 : UH6 = UH6_1 │
00:00:14 #988 [Verbose] > │ let v232 : int32 = 0 │
00:00:14 #989 [Verbose] > │ let struct (v233 : UH6, v234 : int32) = method27(v229, v231, v232) │
00:00:14 #990 [Verbose] > │ let v235 : UH6 = UH6_1 │
00:00:14 #991 [Verbose] > │ let v236 : UH6 = method28(v233, v235) │
00:00:14 #992 [Verbose] > │ let v237 : UH2 = UH2_1 │
00:00:14 #993 [Verbose] > │ let v238 : UH2 = method29(v224, v236, v237) │
00:00:14 #994 [Verbose] > │ let v239 : (string []) = method30(v238) │
00:00:14 #995 [Verbose] > │ v225.[int v228] <- struct (v239, v230) │
00:00:14 #996 [Verbose] > │ let v240 : uint64 = v228 + 1UL │
00:00:14 #997 [Verbose] > │ v226.l0 <- v240 │
00:00:14 #998 [Verbose] > │ () │
00:00:14 #999 [Verbose] > │ System.Console.WriteLine v2 │
00:00:14 #1000 [Verbose] > │ let v241 : uint64 = System.Convert.ToUInt64 v225.Length │
00:00:14 #1001 [Verbose] > │ let v242 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:14 #1002 [Verbose] > │ while method4(v241, v242) do │
00:00:14 #1003 [Verbose] > │ let v244 : uint64 = v242.l0 │
00:00:14 #1004 [Verbose] > │ let struct (v245 : (string []), v246 : US0) = v225.[int v244] │
00:00:14 #1005 [Verbose] > │ match v246 with │
00:00:14 #1006 [Verbose] > │ | US0_0 -> (* None *) │
00:00:14 #1007 [Verbose] > │ let mutable result = None │
00:00:14 #1008 [Verbose] > │ #if FABLE_COMPILER_RUST │
00:00:14 #1009 [Verbose] > │ #if !WASM │
00:00:14 #1010 [Verbose] > │ () │
00:00:14 #1011 [Verbose] > │ #else │
00:00:14 #1012 [Verbose] > │ () │
00:00:14 #1013 [Verbose] > │ #endif │
00:00:14 #1014 [Verbose] > │ #else │
00:00:14 #1015 [Verbose] > │ System.Console.ResetColor () │
00:00:14 #1016 [Verbose] > │ () │
00:00:14 #1017 [Verbose] > │ #endif │
00:00:14 #1018 [Verbose] > │ |> fun x -> result <- Some x │
00:00:14 #1019 [Verbose] > │ result |> Option.get │
00:00:14 #1020 [Verbose] > │ () │
00:00:14 #1021 [Verbose] > │ | US0_1(v247) -> (* Some *) │
00:00:14 #1022 [Verbose] > │ let mutable result = None │
00:00:14 #1023 [Verbose] > │ #if FABLE_COMPILER_RUST │
00:00:14 #1024 [Verbose] > │ #if !WASM │
00:00:14 #1025 [Verbose] > │ () │
00:00:14 #1026 [Verbose] > │ #else │
00:00:14 #1027 [Verbose] > │ () │
00:00:14 #1028 [Verbose] > │ #endif │
00:00:14 #1029 [Verbose] > │ #else │
00:00:14 #1030 [Verbose] > │ System.Console.ForegroundColor <- v247 │
00:00:14 #1031 [Verbose] > │ () │
00:00:14 #1032 [Verbose] > │ #endif │
00:00:14 #1033 [Verbose] > │ |> fun x -> result <- Some x │
00:00:14 #1034 [Verbose] > │ result |> Option.get │
00:00:14 #1035 [Verbose] > │ () │
00:00:14 #1036 [Verbose] > │ let v248 : string = "\t| " │
00:00:14 #1037 [Verbose] > │ let v249 : string = System.String.Join (v248, v245) │
00:00:14 #1038 [Verbose] > │ System.Console.WriteLine v249 │
00:00:14 #1039 [Verbose] > │ let mutable result = None │
00:00:14 #1040 [Verbose] > │ #if FABLE_COMPILER_RUST │
00:00:14 #1041 [Verbose] > │ #if !WASM │
00:00:14 #1042 [Verbose] > │ () │
00:00:14 #1043 [Verbose] > │ #else │
00:00:14 #1044 [Verbose] > │ () │
00:00:14 #1045 [Verbose] > │ #endif │
00:00:14 #1046 [Verbose] > │ #else │
00:00:14 #1047 [Verbose] > │ System.Console.ResetColor () │
00:00:14 #1048 [Verbose] > │ () │
00:00:14 #1049 [Verbose] > │ #endif │
00:00:14 #1050 [Verbose] > │ |> fun x -> result <- Some x │
00:00:14 #1051 [Verbose] > │ result |> Option.get │
00:00:14 #1052 [Verbose] > │ let v250 : uint64 = v244 + 1UL │
00:00:14 #1053 [Verbose] > │ v242.l0 <- v250 │
00:00:14 #1054 [Verbose] > │ () │
00:00:14 #1055 [Verbose] > │ let v251 : ((float []) []) = Array.zeroCreate<(float [])> │
00:00:14 #1056 [Verbose] > │ (System.Convert.ToInt32(v87)) │
00:00:14 #1057 [Verbose] > │ let v252 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:14 #1058 [Verbose] > │ while method4(v87, v252) do │
00:00:14 #1059 [Verbose] > │ let v254 : uint64 = v252.l0 │
00:00:14 #1060 [Verbose] > │ let struct (v255 : string, v256 : string, v257 : string, v258 : │
00:00:14 #1061 [Verbose] > │ (int64 [])) = v11.[int v254] │
00:00:14 #1062 [Verbose] > │ let v259 : (int64 -> float) = float │
00:00:14 #1063 [Verbose] > │ let v260 : uint64 = System.Convert.ToUInt64 v258.Length │
00:00:14 #1064 [Verbose] > │ let v261 : (float []) = Array.zeroCreate<float> │
00:00:14 #1065 [Verbose] > │ (System.Convert.ToInt32(v260)) │
00:00:14 #1066 [Verbose] > │ let v262 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:14 #1067 [Verbose] > │ while method4(v260, v262) do │
00:00:14 #1068 [Verbose] > │ let v264 : uint64 = v262.l0 │
00:00:14 #1069 [Verbose] > │ let v265 : int64 = v258.[int v264] │
00:00:14 #1070 [Verbose] > │ let v266 : float = v259 v265 │
00:00:14 #1071 [Verbose] > │ v261.[int v264] <- v266 │
00:00:14 #1072 [Verbose] > │ let v267 : uint64 = v264 + 1UL │
00:00:14 #1073 [Verbose] > │ v262.l0 <- v267 │
00:00:14 #1074 [Verbose] > │ () │
00:00:14 #1075 [Verbose] > │ v251.[int v254] <- v261 │
00:00:14 #1076 [Verbose] > │ let v268 : uint64 = v254 + 1UL │
00:00:14 #1077 [Verbose] > │ v252.l0 <- v268 │
00:00:14 #1078 [Verbose] > │ () │
00:00:14 #1079 [Verbose] > │ let v269 : ((float []) []) = v251 |> Array.transpose │
00:00:14 #1080 [Verbose] > │ let v270 : uint64 = System.Convert.ToUInt64 v269.Length │
00:00:14 #1081 [Verbose] > │ let v271 : (float []) = Array.zeroCreate<float> │
00:00:14 #1082 [Verbose] > │ (System.Convert.ToInt32(v270)) │
00:00:14 #1083 [Verbose] > │ let v272 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:14 #1084 [Verbose] > │ while method4(v270, v272) do │
00:00:14 #1085 [Verbose] > │ let v274 : uint64 = v272.l0 │
00:00:14 #1086 [Verbose] > │ let v275 : (float []) = v269.[int v274] │
00:00:14 #1087 [Verbose] > │ let v276 : float = v275 |> Array.average │
00:00:14 #1088 [Verbose] > │ v271.[int v274] <- v276 │
00:00:14 #1089 [Verbose] > │ let v277 : uint64 = v274 + 1UL │
00:00:14 #1090 [Verbose] > │ v272.l0 <- v277 │
00:00:14 #1091 [Verbose] > │ () │
00:00:14 #1092 [Verbose] > │ let v278 : (float -> int64) = int64 │
00:00:14 #1093 [Verbose] > │ let v279 : uint64 = System.Convert.ToUInt64 v271.Length │
00:00:14 #1094 [Verbose] > │ let v280 : (int64 []) = Array.zeroCreate<int64> │
00:00:14 #1095 [Verbose] > │ (System.Convert.ToInt32(v279)) │
00:00:14 #1096 [Verbose] > │ let v281 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:14 #1097 [Verbose] > │ while method4(v279, v281) do │
00:00:14 #1098 [Verbose] > │ let v283 : uint64 = v281.l0 │
00:00:14 #1099 [Verbose] > │ let v284 : float = v271.[int v283] │
00:00:14 #1100 [Verbose] > │ let v285 : int64 = v278 v284 │
00:00:14 #1101 [Verbose] > │ v280.[int v283] <- v285 │
00:00:14 #1102 [Verbose] > │ let v286 : uint64 = v283 + 1UL │
00:00:14 #1103 [Verbose] > │ v281.l0 <- v286 │
00:00:14 #1104 [Verbose] > │ () │
00:00:14 #1105 [Verbose] > │ let v287 : uint64 = System.Convert.ToUInt64 v280.Length │
00:00:14 #1106 [Verbose] > │ let v288 : UH5 = UH5_1 │
00:00:14 #1107 [Verbose] > │ let v289 : Mut3 = {l0 = 0UL; l1 = v288; l2 = 0} : Mut3 │
00:00:14 #1108 [Verbose] > │ while method22(v287, v289) do │
00:00:14 #1109 [Verbose] > │ let v291 : uint64 = v289.l0 │
00:00:14 #1110 [Verbose] > │ let struct (v292 : UH5, v293 : int32) = v289.l1, v289.l2 │
00:00:14 #1111 [Verbose] > │ let v294 : int64 = v280.[int v291] │
00:00:14 #1112 [Verbose] > │ let v295 : int32 = v293 + 1 │
00:00:14 #1113 [Verbose] > │ let v296 : uint64 = v291 + 1UL │
00:00:14 #1114 [Verbose] > │ let v297 : UH5 = UH5_0(v293, v294, v292) │
00:00:14 #1115 [Verbose] > │ v289.l0 <- v296 │
00:00:14 #1116 [Verbose] > │ v289.l1 <- v297 │
00:00:14 #1117 [Verbose] > │ v289.l2 <- v295 │
00:00:14 #1118 [Verbose] > │ () │
00:00:14 #1119 [Verbose] > │ let struct (v298 : UH5, v299 : int32) = v289.l1, v289.l2 │
00:00:14 #1120 [Verbose] > │ let v300 : UH5 = UH5_1 │
00:00:14 #1121 [Verbose] > │ let v301 : UH5 = method23(v298, v300) │
00:00:14 #1122 [Verbose] > │ let v302 : (struct (int32 * int64) []) = method33(v301) │
00:00:14 #1123 [Verbose] > │ System.Console.WriteLine v2 │
00:00:14 #1124 [Verbose] > │ let v303 : string = "Average Ranking " │
00:00:14 #1125 [Verbose] > │ System.Console.WriteLine v303 │
00:00:14 #1126 [Verbose] > │ let v304 : (struct (int32 * int64) -> int64) = closure6() │
00:00:14 #1127 [Verbose] > │ let v305 : (struct (int32 * int64) []) = v302 |> Array.sortBy v304 │
00:00:14 #1128 [Verbose] > │ let v306 : uint64 = System.Convert.ToUInt64 v305.Length │
00:00:14 #1129 [Verbose] > │ let v307 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:14 #1130 [Verbose] > │ while method4(v306, v307) do │
00:00:14 #1131 [Verbose] > │ let v309 : uint64 = v307.l0 │
00:00:14 #1132 [Verbose] > │ let struct (v310 : int32, v311 : int64) = v305.[int v309] │
00:00:14 #1133 [Verbose] > │ let v312 : string = $"Test case %d{v310 + 1}. Average Time: %A{v311} │
00:00:14 #1134 [Verbose] > │ " │
00:00:14 #1135 [Verbose] > │ System.Console.WriteLine v312 │
00:00:14 #1136 [Verbose] > │ let v313 : uint64 = v309 + 1UL │
00:00:14 #1137 [Verbose] > │ v307.l0 <- v313 │
00:00:14 #1138 [Verbose] > │ () │
00:00:14 #1139 [Verbose] > │ () │
00:00:14 #1140 [Verbose] > │ and method0 () : unit = │
00:00:14 #1141 [Verbose] > │ let v0 : (unit -> unit) = closure0() │
00:00:14 #1142 [Verbose] > │ let v1 : string = nameof v0 │
00:00:14 #1143 [Verbose] > │ let v2 : string = "" │
00:00:14 #1144 [Verbose] > │ System.Console.WriteLine v2 │
00:00:14 #1145 [Verbose] > │ System.Console.WriteLine v2 │
00:00:14 #1146 [Verbose] > │ let v3 : string = $"Test: {v1}" │
00:00:14 #1147 [Verbose] > │ System.Console.WriteLine v3 │
00:00:14 #1148 [Verbose] > │ let v4 : string = "a" │
00:00:14 #1149 [Verbose] > │ let v5 : string = "b" │
00:00:14 #1150 [Verbose] > │ let v6 : UH0 = UH0_1 │
00:00:14 #1151 [Verbose] > │ let v7 : UH0 = UH0_0(v5, v5, v5, v6) │
00:00:14 #1152 [Verbose] > │ let v8 : UH0 = UH0_0(v4, v4, v4, v7) │
00:00:14 #1153 [Verbose] > │ let v9 : (struct (string * string * string) []) = method1(v8) │
00:00:14 #1154 [Verbose] > │ let v10 : uint64 = System.Convert.ToUInt64 v9.Length │
00:00:14 #1155 [Verbose] > │ let v11 : (struct (string * string * string * (int64 [])) []) = │
00:00:14 #1156 [Verbose] > │ Array.zeroCreate<struct (string * string * string * (int64 []))> │
00:00:14 #1157 [Verbose] > │ (System.Convert.ToInt32(v10)) │
00:00:14 #1158 [Verbose] > │ let v12 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:14 #1159 [Verbose] > │ while method4(v10, v12) do │
00:00:14 #1160 [Verbose] > │ let v14 : uint64 = v12.l0 │
00:00:14 #1161 [Verbose] > │ let struct (v15 : string, v16 : string, v17 : string) = v9.[int v14] │
00:00:14 #1162 [Verbose] > │ let v18 : string = $"%A{struct (v15, v16)}" │
00:00:14 #1163 [Verbose] > │ System.Console.WriteLine v2 │
00:00:14 #1164 [Verbose] > │ let v19 : string = $"Solution: {v18} " │
00:00:14 #1165 [Verbose] > │ System.Console.WriteLine v19 │
00:00:14 #1166 [Verbose] > │ let v20 : int32 = 0 │
00:00:14 #1167 [Verbose] > │ let v21 : string = "A" │
00:00:14 #1168 [Verbose] > │ let v22 : (struct (string * string) -> string) = closure1() │
00:00:14 #1169 [Verbose] > │ let v23 : int32 = 1 │
00:00:14 #1170 [Verbose] > │ let v24 : string = "B" │
00:00:14 #1171 [Verbose] > │ let v25 : (struct (string * string) -> string) = closure2() │
00:00:14 #1172 [Verbose] > │ let v26 : UH1 = UH1_1 │
00:00:14 #1173 [Verbose] > │ let v27 : UH1 = UH1_0(v23, v24, v25, v26) │
00:00:14 #1174 [Verbose] > │ let v28 : UH1 = UH1_0(v20, v21, v22, v27) │
00:00:14 #1175 [Verbose] > │ let v29 : (struct (int32 * string * (struct (string * string) -> │
00:00:14 #1176 [Verbose] > │ string)) []) = method5(v28) │
00:00:14 #1177 [Verbose] > │ let v30 : uint64 = System.Convert.ToUInt64 v29.Length │
00:00:14 #1178 [Verbose] > │ let v31 : (struct (string * int64) []) = Array.zeroCreate<struct │
00:00:14 #1179 [Verbose] > │ (string * int64)> (System.Convert.ToInt32(v30)) │
00:00:14 #1180 [Verbose] > │ let v32 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:14 #1181 [Verbose] > │ while method4(v30, v32) do │
00:00:14 #1182 [Verbose] > │ let v34 : uint64 = v32.l0 │
00:00:14 #1183 [Verbose] > │ let struct (v35 : int32, v36 : string, v37 : (struct (string * │
00:00:14 #1184 [Verbose] > │ string) -> string)) = v29.[int v34] │
00:00:14 #1185 [Verbose] > │ let mutable result = None │
00:00:14 #1186 [Verbose] > │ #if FABLE_COMPILER_RUST │
00:00:14 #1187 [Verbose] > │ #if !WASM │
00:00:14 #1188 [Verbose] > │ () │
00:00:14 #1189 [Verbose] > │ #else │
00:00:14 #1190 [Verbose] > │ () │
00:00:14 #1191 [Verbose] > │ #endif │
00:00:14 #1192 [Verbose] > │ #else │
00:00:14 #1193 [Verbose] > │ System.GC.Collect () │
00:00:14 #1194 [Verbose] > │ () │
00:00:14 #1195 [Verbose] > │ #endif │
00:00:14 #1196 [Verbose] > │ |> fun x -> result <- Some x │
00:00:14 #1197 [Verbose] > │ result |> Option.get │
00:00:14 #1198 [Verbose] > │ let v38 : (unit -> System.Diagnostics.Stopwatch) = │
00:00:14 #1199 [Verbose] > │ System.Diagnostics.Stopwatch │
00:00:14 #1200 [Verbose] > │ let v39 : System.Diagnostics.Stopwatch = v38 () │
00:00:14 #1201 [Verbose] > │ v39.Start () │
00:00:14 #1202 [Verbose] > │ let v40 : int64 = v39.ElapsedMilliseconds │
00:00:14 #1203 [Verbose] > │ let v41 : (int32 []) = Array.zeroCreate<int32> (2000001) │
00:00:14 #1204 [Verbose] > │ let v42 : Mut1 = {l0 = 0} : Mut1 │
00:00:14 #1205 [Verbose] > │ while method8(v42) do │
00:00:14 #1206 [Verbose] > │ let v44 : int32 = v42.l0 │
00:00:14 #1207 [Verbose] > │ v41.[int v44] <- v44 │
00:00:14 #1208 [Verbose] > │ let v45 : int32 = v44 + 1 │
00:00:14 #1209 [Verbose] > │ v42.l0 <- v45 │
00:00:14 #1210 [Verbose] > │ () │
00:00:14 #1211 [Verbose] > │ let v46 : (int32 -> string) = closure3(v15, v16, v37) │
00:00:14 #1212 [Verbose] > │ let v47 : (string []) = v41 |> Array.Parallel.map v46 │
00:00:14 #1213 [Verbose] > │ let v48 : int32 = v47.Length │
00:00:14 #1214 [Verbose] > │ let v49 : int32 = v48 - 1 │
00:00:14 #1215 [Verbose] > │ let v50 : string = v47.[int v49] │
00:00:14 #1216 [Verbose] > │ let v51 : int64 = v39.ElapsedMilliseconds │
00:00:14 #1217 [Verbose] > │ let v52 : int64 = v51 - v40 │
00:00:14 #1218 [Verbose] > │ let v53 : string = $"Test case {v35 + 1}. {v36}. Time: {v52} " │
00:00:14 #1219 [Verbose] > │ System.Console.WriteLine v53 │
00:00:14 #1220 [Verbose] > │ v31.[int v34] <- struct (v50, v52) │
00:00:14 #1221 [Verbose] > │ let v54 : uint64 = v34 + 1UL │
00:00:14 #1222 [Verbose] > │ v32.l0 <- v54 │
00:00:14 #1223 [Verbose] > │ () │
00:00:14 #1224 [Verbose] > │ let v55 : uint64 = System.Convert.ToUInt64 v31.Length │
00:00:14 #1225 [Verbose] > │ let v56 : (string []) = Array.zeroCreate<string> │
00:00:14 #1226 [Verbose] > │ (System.Convert.ToInt32(v55)) │
00:00:14 #1227 [Verbose] > │ let v57 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:14 #1228 [Verbose] > │ while method4(v55, v57) do │
00:00:14 #1229 [Verbose] > │ let v59 : uint64 = v57.l0 │
00:00:14 #1230 [Verbose] > │ let struct (v60 : string, v61 : int64) = v31.[int v59] │
00:00:14 #1231 [Verbose] > │ v56.[int v59] <- v60 │
00:00:14 #1232 [Verbose] > │ let v62 : uint64 = v59 + 1UL │
00:00:14 #1233 [Verbose] > │ v57.l0 <- v62 │
00:00:14 #1234 [Verbose] > │ () │
00:00:14 #1235 [Verbose] > │ let v63 : uint64 = System.Convert.ToUInt64 v56.Length │
00:00:14 #1236 [Verbose] > │ let v64 : bool = v63 <= 1UL │
00:00:14 #1237 [Verbose] > │ if v64 then │
00:00:14 #1238 [Verbose] > │ () │
00:00:14 #1239 [Verbose] > │ else │
00:00:14 #1240 [Verbose] > │ let v65 : string = v56.[int 0UL] │
00:00:14 #1241 [Verbose] > │ let v66 : uint64 = 0UL │
00:00:14 #1242 [Verbose] > │ let v67 : bool = method9(v65, v56, v66) │
00:00:14 #1243 [Verbose] > │ if v67 then │
00:00:14 #1244 [Verbose] > │ () │
00:00:14 #1245 [Verbose] > │ else │
00:00:14 #1246 [Verbose] > │ let v68 : string = $"Challenge error: {v56}" │
00:00:14 #1247 [Verbose] > │ failwith<unit> v68 │
00:00:14 #1248 [Verbose] > │ let v69 : string = $"%A{v17}" │
00:00:14 #1249 [Verbose] > │ let v70 : (string []) = Array.zeroCreate<string> │
00:00:14 #1250 [Verbose] > │ (System.Convert.ToInt32(v55)) │
00:00:14 #1251 [Verbose] > │ let v71 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:14 #1252 [Verbose] > │ while method4(v55, v71) do │
00:00:14 #1253 [Verbose] > │ let v73 : uint64 = v71.l0 │
00:00:14 #1254 [Verbose] > │ let struct (v74 : string, v75 : int64) = v31.[int v73] │
00:00:14 #1255 [Verbose] > │ v70.[int v73] <- v74 │
00:00:14 #1256 [Verbose] > │ let v76 : uint64 = v73 + 1UL │
00:00:14 #1257 [Verbose] > │ v71.l0 <- v76 │
00:00:14 #1258 [Verbose] > │ () │
00:00:14 #1259 [Verbose] > │ let v77 : string = v70.[int 0UL] │
00:00:14 #1260 [Verbose] > │ let v78 : string = $"%A{v77}" │
00:00:14 #1261 [Verbose] > │ let v79 : (int64 []) = Array.zeroCreate<int64> │
00:00:14 #1262 [Verbose] > │ (System.Convert.ToInt32(v55)) │
00:00:14 #1263 [Verbose] > │ let v80 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:14 #1264 [Verbose] > │ while method4(v55, v80) do │
00:00:14 #1265 [Verbose] > │ let v82 : uint64 = v80.l0 │
00:00:14 #1266 [Verbose] > │ let struct (v83 : string, v84 : int64) = v31.[int v82] │
00:00:14 #1267 [Verbose] > │ v79.[int v82] <- v84 │
00:00:14 #1268 [Verbose] > │ let v85 : uint64 = v82 + 1UL │
00:00:14 #1269 [Verbose] > │ v80.l0 <- v85 │
00:00:14 #1270 [Verbose] > │ () │
00:00:14 #1271 [Verbose] > │ v11.[int v14] <- struct (v69, v18, v78, v79) │
00:00:14 #1272 [Verbose] > │ let v86 : uint64 = v14 + 1UL │
00:00:14 #1273 [Verbose] > │ v12.l0 <- v86 │
00:00:14 #1274 [Verbose] > │ () │
00:00:14 #1275 [Verbose] > │ let v87 : uint64 = System.Convert.ToUInt64 v11.Length │
00:00:14 #1276 [Verbose] > │ let v88 : (struct (UH2 * US0) []) = Array.zeroCreate<struct (UH2 * US0)> │
00:00:14 #1277 [Verbose] > │ (System.Convert.ToInt32(v87)) │
00:00:14 #1278 [Verbose] > │ let v89 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:14 #1279 [Verbose] > │ while method4(v87, v89) do │
00:00:14 #1280 [Verbose] > │ let v91 : uint64 = v89.l0 │
00:00:14 #1281 [Verbose] > │ let struct (v92 : string, v93 : string, v94 : string, v95 : (int64 [ │
00:00:14 #1282 [Verbose] > │ ])) = v11.[int v91] │
00:00:14 #1283 [Verbose] > │ let v96 : uint64 = System.Convert.ToUInt64 v95.Length │
00:00:14 #1284 [Verbose] > │ let v97 : UH3 = UH3_1 │
00:00:14 #1285 [Verbose] > │ let v98 : Mut2 = {l0 = 0UL; l1 = v97; l2 = 0L} : Mut2 │
00:00:14 #1286 [Verbose] > │ while method10(v96, v98) do │
00:00:14 #1287 [Verbose] > │ let v100 : uint64 = v98.l0 │
00:00:14 #1288 [Verbose] > │ let struct (v101 : UH3, v102 : int64) = v98.l1, v98.l2 │
00:00:14 #1289 [Verbose] > │ let v103 : int64 = v95.[int v100] │
00:00:14 #1290 [Verbose] > │ let v104 : int64 = v102 + 1L │
00:00:14 #1291 [Verbose] > │ let v105 : uint64 = v100 + 1UL │
00:00:14 #1292 [Verbose] > │ let v106 : UH3 = UH3_0(v102, v103, v101) │
00:00:14 #1293 [Verbose] > │ v98.l0 <- v105 │
00:00:14 #1294 [Verbose] > │ v98.l1 <- v106 │
00:00:14 #1295 [Verbose] > │ v98.l2 <- v104 │
00:00:14 #1296 [Verbose] > │ () │
00:00:14 #1297 [Verbose] > │ let struct (v107 : UH3, v108 : int64) = v98.l1, v98.l2 │
00:00:14 #1298 [Verbose] > │ let v109 : UH3 = UH3_1 │
00:00:14 #1299 [Verbose] > │ let v110 : UH3 = method11(v107, v109) │
00:00:14 #1300 [Verbose] > │ let v111 : (struct (int64 * int64) []) = method12(v110) │
00:00:14 #1301 [Verbose] > │ let v112 : int32 = v111.Length │
00:00:14 #1302 [Verbose] > │ let v113 : (struct (int64 * int64) []) = Array.zeroCreate<struct │
00:00:14 #1303 [Verbose] > │ (int64 * int64)> (v112) │
00:00:14 #1304 [Verbose] > │ let v114 : Mut1 = {l0 = 0} : Mut1 │
00:00:14 #1305 [Verbose] > │ while method15(v112, v114) do │
00:00:14 #1306 [Verbose] > │ let v116 : int32 = v114.l0 │
00:00:14 #1307 [Verbose] > │ let struct (v117 : int64, v118 : int64) = v111.[int v116] │
00:00:14 #1308 [Verbose] > │ let v119 : int64 = v117 + 1L │
00:00:14 #1309 [Verbose] > │ v113.[int v116] <- struct (v119, v118) │
00:00:14 #1310 [Verbose] > │ let v120 : int32 = v116 + 1 │
00:00:14 #1311 [Verbose] > │ v114.l0 <- v120 │
00:00:14 #1312 [Verbose] > │ () │
00:00:14 #1313 [Verbose] > │ let v121 : (struct (int64 * int64) -> int64) = closure4() │
00:00:14 #1314 [Verbose] > │ let v122 : (struct (int64 * int64) []) = v113 |> Array.sortBy v121 │
00:00:14 #1315 [Verbose] > │ let struct (v123 : int64, v124 : int64) = v122.[int 0] │
00:00:14 #1316 [Verbose] > │ let v125 : string = $"%A{struct (v123, v124)}" │
00:00:14 #1317 [Verbose] > │ let v126 : bool = v92 = v94 │
00:00:14 #1318 [Verbose] > │ let v131 : US0 = │
00:00:14 #1319 [Verbose] > │ if v126 then │
00:00:14 #1320 [Verbose] > │ let v127 : System.ConsoleColor = │
00:00:14 #1321 [Verbose] > │ System.ConsoleColor.DarkGreen │
00:00:14 #1322 [Verbose] > │ US0_1(v127) │
00:00:14 #1323 [Verbose] > │ else │
00:00:14 #1324 [Verbose] > │ let v129 : System.ConsoleColor = System.ConsoleColor.DarkRed │
00:00:14 #1325 [Verbose] > │ US0_1(v129) │
00:00:14 #1326 [Verbose] > │ let v132 : UH2 = UH2_1 │
00:00:14 #1327 [Verbose] > │ let v133 : UH2 = UH2_0(v125, v132) │
00:00:14 #1328 [Verbose] > │ let v134 : UH2 = UH2_0(v94, v133) │
00:00:14 #1329 [Verbose] > │ let v135 : UH2 = UH2_0(v92, v134) │
00:00:14 #1330 [Verbose] > │ let v136 : UH2 = UH2_0(v93, v135) │
00:00:14 #1331 [Verbose] > │ v88.[int v91] <- struct (v136, v131) │
00:00:14 #1332 [Verbose] > │ let v137 : uint64 = v91 + 1UL │
00:00:14 #1333 [Verbose] > │ v89.l0 <- v137 │
00:00:14 #1334 [Verbose] > │ () │
00:00:14 #1335 [Verbose] > │ let v138 : string = "Input" │
00:00:14 #1336 [Verbose] > │ let v139 : string = "Expected" │
00:00:14 #1337 [Verbose] > │ let v140 : string = "Result" │
00:00:14 #1338 [Verbose] > │ let v141 : string = "Best" │
00:00:14 #1339 [Verbose] > │ let v142 : UH2 = UH2_1 │
00:00:14 #1340 [Verbose] > │ let v143 : UH2 = UH2_0(v141, v142) │
00:00:14 #1341 [Verbose] > │ let v144 : UH2 = UH2_0(v140, v143) │
00:00:14 #1342 [Verbose] > │ let v145 : UH2 = UH2_0(v139, v144) │
00:00:14 #1343 [Verbose] > │ let v146 : UH2 = UH2_0(v138, v145) │
00:00:14 #1344 [Verbose] > │ let v147 : US0 = US0_0 │
00:00:14 #1345 [Verbose] > │ let v148 : string = "---" │
00:00:14 #1346 [Verbose] > │ let v149 : UH2 = UH2_1 │
00:00:14 #1347 [Verbose] > │ let v150 : UH2 = UH2_0(v148, v149) │
00:00:14 #1348 [Verbose] > │ let v151 : UH2 = UH2_0(v148, v150) │
00:00:14 #1349 [Verbose] > │ let v152 : UH2 = UH2_0(v148, v151) │
00:00:14 #1350 [Verbose] > │ let v153 : UH2 = UH2_0(v148, v152) │
00:00:14 #1351 [Verbose] > │ let v154 : US0 = US0_0 │
00:00:14 #1352 [Verbose] > │ let v155 : UH4 = UH4_1 │
00:00:14 #1353 [Verbose] > │ let v156 : UH4 = UH4_0(v153, v154, v155) │
00:00:14 #1354 [Verbose] > │ let v157 : UH4 = UH4_0(v146, v147, v156) │
00:00:14 #1355 [Verbose] > │ let v158 : (struct (UH2 * US0) []) = method16(v157) │
00:00:14 #1356 [Verbose] > │ let v159 : uint64 = System.Convert.ToUInt64 v158.Length │
00:00:14 #1357 [Verbose] > │ let v160 : uint64 = System.Convert.ToUInt64 v88.Length │
00:00:14 #1358 [Verbose] > │ let v161 : uint64 = v159 + v160 │
00:00:14 #1359 [Verbose] > │ let v162 : (struct (UH2 * US0) []) = Array.zeroCreate<struct (UH2 * │
00:00:14 #1360 [Verbose] > │ US0)> (System.Convert.ToInt32(v161)) │
00:00:14 #1361 [Verbose] > │ let v163 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:14 #1362 [Verbose] > │ while method4(v161, v163) do │
00:00:14 #1363 [Verbose] > │ let v165 : uint64 = v163.l0 │
00:00:14 #1364 [Verbose] > │ let v166 : bool = v165 < v159 │
00:00:14 #1365 [Verbose] > │ let struct (v172 : UH2, v173 : US0) = │
00:00:14 #1366 [Verbose] > │ if v166 then │
00:00:14 #1367 [Verbose] > │ let struct (v167 : UH2, v168 : US0) = v158.[int v165] │
00:00:14 #1368 [Verbose] > │ struct (v167, v168) │
00:00:14 #1369 [Verbose] > │ else │
00:00:14 #1370 [Verbose] > │ let v169 : uint64 = v165 - v159 │
00:00:14 #1371 [Verbose] > │ let struct (v170 : UH2, v171 : US0) = v88.[int v169] │
00:00:14 #1372 [Verbose] > │ struct (v170, v171) │
00:00:14 #1373 [Verbose] > │ v162.[int v165] <- struct (v172, v173) │
00:00:14 #1374 [Verbose] > │ let v174 : uint64 = v165 + 1UL │
00:00:14 #1375 [Verbose] > │ v163.l0 <- v174 │
00:00:14 #1376 [Verbose] > │ () │
00:00:14 #1377 [Verbose] > │ let v175 : uint64 = System.Convert.ToUInt64 v162.Length │
00:00:14 #1378 [Verbose] > │ let v176 : ((string []) []) = Array.zeroCreate<(string [])> │
00:00:14 #1379 [Verbose] > │ (System.Convert.ToInt32(v175)) │
00:00:14 #1380 [Verbose] > │ let v177 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:14 #1381 [Verbose] > │ while method4(v175, v177) do │
00:00:14 #1382 [Verbose] > │ let v179 : uint64 = v177.l0 │
00:00:14 #1383 [Verbose] > │ let struct (v180 : UH2, v181 : US0) = v162.[int v179] │
00:00:14 #1384 [Verbose] > │ let v182 : (string []) = method19(v180) │
00:00:14 #1385 [Verbose] > │ v176.[int v179] <- v182 │
00:00:14 #1386 [Verbose] > │ let v183 : uint64 = v179 + 1UL │
00:00:14 #1387 [Verbose] > │ v177.l0 <- v183 │
00:00:14 #1388 [Verbose] > │ () │
00:00:14 #1389 [Verbose] > │ let v184 : ((string []) []) = v176 |> Array.transpose │
00:00:14 #1390 [Verbose] > │ let v185 : uint64 = System.Convert.ToUInt64 v184.Length │
00:00:14 #1391 [Verbose] > │ let v186 : (int64 []) = Array.zeroCreate<int64> │
00:00:14 #1392 [Verbose] > │ (System.Convert.ToInt32(v185)) │
00:00:14 #1393 [Verbose] > │ let v187 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:14 #1394 [Verbose] > │ while method4(v185, v187) do │
00:00:14 #1395 [Verbose] > │ let v189 : uint64 = v187.l0 │
00:00:14 #1396 [Verbose] > │ let v190 : (string []) = v184.[int v189] │
00:00:14 #1397 [Verbose] > │ let v191 : uint64 = System.Convert.ToUInt64 v190.Length │
00:00:14 #1398 [Verbose] > │ let v192 : (int64 []) = Array.zeroCreate<int64> │
00:00:14 #1399 [Verbose] > │ (System.Convert.ToInt32(v191)) │
00:00:14 #1400 [Verbose] > │ let v193 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:14 #1401 [Verbose] > │ while method4(v191, v193) do │
00:00:14 #1402 [Verbose] > │ let v195 : uint64 = v193.l0 │
00:00:14 #1403 [Verbose] > │ let v196 : string = v190.[int v195] │
00:00:14 #1404 [Verbose] > │ let v197 : int64 = System.Convert.ToInt64 v196.Length │
00:00:14 #1405 [Verbose] > │ v192.[int v195] <- v197 │
00:00:14 #1406 [Verbose] > │ let v198 : uint64 = v195 + 1UL │
00:00:14 #1407 [Verbose] > │ v193.l0 <- v198 │
00:00:14 #1408 [Verbose] > │ () │
00:00:14 #1409 [Verbose] > │ let v199 : (int64 []) = v192 |> Array.sortDescending │
00:00:14 #1410 [Verbose] > │ let v200 : int64 option = v199 |> Array.tryItem 0 │
00:00:14 #1411 [Verbose] > │ let v201 : (int64 -> US1) = closure5() │
00:00:14 #1412 [Verbose] > │ let v202 : US1 = US1_0 │
00:00:14 #1413 [Verbose] > │ let v203 : US1 = v200 |> Option.map v201 |> Option.defaultValue v202 │
00:00:14 #1414 [Verbose] > │ let v206 : int64 = │
00:00:14 #1415 [Verbose] > │ match v203 with │
00:00:14 #1416 [Verbose] > │ | US1_0 -> (* None *) │
00:00:14 #1417 [Verbose] > │ 0L │
00:00:14 #1418 [Verbose] > │ | US1_1(v204) -> (* Some *) │
00:00:14 #1419 [Verbose] > │ v204 │
00:00:14 #1420 [Verbose] > │ v186.[int v189] <- v206 │
00:00:14 #1421 [Verbose] > │ let v207 : uint64 = v189 + 1UL │
00:00:14 #1422 [Verbose] > │ v187.l0 <- v207 │
00:00:14 #1423 [Verbose] > │ () │
00:00:14 #1424 [Verbose] > │ let v208 : uint64 = System.Convert.ToUInt64 v186.Length │
00:00:14 #1425 [Verbose] > │ let v209 : UH5 = UH5_1 │
00:00:14 #1426 [Verbose] > │ let v210 : Mut3 = {l0 = 0UL; l1 = v209; l2 = 0} : Mut3 │
00:00:14 #1427 [Verbose] > │ while method22(v208, v210) do │
00:00:14 #1428 [Verbose] > │ let v212 : uint64 = v210.l0 │
00:00:14 #1429 [Verbose] > │ let struct (v213 : UH5, v214 : int32) = v210.l1, v210.l2 │
00:00:14 #1430 [Verbose] > │ let v215 : int64 = v186.[int v212] │
00:00:14 #1431 [Verbose] > │ let v216 : int32 = v214 + 1 │
00:00:14 #1432 [Verbose] > │ let v217 : uint64 = v212 + 1UL │
00:00:14 #1433 [Verbose] > │ let v218 : UH5 = UH5_0(v214, v215, v213) │
00:00:14 #1434 [Verbose] > │ v210.l0 <- v217 │
00:00:14 #1435 [Verbose] > │ v210.l1 <- v218 │
00:00:14 #1436 [Verbose] > │ v210.l2 <- v216 │
00:00:14 #1437 [Verbose] > │ () │
00:00:14 #1438 [Verbose] > │ let struct (v219 : UH5, v220 : int32) = v210.l1, v210.l2 │
00:00:14 #1439 [Verbose] > │ let v221 : UH5 = UH5_1 │
00:00:14 #1440 [Verbose] > │ let v222 : UH5 = method23(v219, v221) │
00:00:14 #1441 [Verbose] > │ let v223 : (struct (int32 * int64) []) = method24(v222) │
00:00:14 #1442 [Verbose] > │ let v224 : Map<int32, int64> = v223 |> Array.map (fun (struct (a, b)) -> │
00:00:14 #1443 [Verbose] > │ a, b) |> Map.ofArray │
00:00:14 #1444 [Verbose] > │ let v225 : (struct ((string []) * US0) []) = Array.zeroCreate<struct │
00:00:14 #1445 [Verbose] > │ ((string []) * US0)> (System.Convert.ToInt32(v175)) │
00:00:14 #1446 [Verbose] > │ let v226 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:14 #1447 [Verbose] > │ while method4(v175, v226) do │
00:00:14 #1448 [Verbose] > │ let v228 : uint64 = v226.l0 │
00:00:14 #1449 [Verbose] > │ let struct (v229 : UH2, v230 : US0) = v162.[int v228] │
00:00:14 #1450 [Verbose] > │ let v231 : UH6 = UH6_1 │
00:00:14 #1451 [Verbose] > │ let v232 : int32 = 0 │
00:00:14 #1452 [Verbose] > │ let struct (v233 : UH6, v234 : int32) = method27(v229, v231, v232) │
00:00:14 #1453 [Verbose] > │ let v235 : UH6 = UH6_1 │
00:00:14 #1454 [Verbose] > │ let v236 : UH6 = method28(v233, v235) │
00:00:14 #1455 [Verbose] > │ let v237 : UH2 = UH2_1 │
00:00:14 #1456 [Verbose] > │ let v238 : UH2 = method29(v224, v236, v237) │
00:00:14 #1457 [Verbose] > │ let v239 : (string []) = method30(v238) │
00:00:14 #1458 [Verbose] > │ v225.[int v228] <- struct (v239, v230) │
00:00:14 #1459 [Verbose] > │ let v240 : uint64 = v228 + 1UL │
00:00:14 #1460 [Verbose] > │ v226.l0 <- v240 │
00:00:14 #1461 [Verbose] > │ () │
00:00:14 #1462 [Verbose] > │ System.Console.WriteLine v2 │
00:00:14 #1463 [Verbose] > │ let v241 : uint64 = System.Convert.ToUInt64 v225.Length │
00:00:14 #1464 [Verbose] > │ let v242 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:14 #1465 [Verbose] > │ while method4(v241, v242) do │
00:00:14 #1466 [Verbose] > │ let v244 : uint64 = v242.l0 │
00:00:14 #1467 [Verbose] > │ let struct (v245 : (string []), v246 : US0) = v225.[int v244] │
00:00:14 #1468 [Verbose] > │ match v246 with │
00:00:14 #1469 [Verbose] > │ | US0_0 -> (* None *) │
00:00:14 #1470 [Verbose] > │ let mutable result = None │
00:00:14 #1471 [Verbose] > │ #if FABLE_COMPILER_RUST │
00:00:14 #1472 [Verbose] > │ #if !WASM │
00:00:14 #1473 [Verbose] > │ () │
00:00:14 #1474 [Verbose] > │ #else │
00:00:14 #1475 [Verbose] > │ () │
00:00:14 #1476 [Verbose] > │ #endif │
00:00:14 #1477 [Verbose] > │ #else │
00:00:14 #1478 [Verbose] > │ System.Console.ResetColor () │
00:00:14 #1479 [Verbose] > │ () │
00:00:14 #1480 [Verbose] > │ #endif │
00:00:14 #1481 [Verbose] > │ |> fun x -> result <- Some x │
00:00:14 #1482 [Verbose] > │ result |> Option.get │
00:00:14 #1483 [Verbose] > │ () │
00:00:14 #1484 [Verbose] > │ | US0_1(v247) -> (* Some *) │
00:00:14 #1485 [Verbose] > │ let mutable result = None │
00:00:14 #1486 [Verbose] > │ #if FABLE_COMPILER_RUST │
00:00:14 #1487 [Verbose] > │ #if !WASM │
00:00:14 #1488 [Verbose] > │ () │
00:00:14 #1489 [Verbose] > │ #else │
00:00:14 #1490 [Verbose] > │ () │
00:00:14 #1491 [Verbose] > │ #endif │
00:00:14 #1492 [Verbose] > │ #else │
00:00:14 #1493 [Verbose] > │ System.Console.ForegroundColor <- v247 │
00:00:14 #1494 [Verbose] > │ () │
00:00:14 #1495 [Verbose] > │ #endif │
00:00:14 #1496 [Verbose] > │ |> fun x -> result <- Some x │
00:00:14 #1497 [Verbose] > │ result |> Option.get │
00:00:14 #1498 [Verbose] > │ () │
00:00:14 #1499 [Verbose] > │ let v248 : string = "\t| " │
00:00:14 #1500 [Verbose] > │ let v249 : string = System.String.Join (v248, v245) │
00:00:14 #1501 [Verbose] > │ System.Console.WriteLine v249 │
00:00:14 #1502 [Verbose] > │ let mutable result = None │
00:00:14 #1503 [Verbose] > │ #if FABLE_COMPILER_RUST │
00:00:14 #1504 [Verbose] > │ #if !WASM │
00:00:14 #1505 [Verbose] > │ () │
00:00:14 #1506 [Verbose] > │ #else │
00:00:14 #1507 [Verbose] > │ () │
00:00:14 #1508 [Verbose] > │ #endif │
00:00:14 #1509 [Verbose] > │ #else │
00:00:14 #1510 [Verbose] > │ System.Console.ResetColor () │
00:00:14 #1511 [Verbose] > │ () │
00:00:14 #1512 [Verbose] > │ #endif │
00:00:14 #1513 [Verbose] > │ |> fun x -> result <- Some x │
00:00:14 #1514 [Verbose] > │ result |> Option.get │
00:00:14 #1515 [Verbose] > │ let v250 : uint64 = v244 + 1UL │
00:00:14 #1516 [Verbose] > │ v242.l0 <- v250 │
00:00:14 #1517 [Verbose] > │ () │
00:00:14 #1518 [Verbose] > │ let v251 : ((float []) []) = Array.zeroCreate<(float [])> │
00:00:14 #1519 [Verbose] > │ (System.Convert.ToInt32(v87)) │
00:00:14 #1520 [Verbose] > │ let v252 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:14 #1521 [Verbose] > │ while method4(v87, v252) do │
00:00:14 #1522 [Verbose] > │ let v254 : uint64 = v252.l0 │
00:00:14 #1523 [Verbose] > │ let struct (v255 : string, v256 : string, v257 : string, v258 : │
00:00:14 #1524 [Verbose] > │ (int64 [])) = v11.[int v254] │
00:00:14 #1525 [Verbose] > │ let v259 : (int64 -> float) = float │
00:00:14 #1526 [Verbose] > │ let v260 : uint64 = System.Convert.ToUInt64 v258.Length │
00:00:14 #1527 [Verbose] > │ let v261 : (float []) = Array.zeroCreate<float> │
00:00:14 #1528 [Verbose] > │ (System.Convert.ToInt32(v260)) │
00:00:14 #1529 [Verbose] > │ let v262 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:14 #1530 [Verbose] > │ while method4(v260, v262) do │
00:00:14 #1531 [Verbose] > │ let v264 : uint64 = v262.l0 │
00:00:14 #1532 [Verbose] > │ let v265 : int64 = v258.[int v264] │
00:00:14 #1533 [Verbose] > │ let v266 : float = v259 v265 │
00:00:14 #1534 [Verbose] > │ v261.[int v264] <- v266 │
00:00:14 #1535 [Verbose] > │ let v267 : uint64 = v264 + 1UL │
00:00:14 #1536 [Verbose] > │ v262.l0 <- v267 │
00:00:14 #1537 [Verbose] > │ () │
00:00:14 #1538 [Verbose] > │ v251.[int v254] <- v261 │
00:00:14 #1539 [Verbose] > │ let v268 : uint64 = v254 + 1UL │
00:00:14 #1540 [Verbose] > │ v252.l0 <- v268 │
00:00:14 #1541 [Verbose] > │ () │
00:00:14 #1542 [Verbose] > │ let v269 : ((float []) []) = v251 |> Array.transpose │
00:00:14 #1543 [Verbose] > │ let v270 : uint64 = System.Convert.ToUInt64 v269.Length │
00:00:14 #1544 [Verbose] > │ let v271 : (float []) = Array.zeroCreate<float> │
00:00:14 #1545 [Verbose] > │ (System.Convert.ToInt32(v270)) │
00:00:14 #1546 [Verbose] > │ let v272 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:14 #1547 [Verbose] > │ while method4(v270, v272) do │
00:00:14 #1548 [Verbose] > │ let v274 : uint64 = v272.l0 │
00:00:14 #1549 [Verbose] > │ let v275 : (float []) = v269.[int v274] │
00:00:14 #1550 [Verbose] > │ let v276 : float = v275 |> Array.average │
00:00:14 #1551 [Verbose] > │ v271.[int v274] <- v276 │
00:00:14 #1552 [Verbose] > │ let v277 : uint64 = v274 + 1UL │
00:00:14 #1553 [Verbose] > │ v272.l0 <- v277 │
00:00:14 #1554 [Verbose] > │ () │
00:00:14 #1555 [Verbose] > │ let v278 : (float -> int64) = int64 │
00:00:14 #1556 [Verbose] > │ let v279 : uint64 = System.Convert.ToUInt64 v271.Length │
00:00:14 #1557 [Verbose] > │ let v280 : (int64 []) = Array.zeroCreate<int64> │
00:00:14 #1558 [Verbose] > │ (System.Convert.ToInt32(v279)) │
00:00:14 #1559 [Verbose] > │ let v281 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:14 #1560 [Verbose] > │ while method4(v279, v281) do │
00:00:14 #1561 [Verbose] > │ let v283 : uint64 = v281.l0 │
00:00:14 #1562 [Verbose] > │ let v284 : float = v271.[int v283] │
00:00:14 #1563 [Verbose] > │ let v285 : int64 = v278 v284 │
00:00:14 #1564 [Verbose] > │ v280.[int v283] <- v285 │
00:00:14 #1565 [Verbose] > │ let v286 : uint64 = v283 + 1UL │
00:00:14 #1566 [Verbose] > │ v281.l0 <- v286 │
00:00:14 #1567 [Verbose] > │ () │
00:00:14 #1568 [Verbose] > │ let v287 : uint64 = System.Convert.ToUInt64 v280.Length │
00:00:14 #1569 [Verbose] > │ let v288 : UH5 = UH5_1 │
00:00:14 #1570 [Verbose] > │ let v289 : Mut3 = {l0 = 0UL; l1 = v288; l2 = 0} : Mut3 │
00:00:14 #1571 [Verbose] > │ while method22(v287, v289) do │
00:00:14 #1572 [Verbose] > │ let v291 : uint64 = v289.l0 │
00:00:14 #1573 [Verbose] > │ let struct (v292 : UH5, v293 : int32) = v289.l1, v289.l2 │
00:00:14 #1574 [Verbose] > │ let v294 : int64 = v280.[int v291] │
00:00:14 #1575 [Verbose] > │ let v295 : int32 = v293 + 1 │
00:00:14 #1576 [Verbose] > │ let v296 : uint64 = v291 + 1UL │
00:00:14 #1577 [Verbose] > │ let v297 : UH5 = UH5_0(v293, v294, v292) │
00:00:14 #1578 [Verbose] > │ v289.l0 <- v296 │
00:00:14 #1579 [Verbose] > │ v289.l1 <- v297 │
00:00:14 #1580 [Verbose] > │ v289.l2 <- v295 │
00:00:14 #1581 [Verbose] > │ () │
00:00:14 #1582 [Verbose] > │ let struct (v298 : UH5, v299 : int32) = v289.l1, v289.l2 │
00:00:14 #1583 [Verbose] > │ let v300 : UH5 = UH5_1 │
00:00:14 #1584 [Verbose] > │ let v301 : UH5 = method23(v298, v300) │
00:00:14 #1585 [Verbose] > │ let v302 : (struct (int32 * int64) []) = method33(v301) │
00:00:14 #1586 [Verbose] > │ System.Console.WriteLine v2 │
00:00:14 #1587 [Verbose] > │ let v303 : string = "Average Ranking " │
00:00:14 #1588 [Verbose] > │ System.Console.WriteLine v303 │
00:00:14 #1589 [Verbose] > │ let v304 : (struct (int32 * int64) -> int64) = closure6() │
00:00:14 #1590 [Verbose] > │ let v305 : (struct (int32 * int64) []) = v302 |> Array.sortBy v304 │
00:00:14 #1591 [Verbose] > │ let v306 : uint64 = System.Convert.ToUInt64 v305.Length │
00:00:14 #1592 [Verbose] > │ let v307 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:14 #1593 [Verbose] > │ while method4(v306, v307) do │
00:00:14 #1594 [Verbose] > │ let v309 : uint64 = v307.l0 │
00:00:14 #1595 [Verbose] > │ let struct (v310 : int32, v311 : int64) = v305.[int v309] │
00:00:14 #1596 [Verbose] > │ let v312 : string = $"Test case %d{v310 + 1}. Average Time: %A{v311} │
00:00:14 #1597 [Verbose] > │ " │
00:00:14 #1598 [Verbose] > │ System.Console.WriteLine v312 │
00:00:14 #1599 [Verbose] > │ let v313 : uint64 = v309 + 1UL │
00:00:14 #1600 [Verbose] > │ v307.l0 <- v313 │
00:00:14 #1601 [Verbose] > │ () │
00:00:14 #1602 [Verbose] > │ () │
00:00:14 #1603 [Verbose] > │ method0() │
00:00:14 #1604 [Verbose] > │ │
00:00:14 #1605 [Verbose] > │ │
00:00:14 #1606 [Verbose] > │ │
00:00:14 #1607 [Verbose] > │ Test: v0 │
00:00:14 #1608 [Verbose] > │ │
00:00:14 #1609 [Verbose] > │ Solution: struct ("a", "a") │
00:00:14 #1610 [Verbose] > │ Test case 1. A. Time: 24 │
00:00:14 #1611 [Verbose] > │ Test case 2. B. Time: 13 │
00:00:14 #1612 [Verbose] > │ │
00:00:14 #1613 [Verbose] > │ Solution: struct ("b", "b") │
00:00:14 #1614 [Verbose] > │ Test case 1. A. Time: 11 │
00:00:14 #1615 [Verbose] > │ Test case 2. B. Time: 12 │
00:00:14 #1616 [Verbose] > │ │
00:00:14 #1617 [Verbose] > │ Input | Expected | Result | Best │
00:00:14 #1618 [Verbose] > │ --- | --- | --- | --- │
00:00:14 #1619 [Verbose] > │ struct ("a", "a") | "a" | "a" | struct (2L, 13L) │
00:00:14 #1620 [Verbose] > │ struct ("b", "b") | "b" | "b" | struct (1L, 11L) │
00:00:14 #1621 [Verbose] > │ │
00:00:14 #1622 [Verbose] > │ Average Ranking │
00:00:14 #1623 [Verbose] > │ Test case 2. Average Time: 12L │
00:00:14 #1624 [Verbose] > │ Test case 1. Average Time: 17L │
00:00:14 #1625 [Verbose] > │ │
00:00:14 #1626 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #1627 [Verbose] >
00:00:14 #1628 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:14 #1629 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:14 #1630 [Verbose] > │ ## emptyTests │
00:00:14 #1631 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #1632 [Verbose] >
00:00:14 #1633 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:14 #1634 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:14 #1635 [Verbose] > │ Test: Empty │
00:00:14 #1636 [Verbose] > │ │
00:00:14 #1637 [Verbose] > │ Solution: 0 │
00:00:14 #1638 [Verbose] > │ Test case 1. A. Time: 61L │
00:00:14 #1639 [Verbose] > │ │
00:00:14 #1640 [Verbose] > │ Solution: 2 │
00:00:14 #1641 [Verbose] > │ Test case 1. A. Time: 62L │
00:00:14 #1642 [Verbose] > │ │
00:00:14 #1643 [Verbose] > │ Solution: 5 │
00:00:14 #1644 [Verbose] > │ Test case 1. A. Time: 70L │
00:00:14 #1645 [Verbose] > │ │
00:00:14 #1646 [Verbose] > │ Input | Expected | Result | Best │
00:00:14 #1647 [Verbose] > │ --- | --- | --- | --- │
00:00:14 #1648 [Verbose] > │ 0 | 0 | 0 | (1, 61) │
00:00:14 #1649 [Verbose] > │ 2 | 2 | 2 | (1, 62) │
00:00:14 #1650 [Verbose] > │ 5 | 5 | 5 | (1, 70) │
00:00:14 #1651 [Verbose] > │ │
00:00:14 #1652 [Verbose] > │ Averages │
00:00:14 #1653 [Verbose] > │ Test case 1. Average Time: 64L │
00:00:14 #1654 [Verbose] > │ │
00:00:14 #1655 [Verbose] > │ Ranking │
00:00:14 #1656 [Verbose] > │ Test case 1. Average Time: 64L │
00:00:14 #1657 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #1658 [Verbose] >
00:00:14 #1659 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:14 #1660 [Verbose] > // // test
00:00:14 #1661 [Verbose] >
00:00:14 #1662 [Verbose] > inl get_solutions () =
00:00:14 #1663 [Verbose] > [[
00:00:14 #1664 [Verbose] > "A",
00:00:14 #1665 [Verbose] > fun n =>
00:00:14 #1666 [Verbose] > n + 1f64
00:00:14 #1667 [Verbose] > ]]
00:00:14 #1668 [Verbose] >
00:00:14 #1669 [Verbose] > inl rec empty_1_tests () =
00:00:14 #1670 [Verbose] > inl test_cases = [[
00:00:14 #1671 [Verbose] > 0, 1
00:00:14 #1672 [Verbose] > 2, 3
00:00:14 #1673 [Verbose] > 5, 6
00:00:14 #1674 [Verbose] > ]]
00:00:14 #1675 [Verbose] >
00:00:14 #1676 [Verbose] > inl solutions = get_solutions ()
00:00:14 #1677 [Verbose] >
00:00:14 #1678 [Verbose] > // inl is_fast () = true
00:00:14 #1679 [Verbose] >
00:00:14 #1680 [Verbose] > inl count =
00:00:14 #1681 [Verbose] > if is_fast ()
00:00:14 #1682 [Verbose] > then 1000i32
00:00:14 #1683 [Verbose] > else 2000000i32
00:00:14 #1684 [Verbose] >
00:00:14 #1685 [Verbose] > run_all (nameof empty_1_tests) count solutions test_cases
00:00:14 #1686 [Verbose] > |> sort_result_list
00:00:14 #1687 [Verbose] >
00:00:14 #1688 [Verbose] > empty_1_tests ()
00:00:14 #1689 [Verbose] > Building /tmp/!dotnet-repl/20240325-2024-4053-5366-5a5f6febae5b/main.spi
00:00:17 #1690 [Verbose] >
00:00:17 #1691 [Verbose] > ╭─[ 3.09s - stdout ]───────────────────────────────────────────────────────────╮
00:00:17 #1692 [Verbose] > │ type UH0 = │
00:00:17 #1693 [Verbose] > │ | UH0_0 of float * float * UH0 │
00:00:17 #1694 [Verbose] > │ | UH0_1 │
00:00:17 #1695 [Verbose] > │ and Mut0 = {mutable l0 : uint64} │
00:00:17 #1696 [Verbose] > │ and UH1 = │
00:00:17 #1697 [Verbose] > │ | UH1_0 of int32 * string * (float -> float) * UH1 │
00:00:17 #1698 [Verbose] > │ | UH1_1 │
00:00:17 #1699 [Verbose] > │ and Mut1 = {mutable l0 : int32} │
00:00:17 #1700 [Verbose] > │ and UH2 = │
00:00:17 #1701 [Verbose] > │ | UH2_0 of string * UH2 │
00:00:17 #1702 [Verbose] > │ | UH2_1 │
00:00:17 #1703 [Verbose] > │ and [<Struct>] US0 = │
00:00:17 #1704 [Verbose] > │ | US0_0 │
00:00:17 #1705 [Verbose] > │ | US0_1 of f1_0 : System.ConsoleColor │
00:00:17 #1706 [Verbose] > │ and UH3 = │
00:00:17 #1707 [Verbose] > │ | UH3_0 of int64 * int64 * UH3 │
00:00:17 #1708 [Verbose] > │ | UH3_1 │
00:00:17 #1709 [Verbose] > │ and Mut2 = {mutable l0 : uint64; mutable l1 : UH3; mutable l2 : int64} │
00:00:17 #1710 [Verbose] > │ and UH4 = │
00:00:17 #1711 [Verbose] > │ | UH4_0 of UH2 * US0 * UH4 │
00:00:17 #1712 [Verbose] > │ | UH4_1 │
00:00:17 #1713 [Verbose] > │ and [<Struct>] US1 = │
00:00:17 #1714 [Verbose] > │ | US1_0 │
00:00:17 #1715 [Verbose] > │ | US1_1 of f1_0 : int64 │
00:00:17 #1716 [Verbose] > │ and UH5 = │
00:00:17 #1717 [Verbose] > │ | UH5_0 of int32 * int64 * UH5 │
00:00:17 #1718 [Verbose] > │ | UH5_1 │
00:00:17 #1719 [Verbose] > │ and Mut3 = {mutable l0 : uint64; mutable l1 : UH5; mutable l2 : int32} │
00:00:17 #1720 [Verbose] > │ and UH6 = │
00:00:17 #1721 [Verbose] > │ | UH6_0 of int32 * string * UH6 │
00:00:17 #1722 [Verbose] > │ | UH6_1 │
00:00:17 #1723 [Verbose] > │ let rec method2 (v0 : UH0, v1 : uint64) : uint64 = │
00:00:17 #1724 [Verbose] > │ match v0 with │
00:00:17 #1725 [Verbose] > │ | UH0_0(v2, v3, v4) -> (* Cons *) │
00:00:17 #1726 [Verbose] > │ let v5 : uint64 = v1 + 1UL │
00:00:17 #1727 [Verbose] > │ method2(v4, v5) │
00:00:17 #1728 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:17 #1729 [Verbose] > │ v1 │
00:00:17 #1730 [Verbose] > │ and method3 (v0 : (struct (float * float) []), v1 : UH0, v2 : uint64) : │
00:00:17 #1731 [Verbose] > │ uint64 = │
00:00:17 #1732 [Verbose] > │ match v1 with │
00:00:17 #1733 [Verbose] > │ | UH0_0(v3, v4, v5) -> (* Cons *) │
00:00:17 #1734 [Verbose] > │ v0.[int v2] <- struct (v3, v4) │
00:00:17 #1735 [Verbose] > │ let v6 : uint64 = v2 + 1UL │
00:00:17 #1736 [Verbose] > │ method3(v0, v5, v6) │
00:00:17 #1737 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:17 #1738 [Verbose] > │ v2 │
00:00:17 #1739 [Verbose] > │ and method1 (v0 : UH0) : (struct (float * float) []) = │
00:00:17 #1740 [Verbose] > │ let v1 : uint64 = 0UL │
00:00:17 #1741 [Verbose] > │ let v2 : uint64 = method2(v0, v1) │
00:00:17 #1742 [Verbose] > │ let v3 : (struct (float * float) []) = Array.zeroCreate<struct (float * │
00:00:17 #1743 [Verbose] > │ float)> (System.Convert.ToInt32(v2)) │
00:00:17 #1744 [Verbose] > │ let v4 : uint64 = 0UL │
00:00:17 #1745 [Verbose] > │ let v5 : uint64 = method3(v3, v0, v4) │
00:00:17 #1746 [Verbose] > │ v3 │
00:00:17 #1747 [Verbose] > │ and method4 (v0 : uint64, v1 : Mut0) : bool = │
00:00:17 #1748 [Verbose] > │ let v2 : uint64 = v1.l0 │
00:00:17 #1749 [Verbose] > │ let v3 : bool = v2 < v0 │
00:00:17 #1750 [Verbose] > │ v3 │
00:00:17 #1751 [Verbose] > │ and closure1 () (v0 : float) : float = │
00:00:17 #1752 [Verbose] > │ let v1 : float = v0 + 1.0 │
00:00:17 #1753 [Verbose] > │ v1 │
00:00:17 #1754 [Verbose] > │ and method6 (v0 : UH1, v1 : uint64) : uint64 = │
00:00:17 #1755 [Verbose] > │ match v0 with │
00:00:17 #1756 [Verbose] > │ | UH1_0(v2, v3, v4, v5) -> (* Cons *) │
00:00:17 #1757 [Verbose] > │ let v6 : uint64 = v1 + 1UL │
00:00:17 #1758 [Verbose] > │ method6(v5, v6) │
00:00:17 #1759 [Verbose] > │ | UH1_1 -> (* Nil *) │
00:00:17 #1760 [Verbose] > │ v1 │
00:00:17 #1761 [Verbose] > │ and method7 (v0 : (struct (int32 * string * (float -> float)) []), v1 : UH1, │
00:00:17 #1762 [Verbose] > │ v2 : uint64) : uint64 = │
00:00:17 #1763 [Verbose] > │ match v1 with │
00:00:17 #1764 [Verbose] > │ | UH1_0(v3, v4, v5, v6) -> (* Cons *) │
00:00:17 #1765 [Verbose] > │ v0.[int v2] <- struct (v3, v4, v5) │
00:00:17 #1766 [Verbose] > │ let v7 : uint64 = v2 + 1UL │
00:00:17 #1767 [Verbose] > │ method7(v0, v6, v7) │
00:00:17 #1768 [Verbose] > │ | UH1_1 -> (* Nil *) │
00:00:17 #1769 [Verbose] > │ v2 │
00:00:17 #1770 [Verbose] > │ and method5 (v0 : UH1) : (struct (int32 * string * (float -> float)) []) = │
00:00:17 #1771 [Verbose] > │ let v1 : uint64 = 0UL │
00:00:17 #1772 [Verbose] > │ let v2 : uint64 = method6(v0, v1) │
00:00:17 #1773 [Verbose] > │ let v3 : (struct (int32 * string * (float -> float)) []) = │
00:00:17 #1774 [Verbose] > │ Array.zeroCreate<struct (int32 * string * (float -> float))> │
00:00:17 #1775 [Verbose] > │ (System.Convert.ToInt32(v2)) │
00:00:17 #1776 [Verbose] > │ let v4 : uint64 = 0UL │
00:00:17 #1777 [Verbose] > │ let v5 : uint64 = method7(v3, v0, v4) │
00:00:17 #1778 [Verbose] > │ v3 │
00:00:17 #1779 [Verbose] > │ and method8 (v0 : Mut1) : bool = │
00:00:17 #1780 [Verbose] > │ let v1 : int32 = v0.l0 │
00:00:17 #1781 [Verbose] > │ let v2 : bool = v1 < 2000001 │
00:00:17 #1782 [Verbose] > │ v2 │
00:00:17 #1783 [Verbose] > │ and closure2 (v0 : float, v1 : (float -> float)) (v2 : int32) : float = │
00:00:17 #1784 [Verbose] > │ v1 v0 │
00:00:17 #1785 [Verbose] > │ and method9 (v0 : float, v1 : (float []), v2 : uint64) : bool = │
00:00:17 #1786 [Verbose] > │ let v3 : uint64 = System.Convert.ToUInt64 v1.Length │
00:00:17 #1787 [Verbose] > │ let v4 : bool = v2 < v3 │
00:00:17 #1788 [Verbose] > │ if v4 then │
00:00:17 #1789 [Verbose] > │ let v5 : float = v1.[int v2] │
00:00:17 #1790 [Verbose] > │ let v6 : bool = v0 = v5 │
00:00:17 #1791 [Verbose] > │ if v6 then │
00:00:17 #1792 [Verbose] > │ let v7 : uint64 = v2 + 1UL │
00:00:17 #1793 [Verbose] > │ method9(v0, v1, v7) │
00:00:17 #1794 [Verbose] > │ else │
00:00:17 #1795 [Verbose] > │ false │
00:00:17 #1796 [Verbose] > │ else │
00:00:17 #1797 [Verbose] > │ true │
00:00:17 #1798 [Verbose] > │ and method10 (v0 : uint64, v1 : Mut2) : bool = │
00:00:17 #1799 [Verbose] > │ let v2 : uint64 = v1.l0 │
00:00:17 #1800 [Verbose] > │ let v3 : bool = v2 < v0 │
00:00:17 #1801 [Verbose] > │ v3 │
00:00:17 #1802 [Verbose] > │ and method11 (v0 : UH3, v1 : UH3) : UH3 = │
00:00:17 #1803 [Verbose] > │ match v0 with │
00:00:17 #1804 [Verbose] > │ | UH3_0(v2, v3, v4) -> (* Cons *) │
00:00:17 #1805 [Verbose] > │ let v5 : UH3 = UH3_0(v2, v3, v1) │
00:00:17 #1806 [Verbose] > │ method11(v4, v5) │
00:00:17 #1807 [Verbose] > │ | UH3_1 -> (* Nil *) │
00:00:17 #1808 [Verbose] > │ v1 │
00:00:17 #1809 [Verbose] > │ and method13 (v0 : UH3, v1 : int32) : int32 = │
00:00:17 #1810 [Verbose] > │ match v0 with │
00:00:17 #1811 [Verbose] > │ | UH3_0(v2, v3, v4) -> (* Cons *) │
00:00:17 #1812 [Verbose] > │ let v5 : int32 = v1 + 1 │
00:00:17 #1813 [Verbose] > │ method13(v4, v5) │
00:00:17 #1814 [Verbose] > │ | UH3_1 -> (* Nil *) │
00:00:17 #1815 [Verbose] > │ v1 │
00:00:17 #1816 [Verbose] > │ and method14 (v0 : (struct (int64 * int64) []), v1 : UH3, v2 : int32) : │
00:00:17 #1817 [Verbose] > │ int32 = │
00:00:17 #1818 [Verbose] > │ match v1 with │
00:00:17 #1819 [Verbose] > │ | UH3_0(v3, v4, v5) -> (* Cons *) │
00:00:17 #1820 [Verbose] > │ v0.[int v2] <- struct (v3, v4) │
00:00:17 #1821 [Verbose] > │ let v6 : int32 = v2 + 1 │
00:00:17 #1822 [Verbose] > │ method14(v0, v5, v6) │
00:00:17 #1823 [Verbose] > │ | UH3_1 -> (* Nil *) │
00:00:17 #1824 [Verbose] > │ v2 │
00:00:17 #1825 [Verbose] > │ and method12 (v0 : UH3) : (struct (int64 * int64) []) = │
00:00:17 #1826 [Verbose] > │ let v1 : int32 = 0 │
00:00:17 #1827 [Verbose] > │ let v2 : int32 = method13(v0, v1) │
00:00:17 #1828 [Verbose] > │ let v3 : (struct (int64 * int64) []) = Array.zeroCreate<struct (int64 * │
00:00:17 #1829 [Verbose] > │ int64)> (v2) │
00:00:17 #1830 [Verbose] > │ let v4 : int32 = 0 │
00:00:17 #1831 [Verbose] > │ let v5 : int32 = method14(v3, v0, v4) │
00:00:17 #1832 [Verbose] > │ v3 │
00:00:17 #1833 [Verbose] > │ and method15 (v0 : int32, v1 : Mut1) : bool = │
00:00:17 #1834 [Verbose] > │ let v2 : int32 = v1.l0 │
00:00:17 #1835 [Verbose] > │ let v3 : bool = v2 < v0 │
00:00:17 #1836 [Verbose] > │ v3 │
00:00:17 #1837 [Verbose] > │ and closure3 () struct (v0 : int64, v1 : int64) : int64 = │
00:00:17 #1838 [Verbose] > │ v1 │
00:00:17 #1839 [Verbose] > │ and method17 (v0 : UH4, v1 : uint64) : uint64 = │
00:00:17 #1840 [Verbose] > │ match v0 with │
00:00:17 #1841 [Verbose] > │ | UH4_0(v2, v3, v4) -> (* Cons *) │
00:00:17 #1842 [Verbose] > │ let v5 : uint64 = v1 + 1UL │
00:00:17 #1843 [Verbose] > │ method17(v4, v5) │
00:00:17 #1844 [Verbose] > │ | UH4_1 -> (* Nil *) │
00:00:17 #1845 [Verbose] > │ v1 │
00:00:17 #1846 [Verbose] > │ and method18 (v0 : (struct (UH2 * US0) []), v1 : UH4, v2 : uint64) : uint64 │
00:00:17 #1847 [Verbose] > │ = │
00:00:17 #1848 [Verbose] > │ match v1 with │
00:00:17 #1849 [Verbose] > │ | UH4_0(v3, v4, v5) -> (* Cons *) │
00:00:17 #1850 [Verbose] > │ v0.[int v2] <- struct (v3, v4) │
00:00:17 #1851 [Verbose] > │ let v6 : uint64 = v2 + 1UL │
00:00:17 #1852 [Verbose] > │ method18(v0, v5, v6) │
00:00:17 #1853 [Verbose] > │ | UH4_1 -> (* Nil *) │
00:00:17 #1854 [Verbose] > │ v2 │
00:00:17 #1855 [Verbose] > │ and method16 (v0 : UH4) : (struct (UH2 * US0) []) = │
00:00:17 #1856 [Verbose] > │ let v1 : uint64 = 0UL │
00:00:17 #1857 [Verbose] > │ let v2 : uint64 = method17(v0, v1) │
00:00:17 #1858 [Verbose] > │ let v3 : (struct (UH2 * US0) []) = Array.zeroCreate<struct (UH2 * US0)> │
00:00:17 #1859 [Verbose] > │ (System.Convert.ToInt32(v2)) │
00:00:17 #1860 [Verbose] > │ let v4 : uint64 = 0UL │
00:00:17 #1861 [Verbose] > │ let v5 : uint64 = method18(v3, v0, v4) │
00:00:17 #1862 [Verbose] > │ v3 │
00:00:17 #1863 [Verbose] > │ and method20 (v0 : UH2, v1 : uint64) : uint64 = │
00:00:17 #1864 [Verbose] > │ match v0 with │
00:00:17 #1865 [Verbose] > │ | UH2_0(v2, v3) -> (* Cons *) │
00:00:17 #1866 [Verbose] > │ let v4 : uint64 = v1 + 1UL │
00:00:17 #1867 [Verbose] > │ method20(v3, v4) │
00:00:17 #1868 [Verbose] > │ | UH2_1 -> (* Nil *) │
00:00:17 #1869 [Verbose] > │ v1 │
00:00:17 #1870 [Verbose] > │ and method21 (v0 : (string []), v1 : UH2, v2 : uint64) : uint64 = │
00:00:17 #1871 [Verbose] > │ match v1 with │
00:00:17 #1872 [Verbose] > │ | UH2_0(v3, v4) -> (* Cons *) │
00:00:17 #1873 [Verbose] > │ v0.[int v2] <- v3 │
00:00:17 #1874 [Verbose] > │ let v5 : uint64 = v2 + 1UL │
00:00:17 #1875 [Verbose] > │ method21(v0, v4, v5) │
00:00:17 #1876 [Verbose] > │ | UH2_1 -> (* Nil *) │
00:00:17 #1877 [Verbose] > │ v2 │
00:00:17 #1878 [Verbose] > │ and method19 (v0 : UH2) : (string []) = │
00:00:17 #1879 [Verbose] > │ let v1 : uint64 = 0UL │
00:00:17 #1880 [Verbose] > │ let v2 : uint64 = method20(v0, v1) │
00:00:17 #1881 [Verbose] > │ let v3 : (string []) = Array.zeroCreate<string> │
00:00:17 #1882 [Verbose] > │ (System.Convert.ToInt32(v2)) │
00:00:17 #1883 [Verbose] > │ let v4 : uint64 = 0UL │
00:00:17 #1884 [Verbose] > │ let v5 : uint64 = method21(v3, v0, v4) │
00:00:17 #1885 [Verbose] > │ v3 │
00:00:17 #1886 [Verbose] > │ and closure4 () (v0 : int64) : US1 = │
00:00:17 #1887 [Verbose] > │ US1_1(v0) │
00:00:17 #1888 [Verbose] > │ and method22 (v0 : uint64, v1 : Mut3) : bool = │
00:00:17 #1889 [Verbose] > │ let v2 : uint64 = v1.l0 │
00:00:17 #1890 [Verbose] > │ let v3 : bool = v2 < v0 │
00:00:17 #1891 [Verbose] > │ v3 │
00:00:17 #1892 [Verbose] > │ and method23 (v0 : UH5, v1 : UH5) : UH5 = │
00:00:17 #1893 [Verbose] > │ match v0 with │
00:00:17 #1894 [Verbose] > │ | UH5_0(v2, v3, v4) -> (* Cons *) │
00:00:17 #1895 [Verbose] > │ let v5 : UH5 = UH5_0(v2, v3, v1) │
00:00:17 #1896 [Verbose] > │ method23(v4, v5) │
00:00:17 #1897 [Verbose] > │ | UH5_1 -> (* Nil *) │
00:00:17 #1898 [Verbose] > │ v1 │
00:00:17 #1899 [Verbose] > │ and method25 (v0 : UH5, v1 : int32) : int32 = │
00:00:17 #1900 [Verbose] > │ match v0 with │
00:00:17 #1901 [Verbose] > │ | UH5_0(v2, v3, v4) -> (* Cons *) │
00:00:17 #1902 [Verbose] > │ let v5 : int32 = v1 + 1 │
00:00:17 #1903 [Verbose] > │ method25(v4, v5) │
00:00:17 #1904 [Verbose] > │ | UH5_1 -> (* Nil *) │
00:00:17 #1905 [Verbose] > │ v1 │
00:00:17 #1906 [Verbose] > │ and method26 (v0 : (struct (int32 * int64) []), v1 : UH5, v2 : int32) : │
00:00:17 #1907 [Verbose] > │ int32 = │
00:00:17 #1908 [Verbose] > │ match v1 with │
00:00:17 #1909 [Verbose] > │ | UH5_0(v3, v4, v5) -> (* Cons *) │
00:00:17 #1910 [Verbose] > │ v0.[int v2] <- struct (v3, v4) │
00:00:17 #1911 [Verbose] > │ let v6 : int32 = v2 + 1 │
00:00:17 #1912 [Verbose] > │ method26(v0, v5, v6) │
00:00:17 #1913 [Verbose] > │ | UH5_1 -> (* Nil *) │
00:00:17 #1914 [Verbose] > │ v2 │
00:00:17 #1915 [Verbose] > │ and method24 (v0 : UH5) : (struct (int32 * int64) []) = │
00:00:17 #1916 [Verbose] > │ let v1 : int32 = 0 │
00:00:17 #1917 [Verbose] > │ let v2 : int32 = method25(v0, v1) │
00:00:17 #1918 [Verbose] > │ let v3 : (struct (int32 * int64) []) = Array.zeroCreate<struct (int32 * │
00:00:17 #1919 [Verbose] > │ int64)> (v2) │
00:00:17 #1920 [Verbose] > │ let v4 : int32 = 0 │
00:00:17 #1921 [Verbose] > │ let v5 : int32 = method26(v3, v0, v4) │
00:00:17 #1922 [Verbose] > │ v3 │
00:00:17 #1923 [Verbose] > │ and method27 (v0 : UH2, v1 : UH6, v2 : int32) : struct (UH6 * int32) = │
00:00:17 #1924 [Verbose] > │ match v0 with │
00:00:17 #1925 [Verbose] > │ | UH2_0(v3, v4) -> (* Cons *) │
00:00:17 #1926 [Verbose] > │ let v5 : int32 = v2 + 1 │
00:00:17 #1927 [Verbose] > │ let v6 : UH6 = UH6_0(v2, v3, v1) │
00:00:17 #1928 [Verbose] > │ method27(v4, v6, v5) │
00:00:17 #1929 [Verbose] > │ | UH2_1 -> (* Nil *) │
00:00:17 #1930 [Verbose] > │ struct (v1, v2) │
00:00:17 #1931 [Verbose] > │ and method28 (v0 : UH6, v1 : UH6) : UH6 = │
00:00:17 #1932 [Verbose] > │ match v0 with │
00:00:17 #1933 [Verbose] > │ | UH6_0(v2, v3, v4) -> (* Cons *) │
00:00:17 #1934 [Verbose] > │ let v5 : UH6 = UH6_0(v2, v3, v1) │
00:00:17 #1935 [Verbose] > │ method28(v4, v5) │
00:00:17 #1936 [Verbose] > │ | UH6_1 -> (* Nil *) │
00:00:17 #1937 [Verbose] > │ v1 │
00:00:17 #1938 [Verbose] > │ and method29 (v0 : Map<int32, int64>, v1 : UH6, v2 : UH2) : UH2 = │
00:00:17 #1939 [Verbose] > │ match v1 with │
00:00:17 #1940 [Verbose] > │ | UH6_0(v3, v4, v5) -> (* Cons *) │
00:00:17 #1941 [Verbose] > │ let v6 : UH2 = method29(v0, v5, v2) │
00:00:17 #1942 [Verbose] > │ let v7 : int64 = v0.[v3] │
00:00:17 #1943 [Verbose] > │ let v8 : int32 = int32 v7 │
00:00:17 #1944 [Verbose] > │ let v9 : string = v4.PadRight v8 │
00:00:17 #1945 [Verbose] > │ UH2_0(v9, v6) │
00:00:17 #1946 [Verbose] > │ | UH6_1 -> (* Nil *) │
00:00:17 #1947 [Verbose] > │ v2 │
00:00:17 #1948 [Verbose] > │ and method31 (v0 : UH2, v1 : int32) : int32 = │
00:00:17 #1949 [Verbose] > │ match v0 with │
00:00:17 #1950 [Verbose] > │ | UH2_0(v2, v3) -> (* Cons *) │
00:00:17 #1951 [Verbose] > │ let v4 : int32 = v1 + 1 │
00:00:17 #1952 [Verbose] > │ method31(v3, v4) │
00:00:17 #1953 [Verbose] > │ | UH2_1 -> (* Nil *) │
00:00:17 #1954 [Verbose] > │ v1 │
00:00:17 #1955 [Verbose] > │ and method32 (v0 : (string []), v1 : UH2, v2 : int32) : int32 = │
00:00:17 #1956 [Verbose] > │ match v1 with │
00:00:17 #1957 [Verbose] > │ | UH2_0(v3, v4) -> (* Cons *) │
00:00:17 #1958 [Verbose] > │ v0.[int v2] <- v3 │
00:00:17 #1959 [Verbose] > │ let v5 : int32 = v2 + 1 │
00:00:17 #1960 [Verbose] > │ method32(v0, v4, v5) │
00:00:17 #1961 [Verbose] > │ | UH2_1 -> (* Nil *) │
00:00:17 #1962 [Verbose] > │ v2 │
00:00:17 #1963 [Verbose] > │ and method30 (v0 : UH2) : (string []) = │
00:00:17 #1964 [Verbose] > │ let v1 : int32 = 0 │
00:00:17 #1965 [Verbose] > │ let v2 : int32 = method31(v0, v1) │
00:00:17 #1966 [Verbose] > │ let v3 : (string []) = Array.zeroCreate<string> (v2) │
00:00:17 #1967 [Verbose] > │ let v4 : int32 = 0 │
00:00:17 #1968 [Verbose] > │ let v5 : int32 = method32(v3, v0, v4) │
00:00:17 #1969 [Verbose] > │ v3 │
00:00:17 #1970 [Verbose] > │ and method34 (v0 : UH5, v1 : uint64) : uint64 = │
00:00:17 #1971 [Verbose] > │ match v0 with │
00:00:17 #1972 [Verbose] > │ | UH5_0(v2, v3, v4) -> (* Cons *) │
00:00:17 #1973 [Verbose] > │ let v5 : uint64 = v1 + 1UL │
00:00:17 #1974 [Verbose] > │ method34(v4, v5) │
00:00:17 #1975 [Verbose] > │ | UH5_1 -> (* Nil *) │
00:00:17 #1976 [Verbose] > │ v1 │
00:00:17 #1977 [Verbose] > │ and method35 (v0 : (struct (int32 * int64) []), v1 : UH5, v2 : uint64) : │
00:00:17 #1978 [Verbose] > │ uint64 = │
00:00:17 #1979 [Verbose] > │ match v1 with │
00:00:17 #1980 [Verbose] > │ | UH5_0(v3, v4, v5) -> (* Cons *) │
00:00:17 #1981 [Verbose] > │ v0.[int v2] <- struct (v3, v4) │
00:00:17 #1982 [Verbose] > │ let v6 : uint64 = v2 + 1UL │
00:00:17 #1983 [Verbose] > │ method35(v0, v5, v6) │
00:00:17 #1984 [Verbose] > │ | UH5_1 -> (* Nil *) │
00:00:17 #1985 [Verbose] > │ v2 │
00:00:17 #1986 [Verbose] > │ and method33 (v0 : UH5) : (struct (int32 * int64) []) = │
00:00:17 #1987 [Verbose] > │ let v1 : uint64 = 0UL │
00:00:17 #1988 [Verbose] > │ let v2 : uint64 = method34(v0, v1) │
00:00:17 #1989 [Verbose] > │ let v3 : (struct (int32 * int64) []) = Array.zeroCreate<struct (int32 * │
00:00:17 #1990 [Verbose] > │ int64)> (System.Convert.ToInt32(v2)) │
00:00:17 #1991 [Verbose] > │ let v4 : uint64 = 0UL │
00:00:17 #1992 [Verbose] > │ let v5 : uint64 = method35(v3, v0, v4) │
00:00:17 #1993 [Verbose] > │ v3 │
00:00:17 #1994 [Verbose] > │ and closure5 () struct (v0 : int32, v1 : int64) : int64 = │
00:00:17 #1995 [Verbose] > │ v1 │
00:00:17 #1996 [Verbose] > │ and closure0 () () : unit = │
00:00:17 #1997 [Verbose] > │ let v0 : (unit -> unit) = closure0() │
00:00:17 #1998 [Verbose] > │ let v1 : string = nameof v0 │
00:00:17 #1999 [Verbose] > │ let v2 : string = "" │
00:00:17 #2000 [Verbose] > │ System.Console.WriteLine v2 │
00:00:17 #2001 [Verbose] > │ System.Console.WriteLine v2 │
00:00:17 #2002 [Verbose] > │ let v3 : string = $"Test: {v1}" │
00:00:17 #2003 [Verbose] > │ System.Console.WriteLine v3 │
00:00:17 #2004 [Verbose] > │ let v4 : float = 0.0 │
00:00:17 #2005 [Verbose] > │ let v5 : float = 1.0 │
00:00:17 #2006 [Verbose] > │ let v6 : float = 2.0 │
00:00:17 #2007 [Verbose] > │ let v7 : float = 3.0 │
00:00:17 #2008 [Verbose] > │ let v8 : float = 5.0 │
00:00:17 #2009 [Verbose] > │ let v9 : float = 6.0 │
00:00:17 #2010 [Verbose] > │ let v10 : UH0 = UH0_1 │
00:00:17 #2011 [Verbose] > │ let v11 : UH0 = UH0_0(v8, v9, v10) │
00:00:17 #2012 [Verbose] > │ let v12 : UH0 = UH0_0(v6, v7, v11) │
00:00:17 #2013 [Verbose] > │ let v13 : UH0 = UH0_0(v4, v5, v12) │
00:00:17 #2014 [Verbose] > │ let v14 : (struct (float * float) []) = method1(v13) │
00:00:17 #2015 [Verbose] > │ let v15 : uint64 = System.Convert.ToUInt64 v14.Length │
00:00:17 #2016 [Verbose] > │ let v16 : (struct (string * string * string * (int64 [])) []) = │
00:00:17 #2017 [Verbose] > │ Array.zeroCreate<struct (string * string * string * (int64 []))> │
00:00:17 #2018 [Verbose] > │ (System.Convert.ToInt32(v15)) │
00:00:17 #2019 [Verbose] > │ let v17 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:17 #2020 [Verbose] > │ while method4(v15, v17) do │
00:00:17 #2021 [Verbose] > │ let v19 : uint64 = v17.l0 │
00:00:17 #2022 [Verbose] > │ let struct (v20 : float, v21 : float) = v14.[int v19] │
00:00:17 #2023 [Verbose] > │ let v22 : string = $"%A{v20}" │
00:00:17 #2024 [Verbose] > │ System.Console.WriteLine v2 │
00:00:17 #2025 [Verbose] > │ let v23 : string = $"Solution: {v22} " │
00:00:17 #2026 [Verbose] > │ System.Console.WriteLine v23 │
00:00:17 #2027 [Verbose] > │ let v24 : int32 = 0 │
00:00:17 #2028 [Verbose] > │ let v25 : string = "A" │
00:00:17 #2029 [Verbose] > │ let v26 : (float -> float) = closure1() │
00:00:17 #2030 [Verbose] > │ let v27 : UH1 = UH1_1 │
00:00:17 #2031 [Verbose] > │ let v28 : UH1 = UH1_0(v24, v25, v26, v27) │
00:00:17 #2032 [Verbose] > │ let v29 : (struct (int32 * string * (float -> float)) []) = │
00:00:17 #2033 [Verbose] > │ method5(v28) │
00:00:17 #2034 [Verbose] > │ let v30 : uint64 = System.Convert.ToUInt64 v29.Length │
00:00:17 #2035 [Verbose] > │ let v31 : (struct (float * int64) []) = Array.zeroCreate<struct │
00:00:17 #2036 [Verbose] > │ (float * int64)> (System.Convert.ToInt32(v30)) │
00:00:17 #2037 [Verbose] > │ let v32 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:17 #2038 [Verbose] > │ while method4(v30, v32) do │
00:00:17 #2039 [Verbose] > │ let v34 : uint64 = v32.l0 │
00:00:17 #2040 [Verbose] > │ let struct (v35 : int32, v36 : string, v37 : (float -> float)) = │
00:00:17 #2041 [Verbose] > │ v29.[int v34] │
00:00:17 #2042 [Verbose] > │ let mutable result = None │
00:00:17 #2043 [Verbose] > │ #if FABLE_COMPILER_RUST │
00:00:17 #2044 [Verbose] > │ #if !WASM │
00:00:17 #2045 [Verbose] > │ () │
00:00:17 #2046 [Verbose] > │ #else │
00:00:17 #2047 [Verbose] > │ () │
00:00:17 #2048 [Verbose] > │ #endif │
00:00:17 #2049 [Verbose] > │ #else │
00:00:17 #2050 [Verbose] > │ System.GC.Collect () │
00:00:17 #2051 [Verbose] > │ () │
00:00:17 #2052 [Verbose] > │ #endif │
00:00:17 #2053 [Verbose] > │ |> fun x -> result <- Some x │
00:00:17 #2054 [Verbose] > │ result |> Option.get │
00:00:17 #2055 [Verbose] > │ let v38 : (unit -> System.Diagnostics.Stopwatch) = │
00:00:17 #2056 [Verbose] > │ System.Diagnostics.Stopwatch │
00:00:17 #2057 [Verbose] > │ let v39 : System.Diagnostics.Stopwatch = v38 () │
00:00:17 #2058 [Verbose] > │ v39.Start () │
00:00:17 #2059 [Verbose] > │ let v40 : int64 = v39.ElapsedMilliseconds │
00:00:17 #2060 [Verbose] > │ let v41 : (int32 []) = Array.zeroCreate<int32> (2000001) │
00:00:17 #2061 [Verbose] > │ let v42 : Mut1 = {l0 = 0} : Mut1 │
00:00:17 #2062 [Verbose] > │ while method8(v42) do │
00:00:17 #2063 [Verbose] > │ let v44 : int32 = v42.l0 │
00:00:17 #2064 [Verbose] > │ v41.[int v44] <- v44 │
00:00:17 #2065 [Verbose] > │ let v45 : int32 = v44 + 1 │
00:00:17 #2066 [Verbose] > │ v42.l0 <- v45 │
00:00:17 #2067 [Verbose] > │ () │
00:00:17 #2068 [Verbose] > │ let v46 : (int32 -> float) = closure2(v20, v37) │
00:00:17 #2069 [Verbose] > │ let v47 : (float []) = v41 |> Array.Parallel.map v46 │
00:00:17 #2070 [Verbose] > │ let v48 : int32 = v47.Length │
00:00:17 #2071 [Verbose] > │ let v49 : int32 = v48 - 1 │
00:00:17 #2072 [Verbose] > │ let v50 : float = v47.[int v49] │
00:00:17 #2073 [Verbose] > │ let v51 : int64 = v39.ElapsedMilliseconds │
00:00:17 #2074 [Verbose] > │ let v52 : int64 = v51 - v40 │
00:00:17 #2075 [Verbose] > │ let v53 : string = $"Test case {v35 + 1}. {v36}. Time: {v52} " │
00:00:17 #2076 [Verbose] > │ System.Console.WriteLine v53 │
00:00:17 #2077 [Verbose] > │ v31.[int v34] <- struct (v50, v52) │
00:00:17 #2078 [Verbose] > │ let v54 : uint64 = v34 + 1UL │
00:00:17 #2079 [Verbose] > │ v32.l0 <- v54 │
00:00:17 #2080 [Verbose] > │ () │
00:00:17 #2081 [Verbose] > │ let v55 : uint64 = System.Convert.ToUInt64 v31.Length │
00:00:17 #2082 [Verbose] > │ let v56 : (float []) = Array.zeroCreate<float> │
00:00:17 #2083 [Verbose] > │ (System.Convert.ToInt32(v55)) │
00:00:17 #2084 [Verbose] > │ let v57 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:17 #2085 [Verbose] > │ while method4(v55, v57) do │
00:00:17 #2086 [Verbose] > │ let v59 : uint64 = v57.l0 │
00:00:17 #2087 [Verbose] > │ let struct (v60 : float, v61 : int64) = v31.[int v59] │
00:00:17 #2088 [Verbose] > │ v56.[int v59] <- v60 │
00:00:17 #2089 [Verbose] > │ let v62 : uint64 = v59 + 1UL │
00:00:17 #2090 [Verbose] > │ v57.l0 <- v62 │
00:00:17 #2091 [Verbose] > │ () │
00:00:17 #2092 [Verbose] > │ let v63 : uint64 = System.Convert.ToUInt64 v56.Length │
00:00:17 #2093 [Verbose] > │ let v64 : bool = v63 <= 1UL │
00:00:17 #2094 [Verbose] > │ if v64 then │
00:00:17 #2095 [Verbose] > │ () │
00:00:17 #2096 [Verbose] > │ else │
00:00:17 #2097 [Verbose] > │ let v65 : float = v56.[int 0UL] │
00:00:17 #2098 [Verbose] > │ let v66 : uint64 = 0UL │
00:00:17 #2099 [Verbose] > │ let v67 : bool = method9(v65, v56, v66) │
00:00:17 #2100 [Verbose] > │ if v67 then │
00:00:17 #2101 [Verbose] > │ () │
00:00:17 #2102 [Verbose] > │ else │
00:00:17 #2103 [Verbose] > │ let v68 : string = $"Challenge error: {v56}" │
00:00:17 #2104 [Verbose] > │ failwith<unit> v68 │
00:00:17 #2105 [Verbose] > │ let v69 : string = $"%A{v21}" │
00:00:17 #2106 [Verbose] > │ let v70 : (float []) = Array.zeroCreate<float> │
00:00:17 #2107 [Verbose] > │ (System.Convert.ToInt32(v55)) │
00:00:17 #2108 [Verbose] > │ let v71 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:17 #2109 [Verbose] > │ while method4(v55, v71) do │
00:00:17 #2110 [Verbose] > │ let v73 : uint64 = v71.l0 │
00:00:17 #2111 [Verbose] > │ let struct (v74 : float, v75 : int64) = v31.[int v73] │
00:00:17 #2112 [Verbose] > │ v70.[int v73] <- v74 │
00:00:17 #2113 [Verbose] > │ let v76 : uint64 = v73 + 1UL │
00:00:17 #2114 [Verbose] > │ v71.l0 <- v76 │
00:00:17 #2115 [Verbose] > │ () │
00:00:17 #2116 [Verbose] > │ let v77 : float = v70.[int 0UL] │
00:00:17 #2117 [Verbose] > │ let v78 : string = $"%A{v77}" │
00:00:17 #2118 [Verbose] > │ let v79 : (int64 []) = Array.zeroCreate<int64> │
00:00:17 #2119 [Verbose] > │ (System.Convert.ToInt32(v55)) │
00:00:17 #2120 [Verbose] > │ let v80 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:17 #2121 [Verbose] > │ while method4(v55, v80) do │
00:00:17 #2122 [Verbose] > │ let v82 : uint64 = v80.l0 │
00:00:17 #2123 [Verbose] > │ let struct (v83 : float, v84 : int64) = v31.[int v82] │
00:00:17 #2124 [Verbose] > │ v79.[int v82] <- v84 │
00:00:17 #2125 [Verbose] > │ let v85 : uint64 = v82 + 1UL │
00:00:17 #2126 [Verbose] > │ v80.l0 <- v85 │
00:00:17 #2127 [Verbose] > │ () │
00:00:17 #2128 [Verbose] > │ v16.[int v19] <- struct (v69, v22, v78, v79) │
00:00:17 #2129 [Verbose] > │ let v86 : uint64 = v19 + 1UL │
00:00:17 #2130 [Verbose] > │ v17.l0 <- v86 │
00:00:17 #2131 [Verbose] > │ () │
00:00:17 #2132 [Verbose] > │ let v87 : uint64 = System.Convert.ToUInt64 v16.Length │
00:00:17 #2133 [Verbose] > │ let v88 : (struct (UH2 * US0) []) = Array.zeroCreate<struct (UH2 * US0)> │
00:00:17 #2134 [Verbose] > │ (System.Convert.ToInt32(v87)) │
00:00:17 #2135 [Verbose] > │ let v89 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:17 #2136 [Verbose] > │ while method4(v87, v89) do │
00:00:17 #2137 [Verbose] > │ let v91 : uint64 = v89.l0 │
00:00:17 #2138 [Verbose] > │ let struct (v92 : string, v93 : string, v94 : string, v95 : (int64 [ │
00:00:17 #2139 [Verbose] > │ ])) = v16.[int v91] │
00:00:17 #2140 [Verbose] > │ let v96 : uint64 = System.Convert.ToUInt64 v95.Length │
00:00:17 #2141 [Verbose] > │ let v97 : UH3 = UH3_1 │
00:00:17 #2142 [Verbose] > │ let v98 : Mut2 = {l0 = 0UL; l1 = v97; l2 = 0L} : Mut2 │
00:00:17 #2143 [Verbose] > │ while method10(v96, v98) do │
00:00:17 #2144 [Verbose] > │ let v100 : uint64 = v98.l0 │
00:00:17 #2145 [Verbose] > │ let struct (v101 : UH3, v102 : int64) = v98.l1, v98.l2 │
00:00:17 #2146 [Verbose] > │ let v103 : int64 = v95.[int v100] │
00:00:17 #2147 [Verbose] > │ let v104 : int64 = v102 + 1L │
00:00:17 #2148 [Verbose] > │ let v105 : uint64 = v100 + 1UL │
00:00:17 #2149 [Verbose] > │ let v106 : UH3 = UH3_0(v102, v103, v101) │
00:00:17 #2150 [Verbose] > │ v98.l0 <- v105 │
00:00:17 #2151 [Verbose] > │ v98.l1 <- v106 │
00:00:17 #2152 [Verbose] > │ v98.l2 <- v104 │
00:00:17 #2153 [Verbose] > │ () │
00:00:17 #2154 [Verbose] > │ let struct (v107 : UH3, v108 : int64) = v98.l1, v98.l2 │
00:00:17 #2155 [Verbose] > │ let v109 : UH3 = UH3_1 │
00:00:17 #2156 [Verbose] > │ let v110 : UH3 = method11(v107, v109) │
00:00:17 #2157 [Verbose] > │ let v111 : (struct (int64 * int64) []) = method12(v110) │
00:00:17 #2158 [Verbose] > │ let v112 : int32 = v111.Length │
00:00:17 #2159 [Verbose] > │ let v113 : (struct (int64 * int64) []) = Array.zeroCreate<struct │
00:00:17 #2160 [Verbose] > │ (int64 * int64)> (v112) │
00:00:17 #2161 [Verbose] > │ let v114 : Mut1 = {l0 = 0} : Mut1 │
00:00:17 #2162 [Verbose] > │ while method15(v112, v114) do │
00:00:17 #2163 [Verbose] > │ let v116 : int32 = v114.l0 │
00:00:17 #2164 [Verbose] > │ let struct (v117 : int64, v118 : int64) = v111.[int v116] │
00:00:17 #2165 [Verbose] > │ let v119 : int64 = v117 + 1L │
00:00:17 #2166 [Verbose] > │ v113.[int v116] <- struct (v119, v118) │
00:00:17 #2167 [Verbose] > │ let v120 : int32 = v116 + 1 │
00:00:17 #2168 [Verbose] > │ v114.l0 <- v120 │
00:00:17 #2169 [Verbose] > │ () │
00:00:17 #2170 [Verbose] > │ let v121 : (struct (int64 * int64) -> int64) = closure3() │
00:00:17 #2171 [Verbose] > │ let v122 : (struct (int64 * int64) []) = v113 |> Array.sortBy v121 │
00:00:17 #2172 [Verbose] > │ let struct (v123 : int64, v124 : int64) = v122.[int 0] │
00:00:17 #2173 [Verbose] > │ let v125 : string = $"%A{struct (v123, v124)}" │
00:00:17 #2174 [Verbose] > │ let v126 : bool = v92 = v94 │
00:00:17 #2175 [Verbose] > │ let v131 : US0 = │
00:00:17 #2176 [Verbose] > │ if v126 then │
00:00:17 #2177 [Verbose] > │ let v127 : System.ConsoleColor = │
00:00:17 #2178 [Verbose] > │ System.ConsoleColor.DarkGreen │
00:00:17 #2179 [Verbose] > │ US0_1(v127) │
00:00:17 #2180 [Verbose] > │ else │
00:00:17 #2181 [Verbose] > │ let v129 : System.ConsoleColor = System.ConsoleColor.DarkRed │
00:00:17 #2182 [Verbose] > │ US0_1(v129) │
00:00:17 #2183 [Verbose] > │ let v132 : UH2 = UH2_1 │
00:00:17 #2184 [Verbose] > │ let v133 : UH2 = UH2_0(v125, v132) │
00:00:17 #2185 [Verbose] > │ let v134 : UH2 = UH2_0(v94, v133) │
00:00:17 #2186 [Verbose] > │ let v135 : UH2 = UH2_0(v92, v134) │
00:00:17 #2187 [Verbose] > │ let v136 : UH2 = UH2_0(v93, v135) │
00:00:17 #2188 [Verbose] > │ v88.[int v91] <- struct (v136, v131) │
00:00:17 #2189 [Verbose] > │ let v137 : uint64 = v91 + 1UL │
00:00:17 #2190 [Verbose] > │ v89.l0 <- v137 │
00:00:17 #2191 [Verbose] > │ () │
00:00:17 #2192 [Verbose] > │ let v138 : string = "Input" │
00:00:17 #2193 [Verbose] > │ let v139 : string = "Expected" │
00:00:17 #2194 [Verbose] > │ let v140 : string = "Result" │
00:00:17 #2195 [Verbose] > │ let v141 : string = "Best" │
00:00:17 #2196 [Verbose] > │ let v142 : UH2 = UH2_1 │
00:00:17 #2197 [Verbose] > │ let v143 : UH2 = UH2_0(v141, v142) │
00:00:17 #2198 [Verbose] > │ let v144 : UH2 = UH2_0(v140, v143) │
00:00:17 #2199 [Verbose] > │ let v145 : UH2 = UH2_0(v139, v144) │
00:00:17 #2200 [Verbose] > │ let v146 : UH2 = UH2_0(v138, v145) │
00:00:17 #2201 [Verbose] > │ let v147 : US0 = US0_0 │
00:00:17 #2202 [Verbose] > │ let v148 : string = "---" │
00:00:17 #2203 [Verbose] > │ let v149 : UH2 = UH2_1 │
00:00:17 #2204 [Verbose] > │ let v150 : UH2 = UH2_0(v148, v149) │
00:00:17 #2205 [Verbose] > │ let v151 : UH2 = UH2_0(v148, v150) │
00:00:17 #2206 [Verbose] > │ let v152 : UH2 = UH2_0(v148, v151) │
00:00:17 #2207 [Verbose] > │ let v153 : UH2 = UH2_0(v148, v152) │
00:00:17 #2208 [Verbose] > │ let v154 : US0 = US0_0 │
00:00:17 #2209 [Verbose] > │ let v155 : UH4 = UH4_1 │
00:00:17 #2210 [Verbose] > │ let v156 : UH4 = UH4_0(v153, v154, v155) │
00:00:17 #2211 [Verbose] > │ let v157 : UH4 = UH4_0(v146, v147, v156) │
00:00:17 #2212 [Verbose] > │ let v158 : (struct (UH2 * US0) []) = method16(v157) │
00:00:17 #2213 [Verbose] > │ let v159 : uint64 = System.Convert.ToUInt64 v158.Length │
00:00:17 #2214 [Verbose] > │ let v160 : uint64 = System.Convert.ToUInt64 v88.Length │
00:00:17 #2215 [Verbose] > │ let v161 : uint64 = v159 + v160 │
00:00:17 #2216 [Verbose] > │ let v162 : (struct (UH2 * US0) []) = Array.zeroCreate<struct (UH2 * │
00:00:17 #2217 [Verbose] > │ US0)> (System.Convert.ToInt32(v161)) │
00:00:17 #2218 [Verbose] > │ let v163 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:17 #2219 [Verbose] > │ while method4(v161, v163) do │
00:00:17 #2220 [Verbose] > │ let v165 : uint64 = v163.l0 │
00:00:17 #2221 [Verbose] > │ let v166 : bool = v165 < v159 │
00:00:17 #2222 [Verbose] > │ let struct (v172 : UH2, v173 : US0) = │
00:00:17 #2223 [Verbose] > │ if v166 then │
00:00:17 #2224 [Verbose] > │ let struct (v167 : UH2, v168 : US0) = v158.[int v165] │
00:00:17 #2225 [Verbose] > │ struct (v167, v168) │
00:00:17 #2226 [Verbose] > │ else │
00:00:17 #2227 [Verbose] > │ let v169 : uint64 = v165 - v159 │
00:00:17 #2228 [Verbose] > │ let struct (v170 : UH2, v171 : US0) = v88.[int v169] │
00:00:17 #2229 [Verbose] > │ struct (v170, v171) │
00:00:17 #2230 [Verbose] > │ v162.[int v165] <- struct (v172, v173) │
00:00:17 #2231 [Verbose] > │ let v174 : uint64 = v165 + 1UL │
00:00:17 #2232 [Verbose] > │ v163.l0 <- v174 │
00:00:17 #2233 [Verbose] > │ () │
00:00:17 #2234 [Verbose] > │ let v175 : uint64 = System.Convert.ToUInt64 v162.Length │
00:00:17 #2235 [Verbose] > │ let v176 : ((string []) []) = Array.zeroCreate<(string [])> │
00:00:17 #2236 [Verbose] > │ (System.Convert.ToInt32(v175)) │
00:00:17 #2237 [Verbose] > │ let v177 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:17 #2238 [Verbose] > │ while method4(v175, v177) do │
00:00:17 #2239 [Verbose] > │ let v179 : uint64 = v177.l0 │
00:00:17 #2240 [Verbose] > │ let struct (v180 : UH2, v181 : US0) = v162.[int v179] │
00:00:17 #2241 [Verbose] > │ let v182 : (string []) = method19(v180) │
00:00:17 #2242 [Verbose] > │ v176.[int v179] <- v182 │
00:00:17 #2243 [Verbose] > │ let v183 : uint64 = v179 + 1UL │
00:00:17 #2244 [Verbose] > │ v177.l0 <- v183 │
00:00:17 #2245 [Verbose] > │ () │
00:00:17 #2246 [Verbose] > │ let v184 : ((string []) []) = v176 |> Array.transpose │
00:00:17 #2247 [Verbose] > │ let v185 : uint64 = System.Convert.ToUInt64 v184.Length │
00:00:17 #2248 [Verbose] > │ let v186 : (int64 []) = Array.zeroCreate<int64> │
00:00:17 #2249 [Verbose] > │ (System.Convert.ToInt32(v185)) │
00:00:17 #2250 [Verbose] > │ let v187 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:17 #2251 [Verbose] > │ while method4(v185, v187) do │
00:00:17 #2252 [Verbose] > │ let v189 : uint64 = v187.l0 │
00:00:17 #2253 [Verbose] > │ let v190 : (string []) = v184.[int v189] │
00:00:17 #2254 [Verbose] > │ let v191 : uint64 = System.Convert.ToUInt64 v190.Length │
00:00:17 #2255 [Verbose] > │ let v192 : (int64 []) = Array.zeroCreate<int64> │
00:00:17 #2256 [Verbose] > │ (System.Convert.ToInt32(v191)) │
00:00:17 #2257 [Verbose] > │ let v193 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:17 #2258 [Verbose] > │ while method4(v191, v193) do │
00:00:17 #2259 [Verbose] > │ let v195 : uint64 = v193.l0 │
00:00:17 #2260 [Verbose] > │ let v196 : string = v190.[int v195] │
00:00:17 #2261 [Verbose] > │ let v197 : int64 = System.Convert.ToInt64 v196.Length │
00:00:17 #2262 [Verbose] > │ v192.[int v195] <- v197 │
00:00:17 #2263 [Verbose] > │ let v198 : uint64 = v195 + 1UL │
00:00:17 #2264 [Verbose] > │ v193.l0 <- v198 │
00:00:17 #2265 [Verbose] > │ () │
00:00:17 #2266 [Verbose] > │ let v199 : (int64 []) = v192 |> Array.sortDescending │
00:00:17 #2267 [Verbose] > │ let v200 : int64 option = v199 |> Array.tryItem 0 │
00:00:17 #2268 [Verbose] > │ let v201 : (int64 -> US1) = closure4() │
00:00:17 #2269 [Verbose] > │ let v202 : US1 = US1_0 │
00:00:17 #2270 [Verbose] > │ let v203 : US1 = v200 |> Option.map v201 |> Option.defaultValue v202 │
00:00:17 #2271 [Verbose] > │ let v206 : int64 = │
00:00:17 #2272 [Verbose] > │ match v203 with │
00:00:17 #2273 [Verbose] > │ | US1_0 -> (* None *) │
00:00:17 #2274 [Verbose] > │ 0L │
00:00:17 #2275 [Verbose] > │ | US1_1(v204) -> (* Some *) │
00:00:17 #2276 [Verbose] > │ v204 │
00:00:17 #2277 [Verbose] > │ v186.[int v189] <- v206 │
00:00:17 #2278 [Verbose] > │ let v207 : uint64 = v189 + 1UL │
00:00:17 #2279 [Verbose] > │ v187.l0 <- v207 │
00:00:17 #2280 [Verbose] > │ () │
00:00:17 #2281 [Verbose] > │ let v208 : uint64 = System.Convert.ToUInt64 v186.Length │
00:00:17 #2282 [Verbose] > │ let v209 : UH5 = UH5_1 │
00:00:17 #2283 [Verbose] > │ let v210 : Mut3 = {l0 = 0UL; l1 = v209; l2 = 0} : Mut3 │
00:00:17 #2284 [Verbose] > │ while method22(v208, v210) do │
00:00:17 #2285 [Verbose] > │ let v212 : uint64 = v210.l0 │
00:00:17 #2286 [Verbose] > │ let struct (v213 : UH5, v214 : int32) = v210.l1, v210.l2 │
00:00:17 #2287 [Verbose] > │ let v215 : int64 = v186.[int v212] │
00:00:17 #2288 [Verbose] > │ let v216 : int32 = v214 + 1 │
00:00:17 #2289 [Verbose] > │ let v217 : uint64 = v212 + 1UL │
00:00:17 #2290 [Verbose] > │ let v218 : UH5 = UH5_0(v214, v215, v213) │
00:00:17 #2291 [Verbose] > │ v210.l0 <- v217 │
00:00:17 #2292 [Verbose] > │ v210.l1 <- v218 │
00:00:17 #2293 [Verbose] > │ v210.l2 <- v216 │
00:00:17 #2294 [Verbose] > │ () │
00:00:17 #2295 [Verbose] > │ let struct (v219 : UH5, v220 : int32) = v210.l1, v210.l2 │
00:00:17 #2296 [Verbose] > │ let v221 : UH5 = UH5_1 │
00:00:17 #2297 [Verbose] > │ let v222 : UH5 = method23(v219, v221) │
00:00:17 #2298 [Verbose] > │ let v223 : (struct (int32 * int64) []) = method24(v222) │
00:00:17 #2299 [Verbose] > │ let v224 : Map<int32, int64> = v223 |> Array.map (fun (struct (a, b)) -> │
00:00:17 #2300 [Verbose] > │ a, b) |> Map.ofArray │
00:00:17 #2301 [Verbose] > │ let v225 : (struct ((string []) * US0) []) = Array.zeroCreate<struct │
00:00:17 #2302 [Verbose] > │ ((string []) * US0)> (System.Convert.ToInt32(v175)) │
00:00:17 #2303 [Verbose] > │ let v226 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:17 #2304 [Verbose] > │ while method4(v175, v226) do │
00:00:17 #2305 [Verbose] > │ let v228 : uint64 = v226.l0 │
00:00:17 #2306 [Verbose] > │ let struct (v229 : UH2, v230 : US0) = v162.[int v228] │
00:00:17 #2307 [Verbose] > │ let v231 : UH6 = UH6_1 │
00:00:17 #2308 [Verbose] > │ let v232 : int32 = 0 │
00:00:17 #2309 [Verbose] > │ let struct (v233 : UH6, v234 : int32) = method27(v229, v231, v232) │
00:00:17 #2310 [Verbose] > │ let v235 : UH6 = UH6_1 │
00:00:17 #2311 [Verbose] > │ let v236 : UH6 = method28(v233, v235) │
00:00:17 #2312 [Verbose] > │ let v237 : UH2 = UH2_1 │
00:00:17 #2313 [Verbose] > │ let v238 : UH2 = method29(v224, v236, v237) │
00:00:17 #2314 [Verbose] > │ let v239 : (string []) = method30(v238) │
00:00:17 #2315 [Verbose] > │ v225.[int v228] <- struct (v239, v230) │
00:00:17 #2316 [Verbose] > │ let v240 : uint64 = v228 + 1UL │
00:00:17 #2317 [Verbose] > │ v226.l0 <- v240 │
00:00:17 #2318 [Verbose] > │ () │
00:00:17 #2319 [Verbose] > │ System.Console.WriteLine v2 │
00:00:17 #2320 [Verbose] > │ let v241 : uint64 = System.Convert.ToUInt64 v225.Length │
00:00:17 #2321 [Verbose] > │ let v242 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:17 #2322 [Verbose] > │ while method4(v241, v242) do │
00:00:17 #2323 [Verbose] > │ let v244 : uint64 = v242.l0 │
00:00:17 #2324 [Verbose] > │ let struct (v245 : (string []), v246 : US0) = v225.[int v244] │
00:00:17 #2325 [Verbose] > │ match v246 with │
00:00:17 #2326 [Verbose] > │ | US0_0 -> (* None *) │
00:00:17 #2327 [Verbose] > │ let mutable result = None │
00:00:17 #2328 [Verbose] > │ #if FABLE_COMPILER_RUST │
00:00:17 #2329 [Verbose] > │ #if !WASM │
00:00:17 #2330 [Verbose] > │ () │
00:00:17 #2331 [Verbose] > │ #else │
00:00:17 #2332 [Verbose] > │ () │
00:00:17 #2333 [Verbose] > │ #endif │
00:00:17 #2334 [Verbose] > │ #else │
00:00:17 #2335 [Verbose] > │ System.Console.ResetColor () │
00:00:17 #2336 [Verbose] > │ () │
00:00:17 #2337 [Verbose] > │ #endif │
00:00:17 #2338 [Verbose] > │ |> fun x -> result <- Some x │
00:00:17 #2339 [Verbose] > │ result |> Option.get │
00:00:17 #2340 [Verbose] > │ () │
00:00:17 #2341 [Verbose] > │ | US0_1(v247) -> (* Some *) │
00:00:17 #2342 [Verbose] > │ let mutable result = None │
00:00:17 #2343 [Verbose] > │ #if FABLE_COMPILER_RUST │
00:00:17 #2344 [Verbose] > │ #if !WASM │
00:00:17 #2345 [Verbose] > │ () │
00:00:17 #2346 [Verbose] > │ #else │
00:00:17 #2347 [Verbose] > │ () │
00:00:17 #2348 [Verbose] > │ #endif │
00:00:17 #2349 [Verbose] > │ #else │
00:00:17 #2350 [Verbose] > │ System.Console.ForegroundColor <- v247 │
00:00:17 #2351 [Verbose] > │ () │
00:00:17 #2352 [Verbose] > │ #endif │
00:00:17 #2353 [Verbose] > │ |> fun x -> result <- Some x │
00:00:17 #2354 [Verbose] > │ result |> Option.get │
00:00:17 #2355 [Verbose] > │ () │
00:00:17 #2356 [Verbose] > │ let v248 : string = "\t| " │
00:00:17 #2357 [Verbose] > │ let v249 : string = System.String.Join (v248, v245) │
00:00:17 #2358 [Verbose] > │ System.Console.WriteLine v249 │
00:00:17 #2359 [Verbose] > │ let mutable result = None │
00:00:17 #2360 [Verbose] > │ #if FABLE_COMPILER_RUST │
00:00:17 #2361 [Verbose] > │ #if !WASM │
00:00:17 #2362 [Verbose] > │ () │
00:00:17 #2363 [Verbose] > │ #else │
00:00:17 #2364 [Verbose] > │ () │
00:00:17 #2365 [Verbose] > │ #endif │
00:00:17 #2366 [Verbose] > │ #else │
00:00:17 #2367 [Verbose] > │ System.Console.ResetColor () │
00:00:17 #2368 [Verbose] > │ () │
00:00:17 #2369 [Verbose] > │ #endif │
00:00:17 #2370 [Verbose] > │ |> fun x -> result <- Some x │
00:00:17 #2371 [Verbose] > │ result |> Option.get │
00:00:17 #2372 [Verbose] > │ let v250 : uint64 = v244 + 1UL │
00:00:17 #2373 [Verbose] > │ v242.l0 <- v250 │
00:00:17 #2374 [Verbose] > │ () │
00:00:17 #2375 [Verbose] > │ let v251 : ((float []) []) = Array.zeroCreate<(float [])> │
00:00:17 #2376 [Verbose] > │ (System.Convert.ToInt32(v87)) │
00:00:17 #2377 [Verbose] > │ let v252 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:17 #2378 [Verbose] > │ while method4(v87, v252) do │
00:00:17 #2379 [Verbose] > │ let v254 : uint64 = v252.l0 │
00:00:17 #2380 [Verbose] > │ let struct (v255 : string, v256 : string, v257 : string, v258 : │
00:00:17 #2381 [Verbose] > │ (int64 [])) = v16.[int v254] │
00:00:17 #2382 [Verbose] > │ let v259 : (int64 -> float) = float │
00:00:17 #2383 [Verbose] > │ let v260 : uint64 = System.Convert.ToUInt64 v258.Length │
00:00:17 #2384 [Verbose] > │ let v261 : (float []) = Array.zeroCreate<float> │
00:00:17 #2385 [Verbose] > │ (System.Convert.ToInt32(v260)) │
00:00:17 #2386 [Verbose] > │ let v262 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:17 #2387 [Verbose] > │ while method4(v260, v262) do │
00:00:17 #2388 [Verbose] > │ let v264 : uint64 = v262.l0 │
00:00:17 #2389 [Verbose] > │ let v265 : int64 = v258.[int v264] │
00:00:17 #2390 [Verbose] > │ let v266 : float = v259 v265 │
00:00:17 #2391 [Verbose] > │ v261.[int v264] <- v266 │
00:00:17 #2392 [Verbose] > │ let v267 : uint64 = v264 + 1UL │
00:00:17 #2393 [Verbose] > │ v262.l0 <- v267 │
00:00:17 #2394 [Verbose] > │ () │
00:00:17 #2395 [Verbose] > │ v251.[int v254] <- v261 │
00:00:17 #2396 [Verbose] > │ let v268 : uint64 = v254 + 1UL │
00:00:17 #2397 [Verbose] > │ v252.l0 <- v268 │
00:00:17 #2398 [Verbose] > │ () │
00:00:17 #2399 [Verbose] > │ let v269 : ((float []) []) = v251 |> Array.transpose │
00:00:17 #2400 [Verbose] > │ let v270 : uint64 = System.Convert.ToUInt64 v269.Length │
00:00:17 #2401 [Verbose] > │ let v271 : (float []) = Array.zeroCreate<float> │
00:00:17 #2402 [Verbose] > │ (System.Convert.ToInt32(v270)) │
00:00:17 #2403 [Verbose] > │ let v272 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:17 #2404 [Verbose] > │ while method4(v270, v272) do │
00:00:17 #2405 [Verbose] > │ let v274 : uint64 = v272.l0 │
00:00:17 #2406 [Verbose] > │ let v275 : (float []) = v269.[int v274] │
00:00:17 #2407 [Verbose] > │ let v276 : float = v275 |> Array.average │
00:00:17 #2408 [Verbose] > │ v271.[int v274] <- v276 │
00:00:17 #2409 [Verbose] > │ let v277 : uint64 = v274 + 1UL │
00:00:17 #2410 [Verbose] > │ v272.l0 <- v277 │
00:00:17 #2411 [Verbose] > │ () │
00:00:17 #2412 [Verbose] > │ let v278 : (float -> int64) = int64 │
00:00:17 #2413 [Verbose] > │ let v279 : uint64 = System.Convert.ToUInt64 v271.Length │
00:00:17 #2414 [Verbose] > │ let v280 : (int64 []) = Array.zeroCreate<int64> │
00:00:17 #2415 [Verbose] > │ (System.Convert.ToInt32(v279)) │
00:00:17 #2416 [Verbose] > │ let v281 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:17 #2417 [Verbose] > │ while method4(v279, v281) do │
00:00:17 #2418 [Verbose] > │ let v283 : uint64 = v281.l0 │
00:00:17 #2419 [Verbose] > │ let v284 : float = v271.[int v283] │
00:00:17 #2420 [Verbose] > │ let v285 : int64 = v278 v284 │
00:00:17 #2421 [Verbose] > │ v280.[int v283] <- v285 │
00:00:17 #2422 [Verbose] > │ let v286 : uint64 = v283 + 1UL │
00:00:17 #2423 [Verbose] > │ v281.l0 <- v286 │
00:00:17 #2424 [Verbose] > │ () │
00:00:17 #2425 [Verbose] > │ let v287 : uint64 = System.Convert.ToUInt64 v280.Length │
00:00:17 #2426 [Verbose] > │ let v288 : UH5 = UH5_1 │
00:00:17 #2427 [Verbose] > │ let v289 : Mut3 = {l0 = 0UL; l1 = v288; l2 = 0} : Mut3 │
00:00:17 #2428 [Verbose] > │ while method22(v287, v289) do │
00:00:17 #2429 [Verbose] > │ let v291 : uint64 = v289.l0 │
00:00:17 #2430 [Verbose] > │ let struct (v292 : UH5, v293 : int32) = v289.l1, v289.l2 │
00:00:17 #2431 [Verbose] > │ let v294 : int64 = v280.[int v291] │
00:00:17 #2432 [Verbose] > │ let v295 : int32 = v293 + 1 │
00:00:17 #2433 [Verbose] > │ let v296 : uint64 = v291 + 1UL │
00:00:17 #2434 [Verbose] > │ let v297 : UH5 = UH5_0(v293, v294, v292) │
00:00:17 #2435 [Verbose] > │ v289.l0 <- v296 │
00:00:17 #2436 [Verbose] > │ v289.l1 <- v297 │
00:00:17 #2437 [Verbose] > │ v289.l2 <- v295 │
00:00:17 #2438 [Verbose] > │ () │
00:00:17 #2439 [Verbose] > │ let struct (v298 : UH5, v299 : int32) = v289.l1, v289.l2 │
00:00:17 #2440 [Verbose] > │ let v300 : UH5 = UH5_1 │
00:00:17 #2441 [Verbose] > │ let v301 : UH5 = method23(v298, v300) │
00:00:17 #2442 [Verbose] > │ let v302 : (struct (int32 * int64) []) = method33(v301) │
00:00:17 #2443 [Verbose] > │ System.Console.WriteLine v2 │
00:00:17 #2444 [Verbose] > │ let v303 : string = "Average Ranking " │
00:00:17 #2445 [Verbose] > │ System.Console.WriteLine v303 │
00:00:17 #2446 [Verbose] > │ let v304 : (struct (int32 * int64) -> int64) = closure5() │
00:00:17 #2447 [Verbose] > │ let v305 : (struct (int32 * int64) []) = v302 |> Array.sortBy v304 │
00:00:17 #2448 [Verbose] > │ let v306 : uint64 = System.Convert.ToUInt64 v305.Length │
00:00:17 #2449 [Verbose] > │ let v307 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:17 #2450 [Verbose] > │ while method4(v306, v307) do │
00:00:17 #2451 [Verbose] > │ let v309 : uint64 = v307.l0 │
00:00:17 #2452 [Verbose] > │ let struct (v310 : int32, v311 : int64) = v305.[int v309] │
00:00:17 #2453 [Verbose] > │ let v312 : string = $"Test case %d{v310 + 1}. Average Time: %A{v311} │
00:00:17 #2454 [Verbose] > │ " │
00:00:17 #2455 [Verbose] > │ System.Console.WriteLine v312 │
00:00:17 #2456 [Verbose] > │ let v313 : uint64 = v309 + 1UL │
00:00:17 #2457 [Verbose] > │ v307.l0 <- v313 │
00:00:17 #2458 [Verbose] > │ () │
00:00:17 #2459 [Verbose] > │ () │
00:00:17 #2460 [Verbose] > │ and method0 () : unit = │
00:00:17 #2461 [Verbose] > │ let v0 : (unit -> unit) = closure0() │
00:00:17 #2462 [Verbose] > │ let v1 : string = nameof v0 │
00:00:17 #2463 [Verbose] > │ let v2 : string = "" │
00:00:17 #2464 [Verbose] > │ System.Console.WriteLine v2 │
00:00:17 #2465 [Verbose] > │ System.Console.WriteLine v2 │
00:00:17 #2466 [Verbose] > │ let v3 : string = $"Test: {v1}" │
00:00:17 #2467 [Verbose] > │ System.Console.WriteLine v3 │
00:00:17 #2468 [Verbose] > │ let v4 : float = 0.0 │
00:00:17 #2469 [Verbose] > │ let v5 : float = 1.0 │
00:00:17 #2470 [Verbose] > │ let v6 : float = 2.0 │
00:00:17 #2471 [Verbose] > │ let v7 : float = 3.0 │
00:00:17 #2472 [Verbose] > │ let v8 : float = 5.0 │
00:00:17 #2473 [Verbose] > │ let v9 : float = 6.0 │
00:00:17 #2474 [Verbose] > │ let v10 : UH0 = UH0_1 │
00:00:17 #2475 [Verbose] > │ let v11 : UH0 = UH0_0(v8, v9, v10) │
00:00:17 #2476 [Verbose] > │ let v12 : UH0 = UH0_0(v6, v7, v11) │
00:00:17 #2477 [Verbose] > │ let v13 : UH0 = UH0_0(v4, v5, v12) │
00:00:17 #2478 [Verbose] > │ let v14 : (struct (float * float) []) = method1(v13) │
00:00:17 #2479 [Verbose] > │ let v15 : uint64 = System.Convert.ToUInt64 v14.Length │
00:00:17 #2480 [Verbose] > │ let v16 : (struct (string * string * string * (int64 [])) []) = │
00:00:17 #2481 [Verbose] > │ Array.zeroCreate<struct (string * string * string * (int64 []))> │
00:00:17 #2482 [Verbose] > │ (System.Convert.ToInt32(v15)) │
00:00:17 #2483 [Verbose] > │ let v17 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:17 #2484 [Verbose] > │ while method4(v15, v17) do │
00:00:17 #2485 [Verbose] > │ let v19 : uint64 = v17.l0 │
00:00:17 #2486 [Verbose] > │ let struct (v20 : float, v21 : float) = v14.[int v19] │
00:00:17 #2487 [Verbose] > │ let v22 : string = $"%A{v20}" │
00:00:17 #2488 [Verbose] > │ System.Console.WriteLine v2 │
00:00:17 #2489 [Verbose] > │ let v23 : string = $"Solution: {v22} " │
00:00:17 #2490 [Verbose] > │ System.Console.WriteLine v23 │
00:00:17 #2491 [Verbose] > │ let v24 : int32 = 0 │
00:00:17 #2492 [Verbose] > │ let v25 : string = "A" │
00:00:17 #2493 [Verbose] > │ let v26 : (float -> float) = closure1() │
00:00:17 #2494 [Verbose] > │ let v27 : UH1 = UH1_1 │
00:00:17 #2495 [Verbose] > │ let v28 : UH1 = UH1_0(v24, v25, v26, v27) │
00:00:17 #2496 [Verbose] > │ let v29 : (struct (int32 * string * (float -> float)) []) = │
00:00:17 #2497 [Verbose] > │ method5(v28) │
00:00:17 #2498 [Verbose] > │ let v30 : uint64 = System.Convert.ToUInt64 v29.Length │
00:00:17 #2499 [Verbose] > │ let v31 : (struct (float * int64) []) = Array.zeroCreate<struct │
00:00:17 #2500 [Verbose] > │ (float * int64)> (System.Convert.ToInt32(v30)) │
00:00:17 #2501 [Verbose] > │ let v32 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:17 #2502 [Verbose] > │ while method4(v30, v32) do │
00:00:17 #2503 [Verbose] > │ let v34 : uint64 = v32.l0 │
00:00:17 #2504 [Verbose] > │ let struct (v35 : int32, v36 : string, v37 : (float -> float)) = │
00:00:17 #2505 [Verbose] > │ v29.[int v34] │
00:00:17 #2506 [Verbose] > │ let mutable result = None │
00:00:17 #2507 [Verbose] > │ #if FABLE_COMPILER_RUST │
00:00:17 #2508 [Verbose] > │ #if !WASM │
00:00:17 #2509 [Verbose] > │ () │
00:00:17 #2510 [Verbose] > │ #else │
00:00:17 #2511 [Verbose] > │ () │
00:00:17 #2512 [Verbose] > │ #endif │
00:00:17 #2513 [Verbose] > │ #else │
00:00:17 #2514 [Verbose] > │ System.GC.Collect () │
00:00:17 #2515 [Verbose] > │ () │
00:00:17 #2516 [Verbose] > │ #endif │
00:00:17 #2517 [Verbose] > │ |> fun x -> result <- Some x │
00:00:17 #2518 [Verbose] > │ result |> Option.get │
00:00:17 #2519 [Verbose] > │ let v38 : (unit -> System.Diagnostics.Stopwatch) = │
00:00:17 #2520 [Verbose] > │ System.Diagnostics.Stopwatch │
00:00:17 #2521 [Verbose] > │ let v39 : System.Diagnostics.Stopwatch = v38 () │
00:00:17 #2522 [Verbose] > │ v39.Start () │
00:00:17 #2523 [Verbose] > │ let v40 : int64 = v39.ElapsedMilliseconds │
00:00:17 #2524 [Verbose] > │ let v41 : (int32 []) = Array.zeroCreate<int32> (2000001) │
00:00:17 #2525 [Verbose] > │ let v42 : Mut1 = {l0 = 0} : Mut1 │
00:00:17 #2526 [Verbose] > │ while method8(v42) do │
00:00:17 #2527 [Verbose] > │ let v44 : int32 = v42.l0 │
00:00:17 #2528 [Verbose] > │ v41.[int v44] <- v44 │
00:00:17 #2529 [Verbose] > │ let v45 : int32 = v44 + 1 │
00:00:17 #2530 [Verbose] > │ v42.l0 <- v45 │
00:00:17 #2531 [Verbose] > │ () │
00:00:17 #2532 [Verbose] > │ let v46 : (int32 -> float) = closure2(v20, v37) │
00:00:17 #2533 [Verbose] > │ let v47 : (float []) = v41 |> Array.Parallel.map v46 │
00:00:17 #2534 [Verbose] > │ let v48 : int32 = v47.Length │
00:00:17 #2535 [Verbose] > │ let v49 : int32 = v48 - 1 │
00:00:17 #2536 [Verbose] > │ let v50 : float = v47.[int v49] │
00:00:17 #2537 [Verbose] > │ let v51 : int64 = v39.ElapsedMilliseconds │
00:00:17 #2538 [Verbose] > │ let v52 : int64 = v51 - v40 │
00:00:17 #2539 [Verbose] > │ let v53 : string = $"Test case {v35 + 1}. {v36}. Time: {v52} " │
00:00:17 #2540 [Verbose] > │ System.Console.WriteLine v53 │
00:00:17 #2541 [Verbose] > │ v31.[int v34] <- struct (v50, v52) │
00:00:17 #2542 [Verbose] > │ let v54 : uint64 = v34 + 1UL │
00:00:17 #2543 [Verbose] > │ v32.l0 <- v54 │
00:00:17 #2544 [Verbose] > │ () │
00:00:17 #2545 [Verbose] > │ let v55 : uint64 = System.Convert.ToUInt64 v31.Length │
00:00:17 #2546 [Verbose] > │ let v56 : (float []) = Array.zeroCreate<float> │
00:00:17 #2547 [Verbose] > │ (System.Convert.ToInt32(v55)) │
00:00:17 #2548 [Verbose] > │ let v57 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:17 #2549 [Verbose] > │ while method4(v55, v57) do │
00:00:17 #2550 [Verbose] > │ let v59 : uint64 = v57.l0 │
00:00:17 #2551 [Verbose] > │ let struct (v60 : float, v61 : int64) = v31.[int v59] │
00:00:17 #2552 [Verbose] > │ v56.[int v59] <- v60 │
00:00:17 #2553 [Verbose] > │ let v62 : uint64 = v59 + 1UL │
00:00:17 #2554 [Verbose] > │ v57.l0 <- v62 │
00:00:17 #2555 [Verbose] > │ () │
00:00:17 #2556 [Verbose] > │ let v63 : uint64 = System.Convert.ToUInt64 v56.Length │
00:00:17 #2557 [Verbose] > │ let v64 : bool = v63 <= 1UL │
00:00:17 #2558 [Verbose] > │ if v64 then │
00:00:17 #2559 [Verbose] > │ () │
00:00:17 #2560 [Verbose] > │ else │
00:00:17 #2561 [Verbose] > │ let v65 : float = v56.[int 0UL] │
00:00:17 #2562 [Verbose] > │ let v66 : uint64 = 0UL │
00:00:17 #2563 [Verbose] > │ let v67 : bool = method9(v65, v56, v66) │
00:00:17 #2564 [Verbose] > │ if v67 then │
00:00:17 #2565 [Verbose] > │ () │
00:00:17 #2566 [Verbose] > │ else │
00:00:17 #2567 [Verbose] > │ let v68 : string = $"Challenge error: {v56}" │
00:00:17 #2568 [Verbose] > │ failwith<unit> v68 │
00:00:17 #2569 [Verbose] > │ let v69 : string = $"%A{v21}" │
00:00:17 #2570 [Verbose] > │ let v70 : (float []) = Array.zeroCreate<float> │
00:00:17 #2571 [Verbose] > │ (System.Convert.ToInt32(v55)) │
00:00:17 #2572 [Verbose] > │ let v71 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:17 #2573 [Verbose] > │ while method4(v55, v71) do │
00:00:17 #2574 [Verbose] > │ let v73 : uint64 = v71.l0 │
00:00:17 #2575 [Verbose] > │ let struct (v74 : float, v75 : int64) = v31.[int v73] │
00:00:17 #2576 [Verbose] > │ v70.[int v73] <- v74 │
00:00:17 #2577 [Verbose] > │ let v76 : uint64 = v73 + 1UL │
00:00:17 #2578 [Verbose] > │ v71.l0 <- v76 │
00:00:17 #2579 [Verbose] > │ () │
00:00:17 #2580 [Verbose] > │ let v77 : float = v70.[int 0UL] │
00:00:17 #2581 [Verbose] > │ let v78 : string = $"%A{v77}" │
00:00:17 #2582 [Verbose] > │ let v79 : (int64 []) = Array.zeroCreate<int64> │
00:00:17 #2583 [Verbose] > │ (System.Convert.ToInt32(v55)) │
00:00:17 #2584 [Verbose] > │ let v80 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:17 #2585 [Verbose] > │ while method4(v55, v80) do │
00:00:17 #2586 [Verbose] > │ let v82 : uint64 = v80.l0 │
00:00:17 #2587 [Verbose] > │ let struct (v83 : float, v84 : int64) = v31.[int v82] │
00:00:17 #2588 [Verbose] > │ v79.[int v82] <- v84 │
00:00:17 #2589 [Verbose] > │ let v85 : uint64 = v82 + 1UL │
00:00:17 #2590 [Verbose] > │ v80.l0 <- v85 │
00:00:17 #2591 [Verbose] > │ () │
00:00:17 #2592 [Verbose] > │ v16.[int v19] <- struct (v69, v22, v78, v79) │
00:00:17 #2593 [Verbose] > │ let v86 : uint64 = v19 + 1UL │
00:00:17 #2594 [Verbose] > │ v17.l0 <- v86 │
00:00:17 #2595 [Verbose] > │ () │
00:00:17 #2596 [Verbose] > │ let v87 : uint64 = System.Convert.ToUInt64 v16.Length │
00:00:17 #2597 [Verbose] > │ let v88 : (struct (UH2 * US0) []) = Array.zeroCreate<struct (UH2 * US0)> │
00:00:17 #2598 [Verbose] > │ (System.Convert.ToInt32(v87)) │
00:00:17 #2599 [Verbose] > │ let v89 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:17 #2600 [Verbose] > │ while method4(v87, v89) do │
00:00:17 #2601 [Verbose] > │ let v91 : uint64 = v89.l0 │
00:00:17 #2602 [Verbose] > │ let struct (v92 : string, v93 : string, v94 : string, v95 : (int64 [ │
00:00:17 #2603 [Verbose] > │ ])) = v16.[int v91] │
00:00:17 #2604 [Verbose] > │ let v96 : uint64 = System.Convert.ToUInt64 v95.Length │
00:00:17 #2605 [Verbose] > │ let v97 : UH3 = UH3_1 │
00:00:17 #2606 [Verbose] > │ let v98 : Mut2 = {l0 = 0UL; l1 = v97; l2 = 0L} : Mut2 │
00:00:17 #2607 [Verbose] > │ while method10(v96, v98) do │
00:00:17 #2608 [Verbose] > │ let v100 : uint64 = v98.l0 │
00:00:17 #2609 [Verbose] > │ let struct (v101 : UH3, v102 : int64) = v98.l1, v98.l2 │
00:00:17 #2610 [Verbose] > │ let v103 : int64 = v95.[int v100] │
00:00:17 #2611 [Verbose] > │ let v104 : int64 = v102 + 1L │
00:00:17 #2612 [Verbose] > │ let v105 : uint64 = v100 + 1UL │
00:00:17 #2613 [Verbose] > │ let v106 : UH3 = UH3_0(v102, v103, v101) │
00:00:17 #2614 [Verbose] > │ v98.l0 <- v105 │
00:00:17 #2615 [Verbose] > │ v98.l1 <- v106 │
00:00:17 #2616 [Verbose] > │ v98.l2 <- v104 │
00:00:17 #2617 [Verbose] > │ () │
00:00:17 #2618 [Verbose] > │ let struct (v107 : UH3, v108 : int64) = v98.l1, v98.l2 │
00:00:17 #2619 [Verbose] > │ let v109 : UH3 = UH3_1 │
00:00:17 #2620 [Verbose] > │ let v110 : UH3 = method11(v107, v109) │
00:00:17 #2621 [Verbose] > │ let v111 : (struct (int64 * int64) []) = method12(v110) │
00:00:17 #2622 [Verbose] > │ let v112 : int32 = v111.Length │
00:00:17 #2623 [Verbose] > │ let v113 : (struct (int64 * int64) []) = Array.zeroCreate<struct │
00:00:17 #2624 [Verbose] > │ (int64 * int64)> (v112) │
00:00:17 #2625 [Verbose] > │ let v114 : Mut1 = {l0 = 0} : Mut1 │
00:00:17 #2626 [Verbose] > │ while method15(v112, v114) do │
00:00:17 #2627 [Verbose] > │ let v116 : int32 = v114.l0 │
00:00:17 #2628 [Verbose] > │ let struct (v117 : int64, v118 : int64) = v111.[int v116] │
00:00:17 #2629 [Verbose] > │ let v119 : int64 = v117 + 1L │
00:00:17 #2630 [Verbose] > │ v113.[int v116] <- struct (v119, v118) │
00:00:17 #2631 [Verbose] > │ let v120 : int32 = v116 + 1 │
00:00:17 #2632 [Verbose] > │ v114.l0 <- v120 │
00:00:17 #2633 [Verbose] > │ () │
00:00:17 #2634 [Verbose] > │ let v121 : (struct (int64 * int64) -> int64) = closure3() │
00:00:17 #2635 [Verbose] > │ let v122 : (struct (int64 * int64) []) = v113 |> Array.sortBy v121 │
00:00:17 #2636 [Verbose] > │ let struct (v123 : int64, v124 : int64) = v122.[int 0] │
00:00:17 #2637 [Verbose] > │ let v125 : string = $"%A{struct (v123, v124)}" │
00:00:17 #2638 [Verbose] > │ let v126 : bool = v92 = v94 │
00:00:17 #2639 [Verbose] > │ let v131 : US0 = │
00:00:17 #2640 [Verbose] > │ if v126 then │
00:00:17 #2641 [Verbose] > │ let v127 : System.ConsoleColor = │
00:00:17 #2642 [Verbose] > │ System.ConsoleColor.DarkGreen │
00:00:17 #2643 [Verbose] > │ US0_1(v127) │
00:00:17 #2644 [Verbose] > │ else │
00:00:17 #2645 [Verbose] > │ let v129 : System.ConsoleColor = System.ConsoleColor.DarkRed │
00:00:17 #2646 [Verbose] > │ US0_1(v129) │
00:00:17 #2647 [Verbose] > │ let v132 : UH2 = UH2_1 │
00:00:17 #2648 [Verbose] > │ let v133 : UH2 = UH2_0(v125, v132) │
00:00:17 #2649 [Verbose] > │ let v134 : UH2 = UH2_0(v94, v133) │
00:00:17 #2650 [Verbose] > │ let v135 : UH2 = UH2_0(v92, v134) │
00:00:17 #2651 [Verbose] > │ let v136 : UH2 = UH2_0(v93, v135) │
00:00:17 #2652 [Verbose] > │ v88.[int v91] <- struct (v136, v131) │
00:00:17 #2653 [Verbose] > │ let v137 : uint64 = v91 + 1UL │
00:00:17 #2654 [Verbose] > │ v89.l0 <- v137 │
00:00:17 #2655 [Verbose] > │ () │
00:00:17 #2656 [Verbose] > │ let v138 : string = "Input" │
00:00:17 #2657 [Verbose] > │ let v139 : string = "Expected" │
00:00:17 #2658 [Verbose] > │ let v140 : string = "Result" │
00:00:17 #2659 [Verbose] > │ let v141 : string = "Best" │
00:00:17 #2660 [Verbose] > │ let v142 : UH2 = UH2_1 │
00:00:17 #2661 [Verbose] > │ let v143 : UH2 = UH2_0(v141, v142) │
00:00:17 #2662 [Verbose] > │ let v144 : UH2 = UH2_0(v140, v143) │
00:00:17 #2663 [Verbose] > │ let v145 : UH2 = UH2_0(v139, v144) │
00:00:17 #2664 [Verbose] > │ let v146 : UH2 = UH2_0(v138, v145) │
00:00:17 #2665 [Verbose] > │ let v147 : US0 = US0_0 │
00:00:17 #2666 [Verbose] > │ let v148 : string = "---" │
00:00:17 #2667 [Verbose] > │ let v149 : UH2 = UH2_1 │
00:00:17 #2668 [Verbose] > │ let v150 : UH2 = UH2_0(v148, v149) │
00:00:17 #2669 [Verbose] > │ let v151 : UH2 = UH2_0(v148, v150) │
00:00:17 #2670 [Verbose] > │ let v152 : UH2 = UH2_0(v148, v151) │
00:00:17 #2671 [Verbose] > │ let v153 : UH2 = UH2_0(v148, v152) │
00:00:17 #2672 [Verbose] > │ let v154 : US0 = US0_0 │
00:00:17 #2673 [Verbose] > │ let v155 : UH4 = UH4_1 │
00:00:17 #2674 [Verbose] > │ let v156 : UH4 = UH4_0(v153, v154, v155) │
00:00:17 #2675 [Verbose] > │ let v157 : UH4 = UH4_0(v146, v147, v156) │
00:00:17 #2676 [Verbose] > │ let v158 : (struct (UH2 * US0) []) = method16(v157) │
00:00:17 #2677 [Verbose] > │ let v159 : uint64 = System.Convert.ToUInt64 v158.Length │
00:00:17 #2678 [Verbose] > │ let v160 : uint64 = System.Convert.ToUInt64 v88.Length │
00:00:17 #2679 [Verbose] > │ let v161 : uint64 = v159 + v160 │
00:00:17 #2680 [Verbose] > │ let v162 : (struct (UH2 * US0) []) = Array.zeroCreate<struct (UH2 * │
00:00:17 #2681 [Verbose] > │ US0)> (System.Convert.ToInt32(v161)) │
00:00:17 #2682 [Verbose] > │ let v163 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:17 #2683 [Verbose] > │ while method4(v161, v163) do │
00:00:17 #2684 [Verbose] > │ let v165 : uint64 = v163.l0 │
00:00:17 #2685 [Verbose] > │ let v166 : bool = v165 < v159 │
00:00:17 #2686 [Verbose] > │ let struct (v172 : UH2, v173 : US0) = │
00:00:17 #2687 [Verbose] > │ if v166 then │
00:00:17 #2688 [Verbose] > │ let struct (v167 : UH2, v168 : US0) = v158.[int v165] │
00:00:17 #2689 [Verbose] > │ struct (v167, v168) │
00:00:17 #2690 [Verbose] > │ else │
00:00:17 #2691 [Verbose] > │ let v169 : uint64 = v165 - v159 │
00:00:17 #2692 [Verbose] > │ let struct (v170 : UH2, v171 : US0) = v88.[int v169] │
00:00:17 #2693 [Verbose] > │ struct (v170, v171) │
00:00:17 #2694 [Verbose] > │ v162.[int v165] <- struct (v172, v173) │
00:00:17 #2695 [Verbose] > │ let v174 : uint64 = v165 + 1UL │
00:00:17 #2696 [Verbose] > │ v163.l0 <- v174 │
00:00:17 #2697 [Verbose] > │ () │
00:00:17 #2698 [Verbose] > │ let v175 : uint64 = System.Convert.ToUInt64 v162.Length │
00:00:17 #2699 [Verbose] > │ let v176 : ((string []) []) = Array.zeroCreate<(string [])> │
00:00:17 #2700 [Verbose] > │ (System.Convert.ToInt32(v175)) │
00:00:17 #2701 [Verbose] > │ let v177 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:17 #2702 [Verbose] > │ while method4(v175, v177) do │
00:00:17 #2703 [Verbose] > │ let v179 : uint64 = v177.l0 │
00:00:17 #2704 [Verbose] > │ let struct (v180 : UH2, v181 : US0) = v162.[int v179] │
00:00:17 #2705 [Verbose] > │ let v182 : (string []) = method19(v180) │
00:00:17 #2706 [Verbose] > │ v176.[int v179] <- v182 │
00:00:17 #2707 [Verbose] > │ let v183 : uint64 = v179 + 1UL │
00:00:17 #2708 [Verbose] > │ v177.l0 <- v183 │
00:00:17 #2709 [Verbose] > │ () │
00:00:17 #2710 [Verbose] > │ let v184 : ((string []) []) = v176 |> Array.transpose │
00:00:17 #2711 [Verbose] > │ let v185 : uint64 = System.Convert.ToUInt64 v184.Length │
00:00:17 #2712 [Verbose] > │ let v186 : (int64 []) = Array.zeroCreate<int64> │
00:00:17 #2713 [Verbose] > │ (System.Convert.ToInt32(v185)) │
00:00:17 #2714 [Verbose] > │ let v187 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:17 #2715 [Verbose] > │ while method4(v185, v187) do │
00:00:17 #2716 [Verbose] > │ let v189 : uint64 = v187.l0 │
00:00:17 #2717 [Verbose] > │ let v190 : (string []) = v184.[int v189] │
00:00:17 #2718 [Verbose] > │ let v191 : uint64 = System.Convert.ToUInt64 v190.Length │
00:00:17 #2719 [Verbose] > │ let v192 : (int64 []) = Array.zeroCreate<int64> │
00:00:17 #2720 [Verbose] > │ (System.Convert.ToInt32(v191)) │
00:00:17 #2721 [Verbose] > │ let v193 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:17 #2722 [Verbose] > │ while method4(v191, v193) do │
00:00:17 #2723 [Verbose] > │ let v195 : uint64 = v193.l0 │
00:00:17 #2724 [Verbose] > │ let v196 : string = v190.[int v195] │
00:00:17 #2725 [Verbose] > │ let v197 : int64 = System.Convert.ToInt64 v196.Length │
00:00:17 #2726 [Verbose] > │ v192.[int v195] <- v197 │
00:00:17 #2727 [Verbose] > │ let v198 : uint64 = v195 + 1UL │
00:00:17 #2728 [Verbose] > │ v193.l0 <- v198 │
00:00:17 #2729 [Verbose] > │ () │
00:00:17 #2730 [Verbose] > │ let v199 : (int64 []) = v192 |> Array.sortDescending │
00:00:17 #2731 [Verbose] > │ let v200 : int64 option = v199 |> Array.tryItem 0 │
00:00:17 #2732 [Verbose] > │ let v201 : (int64 -> US1) = closure4() │
00:00:17 #2733 [Verbose] > │ let v202 : US1 = US1_0 │
00:00:17 #2734 [Verbose] > │ let v203 : US1 = v200 |> Option.map v201 |> Option.defaultValue v202 │
00:00:17 #2735 [Verbose] > │ let v206 : int64 = │
00:00:17 #2736 [Verbose] > │ match v203 with │
00:00:17 #2737 [Verbose] > │ | US1_0 -> (* None *) │
00:00:17 #2738 [Verbose] > │ 0L │
00:00:17 #2739 [Verbose] > │ | US1_1(v204) -> (* Some *) │
00:00:17 #2740 [Verbose] > │ v204 │
00:00:17 #2741 [Verbose] > │ v186.[int v189] <- v206 │
00:00:17 #2742 [Verbose] > │ let v207 : uint64 = v189 + 1UL │
00:00:17 #2743 [Verbose] > │ v187.l0 <- v207 │
00:00:17 #2744 [Verbose] > │ () │
00:00:17 #2745 [Verbose] > │ let v208 : uint64 = System.Convert.ToUInt64 v186.Length │
00:00:17 #2746 [Verbose] > │ let v209 : UH5 = UH5_1 │
00:00:17 #2747 [Verbose] > │ let v210 : Mut3 = {l0 = 0UL; l1 = v209; l2 = 0} : Mut3 │
00:00:17 #2748 [Verbose] > │ while method22(v208, v210) do │
00:00:17 #2749 [Verbose] > │ let v212 : uint64 = v210.l0 │
00:00:17 #2750 [Verbose] > │ let struct (v213 : UH5, v214 : int32) = v210.l1, v210.l2 │
00:00:17 #2751 [Verbose] > │ let v215 : int64 = v186.[int v212] │
00:00:17 #2752 [Verbose] > │ let v216 : int32 = v214 + 1 │
00:00:17 #2753 [Verbose] > │ let v217 : uint64 = v212 + 1UL │
00:00:17 #2754 [Verbose] > │ let v218 : UH5 = UH5_0(v214, v215, v213) │
00:00:17 #2755 [Verbose] > │ v210.l0 <- v217 │
00:00:17 #2756 [Verbose] > │ v210.l1 <- v218 │
00:00:17 #2757 [Verbose] > │ v210.l2 <- v216 │
00:00:17 #2758 [Verbose] > │ () │
00:00:17 #2759 [Verbose] > │ let struct (v219 : UH5, v220 : int32) = v210.l1, v210.l2 │
00:00:17 #2760 [Verbose] > │ let v221 : UH5 = UH5_1 │
00:00:17 #2761 [Verbose] > │ let v222 : UH5 = method23(v219, v221) │
00:00:17 #2762 [Verbose] > │ let v223 : (struct (int32 * int64) []) = method24(v222) │
00:00:17 #2763 [Verbose] > │ let v224 : Map<int32, int64> = v223 |> Array.map (fun (struct (a, b)) -> │
00:00:17 #2764 [Verbose] > │ a, b) |> Map.ofArray │
00:00:17 #2765 [Verbose] > │ let v225 : (struct ((string []) * US0) []) = Array.zeroCreate<struct │
00:00:17 #2766 [Verbose] > │ ((string []) * US0)> (System.Convert.ToInt32(v175)) │
00:00:17 #2767 [Verbose] > │ let v226 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:17 #2768 [Verbose] > │ while method4(v175, v226) do │
00:00:17 #2769 [Verbose] > │ let v228 : uint64 = v226.l0 │
00:00:17 #2770 [Verbose] > │ let struct (v229 : UH2, v230 : US0) = v162.[int v228] │
00:00:17 #2771 [Verbose] > │ let v231 : UH6 = UH6_1 │
00:00:17 #2772 [Verbose] > │ let v232 : int32 = 0 │
00:00:17 #2773 [Verbose] > │ let struct (v233 : UH6, v234 : int32) = method27(v229, v231, v232) │
00:00:17 #2774 [Verbose] > │ let v235 : UH6 = UH6_1 │
00:00:17 #2775 [Verbose] > │ let v236 : UH6 = method28(v233, v235) │
00:00:17 #2776 [Verbose] > │ let v237 : UH2 = UH2_1 │
00:00:17 #2777 [Verbose] > │ let v238 : UH2 = method29(v224, v236, v237) │
00:00:17 #2778 [Verbose] > │ let v239 : (string []) = method30(v238) │
00:00:17 #2779 [Verbose] > │ v225.[int v228] <- struct (v239, v230) │
00:00:17 #2780 [Verbose] > │ let v240 : uint64 = v228 + 1UL │
00:00:17 #2781 [Verbose] > │ v226.l0 <- v240 │
00:00:17 #2782 [Verbose] > │ () │
00:00:17 #2783 [Verbose] > │ System.Console.WriteLine v2 │
00:00:17 #2784 [Verbose] > │ let v241 : uint64 = System.Convert.ToUInt64 v225.Length │
00:00:17 #2785 [Verbose] > │ let v242 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:17 #2786 [Verbose] > │ while method4(v241, v242) do │
00:00:17 #2787 [Verbose] > │ let v244 : uint64 = v242.l0 │
00:00:17 #2788 [Verbose] > │ let struct (v245 : (string []), v246 : US0) = v225.[int v244] │
00:00:17 #2789 [Verbose] > │ match v246 with │
00:00:17 #2790 [Verbose] > │ | US0_0 -> (* None *) │
00:00:17 #2791 [Verbose] > │ let mutable result = None │
00:00:17 #2792 [Verbose] > │ #if FABLE_COMPILER_RUST │
00:00:17 #2793 [Verbose] > │ #if !WASM │
00:00:17 #2794 [Verbose] > │ () │
00:00:17 #2795 [Verbose] > │ #else │
00:00:17 #2796 [Verbose] > │ () │
00:00:17 #2797 [Verbose] > │ #endif │
00:00:17 #2798 [Verbose] > │ #else │
00:00:17 #2799 [Verbose] > │ System.Console.ResetColor () │
00:00:17 #2800 [Verbose] > │ () │
00:00:17 #2801 [Verbose] > │ #endif │
00:00:17 #2802 [Verbose] > │ |> fun x -> result <- Some x │
00:00:17 #2803 [Verbose] > │ result |> Option.get │
00:00:17 #2804 [Verbose] > │ () │
00:00:17 #2805 [Verbose] > │ | US0_1(v247) -> (* Some *) │
00:00:17 #2806 [Verbose] > │ let mutable result = None │
00:00:17 #2807 [Verbose] > │ #if FABLE_COMPILER_RUST │
00:00:17 #2808 [Verbose] > │ #if !WASM │
00:00:17 #2809 [Verbose] > │ () │
00:00:17 #2810 [Verbose] > │ #else │
00:00:17 #2811 [Verbose] > │ () │
00:00:17 #2812 [Verbose] > │ #endif │
00:00:17 #2813 [Verbose] > │ #else │
00:00:17 #2814 [Verbose] > │ System.Console.ForegroundColor <- v247 │
00:00:17 #2815 [Verbose] > │ () │
00:00:17 #2816 [Verbose] > │ #endif │
00:00:17 #2817 [Verbose] > │ |> fun x -> result <- Some x │
00:00:17 #2818 [Verbose] > │ result |> Option.get │
00:00:17 #2819 [Verbose] > │ () │
00:00:17 #2820 [Verbose] > │ let v248 : string = "\t| " │
00:00:17 #2821 [Verbose] > │ let v249 : string = System.String.Join (v248, v245) │
00:00:17 #2822 [Verbose] > │ System.Console.WriteLine v249 │
00:00:17 #2823 [Verbose] > │ let mutable result = None │
00:00:17 #2824 [Verbose] > │ #if FABLE_COMPILER_RUST │
00:00:17 #2825 [Verbose] > │ #if !WASM │
00:00:17 #2826 [Verbose] > │ () │
00:00:17 #2827 [Verbose] > │ #else │
00:00:17 #2828 [Verbose] > │ () │
00:00:17 #2829 [Verbose] > │ #endif │
00:00:17 #2830 [Verbose] > │ #else │
00:00:17 #2831 [Verbose] > │ System.Console.ResetColor () │
00:00:17 #2832 [Verbose] > │ () │
00:00:17 #2833 [Verbose] > │ #endif │
00:00:17 #2834 [Verbose] > │ |> fun x -> result <- Some x │
00:00:17 #2835 [Verbose] > │ result |> Option.get │
00:00:17 #2836 [Verbose] > │ let v250 : uint64 = v244 + 1UL │
00:00:17 #2837 [Verbose] > │ v242.l0 <- v250 │
00:00:17 #2838 [Verbose] > │ () │
00:00:17 #2839 [Verbose] > │ let v251 : ((float []) []) = Array.zeroCreate<(float [])> │
00:00:17 #2840 [Verbose] > │ (System.Convert.ToInt32(v87)) │
00:00:17 #2841 [Verbose] > │ let v252 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:17 #2842 [Verbose] > │ while method4(v87, v252) do │
00:00:17 #2843 [Verbose] > │ let v254 : uint64 = v252.l0 │
00:00:17 #2844 [Verbose] > │ let struct (v255 : string, v256 : string, v257 : string, v258 : │
00:00:17 #2845 [Verbose] > │ (int64 [])) = v16.[int v254] │
00:00:17 #2846 [Verbose] > │ let v259 : (int64 -> float) = float │
00:00:17 #2847 [Verbose] > │ let v260 : uint64 = System.Convert.ToUInt64 v258.Length │
00:00:17 #2848 [Verbose] > │ let v261 : (float []) = Array.zeroCreate<float> │
00:00:17 #2849 [Verbose] > │ (System.Convert.ToInt32(v260)) │
00:00:17 #2850 [Verbose] > │ let v262 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:17 #2851 [Verbose] > │ while method4(v260, v262) do │
00:00:17 #2852 [Verbose] > │ let v264 : uint64 = v262.l0 │
00:00:17 #2853 [Verbose] > │ let v265 : int64 = v258.[int v264] │
00:00:17 #2854 [Verbose] > │ let v266 : float = v259 v265 │
00:00:17 #2855 [Verbose] > │ v261.[int v264] <- v266 │
00:00:17 #2856 [Verbose] > │ let v267 : uint64 = v264 + 1UL │
00:00:17 #2857 [Verbose] > │ v262.l0 <- v267 │
00:00:17 #2858 [Verbose] > │ () │
00:00:17 #2859 [Verbose] > │ v251.[int v254] <- v261 │
00:00:17 #2860 [Verbose] > │ let v268 : uint64 = v254 + 1UL │
00:00:17 #2861 [Verbose] > │ v252.l0 <- v268 │
00:00:17 #2862 [Verbose] > │ () │
00:00:17 #2863 [Verbose] > │ let v269 : ((float []) []) = v251 |> Array.transpose │
00:00:17 #2864 [Verbose] > │ let v270 : uint64 = System.Convert.ToUInt64 v269.Length │
00:00:17 #2865 [Verbose] > │ let v271 : (float []) = Array.zeroCreate<float> │
00:00:17 #2866 [Verbose] > │ (System.Convert.ToInt32(v270)) │
00:00:17 #2867 [Verbose] > │ let v272 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:17 #2868 [Verbose] > │ while method4(v270, v272) do │
00:00:17 #2869 [Verbose] > │ let v274 : uint64 = v272.l0 │
00:00:17 #2870 [Verbose] > │ let v275 : (float []) = v269.[int v274] │
00:00:17 #2871 [Verbose] > │ let v276 : float = v275 |> Array.average │
00:00:17 #2872 [Verbose] > │ v271.[int v274] <- v276 │
00:00:17 #2873 [Verbose] > │ let v277 : uint64 = v274 + 1UL │
00:00:17 #2874 [Verbose] > │ v272.l0 <- v277 │
00:00:17 #2875 [Verbose] > │ () │
00:00:17 #2876 [Verbose] > │ let v278 : (float -> int64) = int64 │
00:00:17 #2877 [Verbose] > │ let v279 : uint64 = System.Convert.ToUInt64 v271.Length │
00:00:17 #2878 [Verbose] > │ let v280 : (int64 []) = Array.zeroCreate<int64> │
00:00:17 #2879 [Verbose] > │ (System.Convert.ToInt32(v279)) │
00:00:17 #2880 [Verbose] > │ let v281 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:17 #2881 [Verbose] > │ while method4(v279, v281) do │
00:00:17 #2882 [Verbose] > │ let v283 : uint64 = v281.l0 │
00:00:17 #2883 [Verbose] > │ let v284 : float = v271.[int v283] │
00:00:17 #2884 [Verbose] > │ let v285 : int64 = v278 v284 │
00:00:17 #2885 [Verbose] > │ v280.[int v283] <- v285 │
00:00:17 #2886 [Verbose] > │ let v286 : uint64 = v283 + 1UL │
00:00:17 #2887 [Verbose] > │ v281.l0 <- v286 │
00:00:17 #2888 [Verbose] > │ () │
00:00:17 #2889 [Verbose] > │ let v287 : uint64 = System.Convert.ToUInt64 v280.Length │
00:00:17 #2890 [Verbose] > │ let v288 : UH5 = UH5_1 │
00:00:17 #2891 [Verbose] > │ let v289 : Mut3 = {l0 = 0UL; l1 = v288; l2 = 0} : Mut3 │
00:00:17 #2892 [Verbose] > │ while method22(v287, v289) do │
00:00:17 #2893 [Verbose] > │ let v291 : uint64 = v289.l0 │
00:00:17 #2894 [Verbose] > │ let struct (v292 : UH5, v293 : int32) = v289.l1, v289.l2 │
00:00:17 #2895 [Verbose] > │ let v294 : int64 = v280.[int v291] │
00:00:17 #2896 [Verbose] > │ let v295 : int32 = v293 + 1 │
00:00:17 #2897 [Verbose] > │ let v296 : uint64 = v291 + 1UL │
00:00:17 #2898 [Verbose] > │ let v297 : UH5 = UH5_0(v293, v294, v292) │
00:00:17 #2899 [Verbose] > │ v289.l0 <- v296 │
00:00:17 #2900 [Verbose] > │ v289.l1 <- v297 │
00:00:17 #2901 [Verbose] > │ v289.l2 <- v295 │
00:00:17 #2902 [Verbose] > │ () │
00:00:17 #2903 [Verbose] > │ let struct (v298 : UH5, v299 : int32) = v289.l1, v289.l2 │
00:00:17 #2904 [Verbose] > │ let v300 : UH5 = UH5_1 │
00:00:17 #2905 [Verbose] > │ let v301 : UH5 = method23(v298, v300) │
00:00:17 #2906 [Verbose] > │ let v302 : (struct (int32 * int64) []) = method33(v301) │
00:00:17 #2907 [Verbose] > │ System.Console.WriteLine v2 │
00:00:17 #2908 [Verbose] > │ let v303 : string = "Average Ranking " │
00:00:17 #2909 [Verbose] > │ System.Console.WriteLine v303 │
00:00:17 #2910 [Verbose] > │ let v304 : (struct (int32 * int64) -> int64) = closure5() │
00:00:17 #2911 [Verbose] > │ let v305 : (struct (int32 * int64) []) = v302 |> Array.sortBy v304 │
00:00:17 #2912 [Verbose] > │ let v306 : uint64 = System.Convert.ToUInt64 v305.Length │
00:00:17 #2913 [Verbose] > │ let v307 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:17 #2914 [Verbose] > │ while method4(v306, v307) do │
00:00:17 #2915 [Verbose] > │ let v309 : uint64 = v307.l0 │
00:00:17 #2916 [Verbose] > │ let struct (v310 : int32, v311 : int64) = v305.[int v309] │
00:00:17 #2917 [Verbose] > │ let v312 : string = $"Test case %d{v310 + 1}. Average Time: %A{v311} │
00:00:17 #2918 [Verbose] > │ " │
00:00:17 #2919 [Verbose] > │ System.Console.WriteLine v312 │
00:00:17 #2920 [Verbose] > │ let v313 : uint64 = v309 + 1UL │
00:00:17 #2921 [Verbose] > │ v307.l0 <- v313 │
00:00:17 #2922 [Verbose] > │ () │
00:00:17 #2923 [Verbose] > │ () │
00:00:17 #2924 [Verbose] > │ method0() │
00:00:17 #2925 [Verbose] > │ │
00:00:17 #2926 [Verbose] > │ │
00:00:17 #2927 [Verbose] > │ │
00:00:17 #2928 [Verbose] > │ Test: v0 │
00:00:17 #2929 [Verbose] > │ │
00:00:17 #2930 [Verbose] > │ Solution: 0.0 │
00:00:17 #2931 [Verbose] > │ Test case 1. A. Time: 19 │
00:00:17 #2932 [Verbose] > │ │
00:00:17 #2933 [Verbose] > │ Solution: 2.0 │
00:00:17 #2934 [Verbose] > │ Test case 1. A. Time: 10 │
00:00:17 #2935 [Verbose] > │ │
00:00:17 #2936 [Verbose] > │ Solution: 5.0 │
00:00:17 #2937 [Verbose] > │ Test case 1. A. Time: 10 │
00:00:17 #2938 [Verbose] > │ │
00:00:17 #2939 [Verbose] > │ Input | Expected | Result | Best │
00:00:17 #2940 [Verbose] > │ --- | --- | --- | --- │
00:00:17 #2941 [Verbose] > │ 0.0 | 1.0 | 1.0 | struct (1L, 19L) │
00:00:17 #2942 [Verbose] > │ 2.0 | 3.0 | 3.0 | struct (1L, 10L) │
00:00:17 #2943 [Verbose] > │ 5.0 | 6.0 | 6.0 | struct (1L, 10L) │
00:00:17 #2944 [Verbose] > │ │
00:00:17 #2945 [Verbose] > │ Average Ranking │
00:00:17 #2946 [Verbose] > │ Test case 1. Average Time: 13L │
00:00:17 #2947 [Verbose] > │ │
00:00:17 #2948 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:18 #2949 [Verbose] > [NbConvertApp] Converting notebook benchmark.dib.ipynb to html
00:00:18 #2950 [Verbose] > /opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/nbformat/__init__.py:96: MissingIDFieldWarning: Cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:00:18 #2951 [Verbose] > validate(nb)
00:00:18 #2952 [Verbose] > /opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/nbconvert/filters/highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:00:18 #2953 [Verbose] > return _pygments_highlight(
00:00:19 #2954 [Verbose] > [NbConvertApp] Writing 406167 bytes to benchmark.dib.html
00:00:19 #2955 [Debug] executeAsync / exitCode: 0 / output.Length: 289457
00:00:19 #2956 [Debug] main / executeCommand / exitCode: 0
00:00:00 #1 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #2 [Debug] executeAsync / options: { Command =
"dotnet "/home/runner/work/polyglot/polyglot/deps/The-Spiral-Language/The Spiral Language 2/artifacts/bin/The Spiral Language 2/release/Spiral.dll" --port 13805 --default-int i32 --default-float f64"
WorkingDirectory = None
CancellationToken = Some System.Threading.CancellationToken
OnLine = Some <fun:main@464-1020> }
00:00:00 #3 [Verbose] > pwd: /home/runner/work/polyglot/polyglot/lib/spiral
00:00:00 #4 [Verbose] > dll_path: /home/runner/work/polyglot/polyglot/deps/The-Spiral-Language/The Spiral Language 2/artifacts/bin/The Spiral Language 2/release
00:00:00 #5 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #6 [Verbose] waitForPortAccess / port: 13805 / retry: 0
00:00:00 #7 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #8 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #9 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #10 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #11 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #12 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #13 [Verbose] > Starting the Spiral Server. It is bound to: http://localhost:13805
00:00:00 #14 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #15 [Debug] sendJson / port: 13805 / json: {"Ping":true} / result.Length:
00:00:00 #16 [Verbose] awaitCompiler / Ping / result: Some(null) / port: 13805 / retry: 0
00:00:00 #17 [Verbose] > Server bound to: http://localhost:13805
00:00:00 #18 [Debug] executeAsync / options: { Command = "pwsh -c "../../scripts/invoke-dib.ps1 stream.dib""
WorkingDirectory = None
CancellationToken = Some System.Threading.CancellationToken
OnLine = None }
00:00:02 #19 [Verbose] >
00:00:02 #20 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:02 #21 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:02 #22 [Verbose] > │ # stream │
00:00:02 #23 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:02 #24 [Verbose] >
00:00:02 #25 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:02 #26 [Verbose] > // // test
00:00:02 #27 [Verbose] >
00:00:02 #28 [Verbose] > open testing
00:00:04 #29 [Verbose] > Building /tmp/!dotnet-repl/20240325-2024-4951-5164-5ffa9525d87b/main.spi
00:00:06 #30 [Verbose] >
00:00:06 #31 [Verbose] > ╭─[ 3.82s - stdout ]───────────────────────────────────────────────────────────╮
00:00:06 #32 [Verbose] > │ () │
00:00:06 #33 [Verbose] > │ │
00:00:06 #34 [Verbose] > │ │
00:00:06 #35 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:06 #36 [Verbose] >
00:00:06 #37 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:06 #38 [Verbose] > union rec stream t =
00:00:06 #39 [Verbose] > | StreamCons : t * (() -> stream t)
00:00:06 #40 [Verbose] > | StreamNil
00:00:06 #41 [Verbose] > Building /tmp/!dotnet-repl/20240325-2024-5203-0328-0b734b1a758e/main.spi
00:00:06 #42 [Verbose] >
00:00:06 #43 [Verbose] > ╭─[ 190.22ms - stdout ]────────────────────────────────────────────────────────╮
00:00:06 #44 [Verbose] > │ () │
00:00:06 #45 [Verbose] > │ │
00:00:06 #46 [Verbose] > │ │
00:00:06 #47 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:06 #48 [Verbose] >
00:00:06 #49 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:06 #50 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:06 #51 [Verbose] > │ ## fold │
00:00:06 #52 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:06 #53 [Verbose] >
00:00:06 #54 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:06 #55 [Verbose] > inl fold fn init s =
00:00:06 #56 [Verbose] > inl rec body acc = function
00:00:06 #57 [Verbose] > | StreamCons (st, fn') => loop (fn acc st) (fn' ())
00:00:06 #58 [Verbose] > | StreamNil => acc
00:00:06 #59 [Verbose] > and inl loop acc = join_body body acc
00:00:06 #60 [Verbose] > loop init s
00:00:06 #61 [Verbose] > Building /tmp/!dotnet-repl/20240325-2024-5222-2253-211fc1106194/main.spi
00:00:06 #62 [Verbose] >
00:00:06 #63 [Verbose] > ╭─[ 170.00ms - stdout ]────────────────────────────────────────────────────────╮
00:00:06 #64 [Verbose] > │ () │
00:00:06 #65 [Verbose] > │ │
00:00:06 #66 [Verbose] > │ │
00:00:06 #67 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:06 #68 [Verbose] >
00:00:06 #69 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:06 #70 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:06 #71 [Verbose] > │ ## fold_back │
00:00:06 #72 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:06 #73 [Verbose] >
00:00:06 #74 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:06 #75 [Verbose] > inl fold_back fn s init =
00:00:06 #76 [Verbose] > inl rec body acc = function
00:00:06 #77 [Verbose] > | StreamCons (st, fn') => fn st (loop acc (fn' ()))
00:00:06 #78 [Verbose] > | StreamNil => acc
00:00:06 #79 [Verbose] > and inl loop acc = join_body body acc
00:00:06 #80 [Verbose] > loop init s
00:00:06 #81 [Verbose] > Building /tmp/!dotnet-repl/20240325-2024-5239-3936-3565aba26f6a/main.spi
00:00:06 #82 [Verbose] >
00:00:06 #83 [Verbose] > ╭─[ 178.45ms - stdout ]────────────────────────────────────────────────────────╮
00:00:06 #84 [Verbose] > │ () │
00:00:06 #85 [Verbose] > │ │
00:00:06 #86 [Verbose] > │ │
00:00:06 #87 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:06 #88 [Verbose] >
00:00:06 #89 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:06 #90 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:06 #91 [Verbose] > │ ## to_list │
00:00:06 #92 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:06 #93 [Verbose] >
00:00:06 #94 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:06 #95 [Verbose] > inl to_list s =
00:00:06 #96 [Verbose] > (s, [[]])
00:00:06 #97 [Verbose] > ||> fold_back fun x acc =>
00:00:06 #98 [Verbose] > x :: acc
00:00:06 #99 [Verbose] > Building /tmp/!dotnet-repl/20240325-2024-5257-5729-5bf207971c50/main.spi
00:00:06 #100 [Verbose] >
00:00:06 #101 [Verbose] > ╭─[ 158.55ms - stdout ]────────────────────────────────────────────────────────╮
00:00:06 #102 [Verbose] > │ () │
00:00:06 #103 [Verbose] > │ │
00:00:06 #104 [Verbose] > │ │
00:00:06 #105 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:06 #106 [Verbose] >
00:00:06 #107 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:06 #108 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:06 #109 [Verbose] > │ ## rev │
00:00:06 #110 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:06 #111 [Verbose] >
00:00:06 #112 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:06 #113 [Verbose] > inl rev s =
00:00:06 #114 [Verbose] > (StreamNil, s)
00:00:06 #115 [Verbose] > ||> fold fun s x =>
00:00:06 #116 [Verbose] > StreamCons (x, fun () => s)
00:00:06 #117 [Verbose] > Building /tmp/!dotnet-repl/20240325-2024-5273-7326-7ddcfb049bfb/main.spi
00:00:07 #118 [Verbose] >
00:00:07 #119 [Verbose] > ╭─[ 167.73ms - stdout ]────────────────────────────────────────────────────────╮
00:00:07 #120 [Verbose] > │ () │
00:00:07 #121 [Verbose] > │ │
00:00:07 #122 [Verbose] > │ │
00:00:07 #123 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #124 [Verbose] >
00:00:07 #125 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:07 #126 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:07 #127 [Verbose] > │ ## from_list │
00:00:07 #128 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #129 [Verbose] >
00:00:07 #130 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:07 #131 [Verbose] > inl from_list list =
00:00:07 #132 [Verbose] > (list, StreamNil)
00:00:07 #133 [Verbose] > ||> listm.foldBack fun x acc =>
00:00:07 #134 [Verbose] > StreamCons (x, fun () => acc)
00:00:07 #135 [Verbose] > Building /tmp/!dotnet-repl/20240325-2024-5290-9014-9320790b8a58/main.spi
00:00:07 #136 [Verbose] >
00:00:07 #137 [Verbose] > ╭─[ 145.81ms - stdout ]────────────────────────────────────────────────────────╮
00:00:07 #138 [Verbose] > │ () │
00:00:07 #139 [Verbose] > │ │
00:00:07 #140 [Verbose] > │ │
00:00:07 #141 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #142 [Verbose] >
00:00:07 #143 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:07 #144 [Verbose] > // // test
00:00:07 #145 [Verbose] >
00:00:07 #146 [Verbose] > listm.init 3i32 id
00:00:07 #147 [Verbose] > |> from_list
00:00:07 #148 [Verbose] > |> rev
00:00:07 #149 [Verbose] > |> to_list
00:00:07 #150 [Verbose] > |> _assert_eq [[ 2; 1; 0 ]]
00:00:07 #151 [Verbose] > Building /tmp/!dotnet-repl/20240325-2024-5304-0483-0e55d01a991b/main.spi
00:00:08 #152 [Verbose] >
00:00:08 #153 [Verbose] > ╭─[ 885.24ms - stdout ]────────────────────────────────────────────────────────╮
00:00:08 #154 [Verbose] > │ type UH0 = │
00:00:08 #155 [Verbose] > │ | UH0_0 of int32 * UH0 │
00:00:08 #156 [Verbose] > │ | UH0_1 │
00:00:08 #157 [Verbose] > │ let rec method0 () : unit = │
00:00:08 #158 [Verbose] > │ let v18 : UH0 = UH0_1 │
00:00:08 #159 [Verbose] > │ let v19 : UH0 = UH0_0(0, v18) │
00:00:08 #160 [Verbose] > │ let v20 : UH0 = UH0_0(1, v19) │
00:00:08 #161 [Verbose] > │ let v21 : UH0 = UH0_0(2, v20) │
00:00:08 #162 [Verbose] > │ let v22 : UH0 = UH0_1 │
00:00:08 #163 [Verbose] > │ let v23 : UH0 = UH0_0(0, v22) │
00:00:08 #164 [Verbose] > │ let v24 : UH0 = UH0_0(1, v23) │
00:00:08 #165 [Verbose] > │ let v25 : UH0 = UH0_0(2, v24) │
00:00:08 #166 [Verbose] > │ let v26 : string = $"__expect / actual: %A{v21} / expected: %A{v25}" │
00:00:08 #167 [Verbose] > │ () │
00:00:08 #168 [Verbose] > │ method0() │
00:00:08 #169 [Verbose] > │ │
00:00:08 #170 [Verbose] > │ │
00:00:08 #171 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #172 [Verbose] >
00:00:08 #173 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:08 #174 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:08 #175 [Verbose] > │ ## try_item │
00:00:08 #176 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #177 [Verbose] >
00:00:08 #178 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:08 #179 [Verbose] > inl try_item i s =
00:00:08 #180 [Verbose] > inl rec body i = function
00:00:08 #181 [Verbose] > | StreamCons (x, _) when i <= 0 => Some x
00:00:08 #182 [Verbose] > | StreamCons (_, fn) => loop (i - 1) (fn ())
00:00:08 #183 [Verbose] > | StreamNil => None
00:00:08 #184 [Verbose] > and inl loop acc s' =
00:00:08 #185 [Verbose] > match var_is acc, var_is s' with
00:00:08 #186 [Verbose] > | false, false => body acc s'
00:00:08 #187 [Verbose] > | _ =>
00:00:08 #188 [Verbose] > inl acc = dyn acc
00:00:08 #189 [Verbose] > inl s' = dyn s'
00:00:08 #190 [Verbose] > join body acc s'
00:00:08 #191 [Verbose] > loop i s
00:00:08 #192 [Verbose] >
00:00:08 #193 [Verbose] > inl item i =
00:00:08 #194 [Verbose] > try_item i >> optionm.value
00:00:08 #195 [Verbose] > Building /tmp/!dotnet-repl/20240325-2024-5393-9358-913cdea9bcee/main.spi
00:00:08 #196 [Verbose] >
00:00:08 #197 [Verbose] > ╭─[ 140.54ms - stdout ]────────────────────────────────────────────────────────╮
00:00:08 #198 [Verbose] > │ () │
00:00:08 #199 [Verbose] > │ │
00:00:08 #200 [Verbose] > │ │
00:00:08 #201 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #202 [Verbose] >
00:00:08 #203 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:08 #204 [Verbose] > // // test
00:00:08 #205 [Verbose] >
00:00:08 #206 [Verbose] > listm.init 10i32 id
00:00:08 #207 [Verbose] > |> from_list
00:00:08 #208 [Verbose] > |> item 9i32
00:00:08 #209 [Verbose] > |> _assert_eq 9
00:00:08 #210 [Verbose] > Building /tmp/!dotnet-repl/20240325-2024-5407-0768-0960effb190c/main.spi
00:00:08 #211 [Verbose] >
00:00:08 #212 [Verbose] > ╭─[ 147.38ms - stdout ]────────────────────────────────────────────────────────╮
00:00:08 #213 [Verbose] > │ let rec method0 () : unit = │
00:00:08 #214 [Verbose] > │ let v0 : string = $"__expect / actual: %A{9} / expected: %A{9}" │
00:00:08 #215 [Verbose] > │ () │
00:00:08 #216 [Verbose] > │ method0() │
00:00:08 #217 [Verbose] > │ │
00:00:08 #218 [Verbose] > │ │
00:00:08 #219 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #220 [Verbose] >
00:00:08 #221 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:08 #222 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:08 #223 [Verbose] > │ ## new_infinite_stream │
00:00:08 #224 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #225 [Verbose] >
00:00:08 #226 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:08 #227 [Verbose] > inl new_infinite_stream fn =
00:00:08 #228 [Verbose] > inl rec loop n =
00:00:08 #229 [Verbose] > StreamCons (fn n, fun () => loop (n + 1))
00:00:08 #230 [Verbose] > loop 0
00:00:08 #231 [Verbose] >
00:00:08 #232 [Verbose] > inl new_infinite_stream_ fn =
00:00:08 #233 [Verbose] > let rec loop n =
00:00:08 #234 [Verbose] > StreamCons (fn n, fun () => loop (n + 1))
00:00:08 #235 [Verbose] > loop 0
00:00:08 #236 [Verbose] > Building /tmp/!dotnet-repl/20240325-2024-5422-2252-2695902d213a/main.spi
00:00:08 #237 [Verbose] >
00:00:08 #238 [Verbose] > ╭─[ 145.69ms - stdout ]────────────────────────────────────────────────────────╮
00:00:08 #239 [Verbose] > │ () │
00:00:08 #240 [Verbose] > │ │
00:00:08 #241 [Verbose] > │ │
00:00:08 #242 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #243 [Verbose] >
00:00:08 #244 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:08 #245 [Verbose] > // // test
00:00:08 #246 [Verbose] >
00:00:08 #247 [Verbose] > new_infinite_stream print_and_return
00:00:08 #248 [Verbose] > |> item 4i32
00:00:08 #249 [Verbose] > |> _assert_eq 4i32
00:00:08 #250 [Verbose] > Building /tmp/!dotnet-repl/20240325-2024-5437-3712-3353ff0af538/main.spi
00:00:08 #251 [Verbose] >
00:00:08 #252 [Verbose] > ╭─[ 177.31ms - stdout ]────────────────────────────────────────────────────────╮
00:00:08 #253 [Verbose] > │ let rec method0 () : unit = │
00:00:08 #254 [Verbose] > │ printfn $"print_and_return / x: {0}" │
00:00:08 #255 [Verbose] > │ printfn $"print_and_return / x: {1}" │
00:00:08 #256 [Verbose] > │ printfn $"print_and_return / x: {2}" │
00:00:08 #257 [Verbose] > │ printfn $"print_and_return / x: {3}" │
00:00:08 #258 [Verbose] > │ printfn $"print_and_return / x: {4}" │
00:00:08 #259 [Verbose] > │ let v0 : string = $"__expect / actual: %A{4} / expected: %A{4}" │
00:00:08 #260 [Verbose] > │ () │
00:00:08 #261 [Verbose] > │ method0() │
00:00:08 #262 [Verbose] > │ │
00:00:08 #263 [Verbose] > │ print_and_return / x: 0 │
00:00:08 #264 [Verbose] > │ print_and_return / x: 1 │
00:00:08 #265 [Verbose] > │ print_and_return / x: 2 │
00:00:08 #266 [Verbose] > │ print_and_return / x: 3 │
00:00:08 #267 [Verbose] > │ print_and_return / x: 4 │
00:00:08 #268 [Verbose] > │ │
00:00:08 #269 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #270 [Verbose] >
00:00:08 #271 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:08 #272 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:08 #273 [Verbose] > │ ## new_finite_stream │
00:00:08 #274 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #275 [Verbose] >
00:00:08 #276 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:08 #277 [Verbose] > inl new_finite_stream fn max =
00:00:08 #278 [Verbose] > inl rec loop n =
00:00:08 #279 [Verbose] > if n >= max
00:00:08 #280 [Verbose] > then StreamNil
00:00:08 #281 [Verbose] > else StreamCons (fn n, fun () => loop (n + 1))
00:00:08 #282 [Verbose] > loop 0
00:00:08 #283 [Verbose] > Building /tmp/!dotnet-repl/20240325-2024-5455-5507-53ffd519224a/main.spi
00:00:08 #284 [Verbose] >
00:00:08 #285 [Verbose] > ╭─[ 136.78ms - stdout ]────────────────────────────────────────────────────────╮
00:00:08 #286 [Verbose] > │ () │
00:00:08 #287 [Verbose] > │ │
00:00:08 #288 [Verbose] > │ │
00:00:08 #289 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #290 [Verbose] >
00:00:08 #291 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:08 #292 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:08 #293 [Verbose] > │ ## memoize │
00:00:08 #294 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #295 [Verbose] >
00:00:08 #296 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:08 #297 [Verbose] > union memoized_stream t =
00:00:08 #298 [Verbose] > | NotComputed : () -> stream t
00:00:08 #299 [Verbose] > | Computed : stream t
00:00:08 #300 [Verbose] >
00:00:08 #301 [Verbose] > inl memoize s =
00:00:08 #302 [Verbose] > inl rec body s =
00:00:08 #303 [Verbose] > inl state = mut (NotComputed s)
00:00:08 #304 [Verbose] > fun () =>
00:00:08 #305 [Verbose] > match *state with
00:00:08 #306 [Verbose] > | Computed x => x
00:00:08 #307 [Verbose] > | NotComputed fn =>
00:00:08 #308 [Verbose] > inl new_state =
00:00:08 #309 [Verbose] > match fn () with
00:00:08 #310 [Verbose] > | StreamNil => StreamNil
00:00:08 #311 [Verbose] > | StreamCons (x, fn) => StreamCons (x, loop fn)
00:00:08 #312 [Verbose] > state <- Computed new_state
00:00:08 #313 [Verbose] > new_state
00:00:08 #314 [Verbose] > and inl loop s' = join_body_unit body s s'
00:00:08 #315 [Verbose] > loop (fun () => s)
00:00:08 #316 [Verbose] > Building /tmp/!dotnet-repl/20240325-2024-5468-6886-608915537deb/main.spi
00:00:09 #317 [Verbose] >
00:00:09 #318 [Verbose] > ╭─[ 142.48ms - stdout ]────────────────────────────────────────────────────────╮
00:00:09 #319 [Verbose] > │ () │
00:00:09 #320 [Verbose] > │ │
00:00:09 #321 [Verbose] > │ │
00:00:09 #322 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #323 [Verbose] >
00:00:09 #324 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:09 #325 [Verbose] > // // test
00:00:09 #326 [Verbose] >
00:00:09 #327 [Verbose] > inl memo_stream = new_finite_stream print_and_return 10 |> memoize
00:00:09 #328 [Verbose] >
00:00:09 #329 [Verbose] > memo_stream ()
00:00:09 #330 [Verbose] > |> item 3i32
00:00:09 #331 [Verbose] > |> _assert_eq 3i32
00:00:09 #332 [Verbose] >
00:00:09 #333 [Verbose] > memo_stream ()
00:00:09 #334 [Verbose] > |> item 5i32
00:00:09 #335 [Verbose] > |> _assert_eq 5i32
00:00:09 #336 [Verbose] > Building /tmp/!dotnet-repl/20240325-2024-5483-8324-816425c1bd62/main.spi
00:00:09 #337 [Verbose] >
00:00:09 #338 [Verbose] > ╭─[ 567.88ms - stdout ]────────────────────────────────────────────────────────╮
00:00:09 #339 [Verbose] > │ type UH0 = │
00:00:09 #340 [Verbose] > │ | UH0_0 of int32 * (unit -> UH0) │
00:00:09 #341 [Verbose] > │ | UH0_1 │
00:00:09 #342 [Verbose] > │ and [<Struct>] US0 = │
00:00:09 #343 [Verbose] > │ | US0_0 of f0_0 : UH0 │
00:00:09 #344 [Verbose] > │ | US0_1 of f1_0 : (unit -> UH0) │
00:00:09 #345 [Verbose] > │ and Mut0 = {mutable l0 : US0} │
00:00:09 #346 [Verbose] > │ and [<Struct>] US1 = │
00:00:09 #347 [Verbose] > │ | US1_0 │
00:00:09 #348 [Verbose] > │ | US1_1 of f1_0 : int32 │
00:00:09 #349 [Verbose] > │ let rec closure10 () () : UH0 = │
00:00:09 #350 [Verbose] > │ UH0_1 │
00:00:09 #351 [Verbose] > │ and closure9 () () : UH0 = │
00:00:09 #352 [Verbose] > │ printfn $"print_and_return / x: {9}" │
00:00:09 #353 [Verbose] > │ let v0 : (unit -> UH0) = closure10() │
00:00:09 #354 [Verbose] > │ UH0_0(9, v0) │
00:00:09 #355 [Verbose] > │ and closure8 () () : UH0 = │
00:00:09 #356 [Verbose] > │ printfn $"print_and_return / x: {8}" │
00:00:09 #357 [Verbose] > │ let v0 : (unit -> UH0) = closure9() │
00:00:09 #358 [Verbose] > │ UH0_0(8, v0) │
00:00:09 #359 [Verbose] > │ and closure7 () () : UH0 = │
00:00:09 #360 [Verbose] > │ printfn $"print_and_return / x: {7}" │
00:00:09 #361 [Verbose] > │ let v0 : (unit -> UH0) = closure8() │
00:00:09 #362 [Verbose] > │ UH0_0(7, v0) │
00:00:09 #363 [Verbose] > │ and closure6 () () : UH0 = │
00:00:09 #364 [Verbose] > │ printfn $"print_and_return / x: {6}" │
00:00:09 #365 [Verbose] > │ let v0 : (unit -> UH0) = closure7() │
00:00:09 #366 [Verbose] > │ UH0_0(6, v0) │
00:00:09 #367 [Verbose] > │ and closure5 () () : UH0 = │
00:00:09 #368 [Verbose] > │ printfn $"print_and_return / x: {5}" │
00:00:09 #369 [Verbose] > │ let v0 : (unit -> UH0) = closure6() │
00:00:09 #370 [Verbose] > │ UH0_0(5, v0) │
00:00:09 #371 [Verbose] > │ and closure4 () () : UH0 = │
00:00:09 #372 [Verbose] > │ printfn $"print_and_return / x: {4}" │
00:00:09 #373 [Verbose] > │ let v0 : (unit -> UH0) = closure5() │
00:00:09 #374 [Verbose] > │ UH0_0(4, v0) │
00:00:09 #375 [Verbose] > │ and closure3 () () : UH0 = │
00:00:09 #376 [Verbose] > │ printfn $"print_and_return / x: {3}" │
00:00:09 #377 [Verbose] > │ let v0 : (unit -> UH0) = closure4() │
00:00:09 #378 [Verbose] > │ UH0_0(3, v0) │
00:00:09 #379 [Verbose] > │ and closure2 () () : UH0 = │
00:00:09 #380 [Verbose] > │ printfn $"print_and_return / x: {2}" │
00:00:09 #381 [Verbose] > │ let v0 : (unit -> UH0) = closure3() │
00:00:09 #382 [Verbose] > │ UH0_0(2, v0) │
00:00:09 #383 [Verbose] > │ and closure1 () () : UH0 = │
00:00:09 #384 [Verbose] > │ printfn $"print_and_return / x: {1}" │
00:00:09 #385 [Verbose] > │ let v0 : (unit -> UH0) = closure2() │
00:00:09 #386 [Verbose] > │ UH0_0(1, v0) │
00:00:09 #387 [Verbose] > │ and closure0 () () : UH0 = │
00:00:09 #388 [Verbose] > │ let v0 : (unit -> UH0) = closure1() │
00:00:09 #389 [Verbose] > │ UH0_0(0, v0) │
00:00:09 #390 [Verbose] > │ and closure11 (v0 : Mut0) () : UH0 = │
00:00:09 #391 [Verbose] > │ let v1 : US0 = v0.l0 │
00:00:09 #392 [Verbose] > │ match v1 with │
00:00:09 #393 [Verbose] > │ | US0_0(v2) -> (* Computed *) │
00:00:09 #394 [Verbose] > │ v2 │
00:00:09 #395 [Verbose] > │ | US0_1(v3) -> (* NotComputed *) │
00:00:09 #396 [Verbose] > │ let v4 : UH0 = v3 () │
00:00:09 #397 [Verbose] > │ let v13 : UH0 = │
00:00:09 #398 [Verbose] > │ match v4 with │
00:00:09 #399 [Verbose] > │ | UH0_0(v6, v7) -> (* StreamCons *) │
00:00:09 #400 [Verbose] > │ let v8 : US0 = US0_1(v7) │
00:00:09 #401 [Verbose] > │ let v9 : Mut0 = {l0 = v8} : Mut0 │
00:00:09 #402 [Verbose] > │ let v10 : (unit -> UH0) = closure11(v9) │
00:00:09 #403 [Verbose] > │ UH0_0(v6, v10) │
00:00:09 #404 [Verbose] > │ | UH0_1 -> (* StreamNil *) │
00:00:09 #405 [Verbose] > │ UH0_1 │
00:00:09 #406 [Verbose] > │ let v14 : US0 = US0_0(v13) │
00:00:09 #407 [Verbose] > │ v0.l0 <- v14 │
00:00:09 #408 [Verbose] > │ v13 │
00:00:09 #409 [Verbose] > │ and method1 (v0 : int32, v1 : UH0) : US1 = │
00:00:09 #410 [Verbose] > │ match v1 with │
00:00:09 #411 [Verbose] > │ | UH0_0(v2, v3) -> (* StreamCons *) │
00:00:09 #412 [Verbose] > │ let v4 : bool = v0 <= 0 │
00:00:09 #413 [Verbose] > │ if v4 then │
00:00:09 #414 [Verbose] > │ US1_1(v2) │
00:00:09 #415 [Verbose] > │ else │
00:00:09 #416 [Verbose] > │ let v6 : int32 = v0 - 1 │
00:00:09 #417 [Verbose] > │ let v7 : UH0 = v3 () │
00:00:09 #418 [Verbose] > │ method1(v6, v7) │
00:00:09 #419 [Verbose] > │ | UH0_1 -> (* StreamNil *) │
00:00:09 #420 [Verbose] > │ US1_0 │
00:00:09 #421 [Verbose] > │ and method2 (v0 : bool) : bool = │
00:00:09 #422 [Verbose] > │ v0 │
00:00:09 #423 [Verbose] > │ and method0 () : unit = │
00:00:09 #424 [Verbose] > │ printfn $"print_and_return / x: {0}" │
00:00:09 #425 [Verbose] > │ let v0 : (unit -> UH0) = closure0() │
00:00:09 #426 [Verbose] > │ let v1 : US0 = US0_1(v0) │
00:00:09 #427 [Verbose] > │ let v2 : Mut0 = {l0 = v1} : Mut0 │
00:00:09 #428 [Verbose] > │ let v3 : US0 = v2.l0 │
00:00:09 #429 [Verbose] > │ let v18 : UH0 = │
00:00:09 #430 [Verbose] > │ match v3 with │
00:00:09 #431 [Verbose] > │ | US0_0(v4) -> (* Computed *) │
00:00:09 #432 [Verbose] > │ v4 │
00:00:09 #433 [Verbose] > │ | US0_1(v5) -> (* NotComputed *) │
00:00:09 #434 [Verbose] > │ let v6 : UH0 = v5 () │
00:00:09 #435 [Verbose] > │ let v15 : UH0 = │
00:00:09 #436 [Verbose] > │ match v6 with │
00:00:09 #437 [Verbose] > │ | UH0_0(v8, v9) -> (* StreamCons *) │
00:00:09 #438 [Verbose] > │ let v10 : US0 = US0_1(v9) │
00:00:09 #439 [Verbose] > │ let v11 : Mut0 = {l0 = v10} : Mut0 │
00:00:09 #440 [Verbose] > │ let v12 : (unit -> UH0) = closure11(v11) │
00:00:09 #441 [Verbose] > │ UH0_0(v8, v12) │
00:00:09 #442 [Verbose] > │ | UH0_1 -> (* StreamNil *) │
00:00:09 #443 [Verbose] > │ UH0_1 │
00:00:09 #444 [Verbose] > │ let v16 : US0 = US0_0(v15) │
00:00:09 #445 [Verbose] > │ v2.l0 <- v16 │
00:00:09 #446 [Verbose] > │ v15 │
00:00:09 #447 [Verbose] > │ let v19 : int32 = 3 │
00:00:09 #448 [Verbose] > │ let v20 : US1 = method1(v19, v18) │
00:00:09 #449 [Verbose] > │ let v24 : int32 = │
00:00:09 #450 [Verbose] > │ match v20 with │
00:00:09 #451 [Verbose] > │ | US1_0 -> (* None *) │
00:00:09 #452 [Verbose] > │ failwith<int32> "Option does not have a value." │
00:00:09 #453 [Verbose] > │ | US1_1(v21) -> (* Some *) │
00:00:09 #454 [Verbose] > │ v21 │
00:00:09 #455 [Verbose] > │ let v25 : bool = v24 = 3 │
00:00:09 #456 [Verbose] > │ let v27 : bool = │
00:00:09 #457 [Verbose] > │ if v25 then │
00:00:09 #458 [Verbose] > │ true │
00:00:09 #459 [Verbose] > │ else │
00:00:09 #460 [Verbose] > │ method2(v25) │
00:00:09 #461 [Verbose] > │ let v28 : string = $"__expect / actual: %A{v24} / expected: %A{3}" │
00:00:09 #462 [Verbose] > │ let v29 : bool = v27 = false │
00:00:09 #463 [Verbose] > │ if v29 then │
00:00:09 #464 [Verbose] > │ failwith<unit> v28 │
00:00:09 #465 [Verbose] > │ let v30 : US0 = v2.l0 │
00:00:09 #466 [Verbose] > │ let v45 : UH0 = │
00:00:09 #467 [Verbose] > │ match v30 with │
00:00:09 #468 [Verbose] > │ | US0_0(v31) -> (* Computed *) │
00:00:09 #469 [Verbose] > │ v31 │
00:00:09 #470 [Verbose] > │ | US0_1(v32) -> (* NotComputed *) │
00:00:09 #471 [Verbose] > │ let v33 : UH0 = v32 () │
00:00:09 #472 [Verbose] > │ let v42 : UH0 = │
00:00:09 #473 [Verbose] > │ match v33 with │
00:00:09 #474 [Verbose] > │ | UH0_0(v35, v36) -> (* StreamCons *) │
00:00:09 #475 [Verbose] > │ let v37 : US0 = US0_1(v36) │
00:00:09 #476 [Verbose] > │ let v38 : Mut0 = {l0 = v37} : Mut0 │
00:00:09 #477 [Verbose] > │ let v39 : (unit -> UH0) = closure11(v38) │
00:00:09 #478 [Verbose] > │ UH0_0(v35, v39) │
00:00:09 #479 [Verbose] > │ | UH0_1 -> (* StreamNil *) │
00:00:09 #480 [Verbose] > │ UH0_1 │
00:00:09 #481 [Verbose] > │ let v43 : US0 = US0_0(v42) │
00:00:09 #482 [Verbose] > │ v2.l0 <- v43 │
00:00:09 #483 [Verbose] > │ v42 │
00:00:09 #484 [Verbose] > │ let v46 : int32 = 5 │
00:00:09 #485 [Verbose] > │ let v47 : US1 = method1(v46, v45) │
00:00:09 #486 [Verbose] > │ let v51 : int32 = │
00:00:09 #487 [Verbose] > │ match v47 with │
00:00:09 #488 [Verbose] > │ | US1_0 -> (* None *) │
00:00:09 #489 [Verbose] > │ failwith<int32> "Option does not have a value." │
00:00:09 #490 [Verbose] > │ | US1_1(v48) -> (* Some *) │
00:00:09 #491 [Verbose] > │ v48 │
00:00:09 #492 [Verbose] > │ let v52 : bool = v51 = 5 │
00:00:09 #493 [Verbose] > │ let v54 : bool = │
00:00:09 #494 [Verbose] > │ if v52 then │
00:00:09 #495 [Verbose] > │ true │
00:00:09 #496 [Verbose] > │ else │
00:00:09 #497 [Verbose] > │ method2(v52) │
00:00:09 #498 [Verbose] > │ let v55 : string = $"__expect / actual: %A{v51} / expected: %A{5}" │
00:00:09 #499 [Verbose] > │ let v56 : bool = v54 = false │
00:00:09 #500 [Verbose] > │ if v56 then │
00:00:09 #501 [Verbose] > │ failwith<unit> v55 │
00:00:09 #502 [Verbose] > │ method0() │
00:00:09 #503 [Verbose] > │ │
00:00:09 #504 [Verbose] > │ print_and_return / x: 0 │
00:00:09 #505 [Verbose] > │ print_and_return / x: 1 │
00:00:09 #506 [Verbose] > │ print_and_return / x: 2 │
00:00:09 #507 [Verbose] > │ print_and_return / x: 3 │
00:00:09 #508 [Verbose] > │ print_and_return / x: 4 │
00:00:09 #509 [Verbose] > │ print_and_return / x: 5 │
00:00:09 #510 [Verbose] > │ │
00:00:09 #511 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #512 [Verbose] >
00:00:09 #513 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:09 #514 [Verbose] > // // test
00:00:09 #515 [Verbose] >
00:00:09 #516 [Verbose] > inl memo_stream = new_infinite_stream_ print_and_return |> memoize
00:00:09 #517 [Verbose] >
00:00:09 #518 [Verbose] > memo_stream ()
00:00:09 #519 [Verbose] > |> item 3i32
00:00:09 #520 [Verbose] > |> _assert_eq 3i32
00:00:09 #521 [Verbose] >
00:00:09 #522 [Verbose] > memo_stream ()
00:00:09 #523 [Verbose] > |> item 5i32
00:00:09 #524 [Verbose] > |> _assert_eq 5i32
00:00:09 #525 [Verbose] > Building /tmp/!dotnet-repl/20240325-2024-5542-4212-49ec4d11a280/main.spi
00:00:09 #526 [Verbose] >
00:00:09 #527 [Verbose] > ╭─[ 354.59ms - stdout ]────────────────────────────────────────────────────────╮
00:00:09 #528 [Verbose] > │ type UH0 = │
00:00:09 #529 [Verbose] > │ | UH0_0 of int32 * (unit -> UH0) │
00:00:09 #530 [Verbose] > │ | UH0_1 │
00:00:09 #531 [Verbose] > │ and [<Struct>] US0 = │
00:00:09 #532 [Verbose] > │ | US0_0 of f0_0 : UH0 │
00:00:09 #533 [Verbose] > │ | US0_1 of f1_0 : (unit -> UH0) │
00:00:09 #534 [Verbose] > │ and Mut0 = {mutable l0 : US0} │
00:00:09 #535 [Verbose] > │ and [<Struct>] US1 = │
00:00:09 #536 [Verbose] > │ | US1_0 │
00:00:09 #537 [Verbose] > │ | US1_1 of f1_0 : int32 │
00:00:09 #538 [Verbose] > │ let rec closure0 (v0 : int32) () : UH0 = │
00:00:09 #539 [Verbose] > │ let v1 : int32 = v0 + 1 │
00:00:09 #540 [Verbose] > │ method1(v1) │
00:00:09 #541 [Verbose] > │ and method1 (v0 : int32) : UH0 = │
00:00:09 #542 [Verbose] > │ printfn $"print_and_return / x: {v0}" │
00:00:09 #543 [Verbose] > │ let v1 : (unit -> UH0) = closure0(v0) │
00:00:09 #544 [Verbose] > │ UH0_0(v0, v1) │
00:00:09 #545 [Verbose] > │ and closure1 (v0 : UH0) () : UH0 = │
00:00:09 #546 [Verbose] > │ v0 │
00:00:09 #547 [Verbose] > │ and closure2 (v0 : UH0, v1 : Mut0) () : UH0 = │
00:00:09 #548 [Verbose] > │ let v2 : US0 = v1.l0 │
00:00:09 #549 [Verbose] > │ match v2 with │
00:00:09 #550 [Verbose] > │ | US0_0(v3) -> (* Computed *) │
00:00:09 #551 [Verbose] > │ v3 │
00:00:09 #552 [Verbose] > │ | US0_1(v4) -> (* NotComputed *) │
00:00:09 #553 [Verbose] > │ let v5 : UH0 = v4 () │
00:00:09 #554 [Verbose] > │ let v12 : UH0 = │
00:00:09 #555 [Verbose] > │ match v5 with │
00:00:09 #556 [Verbose] > │ | UH0_0(v7, v8) -> (* StreamCons *) │
00:00:09 #557 [Verbose] > │ let v9 : (unit -> UH0) = method2(v0, v8) │
00:00:09 #558 [Verbose] > │ UH0_0(v7, v9) │
00:00:09 #559 [Verbose] > │ | UH0_1 -> (* StreamNil *) │
00:00:09 #560 [Verbose] > │ UH0_1 │
00:00:09 #561 [Verbose] > │ let v13 : US0 = US0_0(v12) │
00:00:09 #562 [Verbose] > │ v1.l0 <- v13 │
00:00:09 #563 [Verbose] > │ v12 │
00:00:09 #564 [Verbose] > │ and method2 (v0 : UH0, v1 : (unit -> UH0)) : (unit -> UH0) = │
00:00:09 #565 [Verbose] > │ let v2 : US0 = US0_1(v1) │
00:00:09 #566 [Verbose] > │ let v3 : Mut0 = {l0 = v2} : Mut0 │
00:00:09 #567 [Verbose] > │ closure2(v0, v3) │
00:00:09 #568 [Verbose] > │ and method3 (v0 : int32, v1 : UH0) : US1 = │
00:00:09 #569 [Verbose] > │ match v1 with │
00:00:09 #570 [Verbose] > │ | UH0_0(v2, v3) -> (* StreamCons *) │
00:00:09 #571 [Verbose] > │ let v4 : bool = v0 <= 0 │
00:00:09 #572 [Verbose] > │ if v4 then │
00:00:09 #573 [Verbose] > │ US1_1(v2) │
00:00:09 #574 [Verbose] > │ else │
00:00:09 #575 [Verbose] > │ let v6 : int32 = v0 - 1 │
00:00:09 #576 [Verbose] > │ let v7 : UH0 = v3 () │
00:00:09 #577 [Verbose] > │ method3(v6, v7) │
00:00:09 #578 [Verbose] > │ | UH0_1 -> (* StreamNil *) │
00:00:09 #579 [Verbose] > │ US1_0 │
00:00:09 #580 [Verbose] > │ and method4 (v0 : bool) : bool = │
00:00:09 #581 [Verbose] > │ v0 │
00:00:09 #582 [Verbose] > │ and method0 () : unit = │
00:00:09 #583 [Verbose] > │ let v0 : int32 = 0 │
00:00:09 #584 [Verbose] > │ let v1 : UH0 = method1(v0) │
00:00:09 #585 [Verbose] > │ let v2 : (unit -> UH0) = closure1(v1) │
00:00:09 #586 [Verbose] > │ let v3 : (unit -> UH0) = method2(v1, v2) │
00:00:09 #587 [Verbose] > │ let v4 : UH0 = v3 () │
00:00:09 #588 [Verbose] > │ let v5 : int32 = 3 │
00:00:09 #589 [Verbose] > │ let v6 : US1 = method3(v5, v4) │
00:00:09 #590 [Verbose] > │ let v10 : int32 = │
00:00:09 #591 [Verbose] > │ match v6 with │
00:00:09 #592 [Verbose] > │ | US1_0 -> (* None *) │
00:00:09 #593 [Verbose] > │ failwith<int32> "Option does not have a value." │
00:00:09 #594 [Verbose] > │ | US1_1(v7) -> (* Some *) │
00:00:09 #595 [Verbose] > │ v7 │
00:00:09 #596 [Verbose] > │ let v11 : bool = v10 = 3 │
00:00:09 #597 [Verbose] > │ let v13 : bool = │
00:00:09 #598 [Verbose] > │ if v11 then │
00:00:09 #599 [Verbose] > │ true │
00:00:09 #600 [Verbose] > │ else │
00:00:09 #601 [Verbose] > │ method4(v11) │
00:00:09 #602 [Verbose] > │ let v14 : string = $"__expect / actual: %A{v10} / expected: %A{3}" │
00:00:09 #603 [Verbose] > │ let v15 : bool = v13 = false │
00:00:09 #604 [Verbose] > │ if v15 then │
00:00:09 #605 [Verbose] > │ failwith<unit> v14 │
00:00:09 #606 [Verbose] > │ let v16 : UH0 = v3 () │
00:00:09 #607 [Verbose] > │ let v17 : int32 = 5 │
00:00:09 #608 [Verbose] > │ let v18 : US1 = method3(v17, v16) │
00:00:09 #609 [Verbose] > │ let v22 : int32 = │
00:00:09 #610 [Verbose] > │ match v18 with │
00:00:09 #611 [Verbose] > │ | US1_0 -> (* None *) │
00:00:09 #612 [Verbose] > │ failwith<int32> "Option does not have a value." │
00:00:09 #613 [Verbose] > │ | US1_1(v19) -> (* Some *) │
00:00:09 #614 [Verbose] > │ v19 │
00:00:09 #615 [Verbose] > │ let v23 : bool = v22 = 5 │
00:00:09 #616 [Verbose] > │ let v25 : bool = │
00:00:09 #617 [Verbose] > │ if v23 then │
00:00:09 #618 [Verbose] > │ true │
00:00:09 #619 [Verbose] > │ else │
00:00:09 #620 [Verbose] > │ method4(v23) │
00:00:09 #621 [Verbose] > │ let v26 : string = $"__expect / actual: %A{v22} / expected: %A{5}" │
00:00:09 #622 [Verbose] > │ let v27 : bool = v25 = false │
00:00:09 #623 [Verbose] > │ if v27 then │
00:00:09 #624 [Verbose] > │ failwith<unit> v26 │
00:00:09 #625 [Verbose] > │ method0() │
00:00:09 #626 [Verbose] > │ │
00:00:09 #627 [Verbose] > │ print_and_return / x: 0 │
00:00:09 #628 [Verbose] > │ print_and_return / x: 1 │
00:00:09 #629 [Verbose] > │ print_and_return / x: 2 │
00:00:09 #630 [Verbose] > │ print_and_return / x: 3 │
00:00:09 #631 [Verbose] > │ print_and_return / x: 4 │
00:00:09 #632 [Verbose] > │ print_and_return / x: 5 │
00:00:09 #633 [Verbose] > │ │
00:00:09 #634 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #635 [Verbose] >
00:00:09 #636 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:09 #637 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:09 #638 [Verbose] > │ ## unfold │
00:00:09 #639 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #640 [Verbose] >
00:00:09 #641 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:09 #642 [Verbose] > inl unfold f x0 =
00:00:09 #643 [Verbose] > inl rec body x =
00:00:09 #644 [Verbose] > match f x with
00:00:09 #645 [Verbose] > | Some (x', y) => StreamCons (x', fun () => loop y)
00:00:09 #646 [Verbose] > | None => StreamNil
00:00:09 #647 [Verbose] > and inl loop x = join_body_unit body x0 x
00:00:09 #648 [Verbose] > loop x0
00:00:10 #649 [Verbose] > Building /tmp/!dotnet-repl/20240325-2024-5579-7914-72e173c2c3a2/main.spi
00:00:10 #650 [Verbose] >
00:00:10 #651 [Verbose] > ╭─[ 145.18ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #652 [Verbose] > │ () │
00:00:10 #653 [Verbose] > │ │
00:00:10 #654 [Verbose] > │ │
00:00:10 #655 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #656 [Verbose] >
00:00:10 #657 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:10 #658 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:10 #659 [Verbose] > │ ## iterate │
00:00:10 #660 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #661 [Verbose] >
00:00:10 #662 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #663 [Verbose] > inl iterate f =
00:00:10 #664 [Verbose] > unfold (fun x => Some (x, f x))
00:00:10 #665 [Verbose] > Building /tmp/!dotnet-repl/20240325-2024-5593-9365-98347299770e/main.spi
00:00:10 #666 [Verbose] >
00:00:10 #667 [Verbose] > ╭─[ 168.01ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #668 [Verbose] > │ () │
00:00:10 #669 [Verbose] > │ │
00:00:10 #670 [Verbose] > │ │
00:00:10 #671 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #672 [Verbose] >
00:00:10 #673 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #674 [Verbose] > // // test
00:00:10 #675 [Verbose] >
00:00:10 #676 [Verbose] > iterate ((*) 2) 1i32
00:00:10 #677 [Verbose] > |> item 10i32
00:00:10 #678 [Verbose] > |> _assert_eq 1024
00:00:10 #679 [Verbose] > Building /tmp/!dotnet-repl/20240325-2024-5610-1051-1d01285fa3d5/main.spi
00:00:10 #680 [Verbose] >
00:00:10 #681 [Verbose] > ╭─[ 140.67ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #682 [Verbose] > │ let rec method0 () : unit = │
00:00:10 #683 [Verbose] > │ let v0 : string = $"__expect / actual: %A{1024} / expected: %A{1024}" │
00:00:10 #684 [Verbose] > │ () │
00:00:10 #685 [Verbose] > │ method0() │
00:00:10 #686 [Verbose] > │ │
00:00:10 #687 [Verbose] > │ │
00:00:10 #688 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #689 [Verbose] >
00:00:10 #690 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:10 #691 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:10 #692 [Verbose] > │ ## take_while │
00:00:10 #693 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #694 [Verbose] >
00:00:10 #695 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #696 [Verbose] > inl take_while cond s =
00:00:10 #697 [Verbose] > inl rec body i = function
00:00:10 #698 [Verbose] > | StreamCons (st, fn) when cond st i => StreamCons (st, fun () => loop
00:00:10 #699 [Verbose] > (i + 1) (fn ()))
00:00:10 #700 [Verbose] > | _ => StreamNil
00:00:10 #701 [Verbose] > and inl loop i = join_body body i
00:00:10 #702 [Verbose] > loop 0 s
00:00:10 #703 [Verbose] > Building /tmp/!dotnet-repl/20240325-2024-5624-2474-21a71c37c17b/main.spi
00:00:10 #704 [Verbose] >
00:00:10 #705 [Verbose] > ╭─[ 128.70ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #706 [Verbose] > │ () │
00:00:10 #707 [Verbose] > │ │
00:00:10 #708 [Verbose] > │ │
00:00:10 #709 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #710 [Verbose] >
00:00:10 #711 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:10 #712 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:10 #713 [Verbose] > │ ## sum │
00:00:10 #714 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #715 [Verbose] >
00:00:10 #716 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #717 [Verbose] > inl sum seq =
00:00:10 #718 [Verbose] > seq |> fold (+) 0
00:00:10 #719 [Verbose] > Building /tmp/!dotnet-repl/20240325-2024-5637-3766-383bff38a30e/main.spi
00:00:10 #720 [Verbose] >
00:00:10 #721 [Verbose] > ╭─[ 133.55ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #722 [Verbose] > │ () │
00:00:10 #723 [Verbose] > │ │
00:00:10 #724 [Verbose] > │ │
00:00:10 #725 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #726 [Verbose] >
00:00:10 #727 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #728 [Verbose] > // // test
00:00:10 #729 [Verbose] >
00:00:10 #730 [Verbose] > listm.init 10i32 id
00:00:10 #731 [Verbose] > |> from_list
00:00:10 #732 [Verbose] > |> sum
00:00:10 #733 [Verbose] > |> _assert_eq 45
00:00:10 #734 [Verbose] > Building /tmp/!dotnet-repl/20240325-2024-5651-5106-50b2a1becaad/main.spi
00:00:10 #735 [Verbose] >
00:00:10 #736 [Verbose] > ╭─[ 138.98ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #737 [Verbose] > │ let rec method0 () : unit = │
00:00:10 #738 [Verbose] > │ let v0 : string = $"__expect / actual: %A{45} / expected: %A{45}" │
00:00:10 #739 [Verbose] > │ () │
00:00:10 #740 [Verbose] > │ method0() │
00:00:10 #741 [Verbose] > │ │
00:00:10 #742 [Verbose] > │ │
00:00:10 #743 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #744 [Verbose] >
00:00:10 #745 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #746 [Verbose] > // // test
00:00:10 #747 [Verbose] >
00:00:10 #748 [Verbose] > new_finite_stream print_and_return 10i32
00:00:10 #749 [Verbose] > |> take_while (fun n (_ : i32) => n < 5)
00:00:10 #750 [Verbose] > |> sum
00:00:10 #751 [Verbose] > |> _assert_eq 10
00:00:10 #752 [Verbose] > Building /tmp/!dotnet-repl/20240325-2024-5665-6503-6e560ee6c74e/main.spi
00:00:10 #753 [Verbose] >
00:00:10 #754 [Verbose] > ╭─[ 147.87ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #755 [Verbose] > │ let rec method0 () : unit = │
00:00:10 #756 [Verbose] > │ printfn $"print_and_return / x: {0}" │
00:00:10 #757 [Verbose] > │ printfn $"print_and_return / x: {1}" │
00:00:10 #758 [Verbose] > │ printfn $"print_and_return / x: {2}" │
00:00:10 #759 [Verbose] > │ printfn $"print_and_return / x: {3}" │
00:00:10 #760 [Verbose] > │ printfn $"print_and_return / x: {4}" │
00:00:10 #761 [Verbose] > │ printfn $"print_and_return / x: {5}" │
00:00:10 #762 [Verbose] > │ let v0 : string = $"__expect / actual: %A{10} / expected: %A{10}" │
00:00:10 #763 [Verbose] > │ () │
00:00:10 #764 [Verbose] > │ method0() │
00:00:10 #765 [Verbose] > │ │
00:00:10 #766 [Verbose] > │ print_and_return / x: 0 │
00:00:10 #767 [Verbose] > │ print_and_return / x: 1 │
00:00:10 #768 [Verbose] > │ print_and_return / x: 2 │
00:00:10 #769 [Verbose] > │ print_and_return / x: 3 │
00:00:10 #770 [Verbose] > │ print_and_return / x: 4 │
00:00:10 #771 [Verbose] > │ print_and_return / x: 5 │
00:00:10 #772 [Verbose] > │ │
00:00:10 #773 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #774 [Verbose] >
00:00:10 #775 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #776 [Verbose] > // // test
00:00:10 #777 [Verbose] >
00:00:10 #778 [Verbose] > new_infinite_stream print_and_return
00:00:10 #779 [Verbose] > |> take_while (fun n (_ : i32) => n < 5i32)
00:00:10 #780 [Verbose] > |> sum
00:00:10 #781 [Verbose] > |> _assert_eq 10
00:00:11 #782 [Verbose] > Building /tmp/!dotnet-repl/20240325-2024-5679-7993-7e93e2028030/main.spi
00:00:11 #783 [Verbose] >
00:00:11 #784 [Verbose] > ╭─[ 158.07ms - stdout ]────────────────────────────────────────────────────────╮
00:00:11 #785 [Verbose] > │ let rec method0 () : unit = │
00:00:11 #786 [Verbose] > │ printfn $"print_and_return / x: {0}" │
00:00:11 #787 [Verbose] > │ printfn $"print_and_return / x: {1}" │
00:00:11 #788 [Verbose] > │ printfn $"print_and_return / x: {2}" │
00:00:11 #789 [Verbose] > │ printfn $"print_and_return / x: {3}" │
00:00:11 #790 [Verbose] > │ printfn $"print_and_return / x: {4}" │
00:00:11 #791 [Verbose] > │ printfn $"print_and_return / x: {5}" │
00:00:11 #792 [Verbose] > │ let v0 : string = $"__expect / actual: %A{10} / expected: %A{10}" │
00:00:11 #793 [Verbose] > │ () │
00:00:11 #794 [Verbose] > │ method0() │
00:00:11 #795 [Verbose] > │ │
00:00:11 #796 [Verbose] > │ print_and_return / x: 0 │
00:00:11 #797 [Verbose] > │ print_and_return / x: 1 │
00:00:11 #798 [Verbose] > │ print_and_return / x: 2 │
00:00:11 #799 [Verbose] > │ print_and_return / x: 3 │
00:00:11 #800 [Verbose] > │ print_and_return / x: 4 │
00:00:11 #801 [Verbose] > │ print_and_return / x: 5 │
00:00:11 #802 [Verbose] > │ │
00:00:11 #803 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #804 [Verbose] >
00:00:11 #805 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:11 #806 [Verbose] > // // test
00:00:11 #807 [Verbose] >
00:00:11 #808 [Verbose] > iterate ((*) 6) 1i32
00:00:11 #809 [Verbose] > |> take_while (fun _ i => i <= 7i32)
00:00:11 #810 [Verbose] > |> to_list
00:00:11 #811 [Verbose] > |> _assert_eq [[ 1i32; 6; 36; 216; 1296; 7776; 46656; 279936 ]]
00:00:11 #812 [Verbose] > Building /tmp/!dotnet-repl/20240325-2024-5695-9586-9ea1dfd60f56/main.spi
00:00:11 #813 [Verbose] >
00:00:11 #814 [Verbose] > ╭─[ 170.09ms - stdout ]────────────────────────────────────────────────────────╮
00:00:11 #815 [Verbose] > │ type UH0 = │
00:00:11 #816 [Verbose] > │ | UH0_0 of int32 * UH0 │
00:00:11 #817 [Verbose] > │ | UH0_1 │
00:00:11 #818 [Verbose] > │ let rec method0 () : unit = │
00:00:11 #819 [Verbose] > │ let v63 : UH0 = UH0_1 │
00:00:11 #820 [Verbose] > │ let v64 : UH0 = UH0_0(279936, v63) │
00:00:11 #821 [Verbose] > │ let v65 : UH0 = UH0_0(46656, v64) │
00:00:11 #822 [Verbose] > │ let v66 : UH0 = UH0_0(7776, v65) │
00:00:11 #823 [Verbose] > │ let v67 : UH0 = UH0_0(1296, v66) │
00:00:11 #824 [Verbose] > │ let v68 : UH0 = UH0_0(216, v67) │
00:00:11 #825 [Verbose] > │ let v69 : UH0 = UH0_0(36, v68) │
00:00:11 #826 [Verbose] > │ let v70 : UH0 = UH0_0(6, v69) │
00:00:11 #827 [Verbose] > │ let v71 : UH0 = UH0_0(1, v70) │
00:00:11 #828 [Verbose] > │ let v72 : UH0 = UH0_1 │
00:00:11 #829 [Verbose] > │ let v73 : UH0 = UH0_0(279936, v72) │
00:00:11 #830 [Verbose] > │ let v74 : UH0 = UH0_0(46656, v73) │
00:00:11 #831 [Verbose] > │ let v75 : UH0 = UH0_0(7776, v74) │
00:00:11 #832 [Verbose] > │ let v76 : UH0 = UH0_0(1296, v75) │
00:00:11 #833 [Verbose] > │ let v77 : UH0 = UH0_0(216, v76) │
00:00:11 #834 [Verbose] > │ let v78 : UH0 = UH0_0(36, v77) │
00:00:11 #835 [Verbose] > │ let v79 : UH0 = UH0_0(6, v78) │
00:00:11 #836 [Verbose] > │ let v80 : UH0 = UH0_0(1, v79) │
00:00:11 #837 [Verbose] > │ let v81 : string = $"__expect / actual: %A{v71} / expected: %A{v80}" │
00:00:11 #838 [Verbose] > │ () │
00:00:11 #839 [Verbose] > │ method0() │
00:00:11 #840 [Verbose] > │ │
00:00:11 #841 [Verbose] > │ │
00:00:11 #842 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #843 [Verbose] >
00:00:11 #844 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:11 #845 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:11 #846 [Verbose] > │ ## indexed │
00:00:11 #847 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #848 [Verbose] >
00:00:11 #849 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:11 #850 [Verbose] > inl indexed s =
00:00:11 #851 [Verbose] > ((StreamNil, 0), s)
00:00:11 #852 [Verbose] > ||> fold fun (acc, i) x =>
00:00:11 #853 [Verbose] > StreamCons ((i, x), fun () => acc), i + 1
00:00:11 #854 [Verbose] > |> fst
00:00:11 #855 [Verbose] > |> rev
00:00:11 #856 [Verbose] > Building /tmp/!dotnet-repl/20240325-2024-5713-1310-110c29ba388b/main.spi
00:00:11 #857 [Verbose] >
00:00:11 #858 [Verbose] > ╭─[ 136.14ms - stdout ]────────────────────────────────────────────────────────╮
00:00:11 #859 [Verbose] > │ () │
00:00:11 #860 [Verbose] > │ │
00:00:11 #861 [Verbose] > │ │
00:00:11 #862 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #863 [Verbose] >
00:00:11 #864 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:11 #865 [Verbose] > // // test
00:00:11 #866 [Verbose] >
00:00:11 #867 [Verbose] > listm.init 10i32 ((*) 2)
00:00:11 #868 [Verbose] > |> from_list
00:00:11 #869 [Verbose] > |> indexed
00:00:11 #870 [Verbose] > |> item 5i32
00:00:11 #871 [Verbose] > |> _assert_eq (5i32, 10i32)
00:00:11 #872 [Verbose] > Building /tmp/!dotnet-repl/20240325-2024-5726-2687-2f53ebdf8537/main.spi
00:00:11 #873 [Verbose] >
00:00:11 #874 [Verbose] > ╭─[ 163.32ms - stdout ]────────────────────────────────────────────────────────╮
00:00:11 #875 [Verbose] > │ let rec method0 () : unit = │
00:00:11 #876 [Verbose] > │ let v0 : string = $"__expect / actual: %A{struct (5, 10)} / expected: │
00:00:11 #877 [Verbose] > │ %A{struct (5, 10)}" │
00:00:11 #878 [Verbose] > │ () │
00:00:11 #879 [Verbose] > │ method0() │
00:00:11 #880 [Verbose] > │ │
00:00:11 #881 [Verbose] > │ │
00:00:11 #882 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #883 [Verbose] >
00:00:11 #884 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:11 #885 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:11 #886 [Verbose] > │ ## map │
00:00:11 #887 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #888 [Verbose] >
00:00:11 #889 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:11 #890 [Verbose] > inl map fn s =
00:00:11 #891 [Verbose] > (s, StreamNil)
00:00:11 #892 [Verbose] > ||> fold_back fun x acc =>
00:00:11 #893 [Verbose] > StreamCons (fn x, fun () => acc)
00:00:11 #894 [Verbose] > Building /tmp/!dotnet-repl/20240325-2024-5743-4326-43dd2d1e8df3/main.spi
00:00:11 #895 [Verbose] >
00:00:11 #896 [Verbose] > ╭─[ 134.16ms - stdout ]────────────────────────────────────────────────────────╮
00:00:11 #897 [Verbose] > │ () │
00:00:11 #898 [Verbose] > │ │
00:00:11 #899 [Verbose] > │ │
00:00:11 #900 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #901 [Verbose] >
00:00:11 #902 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:11 #903 [Verbose] > // // test
00:00:11 #904 [Verbose] >
00:00:11 #905 [Verbose] > listm.init 10i32 id
00:00:11 #906 [Verbose] > |> from_list
00:00:11 #907 [Verbose] > |> map ((*) 2)
00:00:11 #908 [Verbose] > |> item 5i32
00:00:11 #909 [Verbose] > |> _assert_eq 10i32
00:00:11 #910 [Verbose] > Building /tmp/!dotnet-repl/20240325-2024-5756-5673-5d90446f23d2/main.spi
00:00:11 #911 [Verbose] >
00:00:11 #912 [Verbose] > ╭─[ 238.41ms - stdout ]────────────────────────────────────────────────────────╮
00:00:11 #913 [Verbose] > │ let rec method0 () : unit = │
00:00:11 #914 [Verbose] > │ let v0 : string = $"__expect / actual: %A{10} / expected: %A{10}" │
00:00:11 #915 [Verbose] > │ () │
00:00:11 #916 [Verbose] > │ method0() │
00:00:11 #917 [Verbose] > │ │
00:00:11 #918 [Verbose] > │ │
00:00:11 #919 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #920 [Verbose] >
00:00:11 #921 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:11 #922 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:11 #923 [Verbose] > │ ## zip_with │
00:00:11 #924 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #925 [Verbose] >
00:00:11 #926 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:11 #927 [Verbose] > inl zip_with fn s1 s2 =
00:00:11 #928 [Verbose] > inl rec loop s1 s2 =
00:00:11 #929 [Verbose] > match s1, s2 with
00:00:11 #930 [Verbose] > | StreamCons (st1, fn1), StreamCons (st2, fn2) =>
00:00:11 #931 [Verbose] > StreamCons (fn st1 st2, fun () => loop (fn1 ()) (fn2 ()))
00:00:11 #932 [Verbose] > | StreamNil, _ | _, StreamNil => StreamNil
00:00:11 #933 [Verbose] > loop s1 s2
00:00:11 #934 [Verbose] >
00:00:11 #935 [Verbose] > inl zip_with_ fn s1 s2 =
00:00:11 #936 [Verbose] > let rec loop s1 s2 =
00:00:11 #937 [Verbose] > match s1, s2 with
00:00:11 #938 [Verbose] > | StreamCons (st1, fn1), StreamCons (st2, fn2) =>
00:00:11 #939 [Verbose] > StreamCons (fn st1 st2, fun () => loop (fn1 ()) (fn2 ()))
00:00:11 #940 [Verbose] > | StreamNil, _ | _, StreamNil => StreamNil
00:00:11 #941 [Verbose] > loop s1 s2
00:00:12 #942 [Verbose] > Building /tmp/!dotnet-repl/20240325-2024-5780-8071-8454975843e0/main.spi
00:00:12 #943 [Verbose] >
00:00:12 #944 [Verbose] > ╭─[ 135.41ms - stdout ]────────────────────────────────────────────────────────╮
00:00:12 #945 [Verbose] > │ () │
00:00:12 #946 [Verbose] > │ │
00:00:12 #947 [Verbose] > │ │
00:00:12 #948 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #949 [Verbose] >
00:00:12 #950 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 #951 [Verbose] > // // test
00:00:12 #952 [Verbose] >
00:00:12 #953 [Verbose] > ((listm.init 10i32 id |> from_list), (listm.init 10i32 ((*) 2) |> from_list))
00:00:12 #954 [Verbose] > ||> zip_with (+)
00:00:12 #955 [Verbose] > |> item 2i32
00:00:12 #956 [Verbose] > |> _assert_eq 6
00:00:12 #957 [Verbose] > Building /tmp/!dotnet-repl/20240325-2024-5794-9427-95629b9dbeb3/main.spi
00:00:12 #958 [Verbose] >
00:00:12 #959 [Verbose] > ╭─[ 142.93ms - stdout ]────────────────────────────────────────────────────────╮
00:00:12 #960 [Verbose] > │ let rec method0 () : unit = │
00:00:12 #961 [Verbose] > │ let v0 : string = $"__expect / actual: %A{6} / expected: %A{6}" │
00:00:12 #962 [Verbose] > │ () │
00:00:12 #963 [Verbose] > │ method0() │
00:00:12 #964 [Verbose] > │ │
00:00:12 #965 [Verbose] > │ │
00:00:12 #966 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #967 [Verbose] >
00:00:12 #968 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:12 #969 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:12 #970 [Verbose] > │ ## zip │
00:00:12 #971 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #972 [Verbose] >
00:00:12 #973 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 #974 [Verbose] > inl zip s1 s2 =
00:00:12 #975 [Verbose] > zip_with pair s1 s2
00:00:12 #976 [Verbose] >
00:00:12 #977 [Verbose] > inl zip_ s1 s2 =
00:00:12 #978 [Verbose] > zip_with_ pair s1 s2
00:00:12 #979 [Verbose] > Building /tmp/!dotnet-repl/20240325-2024-5808-0873-003ad74318b5/main.spi
00:00:12 #980 [Verbose] >
00:00:12 #981 [Verbose] > ╭─[ 136.21ms - stdout ]────────────────────────────────────────────────────────╮
00:00:12 #982 [Verbose] > │ () │
00:00:12 #983 [Verbose] > │ │
00:00:12 #984 [Verbose] > │ │
00:00:12 #985 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #986 [Verbose] >
00:00:12 #987 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 #988 [Verbose] > // // test
00:00:12 #989 [Verbose] >
00:00:12 #990 [Verbose] > ((listm.init 10i32 id |> from_list), (listm.init 10i32 ((*) 2) |> from_list))
00:00:12 #991 [Verbose] > ||> zip
00:00:12 #992 [Verbose] > |> item 5i32
00:00:12 #993 [Verbose] > |> _assert_eq (5, 10)
00:00:12 #994 [Verbose] > Building /tmp/!dotnet-repl/20240325-2024-5822-2233-23b0c9ebc2b8/main.spi
00:00:12 #995 [Verbose] >
00:00:12 #996 [Verbose] > ╭─[ 142.45ms - stdout ]────────────────────────────────────────────────────────╮
00:00:12 #997 [Verbose] > │ let rec method0 () : unit = │
00:00:12 #998 [Verbose] > │ let v0 : string = $"__expect / actual: %A{struct (5, 10)} / expected: │
00:00:12 #999 [Verbose] > │ %A{struct (5, 10)}" │
00:00:12 #1000 [Verbose] > │ () │
00:00:12 #1001 [Verbose] > │ method0() │
00:00:12 #1002 [Verbose] > │ │
00:00:12 #1003 [Verbose] > │ │
00:00:12 #1004 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #1005 [Verbose] >
00:00:12 #1006 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:12 #1007 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:12 #1008 [Verbose] > │ ## unzip │
00:00:12 #1009 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #1010 [Verbose] >
00:00:12 #1011 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 #1012 [Verbose] > inl unzip s =
00:00:12 #1013 [Verbose] > inl rec body s =
00:00:12 #1014 [Verbose] > match s with
00:00:12 #1015 [Verbose] > | StreamCons ((x, y), fn) =>
00:00:12 #1016 [Verbose] > inl xs, ys = loop (fn ())
00:00:12 #1017 [Verbose] > StreamCons (x, fun () => xs), StreamCons (y, fun () => ys)
00:00:12 #1018 [Verbose] > | StreamNil => pair StreamNil StreamNil
00:00:12 #1019 [Verbose] > and inl loop x =
00:00:12 #1020 [Verbose] > if var_is x |> not
00:00:12 #1021 [Verbose] > then body x
00:00:12 #1022 [Verbose] > else
00:00:12 #1023 [Verbose] > inl x = dyn x
00:00:12 #1024 [Verbose] > join body x
00:00:12 #1025 [Verbose] > loop s
00:00:12 #1026 [Verbose] > Building /tmp/!dotnet-repl/20240325-2024-5836-3675-3c4760a5043b/main.spi
00:00:12 #1027 [Verbose] >
00:00:12 #1028 [Verbose] > ╭─[ 138.88ms - stdout ]────────────────────────────────────────────────────────╮
00:00:12 #1029 [Verbose] > │ () │
00:00:12 #1030 [Verbose] > │ │
00:00:12 #1031 [Verbose] > │ │
00:00:12 #1032 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #1033 [Verbose] >
00:00:12 #1034 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 #1035 [Verbose] > // // test
00:00:12 #1036 [Verbose] >
00:00:12 #1037 [Verbose] > listm.init 10i32 id
00:00:12 #1038 [Verbose] > |> listm.map (fun x => x, x)
00:00:12 #1039 [Verbose] > |> from_list
00:00:12 #1040 [Verbose] > |> unzip
00:00:12 #1041 [Verbose] > |> fun x, y =>
00:00:12 #1042 [Verbose] > x |> sum
00:00:12 #1043 [Verbose] > |> _assert_eq 45
00:00:12 #1044 [Verbose] >
00:00:12 #1045 [Verbose] > y |> sum
00:00:12 #1046 [Verbose] > |> _assert_eq 45
00:00:12 #1047 [Verbose] > Building /tmp/!dotnet-repl/20240325-2024-5850-5066-5144f3aae7b5/main.spi
00:00:12 #1048 [Verbose] >
00:00:12 #1049 [Verbose] > ╭─[ 144.49ms - stdout ]────────────────────────────────────────────────────────╮
00:00:12 #1050 [Verbose] > │ let rec method0 () : unit = │
00:00:12 #1051 [Verbose] > │ let v0 : string = $"__expect / actual: %A{45} / expected: %A{45}" │
00:00:12 #1052 [Verbose] > │ let v1 : string = $"__expect / actual: %A{45} / expected: %A{45}" │
00:00:12 #1053 [Verbose] > │ () │
00:00:12 #1054 [Verbose] > │ method0() │
00:00:12 #1055 [Verbose] > │ │
00:00:12 #1056 [Verbose] > │ │
00:00:12 #1057 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #1058 [Verbose] > [NbConvertApp] Converting notebook stream.dib.ipynb to html
00:00:13 #1059 [Verbose] > /opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/nbformat/__init__.py:96: MissingIDFieldWarning: Cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:00:13 #1060 [Verbose] > validate(nb)
00:00:14 #1061 [Verbose] > /opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/nbconvert/filters/highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:00:14 #1062 [Verbose] > return _pygments_highlight(
00:00:14 #1063 [Verbose] > [NbConvertApp] Writing 358624 bytes to stream.dib.html
00:00:14 #1064 [Debug] executeAsync / exitCode: 0 / output.Length: 76006
00:00:14 #1065 [Debug] main / executeCommand / exitCode: 0
00:00:00 #1 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #2 [Debug] executeAsync / options: { Command =
"dotnet "/home/runner/work/polyglot/polyglot/deps/The-Spiral-Language/The Spiral Language 2/artifacts/bin/The Spiral Language 2/release/Spiral.dll" --port 13805 --default-int i32 --default-float f64"
WorkingDirectory = None
CancellationToken = Some System.Threading.CancellationToken
OnLine = Some <fun:main@464-1020> }
00:00:00 #3 [Verbose] > pwd: /home/runner/work/polyglot/polyglot/lib/spiral
00:00:00 #4 [Verbose] > dll_path: /home/runner/work/polyglot/polyglot/deps/The-Spiral-Language/The Spiral Language 2/artifacts/bin/The Spiral Language 2/release
00:00:00 #5 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #6 [Verbose] waitForPortAccess / port: 13805 / retry: 0
00:00:00 #7 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #8 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #9 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #10 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #11 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #12 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #13 [Verbose] > Starting the Spiral Server. It is bound to: http://localhost:13805
00:00:00 #14 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #15 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #16 [Debug] sendJson / port: 13805 / json: {"Ping":true} / result.Length:
00:00:00 #17 [Verbose] awaitCompiler / Ping / result: Some(null) / port: 13805 / retry: 0
00:00:00 #18 [Verbose] > Server bound to: http://localhost:13805
00:00:00 #19 [Debug] executeAsync / options: { Command = "pwsh -c "../../scripts/invoke-dib.ps1 seq.dib""
WorkingDirectory = None
CancellationToken = Some System.Threading.CancellationToken
OnLine = None }
00:00:02 #20 [Verbose] >
00:00:02 #21 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:02 #22 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:02 #23 [Verbose] > │ # seq │
00:00:02 #24 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:02 #25 [Verbose] >
00:00:02 #26 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:02 #27 [Verbose] > // // test
00:00:02 #28 [Verbose] >
00:00:02 #29 [Verbose] > open testing
00:00:04 #30 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-0466-6631-6dc3db88ca5c/main.spi
00:00:06 #31 [Verbose] >
00:00:06 #32 [Verbose] > ╭─[ 3.82s - stdout ]───────────────────────────────────────────────────────────╮
00:00:06 #33 [Verbose] > │ () │
00:00:06 #34 [Verbose] > │ │
00:00:06 #35 [Verbose] > │ │
00:00:06 #36 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:06 #37 [Verbose] >
00:00:06 #38 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:06 #39 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:06 #40 [Verbose] > │ ## seq │
00:00:06 #41 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:06 #42 [Verbose] >
00:00:06 #43 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:06 #44 [Verbose] > type seq dim el = dim -> option el
00:00:06 #45 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-0712-1275-1398dbf640a5/main.spi
00:00:06 #46 [Verbose] >
00:00:06 #47 [Verbose] > ╭─[ 174.35ms - stdout ]────────────────────────────────────────────────────────╮
00:00:06 #48 [Verbose] > │ () │
00:00:06 #49 [Verbose] > │ │
00:00:06 #50 [Verbose] > │ │
00:00:06 #51 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:06 #52 [Verbose] >
00:00:06 #53 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:06 #54 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:06 #55 [Verbose] > │ ## try_item │
00:00:06 #56 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:06 #57 [Verbose] >
00:00:06 #58 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:06 #59 [Verbose] > inl try_item n s =
00:00:06 #60 [Verbose] > n |> s
00:00:06 #61 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-0730-3056-3fd94e11364e/main.spi
00:00:06 #62 [Verbose] >
00:00:06 #63 [Verbose] > ╭─[ 168.38ms - stdout ]────────────────────────────────────────────────────────╮
00:00:06 #64 [Verbose] > │ () │
00:00:06 #65 [Verbose] > │ │
00:00:06 #66 [Verbose] > │ │
00:00:06 #67 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:06 #68 [Verbose] >
00:00:06 #69 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:06 #70 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:06 #71 [Verbose] > │ ## from_list │
00:00:06 #72 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:06 #73 [Verbose] >
00:00:06 #74 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:06 #75 [Verbose] > inl from_list list =
00:00:06 #76 [Verbose] > fun n =>
00:00:06 #77 [Verbose] > list
00:00:06 #78 [Verbose] > |> listm'.try_item n
00:00:06 #79 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-0747-4721-43bf97624c13/main.spi
00:00:06 #80 [Verbose] >
00:00:06 #81 [Verbose] > ╭─[ 171.64ms - stdout ]────────────────────────────────────────────────────────╮
00:00:06 #82 [Verbose] > │ () │
00:00:06 #83 [Verbose] > │ │
00:00:06 #84 [Verbose] > │ │
00:00:06 #85 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:06 #86 [Verbose] >
00:00:06 #87 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:06 #88 [Verbose] > // // test
00:00:06 #89 [Verbose] >
00:00:06 #90 [Verbose] > listm.init 10i32 print_and_return
00:00:06 #91 [Verbose] > |> from_list
00:00:06 #92 [Verbose] > |> try_item 5i32
00:00:06 #93 [Verbose] > |> _assert_eq (Some 5i32)
00:00:06 #94 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-0764-6445-65f06ca023c9/main.spi
00:00:07 #95 [Verbose] >
00:00:07 #96 [Verbose] > ╭─[ 923.04ms - stdout ]────────────────────────────────────────────────────────╮
00:00:07 #97 [Verbose] > │ type [<Struct>] US0 = │
00:00:07 #98 [Verbose] > │ | US0_0 │
00:00:07 #99 [Verbose] > │ | US0_1 of f1_0 : int32 │
00:00:07 #100 [Verbose] > │ let rec method0 () : unit = │
00:00:07 #101 [Verbose] > │ printfn $"print_and_return / x: {0}" │
00:00:07 #102 [Verbose] > │ printfn $"print_and_return / x: {1}" │
00:00:07 #103 [Verbose] > │ printfn $"print_and_return / x: {2}" │
00:00:07 #104 [Verbose] > │ printfn $"print_and_return / x: {3}" │
00:00:07 #105 [Verbose] > │ printfn $"print_and_return / x: {4}" │
00:00:07 #106 [Verbose] > │ printfn $"print_and_return / x: {5}" │
00:00:07 #107 [Verbose] > │ printfn $"print_and_return / x: {6}" │
00:00:07 #108 [Verbose] > │ printfn $"print_and_return / x: {7}" │
00:00:07 #109 [Verbose] > │ printfn $"print_and_return / x: {8}" │
00:00:07 #110 [Verbose] > │ printfn $"print_and_return / x: {9}" │
00:00:07 #111 [Verbose] > │ let v3 : US0 = US0_1(5) │
00:00:07 #112 [Verbose] > │ let v4 : US0 = US0_1(5) │
00:00:07 #113 [Verbose] > │ let v5 : string = $"__expect / actual: %A{v3} / expected: %A{v4}" │
00:00:07 #114 [Verbose] > │ () │
00:00:07 #115 [Verbose] > │ method0() │
00:00:07 #116 [Verbose] > │ │
00:00:07 #117 [Verbose] > │ print_and_return / x: 0 │
00:00:07 #118 [Verbose] > │ print_and_return / x: 1 │
00:00:07 #119 [Verbose] > │ print_and_return / x: 2 │
00:00:07 #120 [Verbose] > │ print_and_return / x: 3 │
00:00:07 #121 [Verbose] > │ print_and_return / x: 4 │
00:00:07 #122 [Verbose] > │ print_and_return / x: 5 │
00:00:07 #123 [Verbose] > │ print_and_return / x: 6 │
00:00:07 #124 [Verbose] > │ print_and_return / x: 7 │
00:00:07 #125 [Verbose] > │ print_and_return / x: 8 │
00:00:07 #126 [Verbose] > │ print_and_return / x: 9 │
00:00:07 #127 [Verbose] > │ │
00:00:07 #128 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #129 [Verbose] >
00:00:07 #130 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:07 #131 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:07 #132 [Verbose] > │ ## map │
00:00:07 #133 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #134 [Verbose] >
00:00:07 #135 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:07 #136 [Verbose] > inl map fn s =
00:00:07 #137 [Verbose] > fun n =>
00:00:07 #138 [Verbose] > n
00:00:07 #139 [Verbose] > |> s
00:00:07 #140 [Verbose] > |> optionm.map fn
00:00:07 #141 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-0857-5722-552c1c6cd5f0/main.spi
00:00:07 #142 [Verbose] >
00:00:07 #143 [Verbose] > ╭─[ 140.98ms - stdout ]────────────────────────────────────────────────────────╮
00:00:07 #144 [Verbose] > │ () │
00:00:07 #145 [Verbose] > │ │
00:00:07 #146 [Verbose] > │ │
00:00:07 #147 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #148 [Verbose] >
00:00:07 #149 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:07 #150 [Verbose] > // // test
00:00:07 #151 [Verbose] >
00:00:07 #152 [Verbose] > listm.init 10i32 id
00:00:07 #153 [Verbose] > |> from_list
00:00:07 #154 [Verbose] > |> map ((*) 2)
00:00:07 #155 [Verbose] > |> try_item 5i32
00:00:07 #156 [Verbose] > |> _assert_eq (Some 10i32)
00:00:07 #157 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-0871-7123-767a55b091a8/main.spi
00:00:07 #158 [Verbose] >
00:00:07 #159 [Verbose] > ╭─[ 166.94ms - stdout ]────────────────────────────────────────────────────────╮
00:00:07 #160 [Verbose] > │ type [<Struct>] US0 = │
00:00:07 #161 [Verbose] > │ | US0_0 │
00:00:07 #162 [Verbose] > │ | US0_1 of f1_0 : int32 │
00:00:07 #163 [Verbose] > │ let rec method0 () : unit = │
00:00:07 #164 [Verbose] > │ let v3 : US0 = US0_1(10) │
00:00:07 #165 [Verbose] > │ let v4 : US0 = US0_1(10) │
00:00:07 #166 [Verbose] > │ let v5 : string = $"__expect / actual: %A{v3} / expected: %A{v4}" │
00:00:07 #167 [Verbose] > │ () │
00:00:07 #168 [Verbose] > │ method0() │
00:00:07 #169 [Verbose] > │ │
00:00:07 #170 [Verbose] > │ │
00:00:07 #171 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #172 [Verbose] >
00:00:07 #173 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:07 #174 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:07 #175 [Verbose] > │ ## mapi │
00:00:07 #176 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #177 [Verbose] >
00:00:07 #178 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:07 #179 [Verbose] > inl mapi fn s =
00:00:07 #180 [Verbose] > fun n =>
00:00:07 #181 [Verbose] > n
00:00:07 #182 [Verbose] > |> s
00:00:07 #183 [Verbose] > |> optionm.map (fn n)
00:00:08 #184 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-0888-8814-87367834e2d3/main.spi
00:00:08 #185 [Verbose] >
00:00:08 #186 [Verbose] > ╭─[ 151.44ms - stdout ]────────────────────────────────────────────────────────╮
00:00:08 #187 [Verbose] > │ () │
00:00:08 #188 [Verbose] > │ │
00:00:08 #189 [Verbose] > │ │
00:00:08 #190 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #191 [Verbose] >
00:00:08 #192 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:08 #193 [Verbose] > // // test
00:00:08 #194 [Verbose] >
00:00:08 #195 [Verbose] > listm.init 10i32 print_and_return
00:00:08 #196 [Verbose] > |> from_list
00:00:08 #197 [Verbose] > |> mapi fun i x => i + x
00:00:08 #198 [Verbose] > |> try_item 5i32
00:00:08 #199 [Verbose] > |> _assert_eq (Some 10i32)
00:00:08 #200 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-0903-0324-0d22a20f9498/main.spi
00:00:08 #201 [Verbose] >
00:00:08 #202 [Verbose] > ╭─[ 184.09ms - stdout ]────────────────────────────────────────────────────────╮
00:00:08 #203 [Verbose] > │ type [<Struct>] US0 = │
00:00:08 #204 [Verbose] > │ | US0_0 │
00:00:08 #205 [Verbose] > │ | US0_1 of f1_0 : int32 │
00:00:08 #206 [Verbose] > │ let rec method0 () : unit = │
00:00:08 #207 [Verbose] > │ printfn $"print_and_return / x: {0}" │
00:00:08 #208 [Verbose] > │ printfn $"print_and_return / x: {1}" │
00:00:08 #209 [Verbose] > │ printfn $"print_and_return / x: {2}" │
00:00:08 #210 [Verbose] > │ printfn $"print_and_return / x: {3}" │
00:00:08 #211 [Verbose] > │ printfn $"print_and_return / x: {4}" │
00:00:08 #212 [Verbose] > │ printfn $"print_and_return / x: {5}" │
00:00:08 #213 [Verbose] > │ printfn $"print_and_return / x: {6}" │
00:00:08 #214 [Verbose] > │ printfn $"print_and_return / x: {7}" │
00:00:08 #215 [Verbose] > │ printfn $"print_and_return / x: {8}" │
00:00:08 #216 [Verbose] > │ printfn $"print_and_return / x: {9}" │
00:00:08 #217 [Verbose] > │ let v3 : US0 = US0_1(10) │
00:00:08 #218 [Verbose] > │ let v4 : US0 = US0_1(10) │
00:00:08 #219 [Verbose] > │ let v5 : string = $"__expect / actual: %A{v3} / expected: %A{v4}" │
00:00:08 #220 [Verbose] > │ () │
00:00:08 #221 [Verbose] > │ method0() │
00:00:08 #222 [Verbose] > │ │
00:00:08 #223 [Verbose] > │ print_and_return / x: 0 │
00:00:08 #224 [Verbose] > │ print_and_return / x: 1 │
00:00:08 #225 [Verbose] > │ print_and_return / x: 2 │
00:00:08 #226 [Verbose] > │ print_and_return / x: 3 │
00:00:08 #227 [Verbose] > │ print_and_return / x: 4 │
00:00:08 #228 [Verbose] > │ print_and_return / x: 5 │
00:00:08 #229 [Verbose] > │ print_and_return / x: 6 │
00:00:08 #230 [Verbose] > │ print_and_return / x: 7 │
00:00:08 #231 [Verbose] > │ print_and_return / x: 8 │
00:00:08 #232 [Verbose] > │ print_and_return / x: 9 │
00:00:08 #233 [Verbose] > │ │
00:00:08 #234 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #235 [Verbose] >
00:00:08 #236 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:08 #237 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:08 #238 [Verbose] > │ ## choose │
00:00:08 #239 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #240 [Verbose] >
00:00:08 #241 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:08 #242 [Verbose] > inl choose forall dim {number} t u. (fn : t -> option u) (s : seq dim t) : seq
00:00:08 #243 [Verbose] > dim u =
00:00:08 #244 [Verbose] > fun n =>
00:00:08 #245 [Verbose] > inl rec body fn s i i' =
00:00:08 #246 [Verbose] > match i |> s with
00:00:08 #247 [Verbose] > | None => None
00:00:08 #248 [Verbose] > | Some x =>
00:00:08 #249 [Verbose] > match x |> fn with
00:00:08 #250 [Verbose] > | Some x when n = i' => Some x
00:00:08 #251 [Verbose] > | Some _ => loop (i + 1) (i' + 1)
00:00:08 #252 [Verbose] > | _ => loop (i + 1) i'
00:00:08 #253 [Verbose] > and inl loop i i' =
00:00:08 #254 [Verbose] > if n |> var_is |> not
00:00:08 #255 [Verbose] > then body fn s i i'
00:00:08 #256 [Verbose] > else
00:00:08 #257 [Verbose] > inl fn = join fn
00:00:08 #258 [Verbose] > inl s = join s
00:00:08 #259 [Verbose] > join body fn s i i'
00:00:08 #260 [Verbose] > loop 0 0
00:00:08 #261 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-0921-2198-20c22ba2a40c/main.spi
00:00:08 #262 [Verbose] >
00:00:08 #263 [Verbose] > ╭─[ 148.25ms - stdout ]────────────────────────────────────────────────────────╮
00:00:08 #264 [Verbose] > │ () │
00:00:08 #265 [Verbose] > │ │
00:00:08 #266 [Verbose] > │ │
00:00:08 #267 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #268 [Verbose] >
00:00:08 #269 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:08 #270 [Verbose] > // // test
00:00:08 #271 [Verbose] >
00:00:08 #272 [Verbose] > listm.init 10i32 print_and_return
00:00:08 #273 [Verbose] > |> from_list
00:00:08 #274 [Verbose] > |> choose (fun x => if x % 2 = 0 then Some x else None)
00:00:08 #275 [Verbose] > |> try_item 1i32
00:00:08 #276 [Verbose] > |> _assert_eq (Some 2i32)
00:00:08 #277 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-0936-3683-368bdccef90a/main.spi
00:00:08 #278 [Verbose] >
00:00:08 #279 [Verbose] > ╭─[ 193.78ms - stdout ]────────────────────────────────────────────────────────╮
00:00:08 #280 [Verbose] > │ type [<Struct>] US0 = │
00:00:08 #281 [Verbose] > │ | US0_0 │
00:00:08 #282 [Verbose] > │ | US0_1 of f1_0 : int32 │
00:00:08 #283 [Verbose] > │ let rec method0 () : unit = │
00:00:08 #284 [Verbose] > │ printfn $"print_and_return / x: {0}" │
00:00:08 #285 [Verbose] > │ printfn $"print_and_return / x: {1}" │
00:00:08 #286 [Verbose] > │ printfn $"print_and_return / x: {2}" │
00:00:08 #287 [Verbose] > │ printfn $"print_and_return / x: {3}" │
00:00:08 #288 [Verbose] > │ printfn $"print_and_return / x: {4}" │
00:00:08 #289 [Verbose] > │ printfn $"print_and_return / x: {5}" │
00:00:08 #290 [Verbose] > │ printfn $"print_and_return / x: {6}" │
00:00:08 #291 [Verbose] > │ printfn $"print_and_return / x: {7}" │
00:00:08 #292 [Verbose] > │ printfn $"print_and_return / x: {8}" │
00:00:08 #293 [Verbose] > │ printfn $"print_and_return / x: {9}" │
00:00:08 #294 [Verbose] > │ let v3 : US0 = US0_1(2) │
00:00:08 #295 [Verbose] > │ let v4 : US0 = US0_1(2) │
00:00:08 #296 [Verbose] > │ let v5 : string = $"__expect / actual: %A{v3} / expected: %A{v4}" │
00:00:08 #297 [Verbose] > │ () │
00:00:08 #298 [Verbose] > │ method0() │
00:00:08 #299 [Verbose] > │ │
00:00:08 #300 [Verbose] > │ print_and_return / x: 0 │
00:00:08 #301 [Verbose] > │ print_and_return / x: 1 │
00:00:08 #302 [Verbose] > │ print_and_return / x: 2 │
00:00:08 #303 [Verbose] > │ print_and_return / x: 3 │
00:00:08 #304 [Verbose] > │ print_and_return / x: 4 │
00:00:08 #305 [Verbose] > │ print_and_return / x: 5 │
00:00:08 #306 [Verbose] > │ print_and_return / x: 6 │
00:00:08 #307 [Verbose] > │ print_and_return / x: 7 │
00:00:08 #308 [Verbose] > │ print_and_return / x: 8 │
00:00:08 #309 [Verbose] > │ print_and_return / x: 9 │
00:00:08 #310 [Verbose] > │ │
00:00:08 #311 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #312 [Verbose] >
00:00:08 #313 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:08 #314 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:08 #315 [Verbose] > │ ## indexed │
00:00:08 #316 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #317 [Verbose] >
00:00:08 #318 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:08 #319 [Verbose] > inl indexed s =
00:00:08 #320 [Verbose] > s
00:00:08 #321 [Verbose] > |> mapi fun i x =>
00:00:08 #322 [Verbose] > i, x
00:00:08 #323 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-0956-5640-5f55e7fb95d2/main.spi
00:00:08 #324 [Verbose] >
00:00:08 #325 [Verbose] > ╭─[ 139.10ms - stdout ]────────────────────────────────────────────────────────╮
00:00:08 #326 [Verbose] > │ () │
00:00:08 #327 [Verbose] > │ │
00:00:08 #328 [Verbose] > │ │
00:00:08 #329 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #330 [Verbose] >
00:00:08 #331 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:08 #332 [Verbose] > // // test
00:00:08 #333 [Verbose] >
00:00:08 #334 [Verbose] > listm.init 10i32 ((*) 2)
00:00:08 #335 [Verbose] > |> from_list
00:00:08 #336 [Verbose] > |> indexed
00:00:08 #337 [Verbose] > |> try_item 5i32
00:00:08 #338 [Verbose] > |> _assert_eq (Some (5i32, 10i32))
00:00:08 #339 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-0970-7032-75e8b10c3254/main.spi
00:00:08 #340 [Verbose] >
00:00:08 #341 [Verbose] > ╭─[ 175.58ms - stdout ]────────────────────────────────────────────────────────╮
00:00:08 #342 [Verbose] > │ type [<Struct>] US0 = │
00:00:08 #343 [Verbose] > │ | US0_0 │
00:00:08 #344 [Verbose] > │ | US0_1 of f1_0 : int32 * f1_1 : int32 │
00:00:08 #345 [Verbose] > │ let rec method0 () : unit = │
00:00:08 #346 [Verbose] > │ let v3 : US0 = US0_1(5, 10) │
00:00:08 #347 [Verbose] > │ let v4 : US0 = US0_1(5, 10) │
00:00:08 #348 [Verbose] > │ let v5 : string = $"__expect / actual: %A{v3} / expected: %A{v4}" │
00:00:08 #349 [Verbose] > │ () │
00:00:08 #350 [Verbose] > │ method0() │
00:00:08 #351 [Verbose] > │ │
00:00:08 #352 [Verbose] > │ │
00:00:08 #353 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #354 [Verbose] >
00:00:08 #355 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:08 #356 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:08 #357 [Verbose] > │ ## zip │
00:00:08 #358 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #359 [Verbose] >
00:00:08 #360 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:08 #361 [Verbose] > inl zip n seq1 seq2 =
00:00:08 #362 [Verbose] > seq1 n, seq2 n
00:00:09 #363 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-0988-8808-82e27097be66/main.spi
00:00:09 #364 [Verbose] >
00:00:09 #365 [Verbose] > ╭─[ 142.29ms - stdout ]────────────────────────────────────────────────────────╮
00:00:09 #366 [Verbose] > │ () │
00:00:09 #367 [Verbose] > │ │
00:00:09 #368 [Verbose] > │ │
00:00:09 #369 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #370 [Verbose] >
00:00:09 #371 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:09 #372 [Verbose] > // // test
00:00:09 #373 [Verbose] >
00:00:09 #374 [Verbose] > ((listm.init 10i32 id |> from_list), (listm.init 10i32 ((*) 2) |> from_list))
00:00:09 #375 [Verbose] > ||> zip 5i32
00:00:09 #376 [Verbose] > |> _assert_eq (Some 5, Some 10)
00:00:09 #377 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-1002-0237-0647be356d9e/main.spi
00:00:09 #378 [Verbose] >
00:00:09 #379 [Verbose] > ╭─[ 195.09ms - stdout ]────────────────────────────────────────────────────────╮
00:00:09 #380 [Verbose] > │ type [<Struct>] US0 = │
00:00:09 #381 [Verbose] > │ | US0_0 │
00:00:09 #382 [Verbose] > │ | US0_1 of f1_0 : int32 │
00:00:09 #383 [Verbose] > │ let rec method0 () : unit = │
00:00:09 #384 [Verbose] > │ let v6 : US0 = US0_1(5) │
00:00:09 #385 [Verbose] > │ let v7 : US0 = US0_1(10) │
00:00:09 #386 [Verbose] > │ let v8 : US0 = US0_1(5) │
00:00:09 #387 [Verbose] > │ let v9 : US0 = US0_1(10) │
00:00:09 #388 [Verbose] > │ let v10 : string = $"__expect / actual: %A{struct (v6, v7)} / expected: │
00:00:09 #389 [Verbose] > │ %A{struct (v8, v9)}" │
00:00:09 #390 [Verbose] > │ () │
00:00:09 #391 [Verbose] > │ method0() │
00:00:09 #392 [Verbose] > │ │
00:00:09 #393 [Verbose] > │ │
00:00:09 #394 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #395 [Verbose] >
00:00:09 #396 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:09 #397 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:09 #398 [Verbose] > │ ## zip_with │
00:00:09 #399 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #400 [Verbose] >
00:00:09 #401 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:09 #402 [Verbose] > inl zip_with fn seq1 seq2 =
00:00:09 #403 [Verbose] > fun n =>
00:00:09 #404 [Verbose] > fn (seq1 n) (seq2 n)
00:00:09 #405 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-1022-2226-2b45539a5e87/main.spi
00:00:09 #406 [Verbose] >
00:00:09 #407 [Verbose] > ╭─[ 133.83ms - stdout ]────────────────────────────────────────────────────────╮
00:00:09 #408 [Verbose] > │ () │
00:00:09 #409 [Verbose] > │ │
00:00:09 #410 [Verbose] > │ │
00:00:09 #411 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #412 [Verbose] >
00:00:09 #413 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:09 #414 [Verbose] > // // test
00:00:09 #415 [Verbose] >
00:00:09 #416 [Verbose] > ((listm.init 10i32 id |> from_list), (listm.init 10i32 ((*) 2) |> from_list))
00:00:09 #417 [Verbose] > ||> zip_with (optionm'.choose (+))
00:00:09 #418 [Verbose] > |> try_item 2i32
00:00:09 #419 [Verbose] > |> _assert_eq (Some 6)
00:00:09 #420 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-1035-3561-3f20afee436d/main.spi
00:00:09 #421 [Verbose] >
00:00:09 #422 [Verbose] > ╭─[ 264.57ms - stdout ]────────────────────────────────────────────────────────╮
00:00:09 #423 [Verbose] > │ type [<Struct>] US0 = │
00:00:09 #424 [Verbose] > │ | US0_0 │
00:00:09 #425 [Verbose] > │ | US0_1 of f1_0 : int32 │
00:00:09 #426 [Verbose] > │ let rec method0 () : unit = │
00:00:09 #427 [Verbose] > │ let v3 : US0 = US0_1(6) │
00:00:09 #428 [Verbose] > │ let v4 : US0 = US0_1(6) │
00:00:09 #429 [Verbose] > │ let v5 : string = $"__expect / actual: %A{v3} / expected: %A{v4}" │
00:00:09 #430 [Verbose] > │ () │
00:00:09 #431 [Verbose] > │ method0() │
00:00:09 #432 [Verbose] > │ │
00:00:09 #433 [Verbose] > │ │
00:00:09 #434 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #435 [Verbose] >
00:00:09 #436 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:09 #437 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:09 #438 [Verbose] > │ ## fold │
00:00:09 #439 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #440 [Verbose] >
00:00:09 #441 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:09 #442 [Verbose] > inl fold fn init seq =
00:00:09 #443 [Verbose] > inl rec loop acc n =
00:00:09 #444 [Verbose] > match seq n with
00:00:09 #445 [Verbose] > | Some x => loop (fn acc x) (n + 1)
00:00:09 #446 [Verbose] > | None => acc
00:00:09 #447 [Verbose] > loop init 0
00:00:09 #448 [Verbose] >
00:00:09 #449 [Verbose] > inl fold_ fn init seq =
00:00:09 #450 [Verbose] > let rec loop acc n =
00:00:09 #451 [Verbose] > match seq n with
00:00:09 #452 [Verbose] > | Some x => loop (fn acc x) (n + 1)
00:00:09 #453 [Verbose] > | None => acc
00:00:09 #454 [Verbose] > loop init 0
00:00:09 #455 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-1062-6231-62d07c8dee11/main.spi
00:00:09 #456 [Verbose] >
00:00:09 #457 [Verbose] > ╭─[ 137.04ms - stdout ]────────────────────────────────────────────────────────╮
00:00:09 #458 [Verbose] > │ () │
00:00:09 #459 [Verbose] > │ │
00:00:09 #460 [Verbose] > │ │
00:00:09 #461 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #462 [Verbose] >
00:00:09 #463 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:09 #464 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:09 #465 [Verbose] > │ ## sum │
00:00:09 #466 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #467 [Verbose] >
00:00:09 #468 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:09 #469 [Verbose] > inl sum seq =
00:00:09 #470 [Verbose] > seq |> fold (+) 0
00:00:09 #471 [Verbose] >
00:00:09 #472 [Verbose] > inl sum_ seq =
00:00:09 #473 [Verbose] > seq |> fold_ (+) 0
00:00:09 #474 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-1075-7595-71c32b778c1c/main.spi
00:00:09 #475 [Verbose] >
00:00:09 #476 [Verbose] > ╭─[ 130.97ms - stdout ]────────────────────────────────────────────────────────╮
00:00:09 #477 [Verbose] > │ () │
00:00:09 #478 [Verbose] > │ │
00:00:09 #479 [Verbose] > │ │
00:00:09 #480 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #481 [Verbose] >
00:00:09 #482 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:09 #483 [Verbose] > // // test
00:00:09 #484 [Verbose] >
00:00:09 #485 [Verbose] > listm.init 10i32 id
00:00:09 #486 [Verbose] > |> from_list
00:00:09 #487 [Verbose] > |> fun f (n : i32) => f n
00:00:09 #488 [Verbose] > |> sum
00:00:09 #489 [Verbose] > |> _assert_eq 45
00:00:10 #490 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-1089-8911-8f030b3d5cbf/main.spi
00:00:10 #491 [Verbose] >
00:00:10 #492 [Verbose] > ╭─[ 151.28ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #493 [Verbose] > │ let rec method0 () : unit = │
00:00:10 #494 [Verbose] > │ let v0 : string = $"__expect / actual: %A{45} / expected: %A{45}" │
00:00:10 #495 [Verbose] > │ () │
00:00:10 #496 [Verbose] > │ method0() │
00:00:10 #497 [Verbose] > │ │
00:00:10 #498 [Verbose] > │ │
00:00:10 #499 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #500 [Verbose] >
00:00:10 #501 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:10 #502 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:10 #503 [Verbose] > │ ## to_list │
00:00:10 #504 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #505 [Verbose] >
00:00:10 #506 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #507 [Verbose] > inl to_list seq =
00:00:10 #508 [Verbose] > seq
00:00:10 #509 [Verbose] > |> fold (fun acc x => x :: acc) [[]]
00:00:10 #510 [Verbose] > |> listm.rev
00:00:10 #511 [Verbose] >
00:00:10 #512 [Verbose] > inl to_list_ seq =
00:00:10 #513 [Verbose] > seq
00:00:10 #514 [Verbose] > |> fold_ (fun acc x => x :: acc) [[]]
00:00:10 #515 [Verbose] > |> listm.rev
00:00:10 #516 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-1104-0433-01c77f624ccd/main.spi
00:00:10 #517 [Verbose] >
00:00:10 #518 [Verbose] > ╭─[ 139.44ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #519 [Verbose] > │ () │
00:00:10 #520 [Verbose] > │ │
00:00:10 #521 [Verbose] > │ │
00:00:10 #522 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #523 [Verbose] >
00:00:10 #524 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #525 [Verbose] > // // test
00:00:10 #526 [Verbose] >
00:00:10 #527 [Verbose] > listm.init 10i32 id
00:00:10 #528 [Verbose] > |> from_list
00:00:10 #529 [Verbose] > |> fun f (n : i32) => f n
00:00:10 #530 [Verbose] > |> to_list
00:00:10 #531 [Verbose] > |> _assert_eq (listm.init 10i32 id)
00:00:10 #532 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-1118-1830-1f5ce594e692/main.spi
00:00:10 #533 [Verbose] >
00:00:10 #534 [Verbose] > ╭─[ 186.14ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #535 [Verbose] > │ type UH0 = │
00:00:10 #536 [Verbose] > │ | UH0_0 of int32 * UH0 │
00:00:10 #537 [Verbose] > │ | UH0_1 │
00:00:10 #538 [Verbose] > │ let rec method0 () : unit = │
00:00:10 #539 [Verbose] > │ let v88 : UH0 = UH0_1 │
00:00:10 #540 [Verbose] > │ let v89 : UH0 = UH0_0(9, v88) │
00:00:10 #541 [Verbose] > │ let v90 : UH0 = UH0_0(8, v89) │
00:00:10 #542 [Verbose] > │ let v91 : UH0 = UH0_0(7, v90) │
00:00:10 #543 [Verbose] > │ let v92 : UH0 = UH0_0(6, v91) │
00:00:10 #544 [Verbose] > │ let v93 : UH0 = UH0_0(5, v92) │
00:00:10 #545 [Verbose] > │ let v94 : UH0 = UH0_0(4, v93) │
00:00:10 #546 [Verbose] > │ let v95 : UH0 = UH0_0(3, v94) │
00:00:10 #547 [Verbose] > │ let v96 : UH0 = UH0_0(2, v95) │
00:00:10 #548 [Verbose] > │ let v97 : UH0 = UH0_0(1, v96) │
00:00:10 #549 [Verbose] > │ let v98 : UH0 = UH0_0(0, v97) │
00:00:10 #550 [Verbose] > │ let v99 : UH0 = UH0_1 │
00:00:10 #551 [Verbose] > │ let v100 : UH0 = UH0_0(9, v99) │
00:00:10 #552 [Verbose] > │ let v101 : UH0 = UH0_0(8, v100) │
00:00:10 #553 [Verbose] > │ let v102 : UH0 = UH0_0(7, v101) │
00:00:10 #554 [Verbose] > │ let v103 : UH0 = UH0_0(6, v102) │
00:00:10 #555 [Verbose] > │ let v104 : UH0 = UH0_0(5, v103) │
00:00:10 #556 [Verbose] > │ let v105 : UH0 = UH0_0(4, v104) │
00:00:10 #557 [Verbose] > │ let v106 : UH0 = UH0_0(3, v105) │
00:00:10 #558 [Verbose] > │ let v107 : UH0 = UH0_0(2, v106) │
00:00:10 #559 [Verbose] > │ let v108 : UH0 = UH0_0(1, v107) │
00:00:10 #560 [Verbose] > │ let v109 : UH0 = UH0_0(0, v108) │
00:00:10 #561 [Verbose] > │ let v110 : string = $"__expect / actual: %A{v98} / expected: %A{v109}" │
00:00:10 #562 [Verbose] > │ () │
00:00:10 #563 [Verbose] > │ method0() │
00:00:10 #564 [Verbose] > │ │
00:00:10 #565 [Verbose] > │ │
00:00:10 #566 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #567 [Verbose] >
00:00:10 #568 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:10 #569 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:10 #570 [Verbose] > │ ## from_array │
00:00:10 #571 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #572 [Verbose] >
00:00:10 #573 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #574 [Verbose] > inl from_array forall dim {number; int} el. (array : a dim el) : seq dim el =
00:00:10 #575 [Verbose] > fun n =>
00:00:10 #576 [Verbose] > if n >= length array
00:00:10 #577 [Verbose] > then None
00:00:10 #578 [Verbose] > else index array n |> Some
00:00:10 #579 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-1137-3734-30c295f18b5b/main.spi
00:00:10 #580 [Verbose] >
00:00:10 #581 [Verbose] > ╭─[ 149.31ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #582 [Verbose] > │ () │
00:00:10 #583 [Verbose] > │ │
00:00:10 #584 [Verbose] > │ │
00:00:10 #585 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #586 [Verbose] >
00:00:10 #587 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #588 [Verbose] > // // test
00:00:10 #589 [Verbose] >
00:00:10 #590 [Verbose] > a ;[[ 1; 2; 3 ]]
00:00:10 #591 [Verbose] > |> from_array
00:00:10 #592 [Verbose] > |> try_item 1i32
00:00:10 #593 [Verbose] > |> _assert_eq (Some 2i32)
00:00:10 #594 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-1152-5236-5755f79f1ce5/main.spi
00:00:10 #595 [Verbose] >
00:00:10 #596 [Verbose] > ╭─[ 296.55ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #597 [Verbose] > │ type [<Struct>] US0 = │
00:00:10 #598 [Verbose] > │ | US0_0 │
00:00:10 #599 [Verbose] > │ | US0_1 of f1_0 : int32 │
00:00:10 #600 [Verbose] > │ let rec method1 (v0 : (int32 [])) : (int32 []) = │
00:00:10 #601 [Verbose] > │ v0 │
00:00:10 #602 [Verbose] > │ and method2 (v0 : bool) : bool = │
00:00:10 #603 [Verbose] > │ v0 │
00:00:10 #604 [Verbose] > │ and method0 () : unit = │
00:00:10 #605 [Verbose] > │ let v0 : (int32 []) = [|1; 2; 3|] │
00:00:10 #606 [Verbose] > │ let v1 : (int32 []) = method1(v0) │
00:00:10 #607 [Verbose] > │ let v2 : int32 = v1.Length │
00:00:10 #608 [Verbose] > │ let v3 : bool = 1 >= v2 │
00:00:10 #609 [Verbose] > │ let v7 : US0 = │
00:00:10 #610 [Verbose] > │ if v3 then │
00:00:10 #611 [Verbose] > │ US0_0 │
00:00:10 #612 [Verbose] > │ else │
00:00:10 #613 [Verbose] > │ let v5 : int32 = v1.[int 1] │
00:00:10 #614 [Verbose] > │ US0_1(v5) │
00:00:10 #615 [Verbose] > │ let v11 : bool = │
00:00:10 #616 [Verbose] > │ match v7 with │
00:00:10 #617 [Verbose] > │ | US0_1(v9) -> (* Some *) │
00:00:10 #618 [Verbose] > │ let v10 : bool = v9 = 2 │
00:00:10 #619 [Verbose] > │ v10 │
00:00:10 #620 [Verbose] > │ | _ -> │
00:00:10 #621 [Verbose] > │ false │
00:00:10 #622 [Verbose] > │ let v13 : bool = │
00:00:10 #623 [Verbose] > │ if v11 then │
00:00:10 #624 [Verbose] > │ true │
00:00:10 #625 [Verbose] > │ else │
00:00:10 #626 [Verbose] > │ method2(v11) │
00:00:10 #627 [Verbose] > │ let v14 : US0 = US0_1(2) │
00:00:10 #628 [Verbose] > │ let v15 : string = $"__expect / actual: %A{v7} / expected: %A{v14}" │
00:00:10 #629 [Verbose] > │ let v16 : bool = v13 = false │
00:00:10 #630 [Verbose] > │ if v16 then │
00:00:10 #631 [Verbose] > │ failwith<unit> v15 │
00:00:10 #632 [Verbose] > │ method0() │
00:00:10 #633 [Verbose] > │ │
00:00:10 #634 [Verbose] > │ │
00:00:10 #635 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #636 [Verbose] >
00:00:10 #637 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:10 #638 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:10 #639 [Verbose] > │ ## to_array │
00:00:10 #640 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #641 [Verbose] >
00:00:10 #642 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #643 [Verbose] > inl to_array seq =
00:00:10 #644 [Verbose] > inl ar = a ;[[]] |> mut
00:00:10 #645 [Verbose] > ((), seq)
00:00:10 #646 [Verbose] > ||> fold fun _ x =>
00:00:10 #647 [Verbose] > ar <- *ar /@ a ;[[x]]
00:00:10 #648 [Verbose] > *ar
00:00:10 #649 [Verbose] >
00:00:10 #650 [Verbose] > inl to_array_ seq =
00:00:10 #651 [Verbose] > inl ar = a ;[[]] |> mut
00:00:10 #652 [Verbose] > ((), seq)
00:00:10 #653 [Verbose] > ||> fold_ fun _ x =>
00:00:10 #654 [Verbose] > ar <- *ar /@ a ;[[x]]
00:00:10 #655 [Verbose] > *ar
00:00:10 #656 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-1182-8226-8c7b984bec84/main.spi
00:00:11 #657 [Verbose] >
00:00:11 #658 [Verbose] > ╭─[ 136.18ms - stdout ]────────────────────────────────────────────────────────╮
00:00:11 #659 [Verbose] > │ () │
00:00:11 #660 [Verbose] > │ │
00:00:11 #661 [Verbose] > │ │
00:00:11 #662 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #663 [Verbose] >
00:00:11 #664 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:11 #665 [Verbose] > // // test
00:00:11 #666 [Verbose] >
00:00:11 #667 [Verbose] > listm.init 10i32 id
00:00:11 #668 [Verbose] > |> from_list
00:00:11 #669 [Verbose] > |> fun (x : i32 -> _) => x
00:00:11 #670 [Verbose] > |> to_array
00:00:11 #671 [Verbose] > |> _assert_eq (a ;[[ 0; 1; 2; 3; 4; 5; 6; 7; 8; 9 ]] : _ i32 _)
00:00:11 #672 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-1195-9592-9a215be2f0ca/main.spi
00:00:11 #673 [Verbose] >
00:00:11 #674 [Verbose] > ╭─[ 389.30ms - stdout ]────────────────────────────────────────────────────────╮
00:00:11 #675 [Verbose] > │ type Mut0 = {mutable l0 : (int32 [])} │
00:00:11 #676 [Verbose] > │ and Mut1 = {mutable l0 : int32} │
00:00:11 #677 [Verbose] > │ let rec method1 (v0 : (int32 [])) : (int32 []) = │
00:00:11 #678 [Verbose] > │ v0 │
00:00:11 #679 [Verbose] > │ and method2 (v0 : int32, v1 : Mut1) : bool = │
00:00:11 #680 [Verbose] > │ let v2 : int32 = v1.l0 │
00:00:11 #681 [Verbose] > │ let v3 : bool = v2 < v0 │
00:00:11 #682 [Verbose] > │ v3 │
00:00:11 #683 [Verbose] > │ and method3 (v0 : (int32 []), v1 : (int32 []), v2 : int32) : bool = │
00:00:11 #684 [Verbose] > │ let v3 : int32 = v0.Length │
00:00:11 #685 [Verbose] > │ let v4 : bool = v2 < v3 │
00:00:11 #686 [Verbose] > │ if v4 then │
00:00:11 #687 [Verbose] > │ let v5 : int32 = v0.[int v2] │
00:00:11 #688 [Verbose] > │ let v6 : int32 = v1.[int v2] │
00:00:11 #689 [Verbose] > │ let v7 : bool = v5 = v6 │
00:00:11 #690 [Verbose] > │ if v7 then │
00:00:11 #691 [Verbose] > │ let v8 : int32 = v2 + 1 │
00:00:11 #692 [Verbose] > │ method3(v0, v1, v8) │
00:00:11 #693 [Verbose] > │ else │
00:00:11 #694 [Verbose] > │ false │
00:00:11 #695 [Verbose] > │ else │
00:00:11 #696 [Verbose] > │ true │
00:00:11 #697 [Verbose] > │ and method4 (v0 : bool) : bool = │
00:00:11 #698 [Verbose] > │ v0 │
00:00:11 #699 [Verbose] > │ and method0 () : unit = │
00:00:11 #700 [Verbose] > │ let v0 : (int32 []) = [||] │
00:00:11 #701 [Verbose] > │ let v1 : (int32 []) = method1(v0) │
00:00:11 #702 [Verbose] > │ let v2 : Mut0 = {l0 = v1} : Mut0 │
00:00:11 #703 [Verbose] > │ let v3 : (int32 []) = v2.l0 │
00:00:11 #704 [Verbose] > │ let v4 : (int32 []) = [|0|] │
00:00:11 #705 [Verbose] > │ let v5 : (int32 []) = method1(v4) │
00:00:11 #706 [Verbose] > │ let v6 : int32 = v3.Length │
00:00:11 #707 [Verbose] > │ let v7 : int32 = v5.Length │
00:00:11 #708 [Verbose] > │ let v8 : int32 = v6 + v7 │
00:00:11 #709 [Verbose] > │ let v9 : (int32 []) = Array.zeroCreate<int32> (v8) │
00:00:11 #710 [Verbose] > │ let v10 : Mut1 = {l0 = 0} : Mut1 │
00:00:11 #711 [Verbose] > │ while method2(v8, v10) do │
00:00:11 #712 [Verbose] > │ let v12 : int32 = v10.l0 │
00:00:11 #713 [Verbose] > │ let v13 : bool = v12 < v6 │
00:00:11 #714 [Verbose] > │ let v17 : int32 = │
00:00:11 #715 [Verbose] > │ if v13 then │
00:00:11 #716 [Verbose] > │ let v14 : int32 = v3.[int v12] │
00:00:11 #717 [Verbose] > │ v14 │
00:00:11 #718 [Verbose] > │ else │
00:00:11 #719 [Verbose] > │ let v15 : int32 = v12 - v6 │
00:00:11 #720 [Verbose] > │ let v16 : int32 = v5.[int v15] │
00:00:11 #721 [Verbose] > │ v16 │
00:00:11 #722 [Verbose] > │ v9.[int v12] <- v17 │
00:00:11 #723 [Verbose] > │ let v18 : int32 = v12 + 1 │
00:00:11 #724 [Verbose] > │ v10.l0 <- v18 │
00:00:11 #725 [Verbose] > │ () │
00:00:11 #726 [Verbose] > │ v2.l0 <- v9 │
00:00:11 #727 [Verbose] > │ let v19 : (int32 []) = v2.l0 │
00:00:11 #728 [Verbose] > │ let v20 : (int32 []) = [|1|] │
00:00:11 #729 [Verbose] > │ let v21 : (int32 []) = method1(v20) │
00:00:11 #730 [Verbose] > │ let v22 : int32 = v19.Length │
00:00:11 #731 [Verbose] > │ let v23 : int32 = v21.Length │
00:00:11 #732 [Verbose] > │ let v24 : int32 = v22 + v23 │
00:00:11 #733 [Verbose] > │ let v25 : (int32 []) = Array.zeroCreate<int32> (v24) │
00:00:11 #734 [Verbose] > │ let v26 : Mut1 = {l0 = 0} : Mut1 │
00:00:11 #735 [Verbose] > │ while method2(v24, v26) do │
00:00:11 #736 [Verbose] > │ let v28 : int32 = v26.l0 │
00:00:11 #737 [Verbose] > │ let v29 : bool = v28 < v22 │
00:00:11 #738 [Verbose] > │ let v33 : int32 = │
00:00:11 #739 [Verbose] > │ if v29 then │
00:00:11 #740 [Verbose] > │ let v30 : int32 = v19.[int v28] │
00:00:11 #741 [Verbose] > │ v30 │
00:00:11 #742 [Verbose] > │ else │
00:00:11 #743 [Verbose] > │ let v31 : int32 = v28 - v22 │
00:00:11 #744 [Verbose] > │ let v32 : int32 = v21.[int v31] │
00:00:11 #745 [Verbose] > │ v32 │
00:00:11 #746 [Verbose] > │ v25.[int v28] <- v33 │
00:00:11 #747 [Verbose] > │ let v34 : int32 = v28 + 1 │
00:00:11 #748 [Verbose] > │ v26.l0 <- v34 │
00:00:11 #749 [Verbose] > │ () │
00:00:11 #750 [Verbose] > │ v2.l0 <- v25 │
00:00:11 #751 [Verbose] > │ let v35 : (int32 []) = v2.l0 │
00:00:11 #752 [Verbose] > │ let v36 : (int32 []) = [|2|] │
00:00:11 #753 [Verbose] > │ let v37 : (int32 []) = method1(v36) │
00:00:11 #754 [Verbose] > │ let v38 : int32 = v35.Length │
00:00:11 #755 [Verbose] > │ let v39 : int32 = v37.Length │
00:00:11 #756 [Verbose] > │ let v40 : int32 = v38 + v39 │
00:00:11 #757 [Verbose] > │ let v41 : (int32 []) = Array.zeroCreate<int32> (v40) │
00:00:11 #758 [Verbose] > │ let v42 : Mut1 = {l0 = 0} : Mut1 │
00:00:11 #759 [Verbose] > │ while method2(v40, v42) do │
00:00:11 #760 [Verbose] > │ let v44 : int32 = v42.l0 │
00:00:11 #761 [Verbose] > │ let v45 : bool = v44 < v38 │
00:00:11 #762 [Verbose] > │ let v49 : int32 = │
00:00:11 #763 [Verbose] > │ if v45 then │
00:00:11 #764 [Verbose] > │ let v46 : int32 = v35.[int v44] │
00:00:11 #765 [Verbose] > │ v46 │
00:00:11 #766 [Verbose] > │ else │
00:00:11 #767 [Verbose] > │ let v47 : int32 = v44 - v38 │
00:00:11 #768 [Verbose] > │ let v48 : int32 = v37.[int v47] │
00:00:11 #769 [Verbose] > │ v48 │
00:00:11 #770 [Verbose] > │ v41.[int v44] <- v49 │
00:00:11 #771 [Verbose] > │ let v50 : int32 = v44 + 1 │
00:00:11 #772 [Verbose] > │ v42.l0 <- v50 │
00:00:11 #773 [Verbose] > │ () │
00:00:11 #774 [Verbose] > │ v2.l0 <- v41 │
00:00:11 #775 [Verbose] > │ let v51 : (int32 []) = v2.l0 │
00:00:11 #776 [Verbose] > │ let v52 : (int32 []) = [|3|] │
00:00:11 #777 [Verbose] > │ let v53 : (int32 []) = method1(v52) │
00:00:11 #778 [Verbose] > │ let v54 : int32 = v51.Length │
00:00:11 #779 [Verbose] > │ let v55 : int32 = v53.Length │
00:00:11 #780 [Verbose] > │ let v56 : int32 = v54 + v55 │
00:00:11 #781 [Verbose] > │ let v57 : (int32 []) = Array.zeroCreate<int32> (v56) │
00:00:11 #782 [Verbose] > │ let v58 : Mut1 = {l0 = 0} : Mut1 │
00:00:11 #783 [Verbose] > │ while method2(v56, v58) do │
00:00:11 #784 [Verbose] > │ let v60 : int32 = v58.l0 │
00:00:11 #785 [Verbose] > │ let v61 : bool = v60 < v54 │
00:00:11 #786 [Verbose] > │ let v65 : int32 = │
00:00:11 #787 [Verbose] > │ if v61 then │
00:00:11 #788 [Verbose] > │ let v62 : int32 = v51.[int v60] │
00:00:11 #789 [Verbose] > │ v62 │
00:00:11 #790 [Verbose] > │ else │
00:00:11 #791 [Verbose] > │ let v63 : int32 = v60 - v54 │
00:00:11 #792 [Verbose] > │ let v64 : int32 = v53.[int v63] │
00:00:11 #793 [Verbose] > │ v64 │
00:00:11 #794 [Verbose] > │ v57.[int v60] <- v65 │
00:00:11 #795 [Verbose] > │ let v66 : int32 = v60 + 1 │
00:00:11 #796 [Verbose] > │ v58.l0 <- v66 │
00:00:11 #797 [Verbose] > │ () │
00:00:11 #798 [Verbose] > │ v2.l0 <- v57 │
00:00:11 #799 [Verbose] > │ let v67 : (int32 []) = v2.l0 │
00:00:11 #800 [Verbose] > │ let v68 : (int32 []) = [|4|] │
00:00:11 #801 [Verbose] > │ let v69 : (int32 []) = method1(v68) │
00:00:11 #802 [Verbose] > │ let v70 : int32 = v67.Length │
00:00:11 #803 [Verbose] > │ let v71 : int32 = v69.Length │
00:00:11 #804 [Verbose] > │ let v72 : int32 = v70 + v71 │
00:00:11 #805 [Verbose] > │ let v73 : (int32 []) = Array.zeroCreate<int32> (v72) │
00:00:11 #806 [Verbose] > │ let v74 : Mut1 = {l0 = 0} : Mut1 │
00:00:11 #807 [Verbose] > │ while method2(v72, v74) do │
00:00:11 #808 [Verbose] > │ let v76 : int32 = v74.l0 │
00:00:11 #809 [Verbose] > │ let v77 : bool = v76 < v70 │
00:00:11 #810 [Verbose] > │ let v81 : int32 = │
00:00:11 #811 [Verbose] > │ if v77 then │
00:00:11 #812 [Verbose] > │ let v78 : int32 = v67.[int v76] │
00:00:11 #813 [Verbose] > │ v78 │
00:00:11 #814 [Verbose] > │ else │
00:00:11 #815 [Verbose] > │ let v79 : int32 = v76 - v70 │
00:00:11 #816 [Verbose] > │ let v80 : int32 = v69.[int v79] │
00:00:11 #817 [Verbose] > │ v80 │
00:00:11 #818 [Verbose] > │ v73.[int v76] <- v81 │
00:00:11 #819 [Verbose] > │ let v82 : int32 = v76 + 1 │
00:00:11 #820 [Verbose] > │ v74.l0 <- v82 │
00:00:11 #821 [Verbose] > │ () │
00:00:11 #822 [Verbose] > │ v2.l0 <- v73 │
00:00:11 #823 [Verbose] > │ let v83 : (int32 []) = v2.l0 │
00:00:11 #824 [Verbose] > │ let v84 : (int32 []) = [|5|] │
00:00:11 #825 [Verbose] > │ let v85 : (int32 []) = method1(v84) │
00:00:11 #826 [Verbose] > │ let v86 : int32 = v83.Length │
00:00:11 #827 [Verbose] > │ let v87 : int32 = v85.Length │
00:00:11 #828 [Verbose] > │ let v88 : int32 = v86 + v87 │
00:00:11 #829 [Verbose] > │ let v89 : (int32 []) = Array.zeroCreate<int32> (v88) │
00:00:11 #830 [Verbose] > │ let v90 : Mut1 = {l0 = 0} : Mut1 │
00:00:11 #831 [Verbose] > │ while method2(v88, v90) do │
00:00:11 #832 [Verbose] > │ let v92 : int32 = v90.l0 │
00:00:11 #833 [Verbose] > │ let v93 : bool = v92 < v86 │
00:00:11 #834 [Verbose] > │ let v97 : int32 = │
00:00:11 #835 [Verbose] > │ if v93 then │
00:00:11 #836 [Verbose] > │ let v94 : int32 = v83.[int v92] │
00:00:11 #837 [Verbose] > │ v94 │
00:00:11 #838 [Verbose] > │ else │
00:00:11 #839 [Verbose] > │ let v95 : int32 = v92 - v86 │
00:00:11 #840 [Verbose] > │ let v96 : int32 = v85.[int v95] │
00:00:11 #841 [Verbose] > │ v96 │
00:00:11 #842 [Verbose] > │ v89.[int v92] <- v97 │
00:00:11 #843 [Verbose] > │ let v98 : int32 = v92 + 1 │
00:00:11 #844 [Verbose] > │ v90.l0 <- v98 │
00:00:11 #845 [Verbose] > │ () │
00:00:11 #846 [Verbose] > │ v2.l0 <- v89 │
00:00:11 #847 [Verbose] > │ let v99 : (int32 []) = v2.l0 │
00:00:11 #848 [Verbose] > │ let v100 : (int32 []) = [|6|] │
00:00:11 #849 [Verbose] > │ let v101 : (int32 []) = method1(v100) │
00:00:11 #850 [Verbose] > │ let v102 : int32 = v99.Length │
00:00:11 #851 [Verbose] > │ let v103 : int32 = v101.Length │
00:00:11 #852 [Verbose] > │ let v104 : int32 = v102 + v103 │
00:00:11 #853 [Verbose] > │ let v105 : (int32 []) = Array.zeroCreate<int32> (v104) │
00:00:11 #854 [Verbose] > │ let v106 : Mut1 = {l0 = 0} : Mut1 │
00:00:11 #855 [Verbose] > │ while method2(v104, v106) do │
00:00:11 #856 [Verbose] > │ let v108 : int32 = v106.l0 │
00:00:11 #857 [Verbose] > │ let v109 : bool = v108 < v102 │
00:00:11 #858 [Verbose] > │ let v113 : int32 = │
00:00:11 #859 [Verbose] > │ if v109 then │
00:00:11 #860 [Verbose] > │ let v110 : int32 = v99.[int v108] │
00:00:11 #861 [Verbose] > │ v110 │
00:00:11 #862 [Verbose] > │ else │
00:00:11 #863 [Verbose] > │ let v111 : int32 = v108 - v102 │
00:00:11 #864 [Verbose] > │ let v112 : int32 = v101.[int v111] │
00:00:11 #865 [Verbose] > │ v112 │
00:00:11 #866 [Verbose] > │ v105.[int v108] <- v113 │
00:00:11 #867 [Verbose] > │ let v114 : int32 = v108 + 1 │
00:00:11 #868 [Verbose] > │ v106.l0 <- v114 │
00:00:11 #869 [Verbose] > │ () │
00:00:11 #870 [Verbose] > │ v2.l0 <- v105 │
00:00:11 #871 [Verbose] > │ let v115 : (int32 []) = v2.l0 │
00:00:11 #872 [Verbose] > │ let v116 : (int32 []) = [|7|] │
00:00:11 #873 [Verbose] > │ let v117 : (int32 []) = method1(v116) │
00:00:11 #874 [Verbose] > │ let v118 : int32 = v115.Length │
00:00:11 #875 [Verbose] > │ let v119 : int32 = v117.Length │
00:00:11 #876 [Verbose] > │ let v120 : int32 = v118 + v119 │
00:00:11 #877 [Verbose] > │ let v121 : (int32 []) = Array.zeroCreate<int32> (v120) │
00:00:11 #878 [Verbose] > │ let v122 : Mut1 = {l0 = 0} : Mut1 │
00:00:11 #879 [Verbose] > │ while method2(v120, v122) do │
00:00:11 #880 [Verbose] > │ let v124 : int32 = v122.l0 │
00:00:11 #881 [Verbose] > │ let v125 : bool = v124 < v118 │
00:00:11 #882 [Verbose] > │ let v129 : int32 = │
00:00:11 #883 [Verbose] > │ if v125 then │
00:00:11 #884 [Verbose] > │ let v126 : int32 = v115.[int v124] │
00:00:11 #885 [Verbose] > │ v126 │
00:00:11 #886 [Verbose] > │ else │
00:00:11 #887 [Verbose] > │ let v127 : int32 = v124 - v118 │
00:00:11 #888 [Verbose] > │ let v128 : int32 = v117.[int v127] │
00:00:11 #889 [Verbose] > │ v128 │
00:00:11 #890 [Verbose] > │ v121.[int v124] <- v129 │
00:00:11 #891 [Verbose] > │ let v130 : int32 = v124 + 1 │
00:00:11 #892 [Verbose] > │ v122.l0 <- v130 │
00:00:11 #893 [Verbose] > │ () │
00:00:11 #894 [Verbose] > │ v2.l0 <- v121 │
00:00:11 #895 [Verbose] > │ let v131 : (int32 []) = v2.l0 │
00:00:11 #896 [Verbose] > │ let v132 : (int32 []) = [|8|] │
00:00:11 #897 [Verbose] > │ let v133 : (int32 []) = method1(v132) │
00:00:11 #898 [Verbose] > │ let v134 : int32 = v131.Length │
00:00:11 #899 [Verbose] > │ let v135 : int32 = v133.Length │
00:00:11 #900 [Verbose] > │ let v136 : int32 = v134 + v135 │
00:00:11 #901 [Verbose] > │ let v137 : (int32 []) = Array.zeroCreate<int32> (v136) │
00:00:11 #902 [Verbose] > │ let v138 : Mut1 = {l0 = 0} : Mut1 │
00:00:11 #903 [Verbose] > │ while method2(v136, v138) do │
00:00:11 #904 [Verbose] > │ let v140 : int32 = v138.l0 │
00:00:11 #905 [Verbose] > │ let v141 : bool = v140 < v134 │
00:00:11 #906 [Verbose] > │ let v145 : int32 = │
00:00:11 #907 [Verbose] > │ if v141 then │
00:00:11 #908 [Verbose] > │ let v142 : int32 = v131.[int v140] │
00:00:11 #909 [Verbose] > │ v142 │
00:00:11 #910 [Verbose] > │ else │
00:00:11 #911 [Verbose] > │ let v143 : int32 = v140 - v134 │
00:00:11 #912 [Verbose] > │ let v144 : int32 = v133.[int v143] │
00:00:11 #913 [Verbose] > │ v144 │
00:00:11 #914 [Verbose] > │ v137.[int v140] <- v145 │
00:00:11 #915 [Verbose] > │ let v146 : int32 = v140 + 1 │
00:00:11 #916 [Verbose] > │ v138.l0 <- v146 │
00:00:11 #917 [Verbose] > │ () │
00:00:11 #918 [Verbose] > │ v2.l0 <- v137 │
00:00:11 #919 [Verbose] > │ let v147 : (int32 []) = v2.l0 │
00:00:11 #920 [Verbose] > │ let v148 : (int32 []) = [|9|] │
00:00:11 #921 [Verbose] > │ let v149 : (int32 []) = method1(v148) │
00:00:11 #922 [Verbose] > │ let v150 : int32 = v147.Length │
00:00:11 #923 [Verbose] > │ let v151 : int32 = v149.Length │
00:00:11 #924 [Verbose] > │ let v152 : int32 = v150 + v151 │
00:00:11 #925 [Verbose] > │ let v153 : (int32 []) = Array.zeroCreate<int32> (v152) │
00:00:11 #926 [Verbose] > │ let v154 : Mut1 = {l0 = 0} : Mut1 │
00:00:11 #927 [Verbose] > │ while method2(v152, v154) do │
00:00:11 #928 [Verbose] > │ let v156 : int32 = v154.l0 │
00:00:11 #929 [Verbose] > │ let v157 : bool = v156 < v150 │
00:00:11 #930 [Verbose] > │ let v161 : int32 = │
00:00:11 #931 [Verbose] > │ if v157 then │
00:00:11 #932 [Verbose] > │ let v158 : int32 = v147.[int v156] │
00:00:11 #933 [Verbose] > │ v158 │
00:00:11 #934 [Verbose] > │ else │
00:00:11 #935 [Verbose] > │ let v159 : int32 = v156 - v150 │
00:00:11 #936 [Verbose] > │ let v160 : int32 = v149.[int v159] │
00:00:11 #937 [Verbose] > │ v160 │
00:00:11 #938 [Verbose] > │ v153.[int v156] <- v161 │
00:00:11 #939 [Verbose] > │ let v162 : int32 = v156 + 1 │
00:00:11 #940 [Verbose] > │ v154.l0 <- v162 │
00:00:11 #941 [Verbose] > │ () │
00:00:11 #942 [Verbose] > │ v2.l0 <- v153 │
00:00:11 #943 [Verbose] > │ let v163 : (int32 []) = v2.l0 │
00:00:11 #944 [Verbose] > │ let v164 : (int32 []) = [|0; 1; 2; 3; 4; 5; 6; 7; 8; 9|] │
00:00:11 #945 [Verbose] > │ let v165 : (int32 []) = method1(v164) │
00:00:11 #946 [Verbose] > │ let v166 : int32 = v163.Length │
00:00:11 #947 [Verbose] > │ let v167 : int32 = v165.Length │
00:00:11 #948 [Verbose] > │ let v168 : bool = v166 = v167 │
00:00:11 #949 [Verbose] > │ let v169 : bool = v168 <> true │
00:00:11 #950 [Verbose] > │ let v172 : bool = │
00:00:11 #951 [Verbose] > │ if v169 then │
00:00:11 #952 [Verbose] > │ false │
00:00:11 #953 [Verbose] > │ else │
00:00:11 #954 [Verbose] > │ let v170 : int32 = 0 │
00:00:11 #955 [Verbose] > │ method3(v163, v165, v170) │
00:00:11 #956 [Verbose] > │ let v174 : bool = │
00:00:11 #957 [Verbose] > │ if v172 then │
00:00:11 #958 [Verbose] > │ true │
00:00:11 #959 [Verbose] > │ else │
00:00:11 #960 [Verbose] > │ method4(v172) │
00:00:11 #961 [Verbose] > │ let v175 : string = $"__expect / actual: %A{v163} / expected: %A{v165}" │
00:00:11 #962 [Verbose] > │ let v176 : bool = v174 = false │
00:00:11 #963 [Verbose] > │ if v176 then │
00:00:11 #964 [Verbose] > │ failwith<unit> v175 │
00:00:11 #965 [Verbose] > │ method0() │
00:00:11 #966 [Verbose] > │ │
00:00:11 #967 [Verbose] > │ │
00:00:11 #968 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #969 [Verbose] >
00:00:11 #970 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:11 #971 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:11 #972 [Verbose] > │ ## take_while │
00:00:11 #973 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #974 [Verbose] >
00:00:11 #975 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:11 #976 [Verbose] > inl take_while cond seq =
00:00:11 #977 [Verbose] > inl rec loop acc i =
00:00:11 #978 [Verbose] > match seq i with
00:00:11 #979 [Verbose] > | Some st when cond st i => loop (st :: acc) (i + 1)
00:00:11 #980 [Verbose] > | _ => acc |> listm.rev
00:00:11 #981 [Verbose] > loop [[]] 0
00:00:11 #982 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-1237-3706-382abc2e0e41/main.spi
00:00:11 #983 [Verbose] >
00:00:11 #984 [Verbose] > ╭─[ 180.80ms - stdout ]────────────────────────────────────────────────────────╮
00:00:11 #985 [Verbose] > │ () │
00:00:11 #986 [Verbose] > │ │
00:00:11 #987 [Verbose] > │ │
00:00:11 #988 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #989 [Verbose] >
00:00:11 #990 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:11 #991 [Verbose] > // // test
00:00:11 #992 [Verbose] >
00:00:11 #993 [Verbose] > listm.init 10i32 id
00:00:11 #994 [Verbose] > |> from_list
00:00:11 #995 [Verbose] > |> take_while (fun n (_ : i32) => n < 5)
00:00:11 #996 [Verbose] > |> listm'.sum
00:00:11 #997 [Verbose] > |> _assert_eq 10
00:00:11 #998 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-1255-5527-5f4a2d12c380/main.spi
00:00:11 #999 [Verbose] >
00:00:11 #1000 [Verbose] > ╭─[ 141.31ms - stdout ]────────────────────────────────────────────────────────╮
00:00:11 #1001 [Verbose] > │ let rec method0 () : unit = │
00:00:11 #1002 [Verbose] > │ let v0 : string = $"__expect / actual: %A{10} / expected: %A{10}" │
00:00:11 #1003 [Verbose] > │ () │
00:00:11 #1004 [Verbose] > │ method0() │
00:00:11 #1005 [Verbose] > │ │
00:00:11 #1006 [Verbose] > │ │
00:00:11 #1007 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #1008 [Verbose] >
00:00:11 #1009 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:11 #1010 [Verbose] > // // test
00:00:11 #1011 [Verbose] >
00:00:11 #1012 [Verbose] > stream.new_finite_stream print_and_return 10i32
00:00:11 #1013 [Verbose] > |> flip stream.try_item
00:00:11 #1014 [Verbose] > |> take_while (fun n (_ : i32) => n < 5)
00:00:11 #1015 [Verbose] > |> listm'.sum
00:00:11 #1016 [Verbose] > |> _assert_eq 10
00:00:11 #1017 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-1269-6934-6eec4ba4337f/main.spi
00:00:11 #1018 [Verbose] >
00:00:11 #1019 [Verbose] > ╭─[ 171.87ms - stdout ]────────────────────────────────────────────────────────╮
00:00:11 #1020 [Verbose] > │ let rec method0 () : unit = │
00:00:11 #1021 [Verbose] > │ printfn $"print_and_return / x: {0}" │
00:00:11 #1022 [Verbose] > │ printfn $"print_and_return / x: {1}" │
00:00:11 #1023 [Verbose] > │ printfn $"print_and_return / x: {1}" │
00:00:11 #1024 [Verbose] > │ printfn $"print_and_return / x: {2}" │
00:00:11 #1025 [Verbose] > │ printfn $"print_and_return / x: {1}" │
00:00:11 #1026 [Verbose] > │ printfn $"print_and_return / x: {2}" │
00:00:11 #1027 [Verbose] > │ printfn $"print_and_return / x: {3}" │
00:00:11 #1028 [Verbose] > │ printfn $"print_and_return / x: {1}" │
00:00:11 #1029 [Verbose] > │ printfn $"print_and_return / x: {2}" │
00:00:11 #1030 [Verbose] > │ printfn $"print_and_return / x: {3}" │
00:00:11 #1031 [Verbose] > │ printfn $"print_and_return / x: {4}" │
00:00:11 #1032 [Verbose] > │ printfn $"print_and_return / x: {1}" │
00:00:11 #1033 [Verbose] > │ printfn $"print_and_return / x: {2}" │
00:00:11 #1034 [Verbose] > │ printfn $"print_and_return / x: {3}" │
00:00:11 #1035 [Verbose] > │ printfn $"print_and_return / x: {4}" │
00:00:11 #1036 [Verbose] > │ printfn $"print_and_return / x: {5}" │
00:00:11 #1037 [Verbose] > │ let v0 : string = $"__expect / actual: %A{10} / expected: %A{10}" │
00:00:11 #1038 [Verbose] > │ () │
00:00:11 #1039 [Verbose] > │ method0() │
00:00:11 #1040 [Verbose] > │ │
00:00:11 #1041 [Verbose] > │ print_and_return / x: 0 │
00:00:11 #1042 [Verbose] > │ print_and_return / x: 1 │
00:00:11 #1043 [Verbose] > │ print_and_return / x: 1 │
00:00:11 #1044 [Verbose] > │ print_and_return / x: 2 │
00:00:11 #1045 [Verbose] > │ print_and_return / x: 1 │
00:00:11 #1046 [Verbose] > │ print_and_return / x: 2 │
00:00:11 #1047 [Verbose] > │ print_and_return / x: 3 │
00:00:11 #1048 [Verbose] > │ print_and_return / x: 1 │
00:00:11 #1049 [Verbose] > │ print_and_return / x: 2 │
00:00:11 #1050 [Verbose] > │ print_and_return / x: 3 │
00:00:11 #1051 [Verbose] > │ print_and_return / x: 4 │
00:00:11 #1052 [Verbose] > │ print_and_return / x: 1 │
00:00:11 #1053 [Verbose] > │ print_and_return / x: 2 │
00:00:11 #1054 [Verbose] > │ print_and_return / x: 3 │
00:00:11 #1055 [Verbose] > │ print_and_return / x: 4 │
00:00:11 #1056 [Verbose] > │ print_and_return / x: 5 │
00:00:11 #1057 [Verbose] > │ │
00:00:11 #1058 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #1059 [Verbose] >
00:00:11 #1060 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:11 #1061 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:11 #1062 [Verbose] > │ ## take_while_ │
00:00:11 #1063 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #1064 [Verbose] >
00:00:11 #1065 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:11 #1066 [Verbose] > inl take_while_ cond seq =
00:00:11 #1067 [Verbose] > let rec loop acc i =
00:00:11 #1068 [Verbose] > match seq i with
00:00:11 #1069 [Verbose] > | Some st when cond st i => loop (st :: acc) (i + 1)
00:00:11 #1070 [Verbose] > | _ => acc |> listm.rev
00:00:11 #1071 [Verbose] > loop [[]] 0
00:00:12 #1072 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-1286-8687-8b3c35ddf013/main.spi
00:00:12 #1073 [Verbose] >
00:00:12 #1074 [Verbose] > ╭─[ 138.51ms - stdout ]────────────────────────────────────────────────────────╮
00:00:12 #1075 [Verbose] > │ () │
00:00:12 #1076 [Verbose] > │ │
00:00:12 #1077 [Verbose] > │ │
00:00:12 #1078 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #1079 [Verbose] >
00:00:12 #1080 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 #1081 [Verbose] > // // test
00:00:12 #1082 [Verbose] >
00:00:12 #1083 [Verbose] > stream.new_infinite_stream_ print_and_return
00:00:12 #1084 [Verbose] > |> flip stream.try_item
00:00:12 #1085 [Verbose] > |> take_while_ (fun n (_ : i32) => n < 5i32)
00:00:12 #1086 [Verbose] > |> listm'.sum
00:00:12 #1087 [Verbose] > |> _assert_eq 10
00:00:12 #1088 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-1300-0073-0cf86f816582/main.spi
00:00:12 #1089 [Verbose] >
00:00:12 #1090 [Verbose] > ╭─[ 299.19ms - stdout ]────────────────────────────────────────────────────────╮
00:00:12 #1091 [Verbose] > │ type UH0 = │
00:00:12 #1092 [Verbose] > │ | UH0_0 of int32 * (unit -> UH0) │
00:00:12 #1093 [Verbose] > │ | UH0_1 │
00:00:12 #1094 [Verbose] > │ and UH1 = │
00:00:12 #1095 [Verbose] > │ | UH1_0 of int32 * UH1 │
00:00:12 #1096 [Verbose] > │ | UH1_1 │
00:00:12 #1097 [Verbose] > │ and [<Struct>] US0 = │
00:00:12 #1098 [Verbose] > │ | US0_0 │
00:00:12 #1099 [Verbose] > │ | US0_1 of f1_0 : int32 │
00:00:12 #1100 [Verbose] > │ let rec closure0 (v0 : int32) () : UH0 = │
00:00:12 #1101 [Verbose] > │ let v1 : int32 = v0 + 1 │
00:00:12 #1102 [Verbose] > │ method1(v1) │
00:00:12 #1103 [Verbose] > │ and method1 (v0 : int32) : UH0 = │
00:00:12 #1104 [Verbose] > │ printfn $"print_and_return / x: {v0}" │
00:00:12 #1105 [Verbose] > │ let v1 : (unit -> UH0) = closure0(v0) │
00:00:12 #1106 [Verbose] > │ UH0_0(v0, v1) │
00:00:12 #1107 [Verbose] > │ and method3 (v0 : int32, v1 : UH0) : US0 = │
00:00:12 #1108 [Verbose] > │ match v1 with │
00:00:12 #1109 [Verbose] > │ | UH0_0(v2, v3) -> (* StreamCons *) │
00:00:12 #1110 [Verbose] > │ let v4 : bool = v0 <= 0 │
00:00:12 #1111 [Verbose] > │ if v4 then │
00:00:12 #1112 [Verbose] > │ US0_1(v2) │
00:00:12 #1113 [Verbose] > │ else │
00:00:12 #1114 [Verbose] > │ let v6 : int32 = v0 - 1 │
00:00:12 #1115 [Verbose] > │ let v7 : UH0 = v3 () │
00:00:12 #1116 [Verbose] > │ method3(v6, v7) │
00:00:12 #1117 [Verbose] > │ | UH0_1 -> (* StreamNil *) │
00:00:12 #1118 [Verbose] > │ US0_0 │
00:00:12 #1119 [Verbose] > │ and method4 (v0 : UH1, v1 : UH1) : UH1 = │
00:00:12 #1120 [Verbose] > │ match v0 with │
00:00:12 #1121 [Verbose] > │ | UH1_0(v2, v3) -> (* Cons *) │
00:00:12 #1122 [Verbose] > │ let v4 : UH1 = UH1_0(v2, v1) │
00:00:12 #1123 [Verbose] > │ method4(v3, v4) │
00:00:12 #1124 [Verbose] > │ | UH1_1 -> (* Nil *) │
00:00:12 #1125 [Verbose] > │ v1 │
00:00:12 #1126 [Verbose] > │ and method2 (v0 : UH0, v1 : UH1, v2 : int32) : UH1 = │
00:00:12 #1127 [Verbose] > │ let v3 : US0 = method3(v2, v0) │
00:00:12 #1128 [Verbose] > │ match v3 with │
00:00:12 #1129 [Verbose] > │ | US0_1(v4) -> (* Some *) │
00:00:12 #1130 [Verbose] > │ let v5 : bool = v4 < 5 │
00:00:12 #1131 [Verbose] > │ if v5 then │
00:00:12 #1132 [Verbose] > │ let v6 : UH1 = UH1_0(v4, v1) │
00:00:12 #1133 [Verbose] > │ let v7 : int32 = v2 + 1 │
00:00:12 #1134 [Verbose] > │ method2(v0, v6, v7) │
00:00:12 #1135 [Verbose] > │ else │
00:00:12 #1136 [Verbose] > │ let v9 : UH1 = UH1_1 │
00:00:12 #1137 [Verbose] > │ method4(v1, v9) │
00:00:12 #1138 [Verbose] > │ | _ -> │
00:00:12 #1139 [Verbose] > │ let v12 : UH1 = UH1_1 │
00:00:12 #1140 [Verbose] > │ method4(v1, v12) │
00:00:12 #1141 [Verbose] > │ and method5 (v0 : UH1, v1 : int32) : int32 = │
00:00:12 #1142 [Verbose] > │ match v0 with │
00:00:12 #1143 [Verbose] > │ | UH1_0(v2, v3) -> (* Cons *) │
00:00:12 #1144 [Verbose] > │ let v4 : int32 = v1 + v2 │
00:00:12 #1145 [Verbose] > │ method5(v3, v4) │
00:00:12 #1146 [Verbose] > │ | UH1_1 -> (* Nil *) │
00:00:12 #1147 [Verbose] > │ v1 │
00:00:12 #1148 [Verbose] > │ and method6 (v0 : bool) : bool = │
00:00:12 #1149 [Verbose] > │ v0 │
00:00:12 #1150 [Verbose] > │ and method0 () : unit = │
00:00:12 #1151 [Verbose] > │ let v0 : int32 = 0 │
00:00:12 #1152 [Verbose] > │ let v1 : UH0 = method1(v0) │
00:00:12 #1153 [Verbose] > │ let v2 : UH1 = UH1_1 │
00:00:12 #1154 [Verbose] > │ let v3 : int32 = 0 │
00:00:12 #1155 [Verbose] > │ let v4 : UH1 = method2(v1, v2, v3) │
00:00:12 #1156 [Verbose] > │ let v5 : int32 = 0 │
00:00:12 #1157 [Verbose] > │ let v6 : int32 = method5(v4, v5) │
00:00:12 #1158 [Verbose] > │ let v7 : bool = v6 = 10 │
00:00:12 #1159 [Verbose] > │ let v9 : bool = │
00:00:12 #1160 [Verbose] > │ if v7 then │
00:00:12 #1161 [Verbose] > │ true │
00:00:12 #1162 [Verbose] > │ else │
00:00:12 #1163 [Verbose] > │ method6(v7) │
00:00:12 #1164 [Verbose] > │ let v10 : string = $"__expect / actual: %A{v6} / expected: %A{10}" │
00:00:12 #1165 [Verbose] > │ let v11 : bool = v9 = false │
00:00:12 #1166 [Verbose] > │ if v11 then │
00:00:12 #1167 [Verbose] > │ failwith<unit> v10 │
00:00:12 #1168 [Verbose] > │ method0() │
00:00:12 #1169 [Verbose] > │ │
00:00:12 #1170 [Verbose] > │ print_and_return / x: 0 │
00:00:12 #1171 [Verbose] > │ print_and_return / x: 1 │
00:00:12 #1172 [Verbose] > │ print_and_return / x: 1 │
00:00:12 #1173 [Verbose] > │ print_and_return / x: 2 │
00:00:12 #1174 [Verbose] > │ print_and_return / x: 1 │
00:00:12 #1175 [Verbose] > │ print_and_return / x: 2 │
00:00:12 #1176 [Verbose] > │ print_and_return / x: 3 │
00:00:12 #1177 [Verbose] > │ print_and_return / x: 1 │
00:00:12 #1178 [Verbose] > │ print_and_return / x: 2 │
00:00:12 #1179 [Verbose] > │ print_and_return / x: 3 │
00:00:12 #1180 [Verbose] > │ print_and_return / x: 4 │
00:00:12 #1181 [Verbose] > │ print_and_return / x: 1 │
00:00:12 #1182 [Verbose] > │ print_and_return / x: 2 │
00:00:12 #1183 [Verbose] > │ print_and_return / x: 3 │
00:00:12 #1184 [Verbose] > │ print_and_return / x: 4 │
00:00:12 #1185 [Verbose] > │ print_and_return / x: 5 │
00:00:12 #1186 [Verbose] > │ │
00:00:12 #1187 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #1188 [Verbose] >
00:00:12 #1189 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 #1190 [Verbose] > // // test
00:00:12 #1191 [Verbose] >
00:00:12 #1192 [Verbose] > stream.new_infinite_stream_ print_and_return
00:00:12 #1193 [Verbose] > |> stream.memoize
00:00:12 #1194 [Verbose] > |> fun list =>
00:00:12 #1195 [Verbose] > inl list = list ()
00:00:12 #1196 [Verbose] > fun n =>
00:00:12 #1197 [Verbose] > list |> stream.try_item n
00:00:12 #1198 [Verbose] > |> take_while_ (fun n (_ : i32) => n < 5i32)
00:00:12 #1199 [Verbose] > |> listm'.sum
00:00:12 #1200 [Verbose] > |> _assert_eq 10
00:00:12 #1201 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-1331-3137-337ff6f85fe7/main.spi
00:00:12 #1202 [Verbose] >
00:00:12 #1203 [Verbose] > ╭─[ 219.84ms - stdout ]────────────────────────────────────────────────────────╮
00:00:12 #1204 [Verbose] > │ type UH0 = │
00:00:12 #1205 [Verbose] > │ | UH0_0 of int32 * (unit -> UH0) │
00:00:12 #1206 [Verbose] > │ | UH0_1 │
00:00:12 #1207 [Verbose] > │ and [<Struct>] US0 = │
00:00:12 #1208 [Verbose] > │ | US0_0 of f0_0 : UH0 │
00:00:12 #1209 [Verbose] > │ | US0_1 of f1_0 : (unit -> UH0) │
00:00:12 #1210 [Verbose] > │ and Mut0 = {mutable l0 : US0} │
00:00:12 #1211 [Verbose] > │ and UH1 = │
00:00:12 #1212 [Verbose] > │ | UH1_0 of int32 * UH1 │
00:00:12 #1213 [Verbose] > │ | UH1_1 │
00:00:12 #1214 [Verbose] > │ and [<Struct>] US1 = │
00:00:12 #1215 [Verbose] > │ | US1_0 │
00:00:12 #1216 [Verbose] > │ | US1_1 of f1_0 : int32 │
00:00:12 #1217 [Verbose] > │ let rec closure0 (v0 : int32) () : UH0 = │
00:00:12 #1218 [Verbose] > │ let v1 : int32 = v0 + 1 │
00:00:12 #1219 [Verbose] > │ method1(v1) │
00:00:12 #1220 [Verbose] > │ and method1 (v0 : int32) : UH0 = │
00:00:12 #1221 [Verbose] > │ printfn $"print_and_return / x: {v0}" │
00:00:12 #1222 [Verbose] > │ let v1 : (unit -> UH0) = closure0(v0) │
00:00:12 #1223 [Verbose] > │ UH0_0(v0, v1) │
00:00:12 #1224 [Verbose] > │ and closure1 (v0 : UH0) () : UH0 = │
00:00:12 #1225 [Verbose] > │ v0 │
00:00:12 #1226 [Verbose] > │ and closure2 (v0 : UH0, v1 : Mut0) () : UH0 = │
00:00:12 #1227 [Verbose] > │ let v2 : US0 = v1.l0 │
00:00:12 #1228 [Verbose] > │ match v2 with │
00:00:12 #1229 [Verbose] > │ | US0_0(v3) -> (* Computed *) │
00:00:12 #1230 [Verbose] > │ v3 │
00:00:12 #1231 [Verbose] > │ | US0_1(v4) -> (* NotComputed *) │
00:00:12 #1232 [Verbose] > │ let v5 : UH0 = v4 () │
00:00:12 #1233 [Verbose] > │ let v12 : UH0 = │
00:00:12 #1234 [Verbose] > │ match v5 with │
00:00:12 #1235 [Verbose] > │ | UH0_0(v7, v8) -> (* StreamCons *) │
00:00:12 #1236 [Verbose] > │ let v9 : (unit -> UH0) = method2(v0, v8) │
00:00:12 #1237 [Verbose] > │ UH0_0(v7, v9) │
00:00:12 #1238 [Verbose] > │ | UH0_1 -> (* StreamNil *) │
00:00:12 #1239 [Verbose] > │ UH0_1 │
00:00:12 #1240 [Verbose] > │ let v13 : US0 = US0_0(v12) │
00:00:12 #1241 [Verbose] > │ v1.l0 <- v13 │
00:00:12 #1242 [Verbose] > │ v12 │
00:00:12 #1243 [Verbose] > │ and method2 (v0 : UH0, v1 : (unit -> UH0)) : (unit -> UH0) = │
00:00:12 #1244 [Verbose] > │ let v2 : US0 = US0_1(v1) │
00:00:12 #1245 [Verbose] > │ let v3 : Mut0 = {l0 = v2} : Mut0 │
00:00:12 #1246 [Verbose] > │ closure2(v0, v3) │
00:00:12 #1247 [Verbose] > │ and method4 (v0 : int32, v1 : UH0) : US1 = │
00:00:12 #1248 [Verbose] > │ match v1 with │
00:00:12 #1249 [Verbose] > │ | UH0_0(v2, v3) -> (* StreamCons *) │
00:00:12 #1250 [Verbose] > │ let v4 : bool = v0 <= 0 │
00:00:12 #1251 [Verbose] > │ if v4 then │
00:00:12 #1252 [Verbose] > │ US1_1(v2) │
00:00:12 #1253 [Verbose] > │ else │
00:00:12 #1254 [Verbose] > │ let v6 : int32 = v0 - 1 │
00:00:12 #1255 [Verbose] > │ let v7 : UH0 = v3 () │
00:00:12 #1256 [Verbose] > │ method4(v6, v7) │
00:00:12 #1257 [Verbose] > │ | UH0_1 -> (* StreamNil *) │
00:00:12 #1258 [Verbose] > │ US1_0 │
00:00:12 #1259 [Verbose] > │ and method5 (v0 : UH1, v1 : UH1) : UH1 = │
00:00:12 #1260 [Verbose] > │ match v0 with │
00:00:12 #1261 [Verbose] > │ | UH1_0(v2, v3) -> (* Cons *) │
00:00:12 #1262 [Verbose] > │ let v4 : UH1 = UH1_0(v2, v1) │
00:00:12 #1263 [Verbose] > │ method5(v3, v4) │
00:00:12 #1264 [Verbose] > │ | UH1_1 -> (* Nil *) │
00:00:12 #1265 [Verbose] > │ v1 │
00:00:12 #1266 [Verbose] > │ and method3 (v0 : UH0, v1 : UH1, v2 : int32) : UH1 = │
00:00:12 #1267 [Verbose] > │ let v3 : US1 = method4(v2, v0) │
00:00:12 #1268 [Verbose] > │ match v3 with │
00:00:12 #1269 [Verbose] > │ | US1_1(v4) -> (* Some *) │
00:00:12 #1270 [Verbose] > │ let v5 : bool = v4 < 5 │
00:00:12 #1271 [Verbose] > │ if v5 then │
00:00:12 #1272 [Verbose] > │ let v6 : UH1 = UH1_0(v4, v1) │
00:00:12 #1273 [Verbose] > │ let v7 : int32 = v2 + 1 │
00:00:12 #1274 [Verbose] > │ method3(v0, v6, v7) │
00:00:12 #1275 [Verbose] > │ else │
00:00:12 #1276 [Verbose] > │ let v9 : UH1 = UH1_1 │
00:00:12 #1277 [Verbose] > │ method5(v1, v9) │
00:00:12 #1278 [Verbose] > │ | _ -> │
00:00:12 #1279 [Verbose] > │ let v12 : UH1 = UH1_1 │
00:00:12 #1280 [Verbose] > │ method5(v1, v12) │
00:00:12 #1281 [Verbose] > │ and method6 (v0 : UH1, v1 : int32) : int32 = │
00:00:12 #1282 [Verbose] > │ match v0 with │
00:00:12 #1283 [Verbose] > │ | UH1_0(v2, v3) -> (* Cons *) │
00:00:12 #1284 [Verbose] > │ let v4 : int32 = v1 + v2 │
00:00:12 #1285 [Verbose] > │ method6(v3, v4) │
00:00:12 #1286 [Verbose] > │ | UH1_1 -> (* Nil *) │
00:00:12 #1287 [Verbose] > │ v1 │
00:00:12 #1288 [Verbose] > │ and method7 (v0 : bool) : bool = │
00:00:12 #1289 [Verbose] > │ v0 │
00:00:12 #1290 [Verbose] > │ and method0 () : unit = │
00:00:12 #1291 [Verbose] > │ let v0 : int32 = 0 │
00:00:12 #1292 [Verbose] > │ let v1 : UH0 = method1(v0) │
00:00:12 #1293 [Verbose] > │ let v2 : (unit -> UH0) = closure1(v1) │
00:00:12 #1294 [Verbose] > │ let v3 : (unit -> UH0) = method2(v1, v2) │
00:00:12 #1295 [Verbose] > │ let v4 : UH0 = v3 () │
00:00:12 #1296 [Verbose] > │ let v5 : UH1 = UH1_1 │
00:00:12 #1297 [Verbose] > │ let v6 : int32 = 0 │
00:00:12 #1298 [Verbose] > │ let v7 : UH1 = method3(v4, v5, v6) │
00:00:12 #1299 [Verbose] > │ let v8 : int32 = 0 │
00:00:12 #1300 [Verbose] > │ let v9 : int32 = method6(v7, v8) │
00:00:12 #1301 [Verbose] > │ let v10 : bool = v9 = 10 │
00:00:12 #1302 [Verbose] > │ let v12 : bool = │
00:00:12 #1303 [Verbose] > │ if v10 then │
00:00:12 #1304 [Verbose] > │ true │
00:00:12 #1305 [Verbose] > │ else │
00:00:12 #1306 [Verbose] > │ method7(v10) │
00:00:12 #1307 [Verbose] > │ let v13 : string = $"__expect / actual: %A{v9} / expected: %A{10}" │
00:00:12 #1308 [Verbose] > │ let v14 : bool = v12 = false │
00:00:12 #1309 [Verbose] > │ if v14 then │
00:00:12 #1310 [Verbose] > │ failwith<unit> v13 │
00:00:12 #1311 [Verbose] > │ method0() │
00:00:12 #1312 [Verbose] > │ │
00:00:12 #1313 [Verbose] > │ print_and_return / x: 0 │
00:00:12 #1314 [Verbose] > │ print_and_return / x: 1 │
00:00:12 #1315 [Verbose] > │ print_and_return / x: 2 │
00:00:12 #1316 [Verbose] > │ print_and_return / x: 3 │
00:00:12 #1317 [Verbose] > │ print_and_return / x: 4 │
00:00:12 #1318 [Verbose] > │ print_and_return / x: 5 │
00:00:12 #1319 [Verbose] > │ │
00:00:12 #1320 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #1321 [Verbose] >
00:00:12 #1322 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 #1323 [Verbose] > // // test
00:00:12 #1324 [Verbose] >
00:00:12 #1325 [Verbose] > stream.new_finite_stream print_and_return 10i32
00:00:12 #1326 [Verbose] > |> stream.memoize
00:00:12 #1327 [Verbose] > |> fun list =>
00:00:12 #1328 [Verbose] > inl list = list ()
00:00:12 #1329 [Verbose] > fun n =>
00:00:12 #1330 [Verbose] > list |> stream.try_item n
00:00:12 #1331 [Verbose] > |> take_while_ (fun n (_ : i32) => n < 5)
00:00:12 #1332 [Verbose] > |> listm'.sum
00:00:12 #1333 [Verbose] > |> _assert_eq 10
00:00:12 #1334 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-1354-5435-5a30dbe0e61f/main.spi
00:00:12 #1335 [Verbose] >
00:00:12 #1336 [Verbose] > ╭─[ 246.78ms - stdout ]────────────────────────────────────────────────────────╮
00:00:12 #1337 [Verbose] > │ type UH0 = │
00:00:12 #1338 [Verbose] > │ | UH0_0 of int32 * (unit -> UH0) │
00:00:12 #1339 [Verbose] > │ | UH0_1 │
00:00:12 #1340 [Verbose] > │ and [<Struct>] US0 = │
00:00:12 #1341 [Verbose] > │ | US0_0 of f0_0 : UH0 │
00:00:12 #1342 [Verbose] > │ | US0_1 of f1_0 : (unit -> UH0) │
00:00:12 #1343 [Verbose] > │ and Mut0 = {mutable l0 : US0} │
00:00:12 #1344 [Verbose] > │ and UH1 = │
00:00:12 #1345 [Verbose] > │ | UH1_0 of int32 * UH1 │
00:00:12 #1346 [Verbose] > │ | UH1_1 │
00:00:12 #1347 [Verbose] > │ and [<Struct>] US1 = │
00:00:12 #1348 [Verbose] > │ | US1_0 │
00:00:12 #1349 [Verbose] > │ | US1_1 of f1_0 : int32 │
00:00:12 #1350 [Verbose] > │ let rec closure10 () () : UH0 = │
00:00:12 #1351 [Verbose] > │ UH0_1 │
00:00:12 #1352 [Verbose] > │ and closure9 () () : UH0 = │
00:00:12 #1353 [Verbose] > │ printfn $"print_and_return / x: {9}" │
00:00:12 #1354 [Verbose] > │ let v0 : (unit -> UH0) = closure10() │
00:00:12 #1355 [Verbose] > │ UH0_0(9, v0) │
00:00:12 #1356 [Verbose] > │ and closure8 () () : UH0 = │
00:00:12 #1357 [Verbose] > │ printfn $"print_and_return / x: {8}" │
00:00:12 #1358 [Verbose] > │ let v0 : (unit -> UH0) = closure9() │
00:00:12 #1359 [Verbose] > │ UH0_0(8, v0) │
00:00:12 #1360 [Verbose] > │ and closure7 () () : UH0 = │
00:00:12 #1361 [Verbose] > │ printfn $"print_and_return / x: {7}" │
00:00:12 #1362 [Verbose] > │ let v0 : (unit -> UH0) = closure8() │
00:00:12 #1363 [Verbose] > │ UH0_0(7, v0) │
00:00:12 #1364 [Verbose] > │ and closure6 () () : UH0 = │
00:00:12 #1365 [Verbose] > │ printfn $"print_and_return / x: {6}" │
00:00:12 #1366 [Verbose] > │ let v0 : (unit -> UH0) = closure7() │
00:00:12 #1367 [Verbose] > │ UH0_0(6, v0) │
00:00:12 #1368 [Verbose] > │ and closure5 () () : UH0 = │
00:00:12 #1369 [Verbose] > │ printfn $"print_and_return / x: {5}" │
00:00:12 #1370 [Verbose] > │ let v0 : (unit -> UH0) = closure6() │
00:00:12 #1371 [Verbose] > │ UH0_0(5, v0) │
00:00:12 #1372 [Verbose] > │ and closure4 () () : UH0 = │
00:00:12 #1373 [Verbose] > │ printfn $"print_and_return / x: {4}" │
00:00:12 #1374 [Verbose] > │ let v0 : (unit -> UH0) = closure5() │
00:00:12 #1375 [Verbose] > │ UH0_0(4, v0) │
00:00:12 #1376 [Verbose] > │ and closure3 () () : UH0 = │
00:00:12 #1377 [Verbose] > │ printfn $"print_and_return / x: {3}" │
00:00:12 #1378 [Verbose] > │ let v0 : (unit -> UH0) = closure4() │
00:00:12 #1379 [Verbose] > │ UH0_0(3, v0) │
00:00:12 #1380 [Verbose] > │ and closure2 () () : UH0 = │
00:00:12 #1381 [Verbose] > │ printfn $"print_and_return / x: {2}" │
00:00:12 #1382 [Verbose] > │ let v0 : (unit -> UH0) = closure3() │
00:00:12 #1383 [Verbose] > │ UH0_0(2, v0) │
00:00:12 #1384 [Verbose] > │ and closure1 () () : UH0 = │
00:00:12 #1385 [Verbose] > │ printfn $"print_and_return / x: {1}" │
00:00:12 #1386 [Verbose] > │ let v0 : (unit -> UH0) = closure2() │
00:00:12 #1387 [Verbose] > │ UH0_0(1, v0) │
00:00:12 #1388 [Verbose] > │ and closure0 () () : UH0 = │
00:00:12 #1389 [Verbose] > │ let v0 : (unit -> UH0) = closure1() │
00:00:12 #1390 [Verbose] > │ UH0_0(0, v0) │
00:00:12 #1391 [Verbose] > │ and closure11 (v0 : Mut0) () : UH0 = │
00:00:12 #1392 [Verbose] > │ let v1 : US0 = v0.l0 │
00:00:12 #1393 [Verbose] > │ match v1 with │
00:00:12 #1394 [Verbose] > │ | US0_0(v2) -> (* Computed *) │
00:00:12 #1395 [Verbose] > │ v2 │
00:00:12 #1396 [Verbose] > │ | US0_1(v3) -> (* NotComputed *) │
00:00:12 #1397 [Verbose] > │ let v4 : UH0 = v3 () │
00:00:12 #1398 [Verbose] > │ let v13 : UH0 = │
00:00:12 #1399 [Verbose] > │ match v4 with │
00:00:12 #1400 [Verbose] > │ | UH0_0(v6, v7) -> (* StreamCons *) │
00:00:12 #1401 [Verbose] > │ let v8 : US0 = US0_1(v7) │
00:00:12 #1402 [Verbose] > │ let v9 : Mut0 = {l0 = v8} : Mut0 │
00:00:12 #1403 [Verbose] > │ let v10 : (unit -> UH0) = closure11(v9) │
00:00:12 #1404 [Verbose] > │ UH0_0(v6, v10) │
00:00:12 #1405 [Verbose] > │ | UH0_1 -> (* StreamNil *) │
00:00:12 #1406 [Verbose] > │ UH0_1 │
00:00:12 #1407 [Verbose] > │ let v14 : US0 = US0_0(v13) │
00:00:12 #1408 [Verbose] > │ v0.l0 <- v14 │
00:00:12 #1409 [Verbose] > │ v13 │
00:00:12 #1410 [Verbose] > │ and method2 (v0 : int32, v1 : UH0) : US1 = │
00:00:12 #1411 [Verbose] > │ match v1 with │
00:00:12 #1412 [Verbose] > │ | UH0_0(v2, v3) -> (* StreamCons *) │
00:00:12 #1413 [Verbose] > │ let v4 : bool = v0 <= 0 │
00:00:12 #1414 [Verbose] > │ if v4 then │
00:00:12 #1415 [Verbose] > │ US1_1(v2) │
00:00:12 #1416 [Verbose] > │ else │
00:00:12 #1417 [Verbose] > │ let v6 : int32 = v0 - 1 │
00:00:12 #1418 [Verbose] > │ let v7 : UH0 = v3 () │
00:00:12 #1419 [Verbose] > │ method2(v6, v7) │
00:00:12 #1420 [Verbose] > │ | UH0_1 -> (* StreamNil *) │
00:00:12 #1421 [Verbose] > │ US1_0 │
00:00:12 #1422 [Verbose] > │ and method3 (v0 : UH1, v1 : UH1) : UH1 = │
00:00:12 #1423 [Verbose] > │ match v0 with │
00:00:12 #1424 [Verbose] > │ | UH1_0(v2, v3) -> (* Cons *) │
00:00:12 #1425 [Verbose] > │ let v4 : UH1 = UH1_0(v2, v1) │
00:00:12 #1426 [Verbose] > │ method3(v3, v4) │
00:00:12 #1427 [Verbose] > │ | UH1_1 -> (* Nil *) │
00:00:12 #1428 [Verbose] > │ v1 │
00:00:12 #1429 [Verbose] > │ and method1 (v0 : UH0, v1 : UH1, v2 : int32) : UH1 = │
00:00:12 #1430 [Verbose] > │ let v3 : US1 = method2(v2, v0) │
00:00:12 #1431 [Verbose] > │ match v3 with │
00:00:12 #1432 [Verbose] > │ | US1_1(v4) -> (* Some *) │
00:00:12 #1433 [Verbose] > │ let v5 : bool = v4 < 5 │
00:00:12 #1434 [Verbose] > │ if v5 then │
00:00:12 #1435 [Verbose] > │ let v6 : UH1 = UH1_0(v4, v1) │
00:00:12 #1436 [Verbose] > │ let v7 : int32 = v2 + 1 │
00:00:12 #1437 [Verbose] > │ method1(v0, v6, v7) │
00:00:12 #1438 [Verbose] > │ else │
00:00:12 #1439 [Verbose] > │ let v9 : UH1 = UH1_1 │
00:00:12 #1440 [Verbose] > │ method3(v1, v9) │
00:00:12 #1441 [Verbose] > │ | _ -> │
00:00:12 #1442 [Verbose] > │ let v12 : UH1 = UH1_1 │
00:00:12 #1443 [Verbose] > │ method3(v1, v12) │
00:00:12 #1444 [Verbose] > │ and method4 (v0 : UH1, v1 : int32) : int32 = │
00:00:12 #1445 [Verbose] > │ match v0 with │
00:00:12 #1446 [Verbose] > │ | UH1_0(v2, v3) -> (* Cons *) │
00:00:12 #1447 [Verbose] > │ let v4 : int32 = v1 + v2 │
00:00:12 #1448 [Verbose] > │ method4(v3, v4) │
00:00:12 #1449 [Verbose] > │ | UH1_1 -> (* Nil *) │
00:00:12 #1450 [Verbose] > │ v1 │
00:00:12 #1451 [Verbose] > │ and method5 (v0 : bool) : bool = │
00:00:12 #1452 [Verbose] > │ v0 │
00:00:12 #1453 [Verbose] > │ and method0 () : unit = │
00:00:12 #1454 [Verbose] > │ printfn $"print_and_return / x: {0}" │
00:00:12 #1455 [Verbose] > │ let v0 : (unit -> UH0) = closure0() │
00:00:12 #1456 [Verbose] > │ let v1 : US0 = US0_1(v0) │
00:00:12 #1457 [Verbose] > │ let v2 : Mut0 = {l0 = v1} : Mut0 │
00:00:12 #1458 [Verbose] > │ let v3 : US0 = v2.l0 │
00:00:12 #1459 [Verbose] > │ let v18 : UH0 = │
00:00:12 #1460 [Verbose] > │ match v3 with │
00:00:12 #1461 [Verbose] > │ | US0_0(v4) -> (* Computed *) │
00:00:12 #1462 [Verbose] > │ v4 │
00:00:12 #1463 [Verbose] > │ | US0_1(v5) -> (* NotComputed *) │
00:00:12 #1464 [Verbose] > │ let v6 : UH0 = v5 () │
00:00:12 #1465 [Verbose] > │ let v15 : UH0 = │
00:00:12 #1466 [Verbose] > │ match v6 with │
00:00:12 #1467 [Verbose] > │ | UH0_0(v8, v9) -> (* StreamCons *) │
00:00:12 #1468 [Verbose] > │ let v10 : US0 = US0_1(v9) │
00:00:12 #1469 [Verbose] > │ let v11 : Mut0 = {l0 = v10} : Mut0 │
00:00:12 #1470 [Verbose] > │ let v12 : (unit -> UH0) = closure11(v11) │
00:00:12 #1471 [Verbose] > │ UH0_0(v8, v12) │
00:00:12 #1472 [Verbose] > │ | UH0_1 -> (* StreamNil *) │
00:00:12 #1473 [Verbose] > │ UH0_1 │
00:00:12 #1474 [Verbose] > │ let v16 : US0 = US0_0(v15) │
00:00:12 #1475 [Verbose] > │ v2.l0 <- v16 │
00:00:12 #1476 [Verbose] > │ v15 │
00:00:12 #1477 [Verbose] > │ let v19 : UH1 = UH1_1 │
00:00:12 #1478 [Verbose] > │ let v20 : int32 = 0 │
00:00:12 #1479 [Verbose] > │ let v21 : UH1 = method1(v18, v19, v20) │
00:00:12 #1480 [Verbose] > │ let v22 : int32 = 0 │
00:00:12 #1481 [Verbose] > │ let v23 : int32 = method4(v21, v22) │
00:00:12 #1482 [Verbose] > │ let v24 : bool = v23 = 10 │
00:00:12 #1483 [Verbose] > │ let v26 : bool = │
00:00:12 #1484 [Verbose] > │ if v24 then │
00:00:12 #1485 [Verbose] > │ true │
00:00:12 #1486 [Verbose] > │ else │
00:00:12 #1487 [Verbose] > │ method5(v24) │
00:00:12 #1488 [Verbose] > │ let v27 : string = $"__expect / actual: %A{v23} / expected: %A{10}" │
00:00:12 #1489 [Verbose] > │ let v28 : bool = v26 = false │
00:00:12 #1490 [Verbose] > │ if v28 then │
00:00:12 #1491 [Verbose] > │ failwith<unit> v27 │
00:00:12 #1492 [Verbose] > │ method0() │
00:00:12 #1493 [Verbose] > │ │
00:00:12 #1494 [Verbose] > │ print_and_return / x: 0 │
00:00:12 #1495 [Verbose] > │ print_and_return / x: 1 │
00:00:12 #1496 [Verbose] > │ print_and_return / x: 2 │
00:00:12 #1497 [Verbose] > │ print_and_return / x: 3 │
00:00:12 #1498 [Verbose] > │ print_and_return / x: 4 │
00:00:12 #1499 [Verbose] > │ print_and_return / x: 5 │
00:00:12 #1500 [Verbose] > │ │
00:00:12 #1501 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #1502 [Verbose] >
00:00:12 #1503 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:12 #1504 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:12 #1505 [Verbose] > │ ## memoize │
00:00:12 #1506 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #1507 [Verbose] >
00:00:12 #1508 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 #1509 [Verbose] > inl memoize seq =
00:00:12 #1510 [Verbose] > inl state = mut [[]]
00:00:12 #1511 [Verbose] > fun n =>
00:00:12 #1512 [Verbose] > match *state |> listm'.try_find (fun (n', _) => n' = n) with
00:00:12 #1513 [Verbose] > | Some (_, v) => v
00:00:12 #1514 [Verbose] > | None =>
00:00:12 #1515 [Verbose] > inl new_state = seq n
00:00:12 #1516 [Verbose] > state <- (n, new_state) :: *state
00:00:12 #1517 [Verbose] > new_state
00:00:12 #1518 [Verbose] >
00:00:12 #1519 [Verbose] > inl memoize_ seq =
00:00:12 #1520 [Verbose] > inl state = mut [[]]
00:00:12 #1521 [Verbose] > fun n =>
00:00:12 #1522 [Verbose] > match *state |> listm'.try_find_ (fun (n', _) => n' = n) with
00:00:12 #1523 [Verbose] > | Some (_, v) => v
00:00:12 #1524 [Verbose] > | None =>
00:00:12 #1525 [Verbose] > inl new_state = seq n
00:00:12 #1526 [Verbose] > state <- (n, new_state) :: *state
00:00:12 #1527 [Verbose] > new_state
00:00:12 #1528 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-1380-8015-857f96c67e8d/main.spi
00:00:13 #1529 [Verbose] >
00:00:13 #1530 [Verbose] > ╭─[ 145.37ms - stdout ]────────────────────────────────────────────────────────╮
00:00:13 #1531 [Verbose] > │ () │
00:00:13 #1532 [Verbose] > │ │
00:00:13 #1533 [Verbose] > │ │
00:00:13 #1534 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #1535 [Verbose] >
00:00:13 #1536 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:13 #1537 [Verbose] > // // test
00:00:13 #1538 [Verbose] >
00:00:13 #1539 [Verbose] > inl seq =
00:00:13 #1540 [Verbose] > fun n =>
00:00:13 #1541 [Verbose] > n |> print_and_return |> Some
00:00:13 #1542 [Verbose] > |> memoize_
00:00:13 #1543 [Verbose] >
00:00:13 #1544 [Verbose] > seq
00:00:13 #1545 [Verbose] > |> take_while_ (fun n (_ : i32) => n < 5)
00:00:13 #1546 [Verbose] > |> listm'.sum
00:00:13 #1547 [Verbose] > |> _assert_eq 10
00:00:13 #1548 [Verbose] >
00:00:13 #1549 [Verbose] > seq
00:00:13 #1550 [Verbose] > |> take_while_ (fun n _ => n < 5)
00:00:13 #1551 [Verbose] > |> listm'.sum
00:00:13 #1552 [Verbose] > |> _assert_eq 10
00:00:13 #1553 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-1394-9475-994965947df6/main.spi
00:00:13 #1554 [Verbose] >
00:00:13 #1555 [Verbose] > ╭─[ 301.08ms - stdout ]────────────────────────────────────────────────────────╮
00:00:13 #1556 [Verbose] > │ type [<Struct>] US0 = │
00:00:13 #1557 [Verbose] > │ | US0_0 │
00:00:13 #1558 [Verbose] > │ | US0_1 of f1_0 : int32 │
00:00:13 #1559 [Verbose] > │ and UH0 = │
00:00:13 #1560 [Verbose] > │ | UH0_0 of int32 * US0 * UH0 │
00:00:13 #1561 [Verbose] > │ | UH0_1 │
00:00:13 #1562 [Verbose] > │ and Mut0 = {mutable l0 : UH0} │
00:00:13 #1563 [Verbose] > │ and UH1 = │
00:00:13 #1564 [Verbose] > │ | UH1_0 of int32 * UH1 │
00:00:13 #1565 [Verbose] > │ | UH1_1 │
00:00:13 #1566 [Verbose] > │ and [<Struct>] US1 = │
00:00:13 #1567 [Verbose] > │ | US1_0 │
00:00:13 #1568 [Verbose] > │ | US1_1 of f1_0 : int32 * f1_1 : US0 │
00:00:13 #1569 [Verbose] > │ let rec method2 (v0 : int32, v1 : UH0) : US1 = │
00:00:13 #1570 [Verbose] > │ match v1 with │
00:00:13 #1571 [Verbose] > │ | UH0_0(v3, v4, v5) -> (* Cons *) │
00:00:13 #1572 [Verbose] > │ let v6 : bool = v3 = v0 │
00:00:13 #1573 [Verbose] > │ if v6 then │
00:00:13 #1574 [Verbose] > │ US1_1(v3, v4) │
00:00:13 #1575 [Verbose] > │ else │
00:00:13 #1576 [Verbose] > │ method2(v0, v5) │
00:00:13 #1577 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:13 #1578 [Verbose] > │ US1_0 │
00:00:13 #1579 [Verbose] > │ and method3 (v0 : UH1, v1 : UH1) : UH1 = │
00:00:13 #1580 [Verbose] > │ match v0 with │
00:00:13 #1581 [Verbose] > │ | UH1_0(v2, v3) -> (* Cons *) │
00:00:13 #1582 [Verbose] > │ let v4 : UH1 = UH1_0(v2, v1) │
00:00:13 #1583 [Verbose] > │ method3(v3, v4) │
00:00:13 #1584 [Verbose] > │ | UH1_1 -> (* Nil *) │
00:00:13 #1585 [Verbose] > │ v1 │
00:00:13 #1586 [Verbose] > │ and method1 (v0 : Mut0, v1 : UH1, v2 : int32) : UH1 = │
00:00:13 #1587 [Verbose] > │ let v3 : UH0 = v0.l0 │
00:00:13 #1588 [Verbose] > │ let v4 : US1 = method2(v2, v3) │
00:00:13 #1589 [Verbose] > │ let v12 : US0 = │
00:00:13 #1590 [Verbose] > │ match v4 with │
00:00:13 #1591 [Verbose] > │ | US1_0 -> (* None *) │
00:00:13 #1592 [Verbose] > │ printfn $"print_and_return / x: {v2}" │
00:00:13 #1593 [Verbose] > │ let v7 : UH0 = v0.l0 │
00:00:13 #1594 [Verbose] > │ let v8 : US0 = US0_1(v2) │
00:00:13 #1595 [Verbose] > │ let v9 : UH0 = UH0_0(v2, v8, v7) │
00:00:13 #1596 [Verbose] > │ v0.l0 <- v9 │
00:00:13 #1597 [Verbose] > │ US0_1(v2) │
00:00:13 #1598 [Verbose] > │ | US1_1(v5, v6) -> (* Some *) │
00:00:13 #1599 [Verbose] > │ v6 │
00:00:13 #1600 [Verbose] > │ match v12 with │
00:00:13 #1601 [Verbose] > │ | US0_1(v13) -> (* Some *) │
00:00:13 #1602 [Verbose] > │ let v14 : bool = v13 < 5 │
00:00:13 #1603 [Verbose] > │ if v14 then │
00:00:13 #1604 [Verbose] > │ let v15 : UH1 = UH1_0(v13, v1) │
00:00:13 #1605 [Verbose] > │ let v16 : int32 = v2 + 1 │
00:00:13 #1606 [Verbose] > │ method1(v0, v15, v16) │
00:00:13 #1607 [Verbose] > │ else │
00:00:13 #1608 [Verbose] > │ let v18 : UH1 = UH1_1 │
00:00:13 #1609 [Verbose] > │ method3(v1, v18) │
00:00:13 #1610 [Verbose] > │ | _ -> │
00:00:13 #1611 [Verbose] > │ let v21 : UH1 = UH1_1 │
00:00:13 #1612 [Verbose] > │ method3(v1, v21) │
00:00:13 #1613 [Verbose] > │ and method4 (v0 : UH1, v1 : int32) : int32 = │
00:00:13 #1614 [Verbose] > │ match v0 with │
00:00:13 #1615 [Verbose] > │ | UH1_0(v2, v3) -> (* Cons *) │
00:00:13 #1616 [Verbose] > │ let v4 : int32 = v1 + v2 │
00:00:13 #1617 [Verbose] > │ method4(v3, v4) │
00:00:13 #1618 [Verbose] > │ | UH1_1 -> (* Nil *) │
00:00:13 #1619 [Verbose] > │ v1 │
00:00:13 #1620 [Verbose] > │ and method5 (v0 : bool) : bool = │
00:00:13 #1621 [Verbose] > │ v0 │
00:00:13 #1622 [Verbose] > │ and method6 (v0 : Mut0, v1 : UH1, v2 : int32) : UH1 = │
00:00:13 #1623 [Verbose] > │ let v3 : UH0 = v0.l0 │
00:00:13 #1624 [Verbose] > │ let v4 : US1 = method2(v2, v3) │
00:00:13 #1625 [Verbose] > │ let v12 : US0 = │
00:00:13 #1626 [Verbose] > │ match v4 with │
00:00:13 #1627 [Verbose] > │ | US1_0 -> (* None *) │
00:00:13 #1628 [Verbose] > │ printfn $"print_and_return / x: {v2}" │
00:00:13 #1629 [Verbose] > │ let v7 : UH0 = v0.l0 │
00:00:13 #1630 [Verbose] > │ let v8 : US0 = US0_1(v2) │
00:00:13 #1631 [Verbose] > │ let v9 : UH0 = UH0_0(v2, v8, v7) │
00:00:13 #1632 [Verbose] > │ v0.l0 <- v9 │
00:00:13 #1633 [Verbose] > │ US0_1(v2) │
00:00:13 #1634 [Verbose] > │ | US1_1(v5, v6) -> (* Some *) │
00:00:13 #1635 [Verbose] > │ v6 │
00:00:13 #1636 [Verbose] > │ match v12 with │
00:00:13 #1637 [Verbose] > │ | US0_1(v13) -> (* Some *) │
00:00:13 #1638 [Verbose] > │ let v14 : bool = v13 < 5 │
00:00:13 #1639 [Verbose] > │ if v14 then │
00:00:13 #1640 [Verbose] > │ let v15 : UH1 = UH1_0(v13, v1) │
00:00:13 #1641 [Verbose] > │ let v16 : int32 = v2 + 1 │
00:00:13 #1642 [Verbose] > │ method6(v0, v15, v16) │
00:00:13 #1643 [Verbose] > │ else │
00:00:13 #1644 [Verbose] > │ let v18 : UH1 = UH1_1 │
00:00:13 #1645 [Verbose] > │ method3(v1, v18) │
00:00:13 #1646 [Verbose] > │ | _ -> │
00:00:13 #1647 [Verbose] > │ let v21 : UH1 = UH1_1 │
00:00:13 #1648 [Verbose] > │ method3(v1, v21) │
00:00:13 #1649 [Verbose] > │ and method0 () : unit = │
00:00:13 #1650 [Verbose] > │ let v0 : UH0 = UH0_1 │
00:00:13 #1651 [Verbose] > │ let v1 : Mut0 = {l0 = v0} : Mut0 │
00:00:13 #1652 [Verbose] > │ let v2 : UH1 = UH1_1 │
00:00:13 #1653 [Verbose] > │ let v3 : int32 = 0 │
00:00:13 #1654 [Verbose] > │ let v4 : UH1 = method1(v1, v2, v3) │
00:00:13 #1655 [Verbose] > │ let v5 : int32 = 0 │
00:00:13 #1656 [Verbose] > │ let v6 : int32 = method4(v4, v5) │
00:00:13 #1657 [Verbose] > │ let v7 : bool = v6 = 10 │
00:00:13 #1658 [Verbose] > │ let v9 : bool = │
00:00:13 #1659 [Verbose] > │ if v7 then │
00:00:13 #1660 [Verbose] > │ true │
00:00:13 #1661 [Verbose] > │ else │
00:00:13 #1662 [Verbose] > │ method5(v7) │
00:00:13 #1663 [Verbose] > │ let v10 : string = $"__expect / actual: %A{v6} / expected: %A{10}" │
00:00:13 #1664 [Verbose] > │ let v11 : bool = v9 = false │
00:00:13 #1665 [Verbose] > │ if v11 then │
00:00:13 #1666 [Verbose] > │ failwith<unit> v10 │
00:00:13 #1667 [Verbose] > │ let v12 : UH1 = UH1_1 │
00:00:13 #1668 [Verbose] > │ let v13 : int32 = 0 │
00:00:13 #1669 [Verbose] > │ let v14 : UH1 = method6(v1, v12, v13) │
00:00:13 #1670 [Verbose] > │ let v15 : int32 = 0 │
00:00:13 #1671 [Verbose] > │ let v16 : int32 = method4(v14, v15) │
00:00:13 #1672 [Verbose] > │ let v17 : bool = v16 = 10 │
00:00:13 #1673 [Verbose] > │ let v19 : bool = │
00:00:13 #1674 [Verbose] > │ if v17 then │
00:00:13 #1675 [Verbose] > │ true │
00:00:13 #1676 [Verbose] > │ else │
00:00:13 #1677 [Verbose] > │ method5(v17) │
00:00:13 #1678 [Verbose] > │ let v20 : string = $"__expect / actual: %A{v16} / expected: %A{10}" │
00:00:13 #1679 [Verbose] > │ let v21 : bool = v19 = false │
00:00:13 #1680 [Verbose] > │ if v21 then │
00:00:13 #1681 [Verbose] > │ failwith<unit> v20 │
00:00:13 #1682 [Verbose] > │ method0() │
00:00:13 #1683 [Verbose] > │ │
00:00:13 #1684 [Verbose] > │ print_and_return / x: 0 │
00:00:13 #1685 [Verbose] > │ print_and_return / x: 1 │
00:00:13 #1686 [Verbose] > │ print_and_return / x: 2 │
00:00:13 #1687 [Verbose] > │ print_and_return / x: 3 │
00:00:13 #1688 [Verbose] > │ print_and_return / x: 4 │
00:00:13 #1689 [Verbose] > │ print_and_return / x: 5 │
00:00:13 #1690 [Verbose] > │ │
00:00:13 #1691 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #1692 [Verbose] >
00:00:13 #1693 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:13 #1694 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:13 #1695 [Verbose] > │ ## iterate │
00:00:13 #1696 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #1697 [Verbose] >
00:00:13 #1698 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:13 #1699 [Verbose] > inl iterate f x0 num_steps =
00:00:13 #1700 [Verbose] > inl rec loop x n =
00:00:13 #1701 [Verbose] > if n <= 0
00:00:13 #1702 [Verbose] > then x
00:00:13 #1703 [Verbose] > else loop (f x) (n - 1)
00:00:13 #1704 [Verbose] > loop x0 num_steps
00:00:13 #1705 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-1426-2633-27c5efc0035a/main.spi
00:00:13 #1706 [Verbose] >
00:00:13 #1707 [Verbose] > ╭─[ 142.52ms - stdout ]────────────────────────────────────────────────────────╮
00:00:13 #1708 [Verbose] > │ () │
00:00:13 #1709 [Verbose] > │ │
00:00:13 #1710 [Verbose] > │ │
00:00:13 #1711 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #1712 [Verbose] >
00:00:13 #1713 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:13 #1714 [Verbose] > // // test
00:00:13 #1715 [Verbose] >
00:00:13 #1716 [Verbose] > 10i32 |> iterate ((*) 2) 1i32
00:00:13 #1717 [Verbose] > |> _assert_eq 1024
00:00:13 #1718 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-1440-4026-4ada415a1356/main.spi
00:00:13 #1719 [Verbose] >
00:00:13 #1720 [Verbose] > ╭─[ 142.46ms - stdout ]────────────────────────────────────────────────────────╮
00:00:13 #1721 [Verbose] > │ let rec method0 () : unit = │
00:00:13 #1722 [Verbose] > │ let v0 : string = $"__expect / actual: %A{1024} / expected: %A{1024}" │
00:00:13 #1723 [Verbose] > │ () │
00:00:13 #1724 [Verbose] > │ method0() │
00:00:13 #1725 [Verbose] > │ │
00:00:13 #1726 [Verbose] > │ │
00:00:13 #1727 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #1728 [Verbose] >
00:00:13 #1729 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:13 #1730 [Verbose] > inl iterate_ f x0 num_steps =
00:00:13 #1731 [Verbose] > let rec loop x n =
00:00:13 #1732 [Verbose] > if n <= 0
00:00:13 #1733 [Verbose] > then x
00:00:13 #1734 [Verbose] > else loop (f x) (n - 1)
00:00:13 #1735 [Verbose] > loop x0 num_steps
00:00:13 #1736 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-1454-5461-59ea3e81bbc4/main.spi
00:00:13 #1737 [Verbose] >
00:00:13 #1738 [Verbose] > ╭─[ 149.08ms - stdout ]────────────────────────────────────────────────────────╮
00:00:13 #1739 [Verbose] > │ () │
00:00:13 #1740 [Verbose] > │ │
00:00:13 #1741 [Verbose] > │ │
00:00:13 #1742 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #1743 [Verbose] >
00:00:13 #1744 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:13 #1745 [Verbose] > // // test
00:00:13 #1746 [Verbose] >
00:00:13 #1747 [Verbose] > 10i32 |> iterate_ ((*) 2) 1i32
00:00:13 #1748 [Verbose] > |> _assert_eq 1024
00:00:13 #1749 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-1469-6948-6f5bc53b3a31/main.spi
00:00:13 #1750 [Verbose] >
00:00:13 #1751 [Verbose] > ╭─[ 144.90ms - stdout ]────────────────────────────────────────────────────────╮
00:00:13 #1752 [Verbose] > │ let rec method1 (v0 : int32, v1 : int32) : int32 = │
00:00:13 #1753 [Verbose] > │ let v2 : bool = v1 <= 0 │
00:00:13 #1754 [Verbose] > │ if v2 then │
00:00:13 #1755 [Verbose] > │ v0 │
00:00:13 #1756 [Verbose] > │ else │
00:00:13 #1757 [Verbose] > │ let v3 : int32 = 2 * v0 │
00:00:13 #1758 [Verbose] > │ let v4 : int32 = v1 - 1 │
00:00:13 #1759 [Verbose] > │ method1(v3, v4) │
00:00:13 #1760 [Verbose] > │ and method2 (v0 : bool) : bool = │
00:00:13 #1761 [Verbose] > │ v0 │
00:00:13 #1762 [Verbose] > │ and method0 () : unit = │
00:00:13 #1763 [Verbose] > │ let v0 : int32 = 1 │
00:00:13 #1764 [Verbose] > │ let v1 : int32 = 10 │
00:00:13 #1765 [Verbose] > │ let v2 : int32 = method1(v0, v1) │
00:00:13 #1766 [Verbose] > │ let v3 : bool = v2 = 1024 │
00:00:13 #1767 [Verbose] > │ let v5 : bool = │
00:00:13 #1768 [Verbose] > │ if v3 then │
00:00:13 #1769 [Verbose] > │ true │
00:00:13 #1770 [Verbose] > │ else │
00:00:13 #1771 [Verbose] > │ method2(v3) │
00:00:13 #1772 [Verbose] > │ let v6 : string = $"__expect / actual: %A{v2} / expected: %A{1024}" │
00:00:13 #1773 [Verbose] > │ let v7 : bool = v5 = false │
00:00:13 #1774 [Verbose] > │ if v7 then │
00:00:13 #1775 [Verbose] > │ failwith<unit> v6 │
00:00:13 #1776 [Verbose] > │ method0() │
00:00:13 #1777 [Verbose] > │ │
00:00:13 #1778 [Verbose] > │ │
00:00:13 #1779 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #1780 [Verbose] >
00:00:13 #1781 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:13 #1782 [Verbose] > inl iterate' f x0 num_steps =
00:00:13 #1783 [Verbose] > listm.init num_steps id
00:00:13 #1784 [Verbose] > |> listm.fold (fun x _ => f x) x0
00:00:14 #1785 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-1484-8415-8e211c22b4bf/main.spi
00:00:14 #1786 [Verbose] >
00:00:14 #1787 [Verbose] > ╭─[ 146.08ms - stdout ]────────────────────────────────────────────────────────╮
00:00:14 #1788 [Verbose] > │ () │
00:00:14 #1789 [Verbose] > │ │
00:00:14 #1790 [Verbose] > │ │
00:00:14 #1791 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #1792 [Verbose] >
00:00:14 #1793 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:14 #1794 [Verbose] > // // test
00:00:14 #1795 [Verbose] >
00:00:14 #1796 [Verbose] > 10i32 |> iterate' ((*) 2) 1i32
00:00:14 #1797 [Verbose] > |> _assert_eq 1024
00:00:14 #1798 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-1498-9881-9bc99c9031af/main.spi
00:00:14 #1799 [Verbose] >
00:00:14 #1800 [Verbose] > ╭─[ 137.91ms - stdout ]────────────────────────────────────────────────────────╮
00:00:14 #1801 [Verbose] > │ let rec method0 () : unit = │
00:00:14 #1802 [Verbose] > │ let v0 : string = $"__expect / actual: %A{1024} / expected: %A{1024}" │
00:00:14 #1803 [Verbose] > │ () │
00:00:14 #1804 [Verbose] > │ method0() │
00:00:14 #1805 [Verbose] > │ │
00:00:14 #1806 [Verbose] > │ │
00:00:14 #1807 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #1808 [Verbose] >
00:00:14 #1809 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:14 #1810 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:14 #1811 [Verbose] > │ ## find_last │
00:00:14 #1812 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #1813 [Verbose] >
00:00:14 #1814 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:14 #1815 [Verbose] > inl find_last forall item result. fold_fn fn target : option result =
00:00:14 #1816 [Verbose] > fold_fn (fun (item : item) (result : option result) =>
00:00:14 #1817 [Verbose] > match result with
00:00:14 #1818 [Verbose] > | None => fn item
00:00:14 #1819 [Verbose] > | result => result
00:00:14 #1820 [Verbose] > ) target (None : option result)
00:00:14 #1821 [Verbose] >
00:00:14 #1822 [Verbose] > inl array_find_last forall item result. (fn : item -> option result) (target : a
00:00:14 #1823 [Verbose] > i32 item) : option result =
00:00:14 #1824 [Verbose] > find_last am.foldBack fn target
00:00:14 #1825 [Verbose] >
00:00:14 #1826 [Verbose] > inl list_find_last forall item result. (fn : item -> option result) (target :
00:00:14 #1827 [Verbose] > list item) : option result =
00:00:14 #1828 [Verbose] > find_last listm.foldBack fn target
00:00:14 #1829 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-1512-1272-1c19866ea31c/main.spi
00:00:14 #1830 [Verbose] >
00:00:14 #1831 [Verbose] > ╭─[ 148.19ms - stdout ]────────────────────────────────────────────────────────╮
00:00:14 #1832 [Verbose] > │ () │
00:00:14 #1833 [Verbose] > │ │
00:00:14 #1834 [Verbose] > │ │
00:00:14 #1835 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #1836 [Verbose] > [NbConvertApp] Converting notebook seq.dib.ipynb to html
00:00:15 #1837 [Verbose] > /opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/nbformat/__init__.py:96: MissingIDFieldWarning: Cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:00:15 #1838 [Verbose] > validate(nb)
00:00:15 #1839 [Verbose] > /opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/nbconvert/filters/highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:00:15 #1840 [Verbose] > return _pygments_highlight(
00:00:15 #1841 [Verbose] > [NbConvertApp] Writing 392661 bytes to seq.dib.html
00:00:16 #1842 [Debug] executeAsync / exitCode: 0 / output.Length: 152333
00:00:16 #1843 [Debug] main / executeCommand / exitCode: 0
00:00:00 #1 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #2 [Debug] executeAsync / options: { Command =
"dotnet "/home/runner/work/polyglot/polyglot/deps/The-Spiral-Language/The Spiral Language 2/artifacts/bin/The Spiral Language 2/release/Spiral.dll" --port 13805 --default-int i32 --default-float f64"
WorkingDirectory = None
CancellationToken = Some System.Threading.CancellationToken
OnLine = Some <fun:main@464-1020> }
00:00:00 #3 [Verbose] > pwd: /home/runner/work/polyglot/polyglot/lib/spiral
00:00:00 #4 [Verbose] > dll_path: /home/runner/work/polyglot/polyglot/deps/The-Spiral-Language/The Spiral Language 2/artifacts/bin/The Spiral Language 2/release
00:00:00 #5 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #6 [Verbose] waitForPortAccess / port: 13805 / retry: 0
00:00:00 #7 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #8 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #9 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #10 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #11 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #12 [Verbose] > Starting the Spiral Server. It is bound to: http://localhost:13805
00:00:00 #13 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #14 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #15 [Debug] sendJson / port: 13805 / json: {"Ping":true} / result.Length:
00:00:00 #16 [Verbose] awaitCompiler / Ping / result: Some(null) / port: 13805 / retry: 0
00:00:00 #17 [Verbose] > Server bound to: http://localhost:13805
00:00:00 #18 [Debug] executeAsync / options: { Command = "pwsh -c "../../scripts/invoke-dib.ps1 util.dib""
WorkingDirectory = None
CancellationToken = Some System.Threading.CancellationToken
OnLine = None }
00:00:02 #19 [Verbose] >
00:00:02 #20 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:02 #21 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:02 #22 [Verbose] > │ # util │
00:00:02 #23 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:02 #24 [Verbose] >
00:00:02 #25 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:02 #26 [Verbose] > // // test
00:00:02 #27 [Verbose] >
00:00:02 #28 [Verbose] > open testing
00:00:04 #29 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-2111-1143-13aed3349b7d/main.spi
00:00:05 #30 [Verbose] >
00:00:05 #31 [Verbose] > ╭─[ 3.58s - stdout ]───────────────────────────────────────────────────────────╮
00:00:05 #32 [Verbose] > │ () │
00:00:05 #33 [Verbose] > │ │
00:00:05 #34 [Verbose] > │ │
00:00:05 #35 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:05 #36 [Verbose] >
00:00:05 #37 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:05 #38 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:05 #39 [Verbose] > │ ## ski │
00:00:05 #40 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:05 #41 [Verbose] >
00:00:05 #42 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:05 #43 [Verbose] > union rec ski =
00:00:05 #44 [Verbose] > | I
00:00:05 #45 [Verbose] > | K
00:00:05 #46 [Verbose] > | S
00:00:05 #47 [Verbose] > | App : ski * ski
00:00:05 #48 [Verbose] >
00:00:05 #49 [Verbose] > inl rec eval ski =
00:00:05 #50 [Verbose] > match ski with
00:00:05 #51 [Verbose] > | App (App (K, x), y) => eval x
00:00:05 #52 [Verbose] > | App (App (App (S, x), y), z) => eval (App (App (x, z), App (y, z)))
00:00:05 #53 [Verbose] > | App (I, x) => eval x
00:00:05 #54 [Verbose] > | App (K, x) => App (K, eval x)
00:00:06 #55 [Verbose] > | App (f, x) => eval (App (eval f, x))
00:00:06 #56 [Verbose] > | _ => ski
00:00:06 #57 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-2364-6433-60789131d455/main.spi
00:00:06 #58 [Verbose] >
00:00:06 #59 [Verbose] > ╭─[ 243.84ms - stdout ]────────────────────────────────────────────────────────╮
00:00:06 #60 [Verbose] > │ () │
00:00:06 #61 [Verbose] > │ │
00:00:06 #62 [Verbose] > │ │
00:00:06 #63 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:06 #64 [Verbose] >
00:00:06 #65 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:06 #66 [Verbose] > // // test
00:00:06 #67 [Verbose] >
00:00:06 #68 [Verbose] > eval I
00:00:06 #69 [Verbose] > |> _assert_eq I
00:00:06 #70 [Verbose] >
00:00:06 #71 [Verbose] > eval (App (I, I))
00:00:06 #72 [Verbose] > |> _assert_eq I
00:00:06 #73 [Verbose] >
00:00:06 #74 [Verbose] > eval (App (I, App (I, I)))
00:00:06 #75 [Verbose] > |> _assert_eq I
00:00:06 #76 [Verbose] >
00:00:06 #77 [Verbose] > eval (App (App (I, I), I))
00:00:06 #78 [Verbose] > |> _assert_eq I
00:00:06 #79 [Verbose] >
00:00:06 #80 [Verbose] > eval (App (App (App (I, I), I), I))
00:00:06 #81 [Verbose] > |> _assert_eq I
00:00:06 #82 [Verbose] >
00:00:06 #83 [Verbose] > eval K
00:00:06 #84 [Verbose] > |> _assert_eq K
00:00:06 #85 [Verbose] >
00:00:06 #86 [Verbose] > eval (App (K, I))
00:00:06 #87 [Verbose] > |> _assert_eq (App (K, I))
00:00:06 #88 [Verbose] >
00:00:06 #89 [Verbose] > eval (App (K, K))
00:00:06 #90 [Verbose] > |> _assert_eq (App (K, K))
00:00:06 #91 [Verbose] >
00:00:06 #92 [Verbose] > eval (App (App (K, I), K))
00:00:06 #93 [Verbose] > |> _assert_eq I
00:00:06 #94 [Verbose] >
00:00:06 #95 [Verbose] > eval (App (App (K, K), I))
00:00:06 #96 [Verbose] > |> _assert_eq K
00:00:06 #97 [Verbose] >
00:00:06 #98 [Verbose] > eval (App (App (App (App (K, K), I), S), K))
00:00:06 #99 [Verbose] > |> _assert_eq S
00:00:06 #100 [Verbose] >
00:00:06 #101 [Verbose] > eval S
00:00:06 #102 [Verbose] > |> _assert_eq S
00:00:06 #103 [Verbose] >
00:00:06 #104 [Verbose] > eval (App (App (App (S, I), I), I))
00:00:06 #105 [Verbose] > |> _assert_eq I
00:00:06 #106 [Verbose] >
00:00:06 #107 [Verbose] > eval (App (App (App (S, K), K), I))
00:00:06 #108 [Verbose] > |> _assert_eq I
00:00:06 #109 [Verbose] >
00:00:06 #110 [Verbose] > eval (App (App (App (S, K), I), (App (App (K, I), S))))
00:00:06 #111 [Verbose] > |> _assert_eq I
00:00:06 #112 [Verbose] >
00:00:06 #113 [Verbose] > eval (App (App (K, S), App (I, App (App (App (S, K), S), I))))
00:00:06 #114 [Verbose] > |> _assert_eq S
00:00:06 #115 [Verbose] >
00:00:06 #116 [Verbose] > eval (App (App (App (S, K), I), K))
00:00:06 #117 [Verbose] > |> _assert_eq K
00:00:06 #118 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-2388-8839-896cce0c0cf2/main.spi
00:00:07 #119 [Verbose] >
00:00:07 #120 [Verbose] > ╭─[ 1.15s - stdout ]───────────────────────────────────────────────────────────╮
00:00:07 #121 [Verbose] > │ type UH0 = │
00:00:07 #122 [Verbose] > │ | UH0_0 of UH0 * UH0 │
00:00:07 #123 [Verbose] > │ | UH0_1 │
00:00:07 #124 [Verbose] > │ | UH0_2 │
00:00:07 #125 [Verbose] > │ | UH0_3 │
00:00:07 #126 [Verbose] > │ let rec method0 () : unit = │
00:00:07 #127 [Verbose] > │ let v3 : UH0 = UH0_1 │
00:00:07 #128 [Verbose] > │ let v4 : UH0 = UH0_1 │
00:00:07 #129 [Verbose] > │ let v5 : string = $"__expect / actual: %A{v3} / expected: %A{v4}" │
00:00:07 #130 [Verbose] > │ let v9 : UH0 = UH0_1 │
00:00:07 #131 [Verbose] > │ let v10 : UH0 = UH0_1 │
00:00:07 #132 [Verbose] > │ let v11 : string = $"__expect / actual: %A{v9} / expected: %A{v10}" │
00:00:07 #133 [Verbose] > │ let v15 : UH0 = UH0_1 │
00:00:07 #134 [Verbose] > │ let v16 : UH0 = UH0_1 │
00:00:07 #135 [Verbose] > │ let v17 : string = $"__expect / actual: %A{v15} / expected: %A{v16}" │
00:00:07 #136 [Verbose] > │ let v21 : UH0 = UH0_1 │
00:00:07 #137 [Verbose] > │ let v22 : UH0 = UH0_1 │
00:00:07 #138 [Verbose] > │ let v23 : string = $"__expect / actual: %A{v21} / expected: %A{v22}" │
00:00:07 #139 [Verbose] > │ let v27 : UH0 = UH0_1 │
00:00:07 #140 [Verbose] > │ let v28 : UH0 = UH0_1 │
00:00:07 #141 [Verbose] > │ let v29 : string = $"__expect / actual: %A{v27} / expected: %A{v28}" │
00:00:07 #142 [Verbose] > │ let v33 : UH0 = UH0_2 │
00:00:07 #143 [Verbose] > │ let v34 : UH0 = UH0_2 │
00:00:07 #144 [Verbose] > │ let v35 : string = $"__expect / actual: %A{v33} / expected: %A{v34}" │
00:00:07 #145 [Verbose] > │ let v47 : UH0 = UH0_2 │
00:00:07 #146 [Verbose] > │ let v48 : UH0 = UH0_1 │
00:00:07 #147 [Verbose] > │ let v49 : UH0 = UH0_0(v47, v48) │
00:00:07 #148 [Verbose] > │ let v50 : UH0 = UH0_2 │
00:00:07 #149 [Verbose] > │ let v51 : UH0 = UH0_1 │
00:00:07 #150 [Verbose] > │ let v52 : UH0 = UH0_0(v50, v51) │
00:00:07 #151 [Verbose] > │ let v53 : string = $"__expect / actual: %A{v49} / expected: %A{v52}" │
00:00:07 #152 [Verbose] > │ let v65 : UH0 = UH0_2 │
00:00:07 #153 [Verbose] > │ let v66 : UH0 = UH0_2 │
00:00:07 #154 [Verbose] > │ let v67 : UH0 = UH0_0(v65, v66) │
00:00:07 #155 [Verbose] > │ let v68 : UH0 = UH0_2 │
00:00:07 #156 [Verbose] > │ let v69 : UH0 = UH0_2 │
00:00:07 #157 [Verbose] > │ let v70 : UH0 = UH0_0(v68, v69) │
00:00:07 #158 [Verbose] > │ let v71 : string = $"__expect / actual: %A{v67} / expected: %A{v70}" │
00:00:07 #159 [Verbose] > │ let v75 : UH0 = UH0_1 │
00:00:07 #160 [Verbose] > │ let v76 : UH0 = UH0_1 │
00:00:07 #161 [Verbose] > │ let v77 : string = $"__expect / actual: %A{v75} / expected: %A{v76}" │
00:00:07 #162 [Verbose] > │ let v81 : UH0 = UH0_2 │
00:00:07 #163 [Verbose] > │ let v82 : UH0 = UH0_2 │
00:00:07 #164 [Verbose] > │ let v83 : string = $"__expect / actual: %A{v81} / expected: %A{v82}" │
00:00:07 #165 [Verbose] > │ let v87 : UH0 = UH0_3 │
00:00:07 #166 [Verbose] > │ let v88 : UH0 = UH0_3 │
00:00:07 #167 [Verbose] > │ let v89 : string = $"__expect / actual: %A{v87} / expected: %A{v88}" │
00:00:07 #168 [Verbose] > │ let v93 : UH0 = UH0_3 │
00:00:07 #169 [Verbose] > │ let v94 : UH0 = UH0_3 │
00:00:07 #170 [Verbose] > │ let v95 : string = $"__expect / actual: %A{v93} / expected: %A{v94}" │
00:00:07 #171 [Verbose] > │ let v99 : UH0 = UH0_1 │
00:00:07 #172 [Verbose] > │ let v100 : UH0 = UH0_1 │
00:00:07 #173 [Verbose] > │ let v101 : string = $"__expect / actual: %A{v99} / expected: %A{v100}" │
00:00:07 #174 [Verbose] > │ let v105 : UH0 = UH0_1 │
00:00:07 #175 [Verbose] > │ let v106 : UH0 = UH0_1 │
00:00:07 #176 [Verbose] > │ let v107 : string = $"__expect / actual: %A{v105} / expected: %A{v106}" │
00:00:07 #177 [Verbose] > │ let v111 : UH0 = UH0_1 │
00:00:07 #178 [Verbose] > │ let v112 : UH0 = UH0_1 │
00:00:07 #179 [Verbose] > │ let v113 : string = $"__expect / actual: %A{v111} / expected: %A{v112}" │
00:00:07 #180 [Verbose] > │ let v117 : UH0 = UH0_3 │
00:00:07 #181 [Verbose] > │ let v118 : UH0 = UH0_3 │
00:00:07 #182 [Verbose] > │ let v119 : string = $"__expect / actual: %A{v117} / expected: %A{v118}" │
00:00:07 #183 [Verbose] > │ let v123 : UH0 = UH0_2 │
00:00:07 #184 [Verbose] > │ let v124 : UH0 = UH0_2 │
00:00:07 #185 [Verbose] > │ let v125 : string = $"__expect / actual: %A{v123} / expected: %A{v124}" │
00:00:07 #186 [Verbose] > │ () │
00:00:07 #187 [Verbose] > │ method0() │
00:00:07 #188 [Verbose] > │ │
00:00:07 #189 [Verbose] > │ │
00:00:07 #190 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #191 [Verbose] > [NbConvertApp] Converting notebook util.dib.ipynb to html
00:00:08 #192 [Verbose] > /opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/nbformat/__init__.py:96: MissingIDFieldWarning: Cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:00:08 #193 [Verbose] > validate(nb)
00:00:08 #194 [Verbose] > /opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/nbconvert/filters/highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:00:08 #195 [Verbose] > return _pygments_highlight(
00:00:08 #196 [Verbose] > [NbConvertApp] Writing 286661 bytes to util.dib.html
00:00:08 #197 [Debug] executeAsync / exitCode: 0 / output.Length: 11605
00:00:08 #198 [Debug] main / executeCommand / exitCode: 0
00:00:00 #1 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #2 [Debug] executeAsync / options: { Command =
"dotnet "/home/runner/work/polyglot/polyglot/deps/The-Spiral-Language/The Spiral Language 2/artifacts/bin/The Spiral Language 2/release/Spiral.dll" --port 13805 --default-int i32 --default-float f64"
WorkingDirectory = None
CancellationToken = Some System.Threading.CancellationToken
OnLine = Some <fun:main@464-1020> }
00:00:00 #3 [Verbose] > pwd: /home/runner/work/polyglot/polyglot/lib/spiral
00:00:00 #4 [Verbose] > dll_path: /home/runner/work/polyglot/polyglot/deps/The-Spiral-Language/The Spiral Language 2/artifacts/bin/The Spiral Language 2/release
00:00:00 #5 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #6 [Verbose] waitForPortAccess / port: 13805 / retry: 0
00:00:00 #7 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #8 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #9 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #10 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #11 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #12 [Verbose] > Starting the Spiral Server. It is bound to: http://localhost:13805
00:00:00 #13 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #14 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #15 [Debug] sendJson / port: 13805 / json: {"Ping":true} / result.Length:
00:00:00 #16 [Verbose] awaitCompiler / Ping / result: Some(null) / port: 13805 / retry: 0
00:00:00 #17 [Verbose] > Server bound to: http://localhost:13805
00:00:00 #18 [Debug] executeAsync / options: { Command = "pwsh -c "../../scripts/invoke-dib.ps1 rust.dib""
WorkingDirectory = None
CancellationToken = Some System.Threading.CancellationToken
OnLine = None }
00:00:02 #19 [Verbose] >
00:00:02 #20 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:02 #21 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:02 #22 [Verbose] > │ # rust │
00:00:02 #23 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:02 #24 [Verbose] >
00:00:02 #25 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:02 #26 [Verbose] > // // test
00:00:02 #27 [Verbose] >
00:00:02 #28 [Verbose] > open testing
00:00:04 #29 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-3071-7160-76adee7ab462/main.spi
00:00:06 #30 [Verbose] >
00:00:06 #31 [Verbose] > ╭─[ 3.82s - stdout ]───────────────────────────────────────────────────────────╮
00:00:06 #32 [Verbose] > │ () │
00:00:06 #33 [Verbose] > │ │
00:00:06 #34 [Verbose] > │ │
00:00:06 #35 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:06 #36 [Verbose] >
00:00:06 #37 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:06 #38 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:06 #39 [Verbose] > │ ## emit_expr │
00:00:06 #40 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:06 #41 [Verbose] >
00:00:06 #42 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:06 #43 [Verbose] > inl emit_expr forall a t. (args : a) (code : string) : t =
00:00:06 #44 [Verbose] > real
00:00:06 #45 [Verbose] > $"Fable.Core.RustInterop.emitRustExpr !args !code" : t
00:00:06 #46 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-3318-1823-1db334cc310a/main.spi
00:00:06 #47 [Verbose] >
00:00:06 #48 [Verbose] > ╭─[ 174.85ms - stdout ]────────────────────────────────────────────────────────╮
00:00:06 #49 [Verbose] > │ () │
00:00:06 #50 [Verbose] > │ │
00:00:06 #51 [Verbose] > │ │
00:00:06 #52 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:06 #53 [Verbose] >
00:00:06 #54 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:06 #55 [Verbose] > inl types () =
00:00:06 #56 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"Func0<$0>\")>]] type
00:00:06 #57 [Verbose] > Func0<'T> = class end"
00:00:06 #58 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"Func1<$0, $1>\")>]] type
00:00:06 #59 [Verbose] > Func0<'T, 'U> = class end"
00:00:06 #60 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"Box<$0>\")>]] type Box<'T> =
00:00:06 #61 [Verbose] > class end"
00:00:06 #62 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"dyn $0\")>]] type Dyn<'T> =
00:00:06 #63 [Verbose] > class end"
00:00:06 #64 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"Fn() -> $0\")>]] type Fn<'T>
00:00:06 #65 [Verbose] > = class end"
00:00:06 #66 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"Fn()\")>]] type FnUnit =
00:00:06 #67 [Verbose] > class end"
00:00:06 #68 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"FnOnce() -> $0\")>]] type
00:00:06 #69 [Verbose] > FnOnce<'T> = class end"
00:00:06 #70 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"Fn($0, $1)\")>]] type
00:00:06 #71 [Verbose] > ActionFn2<'T, 'U> = class end"
00:00:06 #72 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"impl $0\")>]] type Impl<'T> =
00:00:06 #73 [Verbose] > class end"
00:00:06 #74 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"mut $0\")>]] type Mut<'T> =
00:00:06 #75 [Verbose] > class end"
00:00:06 #76 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"&$0\")>]] type Ref<'T> =
00:00:06 #77 [Verbose] > class end"
00:00:06 #78 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"&'static $0\")>]] type
00:00:06 #79 [Verbose] > StaticRef<'T> = class end"
00:00:06 #80 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"MutCell<$0>\")>]] type
00:00:06 #81 [Verbose] > MutCell<'T> = class end"
00:00:06 #82 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"std::any::Any\")>]] type
00:00:06 #83 [Verbose] > std_any_Any = class end"
00:00:06 #84 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"std::cell::RefCell<$0>\")>]]
00:00:06 #85 [Verbose] > type std_cell_RefCell<'T> = class end"
00:00:06 #86 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"std::pin::Pin<$0>\")>]] type
00:00:06 #87 [Verbose] > std_pin_Pin<'T> = class end"
00:00:06 #88 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"std::rc::Rc<$0>\")>]] type
00:00:06 #89 [Verbose] > std_rc_Rc<'T> = class end"
00:00:06 #90 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"std::rc::Weak<$0>\")>]] type
00:00:06 #91 [Verbose] > std_rc_Weak<'T> = class end"
00:00:06 #92 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"std::sync::Arc<$0>\")>]] type
00:00:06 #93 [Verbose] > std_sync_Arc<'T> = class end"
00:00:06 #94 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-3335-3545-34de7c63db6f/main.spi
00:00:06 #95 [Verbose] >
00:00:06 #96 [Verbose] > ╭─[ 174.14ms - stdout ]────────────────────────────────────────────────────────╮
00:00:06 #97 [Verbose] > │ () │
00:00:06 #98 [Verbose] > │ │
00:00:06 #99 [Verbose] > │ │
00:00:06 #100 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:06 #101 [Verbose] >
00:00:06 #102 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:06 #103 [Verbose] > nominal ref_cell t = $"std_cell_RefCell<`t>"
00:00:06 #104 [Verbose] > nominal rc t = $"std_rc_Rc<`t>"
00:00:06 #105 [Verbose] > nominal weak_rc t = $"std_rc_Weak<`t>"
00:00:06 #106 [Verbose] > nominal box t = $"Box<`t>"
00:00:06 #107 [Verbose] > nominal mut_cell t = $"MutCell<`t>"
00:00:06 #108 [Verbose] > nominal pin t = $"std_pin_Pin<`t>"
00:00:06 #109 [Verbose] > nominal arc t = $"std_sync_Arc<`t>"
00:00:06 #110 [Verbose] > nominal dyn' t = $"Dyn<`t>"
00:00:06 #111 [Verbose] > nominal fn' t = $"Fn<`t>"
00:00:06 #112 [Verbose] > nominal action_fn2 t u = $"ActionFn2<`t, `u>"
00:00:06 #113 [Verbose] > nominal fn_once t = $"FnOnce<`t>"
00:00:06 #114 [Verbose] > nominal fn_unit = $"FnUnit"
00:00:06 #115 [Verbose] > nominal func0 t = $"Func0<`t>"
00:00:06 #116 [Verbose] > nominal func1 t u = $"Func0<`t, `u>"
00:00:06 #117 [Verbose] > nominal impl t = $"Impl<`t>"
00:00:06 #118 [Verbose] > nominal mut' t = $"Mut<`t>"
00:00:06 #119 [Verbose] > nominal ref' t = $"Ref<`t>"
00:00:06 #120 [Verbose] > nominal static_ref' t = $"StaticRef<`t>"
00:00:06 #121 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-3352-5275-575e9bf0ba20/main.spi
00:00:06 #122 [Verbose] >
00:00:06 #123 [Verbose] > ╭─[ 167.98ms - stdout ]────────────────────────────────────────────────────────╮
00:00:06 #124 [Verbose] > │ () │
00:00:06 #125 [Verbose] > │ │
00:00:06 #126 [Verbose] > │ │
00:00:06 #127 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:06 #128 [Verbose] >
00:00:06 #129 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:06 #130 [Verbose] > inl (~!\) forall t. (code : string) : t =
00:00:06 #131 [Verbose] > emit_expr () code
00:00:06 #132 [Verbose] >
00:00:06 #133 [Verbose] > inl (~!\\) forall t u. ((args : t), (code : string)) : u =
00:00:06 #134 [Verbose] > emit_expr args code
00:00:06 #135 [Verbose] >
00:00:06 #136 [Verbose] > inl new_box forall t. (x : t) : box t =
00:00:06 #137 [Verbose] > inl x = join x
00:00:06 #138 [Verbose] > !\($'"Box::new(!x)"')
00:00:06 #139 [Verbose] >
00:00:06 #140 [Verbose] > inl new_rc forall t. (x : t) : rc t =
00:00:06 #141 [Verbose] > inl x = join x
00:00:06 #142 [Verbose] > !\($'"std::rc::Rc::new(!x)"')
00:00:06 #143 [Verbose] >
00:00:06 #144 [Verbose] > inl rc_clone forall t. (x : rc t) : rc t =
00:00:06 #145 [Verbose] > inl x = join x
00:00:06 #146 [Verbose] > !\($'"std::rc::Rc::clone(&!x)"')
00:00:06 #147 [Verbose] >
00:00:06 #148 [Verbose] > inl rc_downgrade forall t. (x : rc t) : weak_rc t =
00:00:06 #149 [Verbose] > inl x = join x
00:00:06 #150 [Verbose] > !\($'"std::rc::Rc::downgrade(&!x)"')
00:00:06 #151 [Verbose] >
00:00:06 #152 [Verbose] > inl new_ref_cell forall t. (x : t) : ref_cell t =
00:00:06 #153 [Verbose] > inl x = join x
00:00:06 #154 [Verbose] > !\($'"std::cell::RefCell::new(!x)"')
00:00:06 #155 [Verbose] >
00:00:06 #156 [Verbose] > inl ref_cell_borrow forall t. (x : rc (ref_cell t)) : t =
00:00:06 #157 [Verbose] > inl x = join x
00:00:06 #158 [Verbose] > !\($'"*std::cell::RefCell::borrow(&std::rc::Rc::clone(&!x))"')
00:00:06 #159 [Verbose] >
00:00:06 #160 [Verbose] > inl ref_cell_borrow_mut forall t. (x : rc (ref_cell t)) : mut' t =
00:00:06 #161 [Verbose] > inl x = join x
00:00:06 #162 [Verbose] > !\($'"*std::cell::RefCell::borrow_mut(&std::rc::Rc::clone(&!x))"')
00:00:06 #163 [Verbose] >
00:00:06 #164 [Verbose] > inl to_mut forall t. (x : t) : mut' t =
00:00:06 #165 [Verbose] > // !\($'"let mut !x = !x"')
00:00:06 #166 [Verbose] > // !\($'"!x"')
00:00:06 #167 [Verbose] > emit_expr () $"\"let mut !x = !x\""
00:00:06 #168 [Verbose] > emit_expr () $"\"!x\""
00:00:06 #169 [Verbose] >
00:00:06 #170 [Verbose] > inl ref_map forall t u. (fn : t -> u) (x : ref' t) : ref' u =
00:00:06 #171 [Verbose] > !\($'"!fn(!x)"')
00:00:06 #172 [Verbose] >
00:00:06 #173 [Verbose] > inl from_mut forall t. (x : mut' t) : t =
00:00:06 #174 [Verbose] > !\($'"!x"')
00:00:06 #175 [Verbose] >
00:00:06 #176 [Verbose] > inl new_arc forall t. (x : t) : arc t =
00:00:06 #177 [Verbose] > inl x = join x
00:00:06 #178 [Verbose] > !\($'"std::sync::Arc::new(!x)"')
00:00:06 #179 [Verbose] >
00:00:06 #180 [Verbose] > inl box_fn forall t. (x : () -> ()) : box t =
00:00:06 #181 [Verbose] > inl x = join x
00:00:06 #182 [Verbose] > !\($'"Box::new(move || !x())"')
00:00:06 #183 [Verbose] >
00:00:06 #184 [Verbose] > inl new_pin forall t. (x : t) : pin (box t) =
00:00:06 #185 [Verbose] > inl x = join x
00:00:06 #186 [Verbose] > !\($'"Box::pin(!x)"')
00:00:06 #187 [Verbose] >
00:00:06 #188 [Verbose] > inl deref forall t. (ref : ref' t) : t =
00:00:06 #189 [Verbose] > inl ref = join ref
00:00:06 #190 [Verbose] > !\($'"*!ref"')
00:00:06 #191 [Verbose] >
00:00:06 #192 [Verbose] > inl ops_deref forall t. (ref : t) : t =
00:00:06 #193 [Verbose] > inl ref = join ref
00:00:06 #194 [Verbose] > !\($'"core::ops::Deref::deref(&!ref)"')
00:00:06 #195 [Verbose] >
00:00:06 #196 [Verbose] > inl func0_get forall t. (x : func0 t) : t =
00:00:06 #197 [Verbose] > inl x = join x
00:00:06 #198 [Verbose] > !\($'"!x()"')
00:00:06 #199 [Verbose] >
00:00:06 #200 [Verbose] > inl func0_move forall t. (fn : func0 t) : t =
00:00:06 #201 [Verbose] > inl fn = join fn
00:00:06 #202 [Verbose] > !\($'"(move || !fn())()"')
00:00:06 #203 [Verbose] >
00:00:06 #204 [Verbose] > inl move forall t. (fn : () -> t) : func0 t =
00:00:06 #205 [Verbose] > inl fn = join fn
00:00:06 #206 [Verbose] > !\($'"Func0::new(move || !fn())"')
00:00:06 #207 [Verbose] >
00:00:06 #208 [Verbose] > inl to_static_ref_unbox forall t. (x : ref' t) : static_ref' t =
00:00:06 #209 [Verbose] > $"!x |> unbox"
00:00:06 #210 [Verbose] >
00:00:06 #211 [Verbose] > inl from_static_ref_unbox forall t. (x : static_ref' t) : ref' t =
00:00:06 #212 [Verbose] > $"!x |> unbox"
00:00:06 #213 [Verbose] >
00:00:06 #214 [Verbose] > inl box_leak forall t. (x : box t) : static_ref' (mut' t) =
00:00:06 #215 [Verbose] > emit_expr () $"\"Box::leak(!x)\""
00:00:06 #216 [Verbose] >
00:00:06 #217 [Verbose] >
00:00:06 #218 [Verbose] > inl fix_closure depth' x' =
00:00:06 #219 [Verbose] > inl depth = depth' |> fst
00:00:06 #220 [Verbose] > if depth = 1
00:00:06 #221 [Verbose] > then !\($'"!x' })"')
00:00:06 #222 [Verbose] > elif depth = 2
00:00:06 #223 [Verbose] > then !\($'"!x' }})"')
00:00:06 #224 [Verbose] > elif depth = 3
00:00:06 #225 [Verbose] > then !\($'"!x' }}})"')
00:00:06 #226 [Verbose] > elif depth = 4
00:00:06 #227 [Verbose] > then !\($'"!x' }}}})"')
00:00:06 #228 [Verbose] > elif depth = 5
00:00:06 #229 [Verbose] > then !\($'"!x' }}}}})"')
00:00:06 #230 [Verbose] > elif depth = 6 // , 4) // ?
00:00:06 #231 [Verbose] > then !\($'"!x' }}}}}})"')
00:00:06 #232 [Verbose] > elif depth = 7 // , 5) // 7
00:00:06 #233 [Verbose] > then !\($'"!x' }}}}}}})"')
00:00:06 #234 [Verbose] > elif depth = 8 // , 5) // 7
00:00:06 #235 [Verbose] > then !\($'"!x' }}}}}}}})"')
00:00:06 #236 [Verbose] >
00:00:06 #237 [Verbose] > inl depth = depth' |> snd
00:00:06 #238 [Verbose] > if depth = 1
00:00:06 #239 [Verbose] > then !\($'"{ //"')
00:00:06 #240 [Verbose] > elif depth = 2
00:00:06 #241 [Verbose] > then !\($'"{{ //"')
00:00:06 #242 [Verbose] > elif depth = 3
00:00:06 #243 [Verbose] > then !\($'"{{{ //"')
00:00:06 #244 [Verbose] > elif depth = 4
00:00:06 #245 [Verbose] > then !\($'"{{{{ //"')
00:00:06 #246 [Verbose] > elif depth = 5
00:00:06 #247 [Verbose] > then !\($'"{{{{{ //"')
00:00:06 #248 [Verbose] > elif depth = 6
00:00:06 #249 [Verbose] > then !\($'"{{{{{{ //"')
00:00:06 #250 [Verbose] > elif depth = 7
00:00:06 #251 [Verbose] > then !\($'"{{{{{{{ //"')
00:00:06 #252 [Verbose] > elif depth = 8
00:00:06 #253 [Verbose] > then !\($'"{{{{{{{{ //"')
00:00:06 #254 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-3370-7026-73b37c5a1cb4/main.spi
00:00:06 #255 [Verbose] >
00:00:06 #256 [Verbose] > ╭─[ 199.55ms - stdout ]────────────────────────────────────────────────────────╮
00:00:06 #257 [Verbose] > │ () │
00:00:06 #258 [Verbose] > │ │
00:00:06 #259 [Verbose] > │ │
00:00:06 #260 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #261 [Verbose] > [NbConvertApp] Converting notebook rust.dib.ipynb to html
00:00:07 #262 [Verbose] > /opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/nbformat/__init__.py:96: MissingIDFieldWarning: Cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:00:07 #263 [Verbose] > validate(nb)
00:00:08 #264 [Verbose] > /opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/nbconvert/filters/highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:00:08 #265 [Verbose] > return _pygments_highlight(
00:00:08 #266 [Verbose] > [NbConvertApp] Writing 304806 bytes to rust.dib.html
00:00:08 #267 [Debug] executeAsync / exitCode: 0 / output.Length: 10435
00:00:08 #268 [Debug] main / executeCommand / exitCode: 0
00:00:00 #1 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #2 [Debug] executeAsync / options: { Command =
"dotnet "/home/runner/work/polyglot/polyglot/deps/The-Spiral-Language/The Spiral Language 2/artifacts/bin/The Spiral Language 2/release/Spiral.dll" --port 13805 --default-int i32 --default-float f64"
WorkingDirectory = None
CancellationToken = Some System.Threading.CancellationToken
OnLine = Some <fun:main@464-1020> }
00:00:00 #3 [Verbose] > pwd: /home/runner/work/polyglot/polyglot/lib/spiral
00:00:00 #4 [Verbose] > dll_path: /home/runner/work/polyglot/polyglot/deps/The-Spiral-Language/The Spiral Language 2/artifacts/bin/The Spiral Language 2/release
00:00:00 #5 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #6 [Verbose] waitForPortAccess / port: 13805 / retry: 0
00:00:00 #7 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #8 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #9 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #10 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #11 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #12 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #13 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #14 [Verbose] > Starting the Spiral Server. It is bound to: http://localhost:13805
00:00:00 #15 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #16 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #17 [Debug] sendJson / port: 13805 / json: {"Ping":true} / result.Length:
00:00:00 #18 [Verbose] awaitCompiler / Ping / result: Some(null) / port: 13805 / retry: 0
00:00:00 #19 [Verbose] > Server bound to: http://localhost:13805
00:00:00 #20 [Debug] executeAsync / options: { Command = "pwsh -c "../../scripts/invoke-dib.ps1 physics.dib""
WorkingDirectory = None
CancellationToken = Some System.Threading.CancellationToken
OnLine = None }
00:00:02 #21 [Verbose] >
00:00:02 #22 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:02 #23 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:02 #24 [Verbose] > │ # physics │
00:00:02 #25 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:02 #26 [Verbose] >
00:00:02 #27 [Verbose] > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:02 #28 [Verbose] > #!import ../../lib/fsharp/Plotting.dib
00:00:02 #29 [Verbose] >
00:00:02 #30 [Verbose] > ── fsharp - import ─────────────────────────────────────────────────────────────
00:00:02 #31 [Verbose] > #r
00:00:02 #32 [Verbose] > "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Asp
00:00:02 #33 [Verbose] > NetCore.Html.Abstractions.dll"
00:00:02 #34 [Verbose] > #r
00:00:02 #35 [Verbose] > "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Dot
00:00:02 #36 [Verbose] > Net.Interactive.dll"
00:00:02 #37 [Verbose] > #r
00:00:02 #38 [Verbose] > "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Dot
00:00:02 #39 [Verbose] > Net.Interactive.FSharp.dll"
00:00:02 #40 [Verbose] > #r
00:00:02 #41 [Verbose] > "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Dot
00:00:02 #42 [Verbose] > Net.Interactive.Formatting.dll"
00:00:02 #43 [Verbose] > open System
00:00:02 #44 [Verbose] > open System.IO
00:00:02 #45 [Verbose] > open System.Text
00:00:02 #46 [Verbose] > open Microsoft.DotNet.Interactive.Formatting
00:00:04 #47 [Verbose] >
00:00:04 #48 [Verbose] > ── fsharp - import ─────────────────────────────────────────────────────────────
00:00:04 #49 [Verbose] > #r
00:00:04 #50 [Verbose] > "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Dot
00:00:04 #51 [Verbose] > Net.Interactive.FSharp.dll"
00:00:04 #52 [Verbose] > open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers
00:00:04 #53 [Verbose] > #r
00:00:04 #54 [Verbose] > "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Dot
00:00:04 #55 [Verbose] > Net.Interactive.dll"
00:00:04 #56 [Verbose] > open type Microsoft.DotNet.Interactive.Kernel
00:00:04 #57 [Verbose] >
00:00:04 #58 [Verbose] > ── fsharp - import ─────────────────────────────────────────────────────────────
00:00:04 #59 [Verbose] > //// test
00:00:04 #60 [Verbose] >
00:00:04 #61 [Verbose] > Formatter.ListExpansionLimit <- 100
00:00:04 #62 [Verbose] >
00:00:04 #63 [Verbose] > ── fsharp - import ─────────────────────────────────────────────────────────────
00:00:04 #64 [Verbose] > #r
00:00:04 #65 [Verbose] > @"../../../../../../../.nuget/packages/fsharp.control.asyncseq/3.2.1/lib/netstan
00:00:04 #66 [Verbose] > dard2.1/FSharp.Control.AsyncSeq.dll"
00:00:04 #67 [Verbose] > #r
00:00:04 #68 [Verbose] > @"../../../../../../../.nuget/packages/system.reactive/6.0.1-preview.1/lib/net6.
00:00:04 #69 [Verbose] > 0/System.Reactive.dll"
00:00:04 #70 [Verbose] > #r
00:00:04 #71 [Verbose] > @"../../../../../../../.nuget/packages/system.reactive.linq/6.0.1-preview.1/lib
00:00:04 #72 [Verbose] > netstandard2.0/System.Reactive.Linq.dll"
00:00:04 #73 [Verbose] > #r
00:00:04 #74 [Verbose] > @"../../../../../../../.nuget/packages/argu/6.2.2/lib/netstandard2.0/Argu.dll"
00:00:04 #75 [Verbose] > #r
00:00:04 #76 [Verbose] > @"../../../../../../../.nuget/packages/system.commandline/2.0.0-beta4.22272.1/li
00:00:04 #77 [Verbose] > b/net6.0/System.CommandLine.dll"
00:00:04 #78 [Verbose] > #r
00:00:04 #79 [Verbose] > @"../../../../../../../.nuget/packages/fsharp.json/0.4.1/lib/netstandard2.0/FSha
00:00:04 #80 [Verbose] > rp.Json.dll"
00:00:05 #81 [Verbose] >
00:00:05 #82 [Verbose] > ── fsharp - import ─────────────────────────────────────────────────────────────
00:00:05 #83 [Verbose] > #if !INTERACTIVE
00:00:05 #84 [Verbose] > namespace Polyglot
00:00:05 #85 [Verbose] > #endif
00:00:05 #86 [Verbose] >
00:00:05 #87 [Verbose] > module Common =
00:00:05 #88 [Verbose] >
00:00:05 #89 [Verbose] > let nl = System.Environment.NewLine
00:00:05 #90 [Verbose] > let q = @""""
00:00:05 #91 [Verbose] >
00:00:05 #92 [Verbose] > let inline cons head tail = head :: tail
00:00:05 #93 [Verbose] >
00:00:05 #94 [Verbose] > module String =
00:00:05 #95 [Verbose] > let inline contains (value : string) (input : string) =
00:00:05 #96 [Verbose] > input.Contains value
00:00:05 #97 [Verbose] >
00:00:05 #98 [Verbose] > let inline endsWith (value : string) (input : string) =
00:00:05 #99 [Verbose] > input.EndsWith value
00:00:05 #100 [Verbose] >
00:00:05 #101 [Verbose] > let inline padLeft totalWidth paddingChar (input : string) =
00:00:05 #102 [Verbose] > input.PadLeft (totalWidth, paddingChar)
00:00:05 #103 [Verbose] >
00:00:05 #104 [Verbose] > let inline replace (oldValue : string) (newValue : string) (input :
00:00:05 #105 [Verbose] > string) =
00:00:05 #106 [Verbose] > input.Replace (oldValue, newValue)
00:00:05 #107 [Verbose] >
00:00:05 #108 [Verbose] > let inline split separator (input : string) =
00:00:05 #109 [Verbose] > input.Split separator
00:00:05 #110 [Verbose] >
00:00:05 #111 [Verbose] > let inline spli...
00:00:06 #112 [Verbose] >
00:00:06 #113 [Verbose] > ── fsharp - import ─────────────────────────────────────────────────────────────
00:00:06 #114 [Verbose] > #if !INTERACTIVE
00:00:06 #115 [Verbose] > namespace Polyglot
00:00:06 #116 [Verbose] > #endif
00:00:06 #117 [Verbose] >
00:00:06 #118 [Verbose] > module CommonFSharp =
00:00:06 #119 [Verbose] >
00:00:06 #120 [Verbose] > open Common
00:00:06 #121 [Verbose] >
00:00:06 #122 [Verbose] > /// ## getUnionCaseName
00:00:06 #123 [Verbose] >
00:00:06 #124 [Verbose] > let inline getUnionCaseName<'T> (x: 'T) =
00:00:06 #125 [Verbose] > match Reflection.FSharpValue.GetUnionFields(x, typeof<'T>) with
00:00:06 #126 [Verbose] > | case, _ -> case.Name
00:00:06 #127 [Verbose] >
00:00:06 #128 [Verbose] >
00:00:06 #129 [Verbose] > ── fsharp - import ─────────────────────────────────────────────────────────────
00:00:06 #130 [Verbose] > #if !INTERACTIVE
00:00:06 #131 [Verbose] > namespace Polyglot
00:00:06 #132 [Verbose] > #endif
00:00:06 #133 [Verbose] >
00:00:06 #134 [Verbose] > module Crypto =
00:00:06 #135 [Verbose] >
00:00:06 #136 [Verbose] > open Common
00:00:06 #137 [Verbose] >
00:00:06 #138 [Verbose] > /// ## hashText
00:00:06 #139 [Verbose] >
00:00:06 #140 [Verbose] > let hashText (input : string) =
00:00:06 #141 [Verbose] > use sha256 = System.Security.Cryptography.SHA256.Create ()
00:00:06 #142 [Verbose] > input
00:00:06 #143 [Verbose] > |> System.Text.Encoding.UTF8.GetBytes
00:00:06 #144 [Verbose] > |> sha256.ComputeHash
00:00:06 #145 [Verbose] > |> Array.map (fun b -> b.ToString "x2")
00:00:06 #146 [Verbose] > |> String.concat ""
00:00:06 #147 [Verbose] >
00:00:06 #148 [Verbose] >
00:00:06 #149 [Verbose] > ── fsharp - import ─────────────────────────────────────────────────────────────
00:00:06 #150 [Verbose] > #if !INTERACTIVE
00:00:06 #151 [Verbose] > namespace Polyglot
00:00:06 #152 [Verbose] > #endif
00:00:06 #153 [Verbose] >
00:00:06 #154 [Verbose] > module Async =
00:00:06 #155 [Verbose] >
00:00:06 #156 [Verbose] > open Common
00:00:06 #157 [Verbose] >
00:00:06 #158 [Verbose] > /// ## choice
00:00:06 #159 [Verbose] >
00:00:06 #160 [Verbose] > let inline choice asyncs = async {
00:00:06 #161 [Verbose] > let e = Event<_> ()
00:00:06 #162 [Verbose] > use cts = new System.Threading.CancellationTokenSource ()
00:00:06 #163 [Verbose] > let fn =
00:00:06 #164 [Verbose] > asyncs
00:00:06 #165 [Verbose] > |> Seq.map (fun a -> async {
00:00:06 #166 [Verbose] > let! x = a
00:00:06 #167 [Verbose] > e.Trigger x
00:00:06 #168 [Verbose] > })
00:00:06 #169 [Verbose] > |> Async.Parallel
00:00:06 #170 [Verbose] > |> Async.Ignore
00:00:06 #171 [Verbose] > Async.Start (fn, cts.Token)
00:00:06 #172 [Verbose] > let! result = Async.AwaitEvent e.Publish
00:00:06 #173 [Verbose] > cts.Cancel ()
00:00:06 #174 [Verbose] > return result
00:00:06 #175 [Verbose] > }
00:00:06 #176 [Verbose] >
00:00:06 #177 [Verbose] > /// ## map
00:00:06 #178 [Verbose] >
00:00:06 #179 [Verbose] > let inline map fn a = async {
00:00:06 #180 [Verbose] > let! x = a
00:00:06 #181 [Verbose] > return fn x
00:00:06 #182 [Verbose] > }
00:00:06 #183 [Verbose] >
00:00:06 #184 [Verbose] > /// ## catch
00:00:06 #185 [Verbose] >
00:00:06 #186 [Verbose] > let inline catch a =
00:00:06 #187 [Verbose] > a
00:00:06 #188 [Verbose] > |> Async.Catch
00:00:06 #189 [Verbose] > ...
00:00:06 #190 [Verbose] >
00:00:06 #191 [Verbose] > ── fsharp - import ─────────────────────────────────────────────────────────────
00:00:06 #192 [Verbose] > #if !INTERACTIVE
00:00:06 #193 [Verbose] > namespace Polyglot
00:00:06 #194 [Verbose] > #endif
00:00:06 #195 [Verbose] >
00:00:06 #196 [Verbose] > module AsyncSeq =
00:00:06 #197 [Verbose] >
00:00:06 #198 [Verbose] > open Common
00:00:06 #199 [Verbose] >
00:00:06 #200 [Verbose] > /// ## subscribeEvent
00:00:06 #201 [Verbose] >
00:00:06 #202 [Verbose] > let inline subscribeEvent (event: IEvent<'H, 'A>) map =
00:00:06 #203 [Verbose] > let observable = System.Reactive.Linq.Observable.FromEventPattern<'H,
00:00:06 #204 [Verbose] > 'A>(event.AddHandler, event.RemoveHandler)
00:00:06 #205 [Verbose] > System.Reactive.Linq.Observable.Select (observable, fun event -> map
00:00:06 #206 [Verbose] > event.EventArgs)
00:00:06 #207 [Verbose] > |> FSharp.Control.AsyncSeq.ofObservableBuffered
00:00:06 #208 [Verbose] >
00:00:06 #209 [Verbose] > let subscribeToken (token : System.Threading.CancellationToken) =
00:00:06 #210 [Verbose] > let tcs = new System.Threading.Tasks.TaskCompletionSource ()
00:00:06 #211 [Verbose] > System.Action tcs.SetResult |> token.Register |> ignore
00:00:06 #212 [Verbose] > let start = System.DateTime.Now.Ticks
00:00:06 #213 [Verbose] > FSharp.Control.AsyncSeq.unfoldAsync
00:00:06 #214 [Verbose] > (fun (...
00:00:06 #215 [Verbose] >
00:00:06 #216 [Verbose] > ── fsharp - import ─────────────────────────────────────────────────────────────
00:00:06 #217 [Verbose] > #if !INTERACTIVE
00:00:06 #218 [Verbose] > namespace Polyglot
00:00:06 #219 [Verbose] > #endif
00:00:06 #220 [Verbose] >
00:00:06 #221 [Verbose] > module Networking =
00:00:06 #222 [Verbose] >
00:00:06 #223 [Verbose] > open Common
00:00:06 #224 [Verbose] >
00:00:06 #225 [Verbose] > /// ## testPortOpen
00:00:06 #226 [Verbose] >
00:00:06 #227 [Verbose] > let inline testPortOpen port = async {
00:00:06 #228 [Verbose] > let! ct = Async.CancellationToken
00:00:06 #229 [Verbose] > use client = new System.Net.Sockets.TcpClient ()
00:00:06 #230 [Verbose] > try
00:00:06 #231 [Verbose] > do! client.ConnectAsync ("127.0.0.1", port, ct) |>
00:00:06 #232 [Verbose] > Async.awaitValueTaskUnit
00:00:06 #233 [Verbose] > return true
00:00:06 #234 [Verbose] > with ex ->
00:00:06 #235 [Verbose] > trace Verbose (fun () -> $"testPortOpen / ex: {ex |>
00:00:06 #236 [Verbose] > printException}") getLocals
00:00:06 #237 [Verbose] > return false
00:00:06 #238 [Verbose] > }
00:00:06 #239 [Verbose] >
00:00:06 #240 [Verbose] > let inline testPortOpenTimeout timeout port = async {
00:00:06 #241 [Verbose] > let! result =
00:00:06 #242 [Verbose] > testPortOpen port
00:00:06 #243 [Verbose] > |> Async.runWithTimeoutAsync timeout
00:00:06 #244 [Verbose] > return
00:00:06 #245 [Verbose] > match result with
00:00:06 #246 [Verbose] > | None -> false
00:00:06 #247 [Verbose] > ...
00:00:07 #248 [Verbose] >
00:00:07 #249 [Verbose] > ── fsharp - import ─────────────────────────────────────────────────────────────
00:00:07 #250 [Verbose] > #if !INTERACTIVE
00:00:07 #251 [Verbose] > namespace Polyglot
00:00:07 #252 [Verbose] > #endif
00:00:07 #253 [Verbose] >
00:00:07 #254 [Verbose] > module Runtime =
00:00:07 #255 [Verbose] >
00:00:07 #256 [Verbose] > open Common
00:00:07 #257 [Verbose] >
00:00:07 #258 [Verbose] > /// ## isWindows
00:00:07 #259 [Verbose] >
00:00:07 #260 [Verbose] > let isWindows =
00:00:07 #261 [Verbose] > fun () ->
00:00:07 #262 [Verbose] > System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform
00:00:07 #263 [Verbose] > System.Runtime.InteropServices.OSPlatform.Windows
00:00:07 #264 [Verbose] > |> memoize
00:00:07 #265 [Verbose] >
00:00:07 #266 [Verbose] > /// ## getExecutableSuffix
00:00:07 #267 [Verbose] >
00:00:07 #268 [Verbose] > let inline getExecutableSuffix () =
00:00:07 #269 [Verbose] > if isWindows ()
00:00:07 #270 [Verbose] > then ".exe"
00:00:07 #271 [Verbose] > else ""
00:00:07 #272 [Verbose] >
00:00:07 #273 [Verbose] > /// ## splitCommand
00:00:07 #274 [Verbose] >
00:00:07 #275 [Verbose] > type private CommandParseStep =
00:00:07 #276 [Verbose] > | Start
00:00:07 #277 [Verbose] > | Path of quoted: bool
00:00:07 #278 [Verbose] > | Arguments
00:00:07 #279 [Verbose] >
00:00:07 #280 [Verbose] > let splitCommand (command: string) =
00:00:07 #281 [Verbose] > let rec loop (path, args) chars step =
00:00:07 #282 [Verbose] > match chars, step with
00:00:07 #283 [Verbose] > | ('"' | '\'') :: tail, _ when path = "" -> loop (pat...
00:00:07 #284 [Verbose] >
00:00:07 #285 [Verbose] > ── fsharp - import ─────────────────────────────────────────────────────────────
00:00:07 #286 [Verbose] > #if !INTERACTIVE
00:00:07 #287 [Verbose] > namespace Polyglot
00:00:07 #288 [Verbose] > #endif
00:00:07 #289 [Verbose] >
00:00:07 #290 [Verbose] > module FileSystem =
00:00:07 #291 [Verbose] >
00:00:07 #292 [Verbose] > open Common
00:00:07 #293 [Verbose] >
00:00:07 #294 [Verbose] > /// ## Operators
00:00:07 #295 [Verbose] >
00:00:07 #296 [Verbose] > module Operators =
00:00:07 #297 [Verbose] > let inline (</>) a b =
00:00:07 #298 [Verbose] > System.IO.Path.Combine (a, b)
00:00:07 #299 [Verbose] >
00:00:07 #300 [Verbose] > open Operators
00:00:07 #301 [Verbose] >
00:00:07 #302 [Verbose] > /// ## createTempDirectoryName
00:00:07 #303 [Verbose] >
00:00:07 #304 [Verbose] > let inline createTempDirectoryName () =
00:00:07 #305 [Verbose] > let root = System.Reflection.Assembly.GetEntryAssembly().GetName().Name
00:00:07 #306 [Verbose] >
00:00:07 #307 [Verbose] > System.IO.Path.GetTempPath ()
00:00:07 #308 [Verbose] > </> $"!{root}"
00:00:07 #309 [Verbose] > </> string (newGuidFromDateTime System.DateTime.Now)
00:00:07 #310 [Verbose] >
00:00:07 #311 [Verbose] > /// ## createTempDirectory
00:00:07 #312 [Verbose] >
00:00:07 #313 [Verbose] > let inline createTempDirectory () =
00:00:07 #314 [Verbose] > let tempFolder = createTempDirectoryName ()
00:00:07 #315 [Verbose] > let result = System.IO.Directory.CreateDirectory tempFolder
00:00:07 #316 [Verbose] >
00:00:07 #317 [Verbose] > if not result.Exists then
00:00:07 #318 [Verbose] > let ge...
00:00:09 #319 [Verbose] >
00:00:09 #320 [Verbose] > ── fsharp - import ─────────────────────────────────────────────────────────────
00:00:09 #321 [Verbose] > open Common
00:00:09 #322 [Verbose] > open FileSystem.Operators
00:00:09 #323 [Verbose] >
00:00:09 #324 [Verbose] > ── fsharp - import ─────────────────────────────────────────────────────────────
00:00:09 #325 [Verbose] > let tmpSpiralPath = Path.GetTempPath () </> "!dotnet-interactive-spiral"
00:00:09 #326 [Verbose] > let linePlotsDataPath = tmpSpiralPath </> "line-plots-data"
00:00:09 #327 [Verbose] > let linePlotsSvgPath = tmpSpiralPath </> "line-plots-svg"
00:00:09 #328 [Verbose] >
00:00:09 #329 [Verbose] > [[ tmpSpiralPath; linePlotsDataPath; linePlotsSvgPath ]]
00:00:09 #330 [Verbose] > |> List.iter (fun dir -> if Directory.Exists dir |> not then
00:00:09 #331 [Verbose] > Directory.CreateDirectory dir |> ignore)
00:00:09 #332 [Verbose] >
00:00:09 #333 [Verbose] > Formatter.Register<struct (string * string * string * struct (string * float
00:00:09 #334 [Verbose] > array * float array) array)> (
00:00:09 #335 [Verbose] > (fun struct (caption, x_desc, y_desc, ys) ->
00:00:09 #336 [Verbose] > let json = (caption, x_desc, y_desc, ys) |> FSharp.Json.Json.serialize
00:00:09 #337 [Verbose] > async {
00:00:09 #338 [Verbose] > let hashHex = json |> Crypto.hashText
00:00:09 #339 [Verbose] > let svgPath = linePlotsSvgPath </> $"{hashHex}.svg"
00:00:09 #340 [Verbose] >
00:00:09 #341 [Verbose] > if System.IO.File.Exi...
00:00:09 #342 [Verbose] >
00:00:09 #343 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:09 #344 [Verbose] > // // test
00:00:09 #345 [Verbose] >
00:00:09 #346 [Verbose] > open testing
00:00:10 #347 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-4598-9851-9f93339a9b7c/main.spi
00:00:12 #348 [Verbose] >
00:00:12 #349 [Verbose] > ╭─[ 2.26s - stdout ]───────────────────────────────────────────────────────────╮
00:00:12 #350 [Verbose] > │ () │
00:00:12 #351 [Verbose] > │ │
00:00:12 #352 [Verbose] > │ │
00:00:12 #353 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #354 [Verbose] >
00:00:12 #355 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 #356 [Verbose] > open listm'_operators
00:00:12 #357 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-4787-8789-84349e932b16/main.spi
00:00:12 #358 [Verbose] >
00:00:12 #359 [Verbose] > ╭─[ 153.57ms - stdout ]────────────────────────────────────────────────────────╮
00:00:12 #360 [Verbose] > │ () │
00:00:12 #361 [Verbose] > │ │
00:00:12 #362 [Verbose] > │ │
00:00:12 #363 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #364 [Verbose] >
00:00:12 #365 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:12 #366 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:12 #367 [Verbose] > │ ## init_series │
00:00:12 #368 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #369 [Verbose] >
00:00:12 #370 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 #371 [Verbose] > // // test
00:00:12 #372 [Verbose] >
00:00:12 #373 [Verbose] > inl x : a _ f64 = am'.init_series -3 3 0.01
00:00:12 #374 [Verbose] > inl y = x |> am.map math.square
00:00:12 #375 [Verbose] > "square", "x", "y", ;[[ "square", x, y ]]
00:00:12 #376 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-4803-0325-055bd1a3bc77/main.spi
00:00:12 #377 [Verbose] >
00:00:12 #378 [Verbose] > ╭─[ 300.47ms - return value ]──────────────────────────────────────────────────╮
00:00:12 #379 [Verbose] > │ <svg width="640" height="480" viewBox="0 0 640 480" │
00:00:12 #380 [Verbose] > │ xmlns="http://www.w3.org/2000/svg"> │
00:00:12 #381 [Verbose] > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414" │
00:00:12 #382 [Verbose] > │ stroke="none"/> │
00:00:12 #383 [Verbose] > │ <text x="320" y="10" dy="0.76em" text-anchor="middle" │
00:00:12 #384 [Verbose] > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1" │
00:00:12 #385 [Verbose] > │ fill="#FFFFFF"> │
00:00:12 #386 [Verbose] > │ square │
00:00:12 #387 [Verbose] > │ </text> │
00:00:12 #388 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="61" y1="424" x2="61" │
00:00:12 #389 [Verbose] > │ y2="75"/> │
00:00:12 #390 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:00:12 #391 [Verbose] > │ y2="75"/> │
00:00:12 #392 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="78" y1="424" x2="78" │
00:00:12 #393 [Verbose] > │ y2="75"/> │
00:00:12 #394 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="86" y1="424" x2="86" │
00:00:12 #395 [Verbose] > │ y2="75"/> │
00:00:12 #396 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="94" y1="424" x2="94" │
00:00:12 #397 [Verbose] > │ ... │
00:00:12 #398 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #399 [Verbose] >
00:00:12 #400 [Verbose] > ╭─[ 308.58ms - stdout ]────────────────────────────────────────────────────────╮
00:00:12 #401 [Verbose] > │ type Mut0 = {mutable l0 : int32} │
00:00:12 #402 [Verbose] > │ let rec method1 (v0 : Mut0) : bool = │
00:00:12 #403 [Verbose] > │ let v1 : int32 = v0.l0 │
00:00:12 #404 [Verbose] > │ let v2 : bool = v1 < 601 │
00:00:12 #405 [Verbose] > │ v2 │
00:00:12 #406 [Verbose] > │ and method2 (v0 : int32, v1 : Mut0) : bool = │
00:00:12 #407 [Verbose] > │ let v2 : int32 = v1.l0 │
00:00:12 #408 [Verbose] > │ let v3 : bool = v2 < v0 │
00:00:12 #409 [Verbose] > │ v3 │
00:00:12 #410 [Verbose] > │ and method3 (v0 : (struct (string * (float []) * (float [])) [])) : (struct │
00:00:12 #411 [Verbose] > │ (string * (float []) * (float [])) []) = │
00:00:12 #412 [Verbose] > │ v0 │
00:00:12 #413 [Verbose] > │ and method0 () : struct (string * string * string * (struct (string * (float │
00:00:12 #414 [Verbose] > │ []) * (float [])) [])) = │
00:00:12 #415 [Verbose] > │ let v0 : (float []) = Array.zeroCreate<float> (601) │
00:00:12 #416 [Verbose] > │ let v1 : Mut0 = {l0 = 0} : Mut0 │
00:00:12 #417 [Verbose] > │ while method1(v1) do │
00:00:12 #418 [Verbose] > │ let v3 : int32 = v1.l0 │
00:00:12 #419 [Verbose] > │ let v4 : float = float v3 │
00:00:12 #420 [Verbose] > │ let v5 : float = 0.01 * v4 │
00:00:12 #421 [Verbose] > │ let v6 : float = -3.0 + v5 │
00:00:12 #422 [Verbose] > │ v0.[int v3] <- v6 │
00:00:12 #423 [Verbose] > │ let v7 : int32 = v3 + 1 │
00:00:12 #424 [Verbose] > │ v1.l0 <- v7 │
00:00:12 #425 [Verbose] > │ () │
00:00:12 #426 [Verbose] > │ let v8 : int32 = v0.Length │
00:00:12 #427 [Verbose] > │ let v9 : (float []) = Array.zeroCreate<float> (v8) │
00:00:12 #428 [Verbose] > │ let v10 : Mut0 = {l0 = 0} : Mut0 │
00:00:12 #429 [Verbose] > │ while method2(v8, v10) do │
00:00:12 #430 [Verbose] > │ let v12 : int32 = v10.l0 │
00:00:12 #431 [Verbose] > │ let v13 : float = v0.[int v12] │
00:00:12 #432 [Verbose] > │ let v14 : float = v13 ** 2.0 │
00:00:12 #433 [Verbose] > │ v9.[int v12] <- v14 │
00:00:12 #434 [Verbose] > │ let v15 : int32 = v12 + 1 │
00:00:12 #435 [Verbose] > │ v10.l0 <- v15 │
00:00:12 #436 [Verbose] > │ () │
00:00:12 #437 [Verbose] > │ let v16 : string = "square" │
00:00:12 #438 [Verbose] > │ let v17 : (struct (string * (float []) * (float [])) []) = [|struct │
00:00:12 #439 [Verbose] > │ (v16, v0, v9)|] │
00:00:12 #440 [Verbose] > │ let v18 : (struct (string * (float []) * (float [])) []) = method3(v17) │
00:00:12 #441 [Verbose] > │ let v19 : string = "x" │
00:00:12 #442 [Verbose] > │ let v20 : string = "y" │
00:00:12 #443 [Verbose] > │ struct (v16, v19, v20, v18) │
00:00:12 #444 [Verbose] > │ method0() │
00:00:12 #445 [Verbose] > │ │
00:00:12 #446 [Verbose] > │ │
00:00:12 #447 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #448 [Verbose] >
00:00:12 #449 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 #450 [Verbose] > // // test
00:00:12 #451 [Verbose] >
00:00:12 #452 [Verbose] > inl x : a _ f64 = am'.init_series -10 10 0.1
00:00:12 #453 [Verbose] > inl y_sin = x |> am.map sin
00:00:12 #454 [Verbose] > inl y_cos = x |> am.map cos
00:00:12 #455 [Verbose] > "sin cos", "x", "y", ;[[ "sin", x, y_sin; "cos", x, y_cos ]]
00:00:12 #456 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-4834-3412-33d6ebc64657/main.spi
00:00:12 #457 [Verbose] >
00:00:12 #458 [Verbose] > ╭─[ 192.56ms - return value ]──────────────────────────────────────────────────╮
00:00:12 #459 [Verbose] > │ <svg width="640" height="480" viewBox="0 0 640 480" │
00:00:12 #460 [Verbose] > │ xmlns="http://www.w3.org/2000/svg"> │
00:00:12 #461 [Verbose] > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414" │
00:00:12 #462 [Verbose] > │ stroke="none"/> │
00:00:12 #463 [Verbose] > │ <text x="320" y="10" dy="0.76em" text-anchor="middle" │
00:00:12 #464 [Verbose] > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1" │
00:00:12 #465 [Verbose] > │ fill="#FFFFFF"> │
00:00:12 #466 [Verbose] > │ sin cos │
00:00:12 #467 [Verbose] > │ </text> │
00:00:12 #468 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="57" y1="424" x2="57" │
00:00:12 #469 [Verbose] > │ y2="75"/> │
00:00:12 #470 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:00:12 #471 [Verbose] > │ y2="75"/> │
00:00:12 #472 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="82" y1="424" x2="82" │
00:00:12 #473 [Verbose] > │ y2="75"/> │
00:00:12 #474 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="94" y1="424" x2="94" │
00:00:12 #475 [Verbose] > │ y2="75"/> │
00:00:12 #476 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="107" y1="424" │
00:00:12 #477 [Verbose] > │ x2="10... │
00:00:12 #478 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #479 [Verbose] >
00:00:12 #480 [Verbose] > ╭─[ 194.36ms - stdout ]────────────────────────────────────────────────────────╮
00:00:12 #481 [Verbose] > │ type Mut0 = {mutable l0 : int32} │
00:00:12 #482 [Verbose] > │ let rec method1 (v0 : Mut0) : bool = │
00:00:12 #483 [Verbose] > │ let v1 : int32 = v0.l0 │
00:00:12 #484 [Verbose] > │ let v2 : bool = v1 < 201 │
00:00:12 #485 [Verbose] > │ v2 │
00:00:12 #486 [Verbose] > │ and method2 (v0 : int32, v1 : Mut0) : bool = │
00:00:12 #487 [Verbose] > │ let v2 : int32 = v1.l0 │
00:00:12 #488 [Verbose] > │ let v3 : bool = v2 < v0 │
00:00:12 #489 [Verbose] > │ v3 │
00:00:12 #490 [Verbose] > │ and method3 (v0 : (struct (string * (float []) * (float [])) [])) : (struct │
00:00:12 #491 [Verbose] > │ (string * (float []) * (float [])) []) = │
00:00:12 #492 [Verbose] > │ v0 │
00:00:12 #493 [Verbose] > │ and method0 () : struct (string * string * string * (struct (string * (float │
00:00:12 #494 [Verbose] > │ []) * (float [])) [])) = │
00:00:12 #495 [Verbose] > │ let v0 : (float []) = Array.zeroCreate<float> (201) │
00:00:12 #496 [Verbose] > │ let v1 : Mut0 = {l0 = 0} : Mut0 │
00:00:12 #497 [Verbose] > │ while method1(v1) do │
00:00:12 #498 [Verbose] > │ let v3 : int32 = v1.l0 │
00:00:12 #499 [Verbose] > │ let v4 : float = float v3 │
00:00:12 #500 [Verbose] > │ let v5 : float = 0.1 * v4 │
00:00:12 #501 [Verbose] > │ let v6 : float = -10.0 + v5 │
00:00:12 #502 [Verbose] > │ v0.[int v3] <- v6 │
00:00:12 #503 [Verbose] > │ let v7 : int32 = v3 + 1 │
00:00:12 #504 [Verbose] > │ v1.l0 <- v7 │
00:00:12 #505 [Verbose] > │ () │
00:00:12 #506 [Verbose] > │ let v8 : int32 = v0.Length │
00:00:12 #507 [Verbose] > │ let v9 : (float []) = Array.zeroCreate<float> (v8) │
00:00:12 #508 [Verbose] > │ let v10 : Mut0 = {l0 = 0} : Mut0 │
00:00:12 #509 [Verbose] > │ while method2(v8, v10) do │
00:00:12 #510 [Verbose] > │ let v12 : int32 = v10.l0 │
00:00:12 #511 [Verbose] > │ let v13 : float = v0.[int v12] │
00:00:12 #512 [Verbose] > │ let v14 : float = sin v13 │
00:00:12 #513 [Verbose] > │ v9.[int v12] <- v14 │
00:00:12 #514 [Verbose] > │ let v15 : int32 = v12 + 1 │
00:00:12 #515 [Verbose] > │ v10.l0 <- v15 │
00:00:12 #516 [Verbose] > │ () │
00:00:12 #517 [Verbose] > │ let v16 : (float []) = Array.zeroCreate<float> (v8) │
00:00:12 #518 [Verbose] > │ let v17 : Mut0 = {l0 = 0} : Mut0 │
00:00:12 #519 [Verbose] > │ while method2(v8, v17) do │
00:00:12 #520 [Verbose] > │ let v19 : int32 = v17.l0 │
00:00:12 #521 [Verbose] > │ let v20 : float = v0.[int v19] │
00:00:12 #522 [Verbose] > │ let v21 : float = cos v20 │
00:00:12 #523 [Verbose] > │ v16.[int v19] <- v21 │
00:00:12 #524 [Verbose] > │ let v22 : int32 = v19 + 1 │
00:00:12 #525 [Verbose] > │ v17.l0 <- v22 │
00:00:12 #526 [Verbose] > │ () │
00:00:12 #527 [Verbose] > │ let v23 : string = "sin" │
00:00:12 #528 [Verbose] > │ let v24 : string = "cos" │
00:00:12 #529 [Verbose] > │ let v25 : (struct (string * (float []) * (float [])) []) = [|struct │
00:00:12 #530 [Verbose] > │ (v23, v0, v9); struct (v24, v0, v16)|] │
00:00:12 #531 [Verbose] > │ let v26 : (struct (string * (float []) * (float [])) []) = method3(v25) │
00:00:12 #532 [Verbose] > │ let v27 : string = "sin cos" │
00:00:12 #533 [Verbose] > │ let v28 : string = "x" │
00:00:12 #534 [Verbose] > │ let v29 : string = "y" │
00:00:12 #535 [Verbose] > │ struct (v27, v28, v29, v26) │
00:00:12 #536 [Verbose] > │ method0() │
00:00:12 #537 [Verbose] > │ │
00:00:12 #538 [Verbose] > │ │
00:00:12 #539 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #540 [Verbose] >
00:00:12 #541 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 #542 [Verbose] > // // test
00:00:12 #543 [Verbose] >
00:00:12 #544 [Verbose] > inl y_pos y0 vy0 ay t =
00:00:12 #545 [Verbose] > y0 + vy0 * t + ay * (t |> math.square) / 2
00:00:12 #546 [Verbose] >
00:00:12 #547 [Verbose] > inl x : a _ f64 = am'.init_series 0 5 0.01
00:00:12 #548 [Verbose] > inl y = x |> am.map (y_pos 0 20 -9.8)
00:00:12 #549 [Verbose] > "projectile motion", "time (s)", "", ;[[ "height of projectile (m)", x, y ]]
00:00:12 #550 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-4853-5378-50b2a2e47d6d/main.spi
00:00:12 #551 [Verbose] >
00:00:12 #552 [Verbose] > ╭─[ 186.89ms - return value ]──────────────────────────────────────────────────╮
00:00:12 #553 [Verbose] > │ <svg width="640" height="480" viewBox="0 0 640 480" │
00:00:12 #554 [Verbose] > │ xmlns="http://www.w3.org/2000/svg"> │
00:00:12 #555 [Verbose] > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414" │
00:00:12 #556 [Verbose] > │ stroke="none"/> │
00:00:12 #557 [Verbose] > │ <text x="320" y="10" dy="0.76em" text-anchor="middle" │
00:00:12 #558 [Verbose] > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1" │
00:00:12 #559 [Verbose] > │ fill="#FFFFFF"> │
00:00:12 #560 [Verbose] > │ projectile motion │
00:00:12 #561 [Verbose] > │ </text> │
00:00:12 #562 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="59" y1="424" x2="59" │
00:00:12 #563 [Verbose] > │ y2="75"/> │
00:00:12 #564 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:00:12 #565 [Verbose] > │ y2="75"/> │
00:00:12 #566 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="79" y1="424" x2="79" │
00:00:12 #567 [Verbose] > │ y2="75"/> │
00:00:12 #568 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="89" y1="424" x2="89" │
00:00:12 #569 [Verbose] > │ y2="75"/> │
00:00:12 #570 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="99" y1="42... │
00:00:12 #571 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #572 [Verbose] >
00:00:12 #573 [Verbose] > ╭─[ 188.57ms - stdout ]────────────────────────────────────────────────────────╮
00:00:12 #574 [Verbose] > │ type Mut0 = {mutable l0 : int32} │
00:00:12 #575 [Verbose] > │ let rec method1 (v0 : Mut0) : bool = │
00:00:12 #576 [Verbose] > │ let v1 : int32 = v0.l0 │
00:00:12 #577 [Verbose] > │ let v2 : bool = v1 < 501 │
00:00:12 #578 [Verbose] > │ v2 │
00:00:12 #579 [Verbose] > │ and method2 (v0 : int32, v1 : Mut0) : bool = │
00:00:12 #580 [Verbose] > │ let v2 : int32 = v1.l0 │
00:00:12 #581 [Verbose] > │ let v3 : bool = v2 < v0 │
00:00:12 #582 [Verbose] > │ v3 │
00:00:12 #583 [Verbose] > │ and method3 (v0 : (struct (string * (float []) * (float [])) [])) : (struct │
00:00:12 #584 [Verbose] > │ (string * (float []) * (float [])) []) = │
00:00:12 #585 [Verbose] > │ v0 │
00:00:12 #586 [Verbose] > │ and method0 () : struct (string * string * string * (struct (string * (float │
00:00:12 #587 [Verbose] > │ []) * (float [])) [])) = │
00:00:12 #588 [Verbose] > │ let v0 : (float []) = Array.zeroCreate<float> (501) │
00:00:12 #589 [Verbose] > │ let v1 : Mut0 = {l0 = 0} : Mut0 │
00:00:12 #590 [Verbose] > │ while method1(v1) do │
00:00:12 #591 [Verbose] > │ let v3 : int32 = v1.l0 │
00:00:12 #592 [Verbose] > │ let v4 : float = float v3 │
00:00:12 #593 [Verbose] > │ let v5 : float = 0.01 * v4 │
00:00:12 #594 [Verbose] > │ v0.[int v3] <- v5 │
00:00:12 #595 [Verbose] > │ let v6 : int32 = v3 + 1 │
00:00:12 #596 [Verbose] > │ v1.l0 <- v6 │
00:00:12 #597 [Verbose] > │ () │
00:00:12 #598 [Verbose] > │ let v7 : int32 = v0.Length │
00:00:12 #599 [Verbose] > │ let v8 : (float []) = Array.zeroCreate<float> (v7) │
00:00:12 #600 [Verbose] > │ let v9 : Mut0 = {l0 = 0} : Mut0 │
00:00:12 #601 [Verbose] > │ while method2(v7, v9) do │
00:00:12 #602 [Verbose] > │ let v11 : int32 = v9.l0 │
00:00:12 #603 [Verbose] > │ let v12 : float = v0.[int v11] │
00:00:12 #604 [Verbose] > │ let v13 : float = 20.0 * v12 │
00:00:12 #605 [Verbose] > │ let v14 : float = v12 ** 2.0 │
00:00:12 #606 [Verbose] > │ let v15 : float = -9.8 * v14 │
00:00:12 #607 [Verbose] > │ let v16 : float = v15 / 2.0 │
00:00:12 #608 [Verbose] > │ let v17 : float = v13 + v16 │
00:00:12 #609 [Verbose] > │ v8.[int v11] <- v17 │
00:00:12 #610 [Verbose] > │ let v18 : int32 = v11 + 1 │
00:00:12 #611 [Verbose] > │ v9.l0 <- v18 │
00:00:12 #612 [Verbose] > │ () │
00:00:12 #613 [Verbose] > │ let v19 : string = "height of projectile (m)" │
00:00:12 #614 [Verbose] > │ let v20 : (struct (string * (float []) * (float [])) []) = [|struct │
00:00:12 #615 [Verbose] > │ (v19, v0, v8)|] │
00:00:12 #616 [Verbose] > │ let v21 : (struct (string * (float []) * (float [])) []) = method3(v20) │
00:00:12 #617 [Verbose] > │ let v22 : string = "projectile motion" │
00:00:12 #618 [Verbose] > │ let v23 : string = "time (s)" │
00:00:12 #619 [Verbose] > │ let v24 : string = "" │
00:00:12 #620 [Verbose] > │ struct (v22, v23, v24, v21) │
00:00:12 #621 [Verbose] > │ method0() │
00:00:12 #622 [Verbose] > │ │
00:00:12 #623 [Verbose] > │ │
00:00:12 #624 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #625 [Verbose] >
00:00:12 #626 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:12 #627 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:12 #628 [Verbose] > │ ## velocity_cf │
00:00:12 #629 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #630 [Verbose] >
00:00:12 #631 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 #632 [Verbose] > type mass = f64
00:00:12 #633 [Verbose] > type time = f64
00:00:12 #634 [Verbose] > type position = f64
00:00:12 #635 [Verbose] > type velocity = f64
00:00:12 #636 [Verbose] > type force = f64
00:00:12 #637 [Verbose] >
00:00:12 #638 [Verbose] > type velocity_cf = mass -> velocity -> list force -> (time -> velocity)
00:00:12 #639 [Verbose] >
00:00:12 #640 [Verbose] > inl velocity_cf m v0 fs =
00:00:12 #641 [Verbose] > inl f_net = fs |> listm'.sum
00:00:12 #642 [Verbose] > inl a0 = f_net / m
00:00:12 #643 [Verbose] > inl v t = v0 + a0 * t
00:00:12 #644 [Verbose] > v
00:00:12 #645 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-4872-7283-71a6aebc3bac/main.spi
00:00:13 #646 [Verbose] >
00:00:13 #647 [Verbose] > ╭─[ 154.30ms - stdout ]────────────────────────────────────────────────────────╮
00:00:13 #648 [Verbose] > │ () │
00:00:13 #649 [Verbose] > │ │
00:00:13 #650 [Verbose] > │ │
00:00:13 #651 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #652 [Verbose] >
00:00:13 #653 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:13 #654 [Verbose] > // // test
00:00:13 #655 [Verbose] >
00:00:13 #656 [Verbose] > velocity_cf 0.1f64 0.6 [[ 0.04; -0.08 ]] 0
00:00:13 #657 [Verbose] > |> _assert_eq 0.6
00:00:13 #658 [Verbose] >
00:00:13 #659 [Verbose] > velocity_cf 0.1f64 0.6 [[ 0.04; -0.08 ]] 1
00:00:13 #660 [Verbose] > |> _assert_eq 0.2
00:00:13 #661 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-4888-8826-888a80097192/main.spi
00:00:13 #662 [Verbose] >
00:00:13 #663 [Verbose] > ╭─[ 165.55ms - stdout ]────────────────────────────────────────────────────────╮
00:00:13 #664 [Verbose] > │ let rec method0 () : unit = │
00:00:13 #665 [Verbose] > │ let v0 : string = $"__expect / actual: %A{0.6} / expected: %A{0.6}" │
00:00:13 #666 [Verbose] > │ let v1 : string = $"__expect / actual: %A{0.2} / expected: %A{0.2}" │
00:00:13 #667 [Verbose] > │ () │
00:00:13 #668 [Verbose] > │ method0() │
00:00:13 #669 [Verbose] > │ │
00:00:13 #670 [Verbose] > │ │
00:00:13 #671 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #672 [Verbose] >
00:00:13 #673 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:13 #674 [Verbose] > // // test
00:00:13 #675 [Verbose] >
00:00:13 #676 [Verbose] > inl x = am'.init_series 0 4 0.1
00:00:13 #677 [Verbose] > inl y = x |> am.map (velocity_cf 0.1f64 0.6 [[ 0.04; -0.08 ]])
00:00:13 #678 [Verbose] > "car on an air track", "time (s)", "", ;[[ "velocity of car (m/s)", x, y ]]
00:00:13 #679 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-4904-0489-006bf0295316/main.spi
00:00:13 #680 [Verbose] >
00:00:13 #681 [Verbose] > ╭─[ 178.27ms - return value ]──────────────────────────────────────────────────╮
00:00:13 #682 [Verbose] > │ <svg width="640" height="480" viewBox="0 0 640 480" │
00:00:13 #683 [Verbose] > │ xmlns="http://www.w3.org/2000/svg"> │
00:00:13 #684 [Verbose] > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414" │
00:00:13 #685 [Verbose] > │ stroke="none"/> │
00:00:13 #686 [Verbose] > │ <text x="320" y="10" dy="0.76em" text-anchor="middle" │
00:00:13 #687 [Verbose] > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1" │
00:00:13 #688 [Verbose] > │ fill="#FFFFFF"> │
00:00:13 #689 [Verbose] > │ car on an air track │
00:00:13 #690 [Verbose] > │ </text> │
00:00:13 #691 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="57" y1="424" x2="57" │
00:00:13 #692 [Verbose] > │ y2="75"/> │
00:00:13 #693 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:00:13 #694 [Verbose] > │ y2="75"/> │
00:00:13 #695 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="82" y1="424" x2="82" │
00:00:13 #696 [Verbose] > │ y2="75"/> │
00:00:13 #697 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="94" y1="424" x2="94" │
00:00:13 #698 [Verbose] > │ y2="75"/> │
00:00:13 #699 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="107" y1=... │
00:00:13 #700 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #701 [Verbose] >
00:00:13 #702 [Verbose] > ╭─[ 180.18ms - stdout ]────────────────────────────────────────────────────────╮
00:00:13 #703 [Verbose] > │ type Mut0 = {mutable l0 : int32} │
00:00:13 #704 [Verbose] > │ let rec method1 (v0 : Mut0) : bool = │
00:00:13 #705 [Verbose] > │ let v1 : int32 = v0.l0 │
00:00:13 #706 [Verbose] > │ let v2 : bool = v1 < 41 │
00:00:13 #707 [Verbose] > │ v2 │
00:00:13 #708 [Verbose] > │ and method2 (v0 : int32, v1 : Mut0) : bool = │
00:00:13 #709 [Verbose] > │ let v2 : int32 = v1.l0 │
00:00:13 #710 [Verbose] > │ let v3 : bool = v2 < v0 │
00:00:13 #711 [Verbose] > │ v3 │
00:00:13 #712 [Verbose] > │ and method3 (v0 : (struct (string * (float []) * (float [])) [])) : (struct │
00:00:13 #713 [Verbose] > │ (string * (float []) * (float [])) []) = │
00:00:13 #714 [Verbose] > │ v0 │
00:00:13 #715 [Verbose] > │ and method0 () : struct (string * string * string * (struct (string * (float │
00:00:13 #716 [Verbose] > │ []) * (float [])) [])) = │
00:00:13 #717 [Verbose] > │ let v0 : (float []) = Array.zeroCreate<float> (41) │
00:00:13 #718 [Verbose] > │ let v1 : Mut0 = {l0 = 0} : Mut0 │
00:00:13 #719 [Verbose] > │ while method1(v1) do │
00:00:13 #720 [Verbose] > │ let v3 : int32 = v1.l0 │
00:00:13 #721 [Verbose] > │ let v4 : float = float v3 │
00:00:13 #722 [Verbose] > │ let v5 : float = 0.1 * v4 │
00:00:13 #723 [Verbose] > │ v0.[int v3] <- v5 │
00:00:13 #724 [Verbose] > │ let v6 : int32 = v3 + 1 │
00:00:13 #725 [Verbose] > │ v1.l0 <- v6 │
00:00:13 #726 [Verbose] > │ () │
00:00:13 #727 [Verbose] > │ let v7 : int32 = v0.Length │
00:00:13 #728 [Verbose] > │ let v8 : (float []) = Array.zeroCreate<float> (v7) │
00:00:13 #729 [Verbose] > │ let v9 : Mut0 = {l0 = 0} : Mut0 │
00:00:13 #730 [Verbose] > │ while method2(v7, v9) do │
00:00:13 #731 [Verbose] > │ let v11 : int32 = v9.l0 │
00:00:13 #732 [Verbose] > │ let v12 : float = v0.[int v11] │
00:00:13 #733 [Verbose] > │ let v13 : float = -0.39999999999999997 * v12 │
00:00:13 #734 [Verbose] > │ let v14 : float = 0.6 + v13 │
00:00:13 #735 [Verbose] > │ v8.[int v11] <- v14 │
00:00:13 #736 [Verbose] > │ let v15 : int32 = v11 + 1 │
00:00:13 #737 [Verbose] > │ v9.l0 <- v15 │
00:00:13 #738 [Verbose] > │ () │
00:00:13 #739 [Verbose] > │ let v16 : string = "velocity of car (m/s)" │
00:00:13 #740 [Verbose] > │ let v17 : (struct (string * (float []) * (float [])) []) = [|struct │
00:00:13 #741 [Verbose] > │ (v16, v0, v8)|] │
00:00:13 #742 [Verbose] > │ let v18 : (struct (string * (float []) * (float [])) []) = method3(v17) │
00:00:13 #743 [Verbose] > │ let v19 : string = "car on an air track" │
00:00:13 #744 [Verbose] > │ let v20 : string = "time (s)" │
00:00:13 #745 [Verbose] > │ let v21 : string = "" │
00:00:13 #746 [Verbose] > │ struct (v19, v20, v21, v18) │
00:00:13 #747 [Verbose] > │ method0() │
00:00:13 #748 [Verbose] > │ │
00:00:13 #749 [Verbose] > │ │
00:00:13 #750 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #751 [Verbose] >
00:00:13 #752 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:13 #753 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:13 #754 [Verbose] > │ ## derivative │
00:00:13 #755 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #756 [Verbose] >
00:00:13 #757 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:13 #758 [Verbose] > type derivative = (f64 -> f64) -> f64 -> f64
00:00:13 #759 [Verbose] >
00:00:13 #760 [Verbose] > inl derivative dt : derivative =
00:00:13 #761 [Verbose] > fun x t =>
00:00:13 #762 [Verbose] > (x (t + dt / 2) - x (t - dt / 2)) / dt
00:00:13 #763 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-4923-2307-270b91c6764d/main.spi
00:00:13 #764 [Verbose] >
00:00:13 #765 [Verbose] > ╭─[ 167.61ms - stdout ]────────────────────────────────────────────────────────╮
00:00:13 #766 [Verbose] > │ () │
00:00:13 #767 [Verbose] > │ │
00:00:13 #768 [Verbose] > │ │
00:00:13 #769 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #770 [Verbose] >
00:00:13 #771 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:13 #772 [Verbose] > // // test
00:00:13 #773 [Verbose] >
00:00:13 #774 [Verbose] > derivative 1 (fun x => x ** 4 / 4) 1 - 1
00:00:13 #775 [Verbose] > |> _assert_approx_eq None 0.25
00:00:13 #776 [Verbose] >
00:00:13 #777 [Verbose] > derivative 0.001 (fun x => x ** 4 / 4) 1 - 1
00:00:13 #778 [Verbose] > |> _assert_approx_eq None 0.0000002499998827953931
00:00:13 #779 [Verbose] >
00:00:13 #780 [Verbose] > derivative 0.000001 (fun x => x ** 4 / 4) 1 - 1
00:00:13 #781 [Verbose] > |> _assert_approx_eq None 0.000000000001000088900582341
00:00:13 #782 [Verbose] >
00:00:13 #783 [Verbose] > derivative 0.000000001 (fun x => x ** 4 / 4) 1 - 1
00:00:13 #784 [Verbose] > |> _assert_approx_eq None 0.00000008274037099909037
00:00:13 #785 [Verbose] >
00:00:13 #786 [Verbose] > derivative 0.000000000001 (fun x => x ** 4 / 4) 1 - 1
00:00:13 #787 [Verbose] > |> _assert_approx_eq None 0.00008890058234101161
00:00:13 #788 [Verbose] >
00:00:13 #789 [Verbose] > derivative 0.000000000000001 (fun x => x ** 4 / 4) 1 - 1
00:00:13 #790 [Verbose] > |> _assert_approx_eq None -0.0007992778373592246
00:00:13 #791 [Verbose] >
00:00:13 #792 [Verbose] > derivative 0.000000000000000001 (fun x => x ** 4 / 4) 1 - 1
00:00:13 #793 [Verbose] > |> _assert_approx_eq None -1
00:00:13 #794 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-4939-3992-3cb514b81d23/main.spi
00:00:13 #795 [Verbose] >
00:00:13 #796 [Verbose] > ╭─[ 168.53ms - stdout ]────────────────────────────────────────────────────────╮
00:00:13 #797 [Verbose] > │ let rec method0 () : unit = │
00:00:13 #798 [Verbose] > │ let v0 : string = $"__expect / actual: %A{0.25} / expected: %A{0.25}" │
00:00:13 #799 [Verbose] > │ let v1 : string = $"__expect / actual: %A{2.499998827953931E-07} / │
00:00:13 #800 [Verbose] > │ expected: %A{2.499998827953931E-07}" │
00:00:13 #801 [Verbose] > │ let v2 : string = $"__expect / actual: %A{1.000088900582341E-12} / │
00:00:13 #802 [Verbose] > │ expected: %A{1.000088900582341E-12}" │
00:00:13 #803 [Verbose] > │ let v3 : string = $"__expect / actual: %A{8.274037099909037E-08} / │
00:00:13 #804 [Verbose] > │ expected: %A{8.274037099909037E-08}" │
00:00:13 #805 [Verbose] > │ let v4 : string = $"__expect / actual: %A{8.890058234101161E-05} / │
00:00:13 #806 [Verbose] > │ expected: %A{8.890058234101161E-05}" │
00:00:13 #807 [Verbose] > │ let v5 : string = $"__expect / actual: %A{-0.0007992778373592246} / │
00:00:13 #808 [Verbose] > │ expected: %A{-0.0007992778373592246}" │
00:00:13 #809 [Verbose] > │ let v6 : string = $"__expect / actual: %A{-1.0} / expected: %A{-1.0}" │
00:00:13 #810 [Verbose] > │ () │
00:00:13 #811 [Verbose] > │ method0() │
00:00:13 #812 [Verbose] > │ │
00:00:13 #813 [Verbose] > │ │
00:00:13 #814 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #815 [Verbose] >
00:00:13 #816 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:13 #817 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:13 #818 [Verbose] > │ ## integration │
00:00:13 #819 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #820 [Verbose] >
00:00:13 #821 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:13 #822 [Verbose] > type integration = (f64 -> f64) -> f64 -> f64 -> f64
00:00:13 #823 [Verbose] >
00:00:13 #824 [Verbose] > inl integral dt : integration =
00:00:13 #825 [Verbose] > fun f a b =>
00:00:13 #826 [Verbose] > inl rec loop t y =
00:00:13 #827 [Verbose] > if t < b
00:00:13 #828 [Verbose] > then loop (t + dt) (y + f t * dt)
00:00:13 #829 [Verbose] > else t, y
00:00:13 #830 [Verbose] > loop (a + dt / 2) 0
00:00:13 #831 [Verbose] > |> snd
00:00:13 #832 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-4956-5684-57387b1dece4/main.spi
00:00:13 #833 [Verbose] >
00:00:13 #834 [Verbose] > ╭─[ 154.42ms - stdout ]────────────────────────────────────────────────────────╮
00:00:13 #835 [Verbose] > │ () │
00:00:13 #836 [Verbose] > │ │
00:00:13 #837 [Verbose] > │ │
00:00:13 #838 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #839 [Verbose] >
00:00:13 #840 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:13 #841 [Verbose] > // // test
00:00:13 #842 [Verbose] >
00:00:13 #843 [Verbose] > integral 0.01 math.square 0 1
00:00:13 #844 [Verbose] > |> _assert_approx_eq None 0.33332500000000004
00:00:13 #845 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-4972-7235-7e28a8b0bf90/main.spi
00:00:14 #846 [Verbose] >
00:00:14 #847 [Verbose] > ╭─[ 162.25ms - stdout ]────────────────────────────────────────────────────────╮
00:00:14 #848 [Verbose] > │ let rec method0 () : unit = │
00:00:14 #849 [Verbose] > │ let v0 : string = $"__expect / actual: %A{0.3333250000000004} / │
00:00:14 #850 [Verbose] > │ expected: %A{0.33332500000000004}" │
00:00:14 #851 [Verbose] > │ () │
00:00:14 #852 [Verbose] > │ method0() │
00:00:14 #853 [Verbose] > │ │
00:00:14 #854 [Verbose] > │ │
00:00:14 #855 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #856 [Verbose] >
00:00:14 #857 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:14 #858 [Verbose] > inl integral' dt : integration =
00:00:14 #859 [Verbose] > fun f a b =>
00:00:14 #860 [Verbose] > listm'.init_series (a + dt / 2) (b - dt / 2) dt
00:00:14 #861 [Verbose] > |> listm.map (f >> (*) dt)
00:00:14 #862 [Verbose] > |> listm'.sum
00:00:14 #863 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-4988-8860-84afd3416f8d/main.spi
00:00:14 #864 [Verbose] >
00:00:14 #865 [Verbose] > ╭─[ 152.13ms - stdout ]────────────────────────────────────────────────────────╮
00:00:14 #866 [Verbose] > │ () │
00:00:14 #867 [Verbose] > │ │
00:00:14 #868 [Verbose] > │ │
00:00:14 #869 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #870 [Verbose] >
00:00:14 #871 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:14 #872 [Verbose] > // // test
00:00:14 #873 [Verbose] >
00:00:14 #874 [Verbose] > integral' 0.1 math.square 0 1
00:00:14 #875 [Verbose] > |> _assert_approx_eq None (integral 0.1 math.square 0 1)
00:00:14 #876 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-5003-0383-0bd566fcfc81/main.spi
00:00:14 #877 [Verbose] >
00:00:14 #878 [Verbose] > ╭─[ 176.66ms - stdout ]────────────────────────────────────────────────────────╮
00:00:14 #879 [Verbose] > │ let rec method0 () : unit = │
00:00:14 #880 [Verbose] > │ let v0 : string = $"__expect / actual: %A{0.3325000000000001} / │
00:00:14 #881 [Verbose] > │ expected: %A{0.33249999999999996}" │
00:00:14 #882 [Verbose] > │ () │
00:00:14 #883 [Verbose] > │ method0() │
00:00:14 #884 [Verbose] > │ │
00:00:14 #885 [Verbose] > │ │
00:00:14 #886 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #887 [Verbose] >
00:00:14 #888 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:14 #889 [Verbose] > inl integral'' dt : integration =
00:00:14 #890 [Verbose] > fun f a b =>
00:00:14 #891 [Verbose] > am'.init_series (a + dt / 2) (b - dt / 2) dt
00:00:14 #892 [Verbose] > |> am.map (f >> (*) dt)
00:00:14 #893 [Verbose] > |> am'.sum
00:00:14 #894 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-5021-2157-20b845e500c0/main.spi
00:00:14 #895 [Verbose] >
00:00:14 #896 [Verbose] > ╭─[ 235.93ms - stdout ]────────────────────────────────────────────────────────╮
00:00:14 #897 [Verbose] > │ () │
00:00:14 #898 [Verbose] > │ │
00:00:14 #899 [Verbose] > │ │
00:00:14 #900 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #901 [Verbose] >
00:00:14 #902 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:14 #903 [Verbose] > // // test
00:00:14 #904 [Verbose] >
00:00:14 #905 [Verbose] > integral'' 0.01 math.square 0 1
00:00:14 #906 [Verbose] > |> _assert_approx_eq None (integral 0.01 math.square 0 1)
00:00:14 #907 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-5045-4533-4685bcb05b30/main.spi
00:00:14 #908 [Verbose] >
00:00:14 #909 [Verbose] > ╭─[ 262.71ms - stdout ]────────────────────────────────────────────────────────╮
00:00:14 #910 [Verbose] > │ type Mut0 = {mutable l0 : int32} │
00:00:14 #911 [Verbose] > │ and Mut1 = {mutable l0 : int32; mutable l1 : float} │
00:00:14 #912 [Verbose] > │ let rec method1 (v0 : Mut0) : bool = │
00:00:14 #913 [Verbose] > │ let v1 : int32 = v0.l0 │
00:00:14 #914 [Verbose] > │ let v2 : bool = v1 < 100 │
00:00:14 #915 [Verbose] > │ v2 │
00:00:14 #916 [Verbose] > │ and method2 (v0 : int32, v1 : Mut0) : bool = │
00:00:14 #917 [Verbose] > │ let v2 : int32 = v1.l0 │
00:00:14 #918 [Verbose] > │ let v3 : bool = v2 < v0 │
00:00:14 #919 [Verbose] > │ v3 │
00:00:14 #920 [Verbose] > │ and method3 (v0 : int32, v1 : Mut1) : bool = │
00:00:14 #921 [Verbose] > │ let v2 : int32 = v1.l0 │
00:00:14 #922 [Verbose] > │ let v3 : bool = v2 < v0 │
00:00:14 #923 [Verbose] > │ v3 │
00:00:14 #924 [Verbose] > │ and method4 (v0 : bool) : bool = │
00:00:14 #925 [Verbose] > │ v0 │
00:00:14 #926 [Verbose] > │ and method0 () : unit = │
00:00:14 #927 [Verbose] > │ let v0 : (float []) = Array.zeroCreate<float> (100) │
00:00:14 #928 [Verbose] > │ let v1 : Mut0 = {l0 = 0} : Mut0 │
00:00:14 #929 [Verbose] > │ while method1(v1) do │
00:00:14 #930 [Verbose] > │ let v3 : int32 = v1.l0 │
00:00:14 #931 [Verbose] > │ let v4 : float = float v3 │
00:00:14 #932 [Verbose] > │ let v5 : float = 0.01 * v4 │
00:00:14 #933 [Verbose] > │ let v6 : float = 0.005 + v5 │
00:00:14 #934 [Verbose] > │ v0.[int v3] <- v6 │
00:00:14 #935 [Verbose] > │ let v7 : int32 = v3 + 1 │
00:00:14 #936 [Verbose] > │ v1.l0 <- v7 │
00:00:14 #937 [Verbose] > │ () │
00:00:14 #938 [Verbose] > │ let v8 : int32 = v0.Length │
00:00:14 #939 [Verbose] > │ let v9 : (float []) = Array.zeroCreate<float> (v8) │
00:00:14 #940 [Verbose] > │ let v10 : Mut0 = {l0 = 0} : Mut0 │
00:00:14 #941 [Verbose] > │ while method2(v8, v10) do │
00:00:14 #942 [Verbose] > │ let v12 : int32 = v10.l0 │
00:00:14 #943 [Verbose] > │ let v13 : float = v0.[int v12] │
00:00:14 #944 [Verbose] > │ let v14 : float = v13 ** 2.0 │
00:00:14 #945 [Verbose] > │ let v15 : float = 0.01 * v14 │
00:00:14 #946 [Verbose] > │ v9.[int v12] <- v15 │
00:00:14 #947 [Verbose] > │ let v16 : int32 = v12 + 1 │
00:00:14 #948 [Verbose] > │ v10.l0 <- v16 │
00:00:14 #949 [Verbose] > │ () │
00:00:14 #950 [Verbose] > │ let v17 : int32 = v9.Length │
00:00:14 #951 [Verbose] > │ let v18 : Mut1 = {l0 = 0; l1 = 0.0} : Mut1 │
00:00:14 #952 [Verbose] > │ while method3(v17, v18) do │
00:00:14 #953 [Verbose] > │ let v20 : int32 = v18.l0 │
00:00:14 #954 [Verbose] > │ let v21 : float = v18.l1 │
00:00:14 #955 [Verbose] > │ let v22 : float = v9.[int v20] │
00:00:14 #956 [Verbose] > │ let v23 : float = v21 + v22 │
00:00:14 #957 [Verbose] > │ let v24 : int32 = v20 + 1 │
00:00:14 #958 [Verbose] > │ v18.l0 <- v24 │
00:00:14 #959 [Verbose] > │ v18.l1 <- v23 │
00:00:14 #960 [Verbose] > │ () │
00:00:14 #961 [Verbose] > │ let v25 : float = v18.l1 │
00:00:14 #962 [Verbose] > │ let v26 : float = 0.3333250000000004 - v25 │
00:00:14 #963 [Verbose] > │ let v27 : float = -v26 │
00:00:14 #964 [Verbose] > │ let v28 : bool = v26 >= v27 │
00:00:14 #965 [Verbose] > │ let v29 : float = │
00:00:14 #966 [Verbose] > │ if v28 then │
00:00:14 #967 [Verbose] > │ v26 │
00:00:14 #968 [Verbose] > │ else │
00:00:14 #969 [Verbose] > │ v27 │
00:00:14 #970 [Verbose] > │ let v30 : bool = v29 < 1E-08 │
00:00:14 #971 [Verbose] > │ let v32 : bool = │
00:00:14 #972 [Verbose] > │ if v30 then │
00:00:14 #973 [Verbose] > │ true │
00:00:14 #974 [Verbose] > │ else │
00:00:14 #975 [Verbose] > │ method4(v30) │
00:00:14 #976 [Verbose] > │ let v33 : string = $"__expect / actual: %A{v25} / expected: │
00:00:14 #977 [Verbose] > │ %A{0.3333250000000004}" │
00:00:14 #978 [Verbose] > │ let v34 : bool = v32 = false │
00:00:14 #979 [Verbose] > │ if v34 then │
00:00:14 #980 [Verbose] > │ failwith<unit> v33 │
00:00:14 #981 [Verbose] > │ method0() │
00:00:14 #982 [Verbose] > │ │
00:00:14 #983 [Verbose] > │ │
00:00:14 #984 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #985 [Verbose] >
00:00:14 #986 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:14 #987 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:14 #988 [Verbose] > │ ## anti_derivative │
00:00:14 #989 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #990 [Verbose] >
00:00:14 #991 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:14 #992 [Verbose] > inl anti_derivative dt v0 a t =
00:00:14 #993 [Verbose] > v0 + integral' dt a 0 t
00:00:14 #994 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-5071-7165-7c8b4e79d0fc/main.spi
00:00:15 #995 [Verbose] >
00:00:15 #996 [Verbose] > ╭─[ 165.14ms - stdout ]────────────────────────────────────────────────────────╮
00:00:15 #997 [Verbose] > │ () │
00:00:15 #998 [Verbose] > │ │
00:00:15 #999 [Verbose] > │ │
00:00:15 #1000 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #1001 [Verbose] >
00:00:15 #1002 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:15 #1003 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:15 #1004 [Verbose] > │ ## velocity_ft │
00:00:15 #1005 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #1006 [Verbose] >
00:00:15 #1007 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:15 #1008 [Verbose] > type velocity_ft = mass -> velocity -> list (time -> force) -> (time ->
00:00:15 #1009 [Verbose] > velocity)
00:00:15 #1010 [Verbose] >
00:00:15 #1011 [Verbose] > inl velocity_ft dt : velocity_ft =
00:00:15 #1012 [Verbose] > fun m v0 fs =>
00:00:15 #1013 [Verbose] > inl f_net t = fs |> listm.map (fun f => f t) |> listm'.sum
00:00:15 #1014 [Verbose] > inl a t = f_net t / m
00:00:15 #1015 [Verbose] > anti_derivative dt v0 a
00:00:15 #1016 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-5088-8821-8fa921edefc9/main.spi
00:00:15 #1017 [Verbose] >
00:00:15 #1018 [Verbose] > ╭─[ 160.56ms - stdout ]────────────────────────────────────────────────────────╮
00:00:15 #1019 [Verbose] > │ () │
00:00:15 #1020 [Verbose] > │ │
00:00:15 #1021 [Verbose] > │ │
00:00:15 #1022 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #1023 [Verbose] >
00:00:15 #1024 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:15 #1025 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:15 #1026 [Verbose] > │ ## position_ft │
00:00:15 #1027 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #1028 [Verbose] >
00:00:15 #1029 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:15 #1030 [Verbose] > type position_ft = mass -> position -> velocity -> list (time -> force) -> (time
00:00:15 #1031 [Verbose] > -> position)
00:00:15 #1032 [Verbose] >
00:00:15 #1033 [Verbose] > inl position_ft dt : position_ft =
00:00:15 #1034 [Verbose] > fun m x0 v0 fs =>
00:00:15 #1035 [Verbose] > velocity_ft dt m v0 fs
00:00:15 #1036 [Verbose] > |> anti_derivative dt x0
00:00:15 #1037 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-5104-0434-0ba21572ed15/main.spi
00:00:15 #1038 [Verbose] >
00:00:15 #1039 [Verbose] > ╭─[ 162.69ms - stdout ]────────────────────────────────────────────────────────╮
00:00:15 #1040 [Verbose] > │ () │
00:00:15 #1041 [Verbose] > │ │
00:00:15 #1042 [Verbose] > │ │
00:00:15 #1043 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #1044 [Verbose] >
00:00:15 #1045 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:15 #1046 [Verbose] > // // test
00:00:15 #1047 [Verbose] >
00:00:15 #1048 [Verbose] > inl pedal_coast (t : time) : force =
00:00:15 #1049 [Verbose] > inl t_cycle = 20
00:00:15 #1050 [Verbose] > inl n_complete : i32 = t / t_cycle |> conv
00:00:15 #1051 [Verbose] > inl remainder = t - conv n_complete * t_cycle
00:00:15 #1052 [Verbose] > if remainder > 0 && remainder < 10
00:00:15 #1053 [Verbose] > then 10
00:00:15 #1054 [Verbose] > else 0
00:00:15 #1055 [Verbose] >
00:00:15 #1056 [Verbose] > inl x = am'.init_series -5 45 0.1
00:00:15 #1057 [Verbose] > inl y = x |> am.map pedal_coast
00:00:15 #1058 [Verbose] > "child pedaling then coasting", "time (s)", "", ;[[ "force on bike (N)", x, y ]]
00:00:15 #1059 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-5120-2066-2823d69ee7e6/main.spi
00:00:15 #1060 [Verbose] >
00:00:15 #1061 [Verbose] > ╭─[ 188.47ms - return value ]──────────────────────────────────────────────────╮
00:00:15 #1062 [Verbose] > │ <svg width="640" height="480" viewBox="0 0 640 480" │
00:00:15 #1063 [Verbose] > │ xmlns="http://www.w3.org/2000/svg"> │
00:00:15 #1064 [Verbose] > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414" │
00:00:15 #1065 [Verbose] > │ stroke="none"/> │
00:00:15 #1066 [Verbose] > │ <text x="320" y="10" dy="0.76em" text-anchor="middle" │
00:00:15 #1067 [Verbose] > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1" │
00:00:15 #1068 [Verbose] > │ fill="#FFFFFF"> │
00:00:15 #1069 [Verbose] > │ child pedaling then coasting │
00:00:15 #1070 [Verbose] > │ </text> │
00:00:15 #1071 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="59" y1="424" x2="59" │
00:00:15 #1072 [Verbose] > │ y2="75"/> │
00:00:15 #1073 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:00:15 #1074 [Verbose] > │ y2="75"/> │
00:00:15 #1075 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="79" y1="424" x2="79" │
00:00:15 #1076 [Verbose] > │ y2="75"/> │
00:00:15 #1077 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="89" y1="424" x2="89" │
00:00:15 #1078 [Verbose] > │ y2="75"/> │
00:00:15 #1079 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1=... │
00:00:15 #1080 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #1081 [Verbose] >
00:00:15 #1082 [Verbose] > ╭─[ 191.40ms - stdout ]────────────────────────────────────────────────────────╮
00:00:15 #1083 [Verbose] > │ type Mut0 = {mutable l0 : int32} │
00:00:15 #1084 [Verbose] > │ let rec method1 (v0 : Mut0) : bool = │
00:00:15 #1085 [Verbose] > │ let v1 : int32 = v0.l0 │
00:00:15 #1086 [Verbose] > │ let v2 : bool = v1 < 501 │
00:00:15 #1087 [Verbose] > │ v2 │
00:00:15 #1088 [Verbose] > │ and method2 (v0 : int32, v1 : Mut0) : bool = │
00:00:15 #1089 [Verbose] > │ let v2 : int32 = v1.l0 │
00:00:15 #1090 [Verbose] > │ let v3 : bool = v2 < v0 │
00:00:15 #1091 [Verbose] > │ v3 │
00:00:15 #1092 [Verbose] > │ and method3 (v0 : (struct (string * (float []) * (float [])) [])) : (struct │
00:00:15 #1093 [Verbose] > │ (string * (float []) * (float [])) []) = │
00:00:15 #1094 [Verbose] > │ v0 │
00:00:15 #1095 [Verbose] > │ and method0 () : struct (string * string * string * (struct (string * (float │
00:00:15 #1096 [Verbose] > │ []) * (float [])) [])) = │
00:00:15 #1097 [Verbose] > │ let v0 : (float []) = Array.zeroCreate<float> (501) │
00:00:15 #1098 [Verbose] > │ let v1 : Mut0 = {l0 = 0} : Mut0 │
00:00:15 #1099 [Verbose] > │ while method1(v1) do │
00:00:15 #1100 [Verbose] > │ let v3 : int32 = v1.l0 │
00:00:15 #1101 [Verbose] > │ let v4 : float = float v3 │
00:00:15 #1102 [Verbose] > │ let v5 : float = 0.1 * v4 │
00:00:15 #1103 [Verbose] > │ let v6 : float = -5.0 + v5 │
00:00:15 #1104 [Verbose] > │ v0.[int v3] <- v6 │
00:00:15 #1105 [Verbose] > │ let v7 : int32 = v3 + 1 │
00:00:15 #1106 [Verbose] > │ v1.l0 <- v7 │
00:00:15 #1107 [Verbose] > │ () │
00:00:15 #1108 [Verbose] > │ let v8 : int32 = v0.Length │
00:00:15 #1109 [Verbose] > │ let v9 : (float []) = Array.zeroCreate<float> (v8) │
00:00:15 #1110 [Verbose] > │ let v10 : Mut0 = {l0 = 0} : Mut0 │
00:00:15 #1111 [Verbose] > │ while method2(v8, v10) do │
00:00:15 #1112 [Verbose] > │ let v12 : int32 = v10.l0 │
00:00:15 #1113 [Verbose] > │ let v13 : float = v0.[int v12] │
00:00:15 #1114 [Verbose] > │ let v14 : float = v13 / 20.0 │
00:00:15 #1115 [Verbose] > │ let v15 : int32 = int32 v14 │
00:00:15 #1116 [Verbose] > │ let v16 : float = float v15 │
00:00:15 #1117 [Verbose] > │ let v17 : float = v16 * 20.0 │
00:00:15 #1118 [Verbose] > │ let v18 : float = v13 - v17 │
00:00:15 #1119 [Verbose] > │ let v19 : bool = v18 > 0.0 │
00:00:15 #1120 [Verbose] > │ let v21 : bool = │
00:00:15 #1121 [Verbose] > │ if v19 then │
00:00:15 #1122 [Verbose] > │ let v20 : bool = v18 < 10.0 │
00:00:15 #1123 [Verbose] > │ v20 │
00:00:15 #1124 [Verbose] > │ else │
00:00:15 #1125 [Verbose] > │ false │
00:00:15 #1126 [Verbose] > │ let v22 : float = │
00:00:15 #1127 [Verbose] > │ if v21 then │
00:00:15 #1128 [Verbose] > │ 10.0 │
00:00:15 #1129 [Verbose] > │ else │
00:00:15 #1130 [Verbose] > │ 0.0 │
00:00:15 #1131 [Verbose] > │ v9.[int v12] <- v22 │
00:00:15 #1132 [Verbose] > │ let v23 : int32 = v12 + 1 │
00:00:15 #1133 [Verbose] > │ v10.l0 <- v23 │
00:00:15 #1134 [Verbose] > │ () │
00:00:15 #1135 [Verbose] > │ let v24 : string = "force on bike (N)" │
00:00:15 #1136 [Verbose] > │ let v25 : (struct (string * (float []) * (float [])) []) = [|struct │
00:00:15 #1137 [Verbose] > │ (v24, v0, v9)|] │
00:00:15 #1138 [Verbose] > │ let v26 : (struct (string * (float []) * (float [])) []) = method3(v25) │
00:00:15 #1139 [Verbose] > │ let v27 : string = "child pedaling then coasting" │
00:00:15 #1140 [Verbose] > │ let v28 : string = "time (s)" │
00:00:15 #1141 [Verbose] > │ let v29 : string = "" │
00:00:15 #1142 [Verbose] > │ struct (v27, v28, v29, v26) │
00:00:15 #1143 [Verbose] > │ method0() │
00:00:15 #1144 [Verbose] > │ │
00:00:15 #1145 [Verbose] > │ │
00:00:15 #1146 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #1147 [Verbose] >
00:00:15 #1148 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:15 #1149 [Verbose] > // // test
00:00:15 #1150 [Verbose] >
00:00:15 #1151 [Verbose] > inl x = am'.init_series -5 45 1
00:00:15 #1152 [Verbose] > inl y = x |> am.map (position_ft 0.1f64 20 0 0 [[ pedal_coast ]])
00:00:15 #1153 [Verbose] > "child pedaling then coasting", "time (s)", "", ;[[ "position of bike (m)", x, y
00:00:15 #1154 [Verbose] > ]]
00:00:15 #1155 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-5139-3992-310ab97e3138/main.spi
00:00:15 #1156 [Verbose] >
00:00:15 #1157 [Verbose] > ╭─[ 439.65ms - return value ]──────────────────────────────────────────────────╮
00:00:15 #1158 [Verbose] > │ <svg width="640" height="480" viewBox="0 0 640 480" │
00:00:15 #1159 [Verbose] > │ xmlns="http://www.w3.org/2000/svg"> │
00:00:15 #1160 [Verbose] > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414" │
00:00:15 #1161 [Verbose] > │ stroke="none"/> │
00:00:15 #1162 [Verbose] > │ <text x="320" y="10" dy="0.76em" text-anchor="middle" │
00:00:15 #1163 [Verbose] > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1" │
00:00:15 #1164 [Verbose] > │ fill="#FFFFFF"> │
00:00:15 #1165 [Verbose] > │ child pedaling then coasting │
00:00:15 #1166 [Verbose] > │ </text> │
00:00:15 #1167 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="59" y1="424" x2="59" │
00:00:15 #1168 [Verbose] > │ y2="75"/> │
00:00:15 #1169 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:00:15 #1170 [Verbose] > │ y2="75"/> │
00:00:15 #1171 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="79" y1="424" x2="79" │
00:00:15 #1172 [Verbose] > │ y2="75"/> │
00:00:15 #1173 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="89" y1="424" x2="89" │
00:00:15 #1174 [Verbose] > │ y2="75"/> │
00:00:15 #1175 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1=... │
00:00:15 #1176 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #1177 [Verbose] >
00:00:15 #1178 [Verbose] > ╭─[ 442.35ms - stdout ]────────────────────────────────────────────────────────╮
00:00:15 #1179 [Verbose] > │ type Mut0 = {mutable l0 : int32} │
00:00:15 #1180 [Verbose] > │ and UH0 = │
00:00:15 #1181 [Verbose] > │ | UH0_0 of float * UH0 │
00:00:15 #1182 [Verbose] > │ | UH0_1 │
00:00:15 #1183 [Verbose] > │ let rec method1 (v0 : Mut0) : bool = │
00:00:15 #1184 [Verbose] > │ let v1 : int32 = v0.l0 │
00:00:15 #1185 [Verbose] > │ let v2 : bool = v1 < 51 │
00:00:15 #1186 [Verbose] > │ v2 │
00:00:15 #1187 [Verbose] > │ and method2 (v0 : int32, v1 : Mut0) : bool = │
00:00:15 #1188 [Verbose] > │ let v2 : int32 = v1.l0 │
00:00:15 #1189 [Verbose] > │ let v3 : bool = v2 < v0 │
00:00:15 #1190 [Verbose] > │ v3 │
00:00:15 #1191 [Verbose] > │ and method3 (v0 : float, v1 : float) : UH0 = │
00:00:15 #1192 [Verbose] > │ let v2 : bool = v1 < v0 │
00:00:15 #1193 [Verbose] > │ if v2 then │
00:00:15 #1194 [Verbose] > │ let v3 : float = 0.1 * v1 │
00:00:15 #1195 [Verbose] > │ let v4 : float = 0.05 + v3 │
00:00:15 #1196 [Verbose] > │ let v5 : float = v1 + 1.0 │
00:00:15 #1197 [Verbose] > │ let v6 : UH0 = method3(v0, v5) │
00:00:15 #1198 [Verbose] > │ UH0_0(v4, v6) │
00:00:15 #1199 [Verbose] > │ else │
00:00:15 #1200 [Verbose] > │ UH0_1 │
00:00:15 #1201 [Verbose] > │ and method5 (v0 : UH0, v1 : UH0) : UH0 = │
00:00:15 #1202 [Verbose] > │ match v0 with │
00:00:15 #1203 [Verbose] > │ | UH0_0(v2, v3) -> (* Cons *) │
00:00:15 #1204 [Verbose] > │ let v4 : UH0 = method5(v3, v1) │
00:00:15 #1205 [Verbose] > │ let v5 : float = v2 / 20.0 │
00:00:15 #1206 [Verbose] > │ let v6 : int32 = int32 v5 │
00:00:15 #1207 [Verbose] > │ let v7 : float = float v6 │
00:00:15 #1208 [Verbose] > │ let v8 : float = v7 * 20.0 │
00:00:15 #1209 [Verbose] > │ let v9 : float = v2 - v8 │
00:00:15 #1210 [Verbose] > │ let v10 : bool = v9 > 0.0 │
00:00:15 #1211 [Verbose] > │ let v12 : bool = │
00:00:15 #1212 [Verbose] > │ if v10 then │
00:00:15 #1213 [Verbose] > │ let v11 : bool = v9 < 10.0 │
00:00:15 #1214 [Verbose] > │ v11 │
00:00:15 #1215 [Verbose] > │ else │
00:00:15 #1216 [Verbose] > │ false │
00:00:15 #1217 [Verbose] > │ let v13 : float = │
00:00:15 #1218 [Verbose] > │ if v12 then │
00:00:15 #1219 [Verbose] > │ 10.0 │
00:00:15 #1220 [Verbose] > │ else │
00:00:15 #1221 [Verbose] > │ 0.0 │
00:00:15 #1222 [Verbose] > │ let v14 : float = v13 / 20.0 │
00:00:15 #1223 [Verbose] > │ let v15 : float = 0.1 * v14 │
00:00:15 #1224 [Verbose] > │ UH0_0(v15, v4) │
00:00:15 #1225 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:15 #1226 [Verbose] > │ v1 │
00:00:15 #1227 [Verbose] > │ and method6 (v0 : UH0, v1 : float) : float = │
00:00:15 #1228 [Verbose] > │ match v0 with │
00:00:15 #1229 [Verbose] > │ | UH0_0(v2, v3) -> (* Cons *) │
00:00:15 #1230 [Verbose] > │ let v4 : float = v1 + v2 │
00:00:15 #1231 [Verbose] > │ method6(v3, v4) │
00:00:15 #1232 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:15 #1233 [Verbose] > │ v1 │
00:00:15 #1234 [Verbose] > │ and method4 (v0 : UH0, v1 : UH0) : UH0 = │
00:00:15 #1235 [Verbose] > │ match v0 with │
00:00:15 #1236 [Verbose] > │ | UH0_0(v2, v3) -> (* Cons *) │
00:00:15 #1237 [Verbose] > │ let v4 : UH0 = method4(v3, v1) │
00:00:15 #1238 [Verbose] > │ let v5 : float = v2 - 0.05 │
00:00:15 #1239 [Verbose] > │ let v6 : float = v5 - 0.05 │
00:00:15 #1240 [Verbose] > │ let v7 : float = v6 / 0.1 │
00:00:15 #1241 [Verbose] > │ let v8 : float = v7 + 1.0 │
00:00:15 #1242 [Verbose] > │ let v9 : float = 0.0 │
00:00:15 #1243 [Verbose] > │ let v10 : UH0 = method3(v8, v9) │
00:00:15 #1244 [Verbose] > │ let v11 : UH0 = UH0_1 │
00:00:15 #1245 [Verbose] > │ let v12 : UH0 = method5(v10, v11) │
00:00:15 #1246 [Verbose] > │ let v13 : float = 0.0 │
00:00:15 #1247 [Verbose] > │ let v14 : float = method6(v12, v13) │
00:00:15 #1248 [Verbose] > │ let v15 : float = 0.1 * v14 │
00:00:15 #1249 [Verbose] > │ UH0_0(v15, v4) │
00:00:15 #1250 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:15 #1251 [Verbose] > │ v1 │
00:00:15 #1252 [Verbose] > │ and method7 (v0 : (struct (string * (float []) * (float [])) [])) : (struct │
00:00:15 #1253 [Verbose] > │ (string * (float []) * (float [])) []) = │
00:00:15 #1254 [Verbose] > │ v0 │
00:00:15 #1255 [Verbose] > │ and method0 () : struct (string * string * string * (struct (string * (float │
00:00:15 #1256 [Verbose] > │ []) * (float [])) [])) = │
00:00:15 #1257 [Verbose] > │ let v0 : (float []) = Array.zeroCreate<float> (51) │
00:00:15 #1258 [Verbose] > │ let v1 : Mut0 = {l0 = 0} : Mut0 │
00:00:15 #1259 [Verbose] > │ while method1(v1) do │
00:00:15 #1260 [Verbose] > │ let v3 : int32 = v1.l0 │
00:00:15 #1261 [Verbose] > │ let v4 : float = float v3 │
00:00:15 #1262 [Verbose] > │ let v5 : float = -5.0 + v4 │
00:00:15 #1263 [Verbose] > │ v0.[int v3] <- v5 │
00:00:15 #1264 [Verbose] > │ let v6 : int32 = v3 + 1 │
00:00:15 #1265 [Verbose] > │ v1.l0 <- v6 │
00:00:15 #1266 [Verbose] > │ () │
00:00:15 #1267 [Verbose] > │ let v7 : int32 = v0.Length │
00:00:15 #1268 [Verbose] > │ let v8 : (float []) = Array.zeroCreate<float> (v7) │
00:00:15 #1269 [Verbose] > │ let v9 : Mut0 = {l0 = 0} : Mut0 │
00:00:15 #1270 [Verbose] > │ while method2(v7, v9) do │
00:00:15 #1271 [Verbose] > │ let v11 : int32 = v9.l0 │
00:00:15 #1272 [Verbose] > │ let v12 : float = v0.[int v11] │
00:00:15 #1273 [Verbose] > │ let v13 : float = v12 - 0.05 │
00:00:15 #1274 [Verbose] > │ let v14 : float = v13 - 0.05 │
00:00:15 #1275 [Verbose] > │ let v15 : float = v14 / 0.1 │
00:00:15 #1276 [Verbose] > │ let v16 : float = v15 + 1.0 │
00:00:15 #1277 [Verbose] > │ let v17 : float = 0.0 │
00:00:15 #1278 [Verbose] > │ let v18 : UH0 = method3(v16, v17) │
00:00:15 #1279 [Verbose] > │ let v19 : UH0 = UH0_1 │
00:00:15 #1280 [Verbose] > │ let v20 : UH0 = method4(v18, v19) │
00:00:15 #1281 [Verbose] > │ let v21 : float = 0.0 │
00:00:15 #1282 [Verbose] > │ let v22 : float = method6(v20, v21) │
00:00:15 #1283 [Verbose] > │ v8.[int v11] <- v22 │
00:00:15 #1284 [Verbose] > │ let v23 : int32 = v11 + 1 │
00:00:15 #1285 [Verbose] > │ v9.l0 <- v23 │
00:00:15 #1286 [Verbose] > │ () │
00:00:15 #1287 [Verbose] > │ let v24 : string = "position of bike (m)" │
00:00:15 #1288 [Verbose] > │ let v25 : (struct (string * (float []) * (float [])) []) = [|struct │
00:00:15 #1289 [Verbose] > │ (v24, v0, v8)|] │
00:00:15 #1290 [Verbose] > │ let v26 : (struct (string * (float []) * (float [])) []) = method7(v25) │
00:00:15 #1291 [Verbose] > │ let v27 : string = "child pedaling then coasting" │
00:00:15 #1292 [Verbose] > │ let v28 : string = "time (s)" │
00:00:15 #1293 [Verbose] > │ let v29 : string = "" │
00:00:15 #1294 [Verbose] > │ struct (v27, v28, v29, v26) │
00:00:15 #1295 [Verbose] > │ method0() │
00:00:15 #1296 [Verbose] > │ │
00:00:15 #1297 [Verbose] > │ │
00:00:15 #1298 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #1299 [Verbose] >
00:00:15 #1300 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:15 #1301 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:15 #1302 [Verbose] > │ ## velocity_fv │
00:00:15 #1303 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #1304 [Verbose] >
00:00:15 #1305 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:15 #1306 [Verbose] > inl newton_second_v m fs v0 =
00:00:15 #1307 [Verbose] > fs |> listm.map (fun f => f v0) |> listm'.sum |> fun x => x / m
00:00:15 #1308 [Verbose] >
00:00:15 #1309 [Verbose] > inl update_velocity dt m fs v0 =
00:00:15 #1310 [Verbose] > v0 + newton_second_v m fs v0 * dt
00:00:15 #1311 [Verbose] >
00:00:15 #1312 [Verbose] > inl velocity_fv dt m v0 fs t =
00:00:15 #1313 [Verbose] > stream.iterate (update_velocity dt m fs) v0
00:00:15 #1314 [Verbose] > |> stream.try_item (t / dt |> math.round |> abs)
00:00:15 #1315 [Verbose] > |> optionm'.default_value 0
00:00:16 #1316 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-5184-8466-840884aeb336/main.spi
00:00:16 #1317 [Verbose] >
00:00:16 #1318 [Verbose] > ╭─[ 504.97ms - stdout ]────────────────────────────────────────────────────────╮
00:00:16 #1319 [Verbose] > │ () │
00:00:16 #1320 [Verbose] > │ │
00:00:16 #1321 [Verbose] > │ │
00:00:16 #1322 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 #1323 [Verbose] >
00:00:16 #1324 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:16 #1325 [Verbose] > inl f_air drag rho area v =
00:00:16 #1326 [Verbose] > -drag * rho * area * abs v * v / 2
00:00:16 #1327 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-5235-3502-3d15ff9b6324/main.spi
00:00:16 #1328 [Verbose] >
00:00:16 #1329 [Verbose] > ╭─[ 167.31ms - stdout ]────────────────────────────────────────────────────────╮
00:00:16 #1330 [Verbose] > │ () │
00:00:16 #1331 [Verbose] > │ │
00:00:16 #1332 [Verbose] > │ │
00:00:16 #1333 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 #1334 [Verbose] >
00:00:16 #1335 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:16 #1336 [Verbose] > // // test
00:00:16 #1337 [Verbose] >
00:00:16 #1338 [Verbose] > inl x = am'.init_series 0 60 0.5
00:00:16 #1339 [Verbose] > inl y = x |> am.map (velocity_fv 1 70 0f64 [[ fun _ => 100; f_air 2 1.225 0.6
00:00:16 #1340 [Verbose] > ]])
00:00:16 #1341 [Verbose] > "bike velocity", "time (s)", "", ;[[ "velocity of bike (m/s)", x, y ]]
00:00:16 #1342 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-5251-5186-51795ed9979e/main.spi
00:00:17 #1343 [Verbose] >
00:00:17 #1344 [Verbose] > ╭─[ 383.33ms - return value ]──────────────────────────────────────────────────╮
00:00:17 #1345 [Verbose] > │ <svg width="640" height="480" viewBox="0 0 640 480" │
00:00:17 #1346 [Verbose] > │ xmlns="http://www.w3.org/2000/svg"> │
00:00:17 #1347 [Verbose] > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414" │
00:00:17 #1348 [Verbose] > │ stroke="none"/> │
00:00:17 #1349 [Verbose] > │ <text x="320" y="10" dy="0.76em" text-anchor="middle" │
00:00:17 #1350 [Verbose] > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1" │
00:00:17 #1351 [Verbose] > │ fill="#FFFFFF"> │
00:00:17 #1352 [Verbose] > │ bike velocity │
00:00:17 #1353 [Verbose] > │ </text> │
00:00:17 #1354 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="61" y1="424" x2="61" │
00:00:17 #1355 [Verbose] > │ y2="75"/> │
00:00:17 #1356 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:00:17 #1357 [Verbose] > │ y2="75"/> │
00:00:17 #1358 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="78" y1="424" x2="78" │
00:00:17 #1359 [Verbose] > │ y2="75"/> │
00:00:17 #1360 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="86" y1="424" x2="86" │
00:00:17 #1361 [Verbose] > │ y2="75"/> │
00:00:17 #1362 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="94" y1="424" x... │
00:00:17 #1363 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:17 #1364 [Verbose] >
00:00:17 #1365 [Verbose] > ╭─[ 390.64ms - stdout ]────────────────────────────────────────────────────────╮
00:00:17 #1366 [Verbose] > │ type Mut0 = {mutable l0 : int32} │
00:00:17 #1367 [Verbose] > │ and UH0 = │
00:00:17 #1368 [Verbose] > │ | UH0_0 of float * (unit -> UH0) │
00:00:17 #1369 [Verbose] > │ | UH0_1 │
00:00:17 #1370 [Verbose] > │ and [<Struct>] US0 = │
00:00:17 #1371 [Verbose] > │ | US0_0 │
00:00:17 #1372 [Verbose] > │ | US0_1 of f1_0 : float │
00:00:17 #1373 [Verbose] > │ let rec method1 (v0 : Mut0) : bool = │
00:00:17 #1374 [Verbose] > │ let v1 : int32 = v0.l0 │
00:00:17 #1375 [Verbose] > │ let v2 : bool = v1 < 121 │
00:00:17 #1376 [Verbose] > │ v2 │
00:00:17 #1377 [Verbose] > │ and method2 (v0 : int32, v1 : Mut0) : bool = │
00:00:17 #1378 [Verbose] > │ let v2 : int32 = v1.l0 │
00:00:17 #1379 [Verbose] > │ let v3 : bool = v2 < v0 │
00:00:17 #1380 [Verbose] > │ v3 │
00:00:17 #1381 [Verbose] > │ and closure129 () () : UH0 = │
00:00:17 #1382 [Verbose] > │ let v0 : (unit -> UH0) = closure129() │
00:00:17 #1383 [Verbose] > │ UH0_0(11.664236870396083, v0) │
00:00:17 #1384 [Verbose] > │ and closure128 () () : UH0 = │
00:00:17 #1385 [Verbose] > │ let v0 : (unit -> UH0) = closure129() │
00:00:17 #1386 [Verbose] > │ UH0_0(11.664236870396081, v0) │
00:00:17 #1387 [Verbose] > │ and closure127 () () : UH0 = │
00:00:17 #1388 [Verbose] > │ let v0 : (unit -> UH0) = closure128() │
00:00:17 #1389 [Verbose] > │ UH0_0(11.66423687039608, v0) │
00:00:17 #1390 [Verbose] > │ and closure126 () () : UH0 = │
00:00:17 #1391 [Verbose] > │ let v0 : (unit -> UH0) = closure127() │
00:00:17 #1392 [Verbose] > │ UH0_0(11.664236870396078, v0) │
00:00:17 #1393 [Verbose] > │ and closure125 () () : UH0 = │
00:00:17 #1394 [Verbose] > │ let v0 : (unit -> UH0) = closure126() │
00:00:17 #1395 [Verbose] > │ UH0_0(11.664236870396074, v0) │
00:00:17 #1396 [Verbose] > │ and closure124 () () : UH0 = │
00:00:17 #1397 [Verbose] > │ let v0 : (unit -> UH0) = closure125() │
00:00:17 #1398 [Verbose] > │ UH0_0(11.66423687039607, v0) │
00:00:17 #1399 [Verbose] > │ and closure123 () () : UH0 = │
00:00:17 #1400 [Verbose] > │ let v0 : (unit -> UH0) = closure124() │
00:00:17 #1401 [Verbose] > │ UH0_0(11.664236870396065, v0) │
00:00:17 #1402 [Verbose] > │ and closure122 () () : UH0 = │
00:00:17 #1403 [Verbose] > │ let v0 : (unit -> UH0) = closure123() │
00:00:17 #1404 [Verbose] > │ UH0_0(11.664236870396058, v0) │
00:00:17 #1405 [Verbose] > │ and closure121 () () : UH0 = │
00:00:17 #1406 [Verbose] > │ let v0 : (unit -> UH0) = closure122() │
00:00:17 #1407 [Verbose] > │ UH0_0(11.66423687039605, v0) │
00:00:17 #1408 [Verbose] > │ and closure120 () () : UH0 = │
00:00:17 #1409 [Verbose] > │ let v0 : (unit -> UH0) = closure121() │
00:00:17 #1410 [Verbose] > │ UH0_0(11.664236870396037, v0) │
00:00:17 #1411 [Verbose] > │ and closure119 () () : UH0 = │
00:00:17 #1412 [Verbose] > │ let v0 : (unit -> UH0) = closure120() │
00:00:17 #1413 [Verbose] > │ UH0_0(11.66423687039602, v0) │
00:00:17 #1414 [Verbose] > │ and closure118 () () : UH0 = │
00:00:17 #1415 [Verbose] > │ let v0 : (unit -> UH0) = closure119() │
00:00:17 #1416 [Verbose] > │ UH0_0(11.664236870396, v0) │
00:00:17 #1417 [Verbose] > │ and closure117 () () : UH0 = │
00:00:17 #1418 [Verbose] > │ let v0 : (unit -> UH0) = closure118() │
00:00:17 #1419 [Verbose] > │ UH0_0(11.664236870395971, v0) │
00:00:17 #1420 [Verbose] > │ and closure116 () () : UH0 = │
00:00:17 #1421 [Verbose] > │ let v0 : (unit -> UH0) = closure117() │
00:00:17 #1422 [Verbose] > │ UH0_0(11.664236870395934, v0) │
00:00:17 #1423 [Verbose] > │ and closure115 () () : UH0 = │
00:00:17 #1424 [Verbose] > │ let v0 : (unit -> UH0) = closure116() │
00:00:17 #1425 [Verbose] > │ UH0_0(11.664236870395884, v0) │
00:00:17 #1426 [Verbose] > │ and closure114 () () : UH0 = │
00:00:17 #1427 [Verbose] > │ let v0 : (unit -> UH0) = closure115() │
00:00:17 #1428 [Verbose] > │ UH0_0(11.664236870395818, v0) │
00:00:17 #1429 [Verbose] > │ and closure113 () () : UH0 = │
00:00:17 #1430 [Verbose] > │ let v0 : (unit -> UH0) = closure114() │
00:00:17 #1431 [Verbose] > │ UH0_0(11.664236870395731, v0) │
00:00:17 #1432 [Verbose] > │ and closure112 () () : UH0 = │
00:00:17 #1433 [Verbose] > │ let v0 : (unit -> UH0) = closure113() │
00:00:17 #1434 [Verbose] > │ UH0_0(11.664236870395616, v0) │
00:00:17 #1435 [Verbose] > │ and closure111 () () : UH0 = │
00:00:17 #1436 [Verbose] > │ let v0 : (unit -> UH0) = closure112() │
00:00:17 #1437 [Verbose] > │ UH0_0(11.664236870395463, v0) │
00:00:17 #1438 [Verbose] > │ and closure110 () () : UH0 = │
00:00:17 #1439 [Verbose] > │ let v0 : (unit -> UH0) = closure111() │
00:00:17 #1440 [Verbose] > │ UH0_0(11.66423687039526, v0) │
00:00:17 #1441 [Verbose] > │ and closure109 () () : UH0 = │
00:00:17 #1442 [Verbose] > │ let v0 : (unit -> UH0) = closure110() │
00:00:17 #1443 [Verbose] > │ UH0_0(11.664236870394992, v0) │
00:00:17 #1444 [Verbose] > │ and closure108 () () : UH0 = │
00:00:17 #1445 [Verbose] > │ let v0 : (unit -> UH0) = closure109() │
00:00:17 #1446 [Verbose] > │ UH0_0(11.664236870394637, v0) │
00:00:17 #1447 [Verbose] > │ and closure107 () () : UH0 = │
00:00:17 #1448 [Verbose] > │ let v0 : (unit -> UH0) = closure108() │
00:00:17 #1449 [Verbose] > │ UH0_0(11.664236870394168, v0) │
00:00:17 #1450 [Verbose] > │ and closure106 () () : UH0 = │
00:00:17 #1451 [Verbose] > │ let v0 : (unit -> UH0) = closure107() │
00:00:17 #1452 [Verbose] > │ UH0_0(11.664236870393546, v0) │
00:00:17 #1453 [Verbose] > │ and closure105 () () : UH0 = │
00:00:17 #1454 [Verbose] > │ let v0 : (unit -> UH0) = closure106() │
00:00:17 #1455 [Verbose] > │ UH0_0(11.664236870392722, v0) │
00:00:17 #1456 [Verbose] > │ and closure104 () () : UH0 = │
00:00:17 #1457 [Verbose] > │ let v0 : (unit -> UH0) = closure105() │
00:00:17 #1458 [Verbose] > │ UH0_0(11.664236870391631, v0) │
00:00:17 #1459 [Verbose] > │ and closure103 () () : UH0 = │
00:00:17 #1460 [Verbose] > │ let v0 : (unit -> UH0) = closure104() │
00:00:17 #1461 [Verbose] > │ UH0_0(11.664236870390187, v0) │
00:00:17 #1462 [Verbose] > │ and closure102 () () : UH0 = │
00:00:17 #1463 [Verbose] > │ let v0 : (unit -> UH0) = closure103() │
00:00:17 #1464 [Verbose] > │ UH0_0(11.664236870388274, v0) │
00:00:17 #1465 [Verbose] > │ and closure101 () () : UH0 = │
00:00:17 #1466 [Verbose] > │ let v0 : (unit -> UH0) = closure102() │
00:00:17 #1467 [Verbose] > │ UH0_0(11.66423687038574, v0) │
00:00:17 #1468 [Verbose] > │ and closure100 () () : UH0 = │
00:00:17 #1469 [Verbose] > │ let v0 : (unit -> UH0) = closure101() │
00:00:17 #1470 [Verbose] > │ UH0_0(11.664236870382384, v0) │
00:00:17 #1471 [Verbose] > │ and closure99 () () : UH0 = │
00:00:17 #1472 [Verbose] > │ let v0 : (unit -> UH0) = closure100() │
00:00:17 #1473 [Verbose] > │ UH0_0(11.664236870377938, v0) │
00:00:17 #1474 [Verbose] > │ and closure98 () () : UH0 = │
00:00:17 #1475 [Verbose] > │ let v0 : (unit -> UH0) = closure99() │
00:00:17 #1476 [Verbose] > │ UH0_0(11.66423687037205, v0) │
00:00:17 #1477 [Verbose] > │ and closure97 () () : UH0 = │
00:00:17 #1478 [Verbose] > │ let v0 : (unit -> UH0) = closure98() │
00:00:17 #1479 [Verbose] > │ UH0_0(11.664236870364254, v0) │
00:00:17 #1480 [Verbose] > │ and closure96 () () : UH0 = │
00:00:17 #1481 [Verbose] > │ let v0 : (unit -> UH0) = closure97() │
00:00:17 #1482 [Verbose] > │ UH0_0(11.664236870353927, v0) │
00:00:17 #1483 [Verbose] > │ and closure95 () () : UH0 = │
00:00:17 #1484 [Verbose] > │ let v0 : (unit -> UH0) = closure96() │
00:00:17 #1485 [Verbose] > │ UH0_0(11.664236870340249, v0) │
00:00:17 #1486 [Verbose] > │ and closure94 () () : UH0 = │
00:00:17 #1487 [Verbose] > │ let v0 : (unit -> UH0) = closure95() │
00:00:17 #1488 [Verbose] > │ UH0_0(11.664236870322135, v0) │
00:00:17 #1489 [Verbose] > │ and closure93 () () : UH0 = │
00:00:17 #1490 [Verbose] > │ let v0 : (unit -> UH0) = closure94() │
00:00:17 #1491 [Verbose] > │ UH0_0(11.664236870298145, v0) │
00:00:17 #1492 [Verbose] > │ and closure92 () () : UH0 = │
00:00:17 #1493 [Verbose] > │ let v0 : (unit -> UH0) = closure93() │
00:00:17 #1494 [Verbose] > │ UH0_0(11.664236870266372, v0) │
00:00:17 #1495 [Verbose] > │ and closure91 () () : UH0 = │
00:00:17 #1496 [Verbose] > │ let v0 : (unit -> UH0) = closure92() │
00:00:17 #1497 [Verbose] > │ UH0_0(11.664236870224292, v0) │
00:00:17 #1498 [Verbose] > │ and closure90 () () : UH0 = │
00:00:17 #1499 [Verbose] > │ let v0 : (unit -> UH0) = closure91() │
00:00:17 #1500 [Verbose] > │ UH0_0(11.66423687016856, v0) │
00:00:17 #1501 [Verbose] > │ and closure89 () () : UH0 = │
00:00:17 #1502 [Verbose] > │ let v0 : (unit -> UH0) = closure90() │
00:00:17 #1503 [Verbose] > │ UH0_0(11.664236870094747, v0) │
00:00:17 #1504 [Verbose] > │ and closure88 () () : UH0 = │
00:00:17 #1505 [Verbose] > │ let v0 : (unit -> UH0) = closure89() │
00:00:17 #1506 [Verbose] > │ UH0_0(11.664236869996989, v0) │
00:00:17 #1507 [Verbose] > │ and closure87 () () : UH0 = │
00:00:17 #1508 [Verbose] > │ let v0 : (unit -> UH0) = closure88() │
00:00:17 #1509 [Verbose] > │ UH0_0(11.664236869867516, v0) │
00:00:17 #1510 [Verbose] > │ and closure86 () () : UH0 = │
00:00:17 #1511 [Verbose] > │ let v0 : (unit -> UH0) = closure87() │
00:00:17 #1512 [Verbose] > │ UH0_0(11.66423686969604, v0) │
00:00:17 #1513 [Verbose] > │ and closure85 () () : UH0 = │
00:00:17 #1514 [Verbose] > │ let v0 : (unit -> UH0) = closure86() │
00:00:17 #1515 [Verbose] > │ UH0_0(11.664236869468937, v0) │
00:00:17 #1516 [Verbose] > │ and closure84 () () : UH0 = │
00:00:17 #1517 [Verbose] > │ let v0 : (unit -> UH0) = closure85() │
00:00:17 #1518 [Verbose] > │ UH0_0(11.664236869168157, v0) │
00:00:17 #1519 [Verbose] > │ and closure83 () () : UH0 = │
00:00:17 #1520 [Verbose] > │ let v0 : (unit -> UH0) = closure84() │
00:00:17 #1521 [Verbose] > │ UH0_0(11.6642368687698, v0) │
00:00:17 #1522 [Verbose] > │ and closure82 () () : UH0 = │
00:00:17 #1523 [Verbose] > │ let v0 : (unit -> UH0) = closure83() │
00:00:17 #1524 [Verbose] > │ UH0_0(11.664236868242211, v0) │
00:00:17 #1525 [Verbose] > │ and closure81 () () : UH0 = │
00:00:17 #1526 [Verbose] > │ let v0 : (unit -> UH0) = closure82() │
00:00:17 #1527 [Verbose] > │ UH0_0(11.664236867543465, v0) │
00:00:17 #1528 [Verbose] > │ and closure80 () () : UH0 = │
00:00:17 #1529 [Verbose] > │ let v0 : (unit -> UH0) = closure81() │
00:00:17 #1530 [Verbose] > │ UH0_0(11.664236866618037, v0) │
00:00:17 #1531 [Verbose] > │ and closure79 () () : UH0 = │
00:00:17 #1532 [Verbose] > │ let v0 : (unit -> UH0) = closure80() │
00:00:17 #1533 [Verbose] > │ UH0_0(11.664236865392386, v0) │
00:00:17 #1534 [Verbose] > │ and closure78 () () : UH0 = │
00:00:17 #1535 [Verbose] > │ let v0 : (unit -> UH0) = closure79() │
00:00:17 #1536 [Verbose] > │ UH0_0(11.664236863769117, v0) │
00:00:17 #1537 [Verbose] > │ and closure77 () () : UH0 = │
00:00:17 #1538 [Verbose] > │ let v0 : (unit -> UH0) = closure78() │
00:00:17 #1539 [Verbose] > │ UH0_0(11.664236861619237, v0) │
00:00:17 #1540 [Verbose] > │ and closure76 () () : UH0 = │
00:00:17 #1541 [Verbose] > │ let v0 : (unit -> UH0) = closure77() │
00:00:17 #1542 [Verbose] > │ UH0_0(11.664236858771906, v0) │
00:00:17 #1543 [Verbose] > │ and closure75 () () : UH0 = │
00:00:17 #1544 [Verbose] > │ let v0 : (unit -> UH0) = closure76() │
00:00:17 #1545 [Verbose] > │ UH0_0(11.66423685500086, v0) │
00:00:17 #1546 [Verbose] > │ and closure74 () () : UH0 = │
00:00:17 #1547 [Verbose] > │ let v0 : (unit -> UH0) = closure75() │
00:00:17 #1548 [Verbose] > │ UH0_0(11.664236850006436, v0) │
00:00:17 #1549 [Verbose] > │ and closure73 () () : UH0 = │
00:00:17 #1550 [Verbose] > │ let v0 : (unit -> UH0) = closure74() │
00:00:17 #1551 [Verbose] > │ UH0_0(11.664236843391752, v0) │
00:00:17 #1552 [Verbose] > │ and closure72 () () : UH0 = │
00:00:17 #1553 [Verbose] > │ let v0 : (unit -> UH0) = closure73() │
00:00:17 #1554 [Verbose] > │ UH0_0(11.664236834631172, v0) │
00:00:17 #1555 [Verbose] > │ and closure71 () () : UH0 = │
00:00:17 #1556 [Verbose] > │ let v0 : (unit -> UH0) = closure72() │
00:00:17 #1557 [Verbose] > │ UH0_0(11.66423682302854, v0) │
00:00:17 #1558 [Verbose] > │ and closure70 () () : UH0 = │
00:00:17 #1559 [Verbose] > │ let v0 : (unit -> UH0) = closure71() │
00:00:17 #1560 [Verbose] > │ UH0_0(11.664236807661855, v0) │
00:00:17 #1561 [Verbose] > │ and closure69 () () : UH0 = │
00:00:17 #1562 [Verbose] > │ let v0 : (unit -> UH0) = closure70() │
00:00:17 #1563 [Verbose] > │ UH0_0(11.664236787310005, v0) │
00:00:17 #1564 [Verbose] > │ and closure68 () () : UH0 = │
00:00:17 #1565 [Verbose] > │ let v0 : (unit -> UH0) = closure69() │
00:00:17 #1566 [Verbose] > │ UH0_0(11.664236760355733, v0) │
00:00:17 #1567 [Verbose] > │ and closure67 () () : UH0 = │
00:00:17 #1568 [Verbose] > │ let v0 : (unit -> UH0) = closure68() │
00:00:17 #1569 [Verbose] > │ UH0_0(11.664236724657123, v0) │
00:00:17 #1570 [Verbose] > │ and closure66 () () : UH0 = │
00:00:17 #1571 [Verbose] > │ let v0 : (unit -> UH0) = closure67() │
00:00:17 #1572 [Verbose] > │ UH0_0(11.66423667737739, v0) │
00:00:17 #1573 [Verbose] > │ and closure65 () () : UH0 = │
00:00:17 #1574 [Verbose] > │ let v0 : (unit -> UH0) = closure66() │
00:00:17 #1575 [Verbose] > │ UH0_0(11.664236614759462, v0) │
00:00:17 #1576 [Verbose] > │ and closure64 () () : UH0 = │
00:00:17 #1577 [Verbose] > │ let v0 : (unit -> UH0) = closure65() │
00:00:17 #1578 [Verbose] > │ UH0_0(11.664236531827415, v0) │
00:00:17 #1579 [Verbose] > │ and closure63 () () : UH0 = │
00:00:17 #1580 [Verbose] > │ let v0 : (unit -> UH0) = closure64() │
00:00:17 #1581 [Verbose] > │ UH0_0(11.664236421991067, v0) │
00:00:17 #1582 [Verbose] > │ and closure62 () () : UH0 = │
00:00:17 #1583 [Verbose] > │ let v0 : (unit -> UH0) = closure63() │
00:00:17 #1584 [Verbose] > │ UH0_0(11.664236276522294, v0) │
00:00:17 #1585 [Verbose] > │ and closure61 () () : UH0 = │
00:00:17 #1586 [Verbose] > │ let v0 : (unit -> UH0) = closure62() │
00:00:17 #1587 [Verbose] > │ UH0_0(11.664236083861448, v0) │
00:00:17 #1588 [Verbose] > │ and closure60 () () : UH0 = │
00:00:17 #1589 [Verbose] > │ let v0 : (unit -> UH0) = closure61() │
00:00:17 #1590 [Verbose] > │ UH0_0(11.664235828698772, v0) │
00:00:17 #1591 [Verbose] > │ and closure59 () () : UH0 = │
00:00:17 #1592 [Verbose] > │ let v0 : (unit -> UH0) = closure60() │
00:00:17 #1593 [Verbose] > │ UH0_0(11.664235490757811, v0) │
00:00:17 #1594 [Verbose] > │ and closure58 () () : UH0 = │
00:00:17 #1595 [Verbose] > │ let v0 : (unit -> UH0) = closure59() │
00:00:17 #1596 [Verbose] > │ UH0_0(11.664235043184158, v0) │
00:00:17 #1597 [Verbose] > │ and closure57 () () : UH0 = │
00:00:17 #1598 [Verbose] > │ let v0 : (unit -> UH0) = closure58() │
00:00:17 #1599 [Verbose] > │ UH0_0(11.66423445041147, v0) │
00:00:17 #1600 [Verbose] > │ and closure56 () () : UH0 = │
00:00:17 #1601 [Verbose] > │ let v0 : (unit -> UH0) = closure57() │
00:00:17 #1602 [Verbose] > │ UH0_0(11.664233665335203, v0) │
00:00:17 #1603 [Verbose] > │ and closure55 () () : UH0 = │
00:00:17 #1604 [Verbose] > │ let v0 : (unit -> UH0) = closure56() │
00:00:17 #1605 [Verbose] > │ UH0_0(11.664232625569467, v0) │
00:00:17 #1606 [Verbose] > │ and closure54 () () : UH0 = │
00:00:17 #1607 [Verbose] > │ let v0 : (unit -> UH0) = closure55() │
00:00:17 #1608 [Verbose] > │ UH0_0(11.664231248489562, v0) │
00:00:17 #1609 [Verbose] > │ and closure53 () () : UH0 = │
00:00:17 #1610 [Verbose] > │ let v0 : (unit -> UH0) = closure54() │
00:00:17 #1611 [Verbose] > │ UH0_0(11.664229424666262, v0) │
00:00:17 #1612 [Verbose] > │ and closure52 () () : UH0 = │
00:00:17 #1613 [Verbose] > │ let v0 : (unit -> UH0) = closure53() │
00:00:17 #1614 [Verbose] > │ UH0_0(11.66422700917009, v0) │
00:00:17 #1615 [Verbose] > │ and closure51 () () : UH0 = │
00:00:17 #1616 [Verbose] > │ let v0 : (unit -> UH0) = closure52() │
00:00:17 #1617 [Verbose] > │ UH0_0(11.664223810054642, v0) │
00:00:17 #1618 [Verbose] > │ and closure50 () () : UH0 = │
00:00:17 #1619 [Verbose] > │ let v0 : (unit -> UH0) = closure51() │
00:00:17 #1620 [Verbose] > │ UH0_0(11.664219573103773, v0) │
00:00:17 #1621 [Verbose] > │ and closure49 () () : UH0 = │
00:00:17 #1622 [Verbose] > │ let v0 : (unit -> UH0) = closure50() │
00:00:17 #1623 [Verbose] > │ UH0_0(11.6642139616307, v0) │
00:00:17 #1624 [Verbose] > │ and closure48 () () : UH0 = │
00:00:17 #1625 [Verbose] > │ let v0 : (unit -> UH0) = closure49() │
00:00:17 #1626 [Verbose] > │ UH0_0(11.664206529723813, v0) │
00:00:17 #1627 [Verbose] > │ and closure47 () () : UH0 = │
00:00:17 #1628 [Verbose] > │ let v0 : (unit -> UH0) = closure48() │
00:00:17 #1629 [Verbose] > │ UH0_0(11.664196686813408, v0) │
00:00:17 #1630 [Verbose] > │ and closure46 () () : UH0 = │
00:00:17 #1631 [Verbose] > │ let v0 : (unit -> UH0) = closure47() │
00:00:17 #1632 [Verbose] > │ UH0_0(11.664183650743945, v0) │
00:00:17 #1633 [Verbose] > │ and closure45 () () : UH0 = │
00:00:17 #1634 [Verbose] > │ let v0 : (unit -> UH0) = closure46() │
00:00:17 #1635 [Verbose] > │ UH0_0(11.664166385623318, v0) │
00:00:17 #1636 [Verbose] > │ and closure44 () () : UH0 = │
00:00:17 #1637 [Verbose] > │ let v0 : (unit -> UH0) = closure45() │
00:00:17 #1638 [Verbose] > │ UH0_0(11.664143519511356, v0) │
00:00:17 #1639 [Verbose] > │ and closure43 () () : UH0 = │
00:00:17 #1640 [Verbose] > │ let v0 : (unit -> UH0) = closure44() │
00:00:17 #1641 [Verbose] > │ UH0_0(11.664113235408447, v0) │
00:00:17 #1642 [Verbose] > │ and closure42 () () : UH0 = │
00:00:17 #1643 [Verbose] > │ let v0 : (unit -> UH0) = closure43() │
00:00:17 #1644 [Verbose] > │ UH0_0(11.66407312688485, v0) │
00:00:17 #1645 [Verbose] > │ and closure41 () () : UH0 = │
00:00:17 #1646 [Verbose] > │ let v0 : (unit -> UH0) = closure42() │
00:00:17 #1647 [Verbose] > │ UH0_0(11.664020006883758, v0) │
00:00:17 #1648 [Verbose] > │ and closure40 () () : UH0 = │
00:00:17 #1649 [Verbose] > │ let v0 : (unit -> UH0) = closure41() │
00:00:17 #1650 [Verbose] > │ UH0_0(11.663949654514292, v0) │
00:00:17 #1651 [Verbose] > │ and closure39 () () : UH0 = │
00:00:17 #1652 [Verbose] > │ let v0 : (unit -> UH0) = closure40() │
00:00:17 #1653 [Verbose] > │ UH0_0(11.663856479730171, v0) │
00:00:17 #1654 [Verbose] > │ and closure38 () () : UH0 = │
00:00:17 #1655 [Verbose] > │ let v0 : (unit -> UH0) = closure39() │
00:00:17 #1656 [Verbose] > │ UH0_0(11.663733079277343, v0) │
00:00:17 #1657 [Verbose] > │ and closure37 () () : UH0 = │
00:00:17 #1658 [Verbose] > │ let v0 : (unit -> UH0) = closure38() │
00:00:17 #1659 [Verbose] > │ UH0_0(11.663569648675777, v0) │
00:00:17 #1660 [Verbose] > │ and closure36 () () : UH0 = │
00:00:17 #1661 [Verbose] > │ let v0 : (unit -> UH0) = closure37() │
00:00:17 #1662 [Verbose] > │ UH0_0(11.663353203599439, v0) │
00:00:17 #1663 [Verbose] > │ and closure35 () () : UH0 = │
00:00:17 #1664 [Verbose] > │ let v0 : (unit -> UH0) = closure36() │
00:00:17 #1665 [Verbose] > │ UH0_0(11.663066548940721, v0) │
00:00:17 #1666 [Verbose] > │ and closure34 () () : UH0 = │
00:00:17 #1667 [Verbose] > │ let v0 : (unit -> UH0) = closure35() │
00:00:17 #1668 [Verbose] > │ UH0_0(11.662686913915445, v0) │
00:00:17 #1669 [Verbose] > │ and closure33 () () : UH0 = │
00:00:17 #1670 [Verbose] > │ let v0 : (unit -> UH0) = closure34() │
00:00:17 #1671 [Verbose] > │ UH0_0(11.662184145236864, v0) │
00:00:17 #1672 [Verbose] > │ and closure32 () () : UH0 = │
00:00:17 #1673 [Verbose] > │ let v0 : (unit -> UH0) = closure33() │
00:00:17 #1674 [Verbose] > │ UH0_0(11.661518315638029, v0) │
00:00:17 #1675 [Verbose] > │ and closure31 () () : UH0 = │
00:00:17 #1676 [Verbose] > │ let v0 : (unit -> UH0) = closure32() │
00:00:17 #1677 [Verbose] > │ UH0_0(11.66063655920926, v0) │
00:00:17 #1678 [Verbose] > │ and closure30 () () : UH0 = │
00:00:17 #1679 [Verbose] > │ let v0 : (unit -> UH0) = closure31() │
00:00:17 #1680 [Verbose] > │ UH0_0(11.659468884709733, v0) │
00:00:17 #1681 [Verbose] > │ and closure29 () () : UH0 = │
00:00:17 #1682 [Verbose] > │ let v0 : (unit -> UH0) = closure30() │
00:00:17 #1683 [Verbose] > │ UH0_0(11.657922638782631, v0) │
00:00:17 #1684 [Verbose] > │ and closure28 () () : UH0 = │
00:00:17 #1685 [Verbose] > │ let v0 : (unit -> UH0) = closure29() │
00:00:17 #1686 [Verbose] > │ UH0_0(11.655875187195818, v0) │
00:00:17 #1687 [Verbose] > │ and closure27 () () : UH0 = │
00:00:17 #1688 [Verbose] > │ let v0 : (unit -> UH0) = closure28() │
00:00:17 #1689 [Verbose] > │ UH0_0(11.653164246713697, v0) │
00:00:17 #1690 [Verbose] > │ and closure26 () () : UH0 = │
00:00:17 #1691 [Verbose] > │ let v0 : (unit -> UH0) = closure27() │
00:00:17 #1692 [Verbose] > │ UH0_0(11.64957512416459, v0) │
00:00:17 #1693 [Verbose] > │ and closure25 () () : UH0 = │
00:00:17 #1694 [Verbose] > │ let v0 : (unit -> UH0) = closure26() │
00:00:17 #1695 [Verbose] > │ UH0_0(11.644823892116417, v0) │
00:00:17 #1696 [Verbose] > │ and closure24 () () : UH0 = │
00:00:17 #1697 [Verbose] > │ let v0 : (unit -> UH0) = closure25() │
00:00:17 #1698 [Verbose] > │ UH0_0(11.63853524018339, v0) │
00:00:17 #1699 [Verbose] > │ and closure23 () () : UH0 = │
00:00:17 #1700 [Verbose] > │ let v0 : (unit -> UH0) = closure24() │
00:00:17 #1701 [Verbose] > │ UH0_0(11.630213374558416, v0) │
00:00:17 #1702 [Verbose] > │ and closure22 () () : UH0 = │
00:00:17 #1703 [Verbose] > │ let v0 : (unit -> UH0) = closure23() │
00:00:17 #1704 [Verbose] > │ UH0_0(11.619203884549703, v0) │
00:00:17 #1705 [Verbose] > │ and closure21 () () : UH0 = │
00:00:17 #1706 [Verbose] > │ let v0 : (unit -> UH0) = closure22() │
00:00:17 #1707 [Verbose] > │ UH0_0(11.604643948207235, v0) │
00:00:17 #1708 [Verbose] > │ and closure20 () () : UH0 = │
00:00:17 #1709 [Verbose] > │ let v0 : (unit -> UH0) = closure21() │
00:00:17 #1710 [Verbose] > │ UH0_0(11.585397618384544, v0) │
00:00:17 #1711 [Verbose] > │ and closure19 () () : UH0 = │
00:00:17 #1712 [Verbose] > │ let v0 : (unit -> UH0) = closure20() │
00:00:17 #1713 [Verbose] > │ UH0_0(11.559972254267073, v0) │
00:00:17 #1714 [Verbose] > │ and closure18 () () : UH0 = │
00:00:17 #1715 [Verbose] > │ let v0 : (unit -> UH0) = closure19() │
00:00:17 #1716 [Verbose] > │ UH0_0(11.526411536153837, v0) │
00:00:17 #1717 [Verbose] > │ and closure17 () () : UH0 = │
00:00:17 #1718 [Verbose] > │ let v0 : (unit -> UH0) = closure18() │
00:00:17 #1719 [Verbose] > │ UH0_0(11.48216011776808, v0) │
00:00:17 #1720 [Verbose] > │ and closure16 () () : UH0 = │
00:00:17 #1721 [Verbose] > │ let v0 : (unit -> UH0) = closure17() │
00:00:17 #1722 [Verbose] > │ UH0_0(11.42389519391233, v0) │
00:00:17 #1723 [Verbose] > │ and closure15 () () : UH0 = │
00:00:17 #1724 [Verbose] > │ let v0 : (unit -> UH0) = closure16() │
00:00:17 #1725 [Verbose] > │ UH0_0(11.347321723441393, v0) │
00:00:17 #1726 [Verbose] > │ and closure14 () () : UH0 = │
00:00:17 #1727 [Verbose] > │ let v0 : (unit -> UH0) = closure15() │
00:00:17 #1728 [Verbose] > │ UH0_0(11.246931775734161, v0) │
00:00:17 #1729 [Verbose] > │ and closure13 () () : UH0 = │
00:00:17 #1730 [Verbose] > │ let v0 : (unit -> UH0) = closure14() │
00:00:17 #1731 [Verbose] > │ UH0_0(11.115736011467376, v0) │
00:00:17 #1732 [Verbose] > │ and closure12 () () : UH0 = │
00:00:17 #1733 [Verbose] > │ let v0 : (unit -> UH0) = closure13() │
00:00:17 #1734 [Verbose] > │ UH0_0(10.94498876251829, v0) │
00:00:17 #1735 [Verbose] > │ and closure11 () () : UH0 = │
00:00:17 #1736 [Verbose] > │ let v0 : (unit -> UH0) = closure12() │
00:00:17 #1737 [Verbose] > │ UH0_0(10.72394989903564, v0) │
00:00:17 #1738 [Verbose] > │ and closure10 () () : UH0 = │
00:00:17 #1739 [Verbose] > │ let v0 : (unit -> UH0) = closure11() │
00:00:17 #1740 [Verbose] > │ UH0_0(10.439758275369812, v0) │
00:00:17 #1741 [Verbose] > │ and closure9 () () : UH0 = │
00:00:17 #1742 [Verbose] > │ let v0 : (unit -> UH0) = closure10() │
00:00:17 #1743 [Verbose] > │ UH0_0(10.077531599826058, v0) │
00:00:17 #1744 [Verbose] > │ and closure8 () () : UH0 = │
00:00:17 #1745 [Verbose] > │ let v0 : (unit -> UH0) = closure9() │
00:00:17 #1746 [Verbose] > │ UH0_0(9.62084761372258, v0) │
00:00:17 #1747 [Verbose] > │ and closure7 () () : UH0 = │
00:00:17 #1748 [Verbose] > │ let v0 : (unit -> UH0) = closure8() │
00:00:17 #1749 [Verbose] > │ UH0_0(9.052781056066443, v0) │
00:00:17 #1750 [Verbose] > │ and closure6 () () : UH0 = │
00:00:17 #1751 [Verbose] > │ let v0 : (unit -> UH0) = closure7() │
00:00:17 #1752 [Verbose] > │ UH0_0(8.357635347880503, v0) │
00:00:17 #1753 [Verbose] > │ and closure5 () () : UH0 = │
00:00:17 #1754 [Verbose] > │ let v0 : (unit -> UH0) = closure6() │
00:00:17 #1755 [Verbose] > │ UH0_0(7.523376447621674, v0) │
00:00:17 #1756 [Verbose] > │ and closure4 () () : UH0 = │
00:00:17 #1757 [Verbose] > │ let v0 : (unit -> UH0) = closure5() │
00:00:17 #1758 [Verbose] > │ UH0_0(6.544529054818572, v0) │
00:00:17 #1759 [Verbose] > │ and closure3 () () : UH0 = │
00:00:17 #1760 [Verbose] > │ let v0 : (unit -> UH0) = closure4() │
00:00:17 #1761 [Verbose] > │ UH0_0(5.424976512996006, v0) │
00:00:17 #1762 [Verbose] > │ and closure2 () () : UH0 = │
00:00:17 #1763 [Verbose] > │ let v0 : (unit -> UH0) = closure3() │
00:00:17 #1764 [Verbose] > │ UH0_0(4.179852321428571, v0) │
00:00:17 #1765 [Verbose] > │ and closure1 () () : UH0 = │
00:00:17 #1766 [Verbose] > │ let v0 : (unit -> UH0) = closure2() │
00:00:17 #1767 [Verbose] > │ UH0_0(2.835714285714286, v0) │
00:00:17 #1768 [Verbose] > │ and closure0 () () : UH0 = │
00:00:17 #1769 [Verbose] > │ let v0 : (unit -> UH0) = closure1() │
00:00:17 #1770 [Verbose] > │ UH0_0(1.4285714285714286, v0) │
00:00:17 #1771 [Verbose] > │ and method3 (v0 : float, v1 : UH0) : US0 = │
00:00:17 #1772 [Verbose] > │ match v1 with │
00:00:17 #1773 [Verbose] > │ | UH0_0(v2, v3) -> (* StreamCons *) │
00:00:17 #1774 [Verbose] > │ let v4 : bool = v0 <= 0.0 │
00:00:17 #1775 [Verbose] > │ if v4 then │
00:00:17 #1776 [Verbose] > │ US0_1(v2) │
00:00:17 #1777 [Verbose] > │ else │
00:00:17 #1778 [Verbose] > │ let v6 : float = v0 - 1.0 │
00:00:17 #1779 [Verbose] > │ let v7 : UH0 = v3 () │
00:00:17 #1780 [Verbose] > │ method3(v6, v7) │
00:00:17 #1781 [Verbose] > │ | UH0_1 -> (* StreamNil *) │
00:00:17 #1782 [Verbose] > │ US0_0 │
00:00:17 #1783 [Verbose] > │ and method4 (v0 : (struct (string * (float []) * (float [])) [])) : (struct │
00:00:17 #1784 [Verbose] > │ (string * (float []) * (float [])) []) = │
00:00:17 #1785 [Verbose] > │ v0 │
00:00:17 #1786 [Verbose] > │ and method0 () : struct (string * string * string * (struct (string * (float │
00:00:17 #1787 [Verbose] > │ []) * (float [])) [])) = │
00:00:17 #1788 [Verbose] > │ let v0 : (float []) = Array.zeroCreate<float> (121) │
00:00:17 #1789 [Verbose] > │ let v1 : Mut0 = {l0 = 0} : Mut0 │
00:00:17 #1790 [Verbose] > │ while method1(v1) do │
00:00:17 #1791 [Verbose] > │ let v3 : int32 = v1.l0 │
00:00:17 #1792 [Verbose] > │ let v4 : float = float v3 │
00:00:17 #1793 [Verbose] > │ let v5 : float = 0.5 * v4 │
00:00:17 #1794 [Verbose] > │ v0.[int v3] <- v5 │
00:00:17 #1795 [Verbose] > │ let v6 : int32 = v3 + 1 │
00:00:17 #1796 [Verbose] > │ v1.l0 <- v6 │
00:00:17 #1797 [Verbose] > │ () │
00:00:17 #1798 [Verbose] > │ let v7 : int32 = v0.Length │
00:00:17 #1799 [Verbose] > │ let v8 : (float []) = Array.zeroCreate<float> (v7) │
00:00:17 #1800 [Verbose] > │ let v9 : Mut0 = {l0 = 0} : Mut0 │
00:00:17 #1801 [Verbose] > │ while method2(v7, v9) do │
00:00:17 #1802 [Verbose] > │ let v11 : int32 = v9.l0 │
00:00:17 #1803 [Verbose] > │ let v12 : float = v0.[int v11] │
00:00:17 #1804 [Verbose] > │ let v13 : float = round v12 │
00:00:17 #1805 [Verbose] > │ let v14 : float = -v13 │
00:00:17 #1806 [Verbose] > │ let v15 : bool = v13 >= v14 │
00:00:17 #1807 [Verbose] > │ let v16 : float = │
00:00:17 #1808 [Verbose] > │ if v15 then │
00:00:17 #1809 [Verbose] > │ v13 │
00:00:17 #1810 [Verbose] > │ else │
00:00:17 #1811 [Verbose] > │ v14 │
00:00:17 #1812 [Verbose] > │ let v17 : float = 0.0 │
00:00:17 #1813 [Verbose] > │ let v18 : (unit -> UH0) = closure0() │
00:00:17 #1814 [Verbose] > │ let v19 : UH0 = UH0_0(v17, v18) │
00:00:17 #1815 [Verbose] > │ let v20 : US0 = method3(v16, v19) │
00:00:17 #1816 [Verbose] > │ let v23 : float = │
00:00:17 #1817 [Verbose] > │ match v20 with │
00:00:17 #1818 [Verbose] > │ | US0_0 -> (* None *) │
00:00:17 #1819 [Verbose] > │ 0.0 │
00:00:17 #1820 [Verbose] > │ | US0_1(v21) -> (* Some *) │
00:00:17 #1821 [Verbose] > │ v21 │
00:00:17 #1822 [Verbose] > │ v8.[int v11] <- v23 │
00:00:17 #1823 [Verbose] > │ let v24 : int32 = v11 + 1 │
00:00:17 #1824 [Verbose] > │ v9.l0 <- v24 │
00:00:17 #1825 [Verbose] > │ () │
00:00:17 #1826 [Verbose] > │ let v25 : string = "velocity of bike (m/s)" │
00:00:17 #1827 [Verbose] > │ let v26 : (struct (string * (float []) * (float [])) []) = [|struct │
00:00:17 #1828 [Verbose] > │ (v25, v0, v8)|] │
00:00:17 #1829 [Verbose] > │ let v27 : (struct (string * (float []) * (float [])) []) = method4(v26) │
00:00:17 #1830 [Verbose] > │ let v28 : string = "bike velocity" │
00:00:17 #1831 [Verbose] > │ let v29 : string = "time (s)" │
00:00:17 #1832 [Verbose] > │ let v30 : string = "" │
00:00:17 #1833 [Verbose] > │ struct (v28, v29, v30, v27) │
00:00:17 #1834 [Verbose] > │ method0() │
00:00:17 #1835 [Verbose] > │ │
00:00:17 #1836 [Verbose] > │ │
00:00:17 #1837 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:17 #1838 [Verbose] >
00:00:17 #1839 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:17 #1840 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:17 #1841 [Verbose] > │ ## velocity_ftv │
00:00:17 #1842 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:17 #1843 [Verbose] >
00:00:17 #1844 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:17 #1845 [Verbose] > inl newton_second_tv m fs (t, v0) =
00:00:17 #1846 [Verbose] > inl f_net = fs |> listm.map (fun f => f (t, v0)) |> listm'.sum
00:00:17 #1847 [Verbose] > inl acc = f_net / m
00:00:17 #1848 [Verbose] > 1, acc
00:00:17 #1849 [Verbose] >
00:00:17 #1850 [Verbose] > inl update_tv dt m fs (t, v0) =
00:00:17 #1851 [Verbose] > inl dtdt, dvdt = newton_second_tv m fs (t, v0)
00:00:17 #1852 [Verbose] > t + dtdt * dt, v0 + dvdt * dt
00:00:17 #1853 [Verbose] >
00:00:17 #1854 [Verbose] > inl velocity_ftv dt m tv0 fs t =
00:00:17 #1855 [Verbose] > stream.iterate (join update_tv dt m fs) tv0
00:00:17 #1856 [Verbose] > |> stream.try_item (t / dt |> math.round |> abs)
00:00:17 #1857 [Verbose] > |> optionm.map snd
00:00:17 #1858 [Verbose] > |> optionm'.default_value 0
00:00:17 #1859 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-5294-9432-91f0563719f0/main.spi
00:00:17 #1860 [Verbose] >
00:00:17 #1861 [Verbose] > ╭─[ 181.42ms - stdout ]────────────────────────────────────────────────────────╮
00:00:17 #1862 [Verbose] > │ () │
00:00:17 #1863 [Verbose] > │ │
00:00:17 #1864 [Verbose] > │ │
00:00:17 #1865 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:17 #1866 [Verbose] >
00:00:17 #1867 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:17 #1868 [Verbose] > // // test
00:00:17 #1869 [Verbose] >
00:00:17 #1870 [Verbose] > inl x = am'.init_series 0 100 0.1
00:00:17 #1871 [Verbose] > inl y =
00:00:17 #1872 [Verbose] > x
00:00:17 #1873 [Verbose] > |> am.map (
00:00:17 #1874 [Verbose] > velocity_ftv 0.1 20 (dyn (0, 0)) [[ fun (t, _) => pedal_coast t; fun (_,
00:00:17 #1875 [Verbose] > v) => f_air 2 1.225 0.5 v ]]
00:00:17 #1876 [Verbose] > )
00:00:17 #1877 [Verbose] > "pedaling and coasting with air", "time (s)", "", ;[[ "velocity of bike (m/s)",
00:00:17 #1878 [Verbose] > x, y ]]
00:00:17 #1879 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-5312-1223-126e5e38ac0f/main.spi
00:00:17 #1880 [Verbose] >
00:00:17 #1881 [Verbose] > ╭─[ 321.24ms - return value ]──────────────────────────────────────────────────╮
00:00:17 #1882 [Verbose] > │ <svg width="640" height="480" viewBox="0 0 640 480" │
00:00:17 #1883 [Verbose] > │ xmlns="http://www.w3.org/2000/svg"> │
00:00:17 #1884 [Verbose] > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414" │
00:00:17 #1885 [Verbose] > │ stroke="none"/> │
00:00:17 #1886 [Verbose] > │ <text x="320" y="10" dy="0.76em" text-anchor="middle" │
00:00:17 #1887 [Verbose] > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1" │
00:00:17 #1888 [Verbose] > │ fill="#FFFFFF"> │
00:00:17 #1889 [Verbose] > │ pedaling and coasting with air │
00:00:17 #1890 [Verbose] > │ </text> │
00:00:17 #1891 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="59" y1="424" x2="59" │
00:00:17 #1892 [Verbose] > │ y2="75"/> │
00:00:17 #1893 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:00:17 #1894 [Verbose] > │ y2="75"/> │
00:00:17 #1895 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="79" y1="424" x2="79" │
00:00:17 #1896 [Verbose] > │ y2="75"/> │
00:00:17 #1897 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="89" y1="424" x2="89" │
00:00:17 #1898 [Verbose] > │ y2="75"/> │
00:00:17 #1899 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x... │
00:00:17 #1900 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:17 #1901 [Verbose] >
00:00:17 #1902 [Verbose] > ╭─[ 323.38ms - stdout ]────────────────────────────────────────────────────────╮
00:00:17 #1903 [Verbose] > │ type Mut0 = {mutable l0 : int32} │
00:00:17 #1904 [Verbose] > │ and UH0 = │
00:00:17 #1905 [Verbose] > │ | UH0_0 of float * float * (unit -> UH0) │
00:00:17 #1906 [Verbose] > │ | UH0_1 │
00:00:17 #1907 [Verbose] > │ and [<Struct>] US0 = │
00:00:17 #1908 [Verbose] > │ | US0_0 │
00:00:17 #1909 [Verbose] > │ | US0_1 of f1_0 : float * f1_1 : float │
00:00:17 #1910 [Verbose] > │ and [<Struct>] US1 = │
00:00:17 #1911 [Verbose] > │ | US1_0 │
00:00:17 #1912 [Verbose] > │ | US1_1 of f1_0 : float │
00:00:17 #1913 [Verbose] > │ let rec method1 (v0 : Mut0) : bool = │
00:00:17 #1914 [Verbose] > │ let v1 : int32 = v0.l0 │
00:00:17 #1915 [Verbose] > │ let v2 : bool = v1 < 1001 │
00:00:17 #1916 [Verbose] > │ v2 │
00:00:17 #1917 [Verbose] > │ and method2 (v0 : int32, v1 : Mut0) : bool = │
00:00:17 #1918 [Verbose] > │ let v2 : int32 = v1.l0 │
00:00:17 #1919 [Verbose] > │ let v3 : bool = v2 < v0 │
00:00:17 #1920 [Verbose] > │ v3 │
00:00:17 #1921 [Verbose] > │ and closure0 () struct (v0 : float, v1 : float) : struct (float * float) = │
00:00:17 #1922 [Verbose] > │ let v2 : float = -v1 │
00:00:17 #1923 [Verbose] > │ let v3 : bool = v1 >= v2 │
00:00:17 #1924 [Verbose] > │ let v4 : float = │
00:00:17 #1925 [Verbose] > │ if v3 then │
00:00:17 #1926 [Verbose] > │ v1 │
00:00:17 #1927 [Verbose] > │ else │
00:00:17 #1928 [Verbose] > │ v2 │
00:00:17 #1929 [Verbose] > │ let v5 : float = -1.225 * v4 │
00:00:17 #1930 [Verbose] > │ let v6 : float = v5 * v1 │
00:00:17 #1931 [Verbose] > │ let v7 : float = v6 / 2.0 │
00:00:17 #1932 [Verbose] > │ let v8 : float = v0 / 20.0 │
00:00:17 #1933 [Verbose] > │ let v9 : int32 = int32 v8 │
00:00:17 #1934 [Verbose] > │ let v10 : float = float v9 │
00:00:17 #1935 [Verbose] > │ let v11 : float = v10 * 20.0 │
00:00:17 #1936 [Verbose] > │ let v12 : float = v0 - v11 │
00:00:17 #1937 [Verbose] > │ let v13 : bool = v12 > 0.0 │
00:00:17 #1938 [Verbose] > │ let v15 : bool = │
00:00:17 #1939 [Verbose] > │ if v13 then │
00:00:17 #1940 [Verbose] > │ let v14 : bool = v12 < 10.0 │
00:00:17 #1941 [Verbose] > │ v14 │
00:00:17 #1942 [Verbose] > │ else │
00:00:17 #1943 [Verbose] > │ false │
00:00:17 #1944 [Verbose] > │ let v16 : float = │
00:00:17 #1945 [Verbose] > │ if v15 then │
00:00:17 #1946 [Verbose] > │ 10.0 │
00:00:17 #1947 [Verbose] > │ else │
00:00:17 #1948 [Verbose] > │ 0.0 │
00:00:17 #1949 [Verbose] > │ let v17 : float = v16 + v7 │
00:00:17 #1950 [Verbose] > │ let v18 : float = v17 / 20.0 │
00:00:17 #1951 [Verbose] > │ let v19 : float = v0 + 0.1 │
00:00:17 #1952 [Verbose] > │ let v20 : float = v18 * 0.1 │
00:00:17 #1953 [Verbose] > │ let v21 : float = v1 + v20 │
00:00:17 #1954 [Verbose] > │ struct (v19, v21) │
00:00:17 #1955 [Verbose] > │ and method3 () : (struct (float * float) -> struct (float * float)) = │
00:00:17 #1956 [Verbose] > │ closure0() │
00:00:17 #1957 [Verbose] > │ and closure1 (v0 : (struct (float * float) -> struct (float * float)), v1 : │
00:00:17 #1958 [Verbose] > │ float, v2 : float, v3 : float, v4 : float) () : UH0 = │
00:00:17 #1959 [Verbose] > │ let struct (v5 : float, v6 : float) = v0 struct (v3, v4) │
00:00:17 #1960 [Verbose] > │ let v7 : (unit -> UH0) = closure1(v0, v1, v2, v5, v6) │
00:00:17 #1961 [Verbose] > │ UH0_0(v3, v4, v7) │
00:00:17 #1962 [Verbose] > │ and method4 (v0 : float, v1 : UH0) : US0 = │
00:00:17 #1963 [Verbose] > │ match v1 with │
00:00:17 #1964 [Verbose] > │ | UH0_0(v2, v3, v4) -> (* StreamCons *) │
00:00:17 #1965 [Verbose] > │ let v5 : bool = v0 <= 0.0 │
00:00:17 #1966 [Verbose] > │ if v5 then │
00:00:17 #1967 [Verbose] > │ US0_1(v2, v3) │
00:00:17 #1968 [Verbose] > │ else │
00:00:17 #1969 [Verbose] > │ let v7 : float = v0 - 1.0 │
00:00:17 #1970 [Verbose] > │ let v8 : UH0 = v4 () │
00:00:17 #1971 [Verbose] > │ method4(v7, v8) │
00:00:17 #1972 [Verbose] > │ | UH0_1 -> (* StreamNil *) │
00:00:17 #1973 [Verbose] > │ US0_0 │
00:00:17 #1974 [Verbose] > │ and method5 (v0 : (struct (string * (float []) * (float [])) [])) : (struct │
00:00:17 #1975 [Verbose] > │ (string * (float []) * (float [])) []) = │
00:00:17 #1976 [Verbose] > │ v0 │
00:00:17 #1977 [Verbose] > │ and method0 () : struct (string * string * string * (struct (string * (float │
00:00:17 #1978 [Verbose] > │ []) * (float [])) [])) = │
00:00:17 #1979 [Verbose] > │ let v0 : (float []) = Array.zeroCreate<float> (1001) │
00:00:17 #1980 [Verbose] > │ let v1 : Mut0 = {l0 = 0} : Mut0 │
00:00:17 #1981 [Verbose] > │ while method1(v1) do │
00:00:17 #1982 [Verbose] > │ let v3 : int32 = v1.l0 │
00:00:17 #1983 [Verbose] > │ let v4 : float = float v3 │
00:00:17 #1984 [Verbose] > │ let v5 : float = 0.1 * v4 │
00:00:17 #1985 [Verbose] > │ v0.[int v3] <- v5 │
00:00:17 #1986 [Verbose] > │ let v6 : int32 = v3 + 1 │
00:00:17 #1987 [Verbose] > │ v1.l0 <- v6 │
00:00:17 #1988 [Verbose] > │ () │
00:00:17 #1989 [Verbose] > │ let v7 : float = 0.0 │
00:00:17 #1990 [Verbose] > │ let v8 : float = 0.0 │
00:00:17 #1991 [Verbose] > │ let v9 : int32 = v0.Length │
00:00:17 #1992 [Verbose] > │ let v10 : (float []) = Array.zeroCreate<float> (v9) │
00:00:17 #1993 [Verbose] > │ let v11 : Mut0 = {l0 = 0} : Mut0 │
00:00:17 #1994 [Verbose] > │ while method2(v9, v11) do │
00:00:17 #1995 [Verbose] > │ let v13 : int32 = v11.l0 │
00:00:17 #1996 [Verbose] > │ let v14 : float = v0.[int v13] │
00:00:17 #1997 [Verbose] > │ let v15 : (struct (float * float) -> struct (float * float)) = │
00:00:17 #1998 [Verbose] > │ method3() │
00:00:17 #1999 [Verbose] > │ let struct (v16 : float, v17 : float) = v15 struct (v7, v8) │
00:00:17 #2000 [Verbose] > │ let v18 : float = v14 / 0.1 │
00:00:17 #2001 [Verbose] > │ let v19 : float = round v18 │
00:00:17 #2002 [Verbose] > │ let v20 : float = -v19 │
00:00:17 #2003 [Verbose] > │ let v21 : bool = v19 >= v20 │
00:00:17 #2004 [Verbose] > │ let v22 : float = │
00:00:17 #2005 [Verbose] > │ if v21 then │
00:00:17 #2006 [Verbose] > │ v19 │
00:00:17 #2007 [Verbose] > │ else │
00:00:17 #2008 [Verbose] > │ v20 │
00:00:17 #2009 [Verbose] > │ let v23 : (unit -> UH0) = closure1(v15, v7, v8, v16, v17) │
00:00:17 #2010 [Verbose] > │ let v24 : UH0 = UH0_0(v7, v8, v23) │
00:00:17 #2011 [Verbose] > │ let v25 : US0 = method4(v22, v24) │
00:00:17 #2012 [Verbose] > │ let v31 : US1 = │
00:00:17 #2013 [Verbose] > │ match v25 with │
00:00:17 #2014 [Verbose] > │ | US0_0 -> (* None *) │
00:00:17 #2015 [Verbose] > │ US1_0 │
00:00:17 #2016 [Verbose] > │ | US0_1(v26, v27) -> (* Some *) │
00:00:17 #2017 [Verbose] > │ US1_1(v27) │
00:00:17 #2018 [Verbose] > │ let v34 : float = │
00:00:17 #2019 [Verbose] > │ match v31 with │
00:00:17 #2020 [Verbose] > │ | US1_0 -> (* None *) │
00:00:17 #2021 [Verbose] > │ 0.0 │
00:00:17 #2022 [Verbose] > │ | US1_1(v32) -> (* Some *) │
00:00:17 #2023 [Verbose] > │ v32 │
00:00:17 #2024 [Verbose] > │ v10.[int v13] <- v34 │
00:00:17 #2025 [Verbose] > │ let v35 : int32 = v13 + 1 │
00:00:17 #2026 [Verbose] > │ v11.l0 <- v35 │
00:00:17 #2027 [Verbose] > │ () │
00:00:17 #2028 [Verbose] > │ let v36 : string = "velocity of bike (m/s)" │
00:00:17 #2029 [Verbose] > │ let v37 : (struct (string * (float []) * (float [])) []) = [|struct │
00:00:17 #2030 [Verbose] > │ (v36, v0, v10)|] │
00:00:17 #2031 [Verbose] > │ let v38 : (struct (string * (float []) * (float [])) []) = method5(v37) │
00:00:17 #2032 [Verbose] > │ let v39 : string = "pedaling and coasting with air" │
00:00:17 #2033 [Verbose] > │ let v40 : string = "time (s)" │
00:00:17 #2034 [Verbose] > │ let v41 : string = "" │
00:00:17 #2035 [Verbose] > │ struct (v39, v40, v41, v38) │
00:00:17 #2036 [Verbose] > │ method0() │
00:00:17 #2037 [Verbose] > │ │
00:00:17 #2038 [Verbose] > │ │
00:00:17 #2039 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:17 #2040 [Verbose] >
00:00:17 #2041 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:17 #2042 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:17 #2043 [Verbose] > │ ## velocity_ftxv │
00:00:17 #2044 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:17 #2045 [Verbose] >
00:00:17 #2046 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:17 #2047 [Verbose] > nominal state_1d = time * position * velocity
00:00:17 #2048 [Verbose] > nominal rrr = f64 * f64 * f64
00:00:17 #2049 [Verbose] >
00:00:17 #2050 [Verbose] > inl newton_second_1d m fs (state_1d (t, x0, v0)) =
00:00:17 #2051 [Verbose] > inl f_net = fs |> listm.map (fun f => f (state_1d (t, x0, v0))) |>
00:00:17 #2052 [Verbose] > listm'.sum
00:00:17 #2053 [Verbose] > inl acc = f_net / m
00:00:17 #2054 [Verbose] > rrr (1f64, v0, acc)
00:00:17 #2055 [Verbose] >
00:00:17 #2056 [Verbose] > inl euler_1d dt deriv (state_1d (t0, x0, v0) as t) =
00:00:17 #2057 [Verbose] > inl (rrr (_, _, dvdt)) = deriv t
00:00:17 #2058 [Verbose] > inl t1 = t0 + dt
00:00:17 #2059 [Verbose] > inl x1 = x0 + v0 * dt
00:00:17 #2060 [Verbose] > inl v1 = v0 + dvdt * dt
00:00:17 #2061 [Verbose] > state_1d (t1, x1, v1)
00:00:17 #2062 [Verbose] >
00:00:17 #2063 [Verbose] > inl update_txv dt m fs =
00:00:17 #2064 [Verbose] > newton_second_1d m fs |> euler_1d dt
00:00:17 #2065 [Verbose] >
00:00:17 #2066 [Verbose] > inl states_txv dt m txv0 fs =
00:00:17 #2067 [Verbose] > seq.iterate_ (update_txv dt m fs) txv0
00:00:17 #2068 [Verbose] >
00:00:17 #2069 [Verbose] > inl velocity_1d sts t =
00:00:17 #2070 [Verbose] > inl (state_1d (t0, _, _)) = sts 0
00:00:17 #2071 [Verbose] > inl (state_1d (t1, _, _)) = sts 1
00:00:17 #2072 [Verbose] > inl dt = t1 - t0
00:00:17 #2073 [Verbose] > inl num_steps = t / dt |> math.round |> abs
00:00:17 #2074 [Verbose] > inl (state_1d (_, _, v0)) = sts num_steps
00:00:17 #2075 [Verbose] > v0
00:00:17 #2076 [Verbose] >
00:00:17 #2077 [Verbose] > inl velocity_ftxv dt m txv0 fs =
00:00:17 #2078 [Verbose] > states_txv dt m txv0 fs |> velocity_1d
00:00:17 #2079 [Verbose] >
00:00:17 #2080 [Verbose] > inl position_1d sts t =
00:00:17 #2081 [Verbose] > inl (state_1d (t0, _, _)) = sts 0
00:00:17 #2082 [Verbose] > inl (state_1d (t1, _, _)) = sts 1
00:00:17 #2083 [Verbose] > inl dt = t1 - t0
00:00:17 #2084 [Verbose] > inl num_steps = t / dt |> math.round |> abs
00:00:17 #2085 [Verbose] > inl (state_1d (_, x0, _)) = sts num_steps
00:00:17 #2086 [Verbose] > x0
00:00:17 #2087 [Verbose] >
00:00:17 #2088 [Verbose] > inl position_ftxv dt m txv0 fs =
00:00:17 #2089 [Verbose] > states_txv dt m txv0 fs |> position_1d
00:00:17 #2090 [Verbose] >
00:00:17 #2091 [Verbose] > inl spring_force k (state_1d (_, x0, _)) =
00:00:17 #2092 [Verbose] > -k * x0
00:00:17 #2093 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-5344-4489-4fb07a6c6d2d/main.spi
00:00:17 #2094 [Verbose] >
00:00:17 #2095 [Verbose] > ╭─[ 170.82ms - stdout ]────────────────────────────────────────────────────────╮
00:00:17 #2096 [Verbose] > │ () │
00:00:17 #2097 [Verbose] > │ │
00:00:17 #2098 [Verbose] > │ │
00:00:17 #2099 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:17 #2100 [Verbose] >
00:00:17 #2101 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:17 #2102 [Verbose] > // // test
00:00:17 #2103 [Verbose] >
00:00:17 #2104 [Verbose] > inl damped_ho_forces () =
00:00:17 #2105 [Verbose] > [[
00:00:17 #2106 [Verbose] > spring_force 0.8
00:00:17 #2107 [Verbose] > fun (state_1d (_, _, v0)) => f_air 2 1.225 (pi * math.square 0.02) v0
00:00:17 #2108 [Verbose] > fun _ => -0.0027 * 9.80665
00:00:17 #2109 [Verbose] > ]]
00:00:17 #2110 [Verbose] >
00:00:17 #2111 [Verbose] > inl damped_ho_states () =
00:00:17 #2112 [Verbose] > states_txv 0.001 0.0027 (state_1d (0, 0.1, 0)) (damped_ho_forces ())
00:00:17 #2113 [Verbose] >
00:00:17 #2114 [Verbose] > inl pingpong_position t =
00:00:17 #2115 [Verbose] > position_ftxv 0.001 0.0027 (state_1d (0, 0.1, 0)) (damped_ho_forces ()) t
00:00:17 #2116 [Verbose] >
00:00:17 #2117 [Verbose] > inl x : a _ f64 = am'.init_series 0 3 0.01
00:00:17 #2118 [Verbose] > inl y = x |> am.map pingpong_position
00:00:17 #2119 [Verbose] > "ping pong ball on a slinky", "time (s)", "", ;[[ "position (m)", x, y ]]
00:00:17 #2120 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-5362-6200-60dcb7f66551/main.spi
00:00:17 #2121 [Verbose] >
00:00:17 #2122 [Verbose] > ╭─[ 250.97ms - return value ]──────────────────────────────────────────────────╮
00:00:17 #2123 [Verbose] > │ <svg width="640" height="480" viewBox="0 0 640 480" │
00:00:17 #2124 [Verbose] > │ xmlns="http://www.w3.org/2000/svg"> │
00:00:17 #2125 [Verbose] > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414" │
00:00:17 #2126 [Verbose] > │ stroke="none"/> │
00:00:17 #2127 [Verbose] > │ <text x="320" y="10" dy="0.76em" text-anchor="middle" │
00:00:17 #2128 [Verbose] > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1" │
00:00:17 #2129 [Verbose] > │ fill="#FFFFFF"> │
00:00:17 #2130 [Verbose] > │ ping pong ball on a slinky │
00:00:17 #2131 [Verbose] > │ </text> │
00:00:17 #2132 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="61" y1="424" x2="61" │
00:00:17 #2133 [Verbose] > │ y2="75"/> │
00:00:17 #2134 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:00:17 #2135 [Verbose] > │ y2="75"/> │
00:00:17 #2136 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="78" y1="424" x2="78" │
00:00:17 #2137 [Verbose] > │ y2="75"/> │
00:00:17 #2138 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="86" y1="424" x2="86" │
00:00:17 #2139 [Verbose] > │ y2="75"/> │
00:00:17 #2140 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="9... │
00:00:17 #2141 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:17 #2142 [Verbose] >
00:00:18 #2143 [Verbose] > ╭─[ 252.73ms - stdout ]────────────────────────────────────────────────────────╮
00:00:18 #2144 [Verbose] > │ type Mut0 = {mutable l0 : int32} │
00:00:18 #2145 [Verbose] > │ let rec method1 (v0 : Mut0) : bool = │
00:00:18 #2146 [Verbose] > │ let v1 : int32 = v0.l0 │
00:00:18 #2147 [Verbose] > │ let v2 : bool = v1 < 301 │
00:00:18 #2148 [Verbose] > │ v2 │
00:00:18 #2149 [Verbose] > │ and method2 (v0 : int32, v1 : Mut0) : bool = │
00:00:18 #2150 [Verbose] > │ let v2 : int32 = v1.l0 │
00:00:18 #2151 [Verbose] > │ let v3 : bool = v2 < v0 │
00:00:18 #2152 [Verbose] > │ v3 │
00:00:18 #2153 [Verbose] > │ and method3 (v0 : float, v1 : float, v2 : float, v3 : float) : struct (float │
00:00:18 #2154 [Verbose] > │ * float * float) = │
00:00:18 #2155 [Verbose] > │ let v4 : bool = v3 <= 0.0 │
00:00:18 #2156 [Verbose] > │ if v4 then │
00:00:18 #2157 [Verbose] > │ struct (v0, v1, v2) │
00:00:18 #2158 [Verbose] > │ else │
00:00:18 #2159 [Verbose] > │ let v5 : float = -v2 │
00:00:18 #2160 [Verbose] > │ let v6 : bool = v2 >= v5 │
00:00:18 #2161 [Verbose] > │ let v7 : float = │
00:00:18 #2162 [Verbose] > │ if v6 then │
00:00:18 #2163 [Verbose] > │ v2 │
00:00:18 #2164 [Verbose] > │ else │
00:00:18 #2165 [Verbose] > │ v5 │
00:00:18 #2166 [Verbose] > │ let v8 : float = -0.0030787608005179976 * v7 │
00:00:18 #2167 [Verbose] > │ let v9 : float = v8 * v2 │
00:00:18 #2168 [Verbose] > │ let v10 : float = v9 / 2.0 │
00:00:18 #2169 [Verbose] > │ let v11 : float = -0.8 * v1 │
00:00:18 #2170 [Verbose] > │ let v12 : float = v11 + v10 │
00:00:18 #2171 [Verbose] > │ let v13 : float = v12 + -0.026477955 │
00:00:18 #2172 [Verbose] > │ let v14 : float = v13 / 0.0027 │
00:00:18 #2173 [Verbose] > │ let v15 : float = v0 + 0.001 │
00:00:18 #2174 [Verbose] > │ let v16 : float = v2 * 0.001 │
00:00:18 #2175 [Verbose] > │ let v17 : float = v1 + v16 │
00:00:18 #2176 [Verbose] > │ let v18 : float = v14 * 0.001 │
00:00:18 #2177 [Verbose] > │ let v19 : float = v2 + v18 │
00:00:18 #2178 [Verbose] > │ let v20 : float = v3 - 1.0 │
00:00:18 #2179 [Verbose] > │ method3(v15, v17, v19, v20) │
00:00:18 #2180 [Verbose] > │ and method4 (v0 : (struct (string * (float []) * (float [])) [])) : (struct │
00:00:18 #2181 [Verbose] > │ (string * (float []) * (float [])) []) = │
00:00:18 #2182 [Verbose] > │ v0 │
00:00:18 #2183 [Verbose] > │ and method0 () : struct (string * string * string * (struct (string * (float │
00:00:18 #2184 [Verbose] > │ []) * (float [])) [])) = │
00:00:18 #2185 [Verbose] > │ let v0 : (float []) = Array.zeroCreate<float> (301) │
00:00:18 #2186 [Verbose] > │ let v1 : Mut0 = {l0 = 0} : Mut0 │
00:00:18 #2187 [Verbose] > │ while method1(v1) do │
00:00:18 #2188 [Verbose] > │ let v3 : int32 = v1.l0 │
00:00:18 #2189 [Verbose] > │ let v4 : float = float v3 │
00:00:18 #2190 [Verbose] > │ let v5 : float = 0.01 * v4 │
00:00:18 #2191 [Verbose] > │ v0.[int v3] <- v5 │
00:00:18 #2192 [Verbose] > │ let v6 : int32 = v3 + 1 │
00:00:18 #2193 [Verbose] > │ v1.l0 <- v6 │
00:00:18 #2194 [Verbose] > │ () │
00:00:18 #2195 [Verbose] > │ let v7 : int32 = v0.Length │
00:00:18 #2196 [Verbose] > │ let v8 : (float []) = Array.zeroCreate<float> (v7) │
00:00:18 #2197 [Verbose] > │ let v9 : Mut0 = {l0 = 0} : Mut0 │
00:00:18 #2198 [Verbose] > │ while method2(v7, v9) do │
00:00:18 #2199 [Verbose] > │ let v11 : int32 = v9.l0 │
00:00:18 #2200 [Verbose] > │ let v12 : float = v0.[int v11] │
00:00:18 #2201 [Verbose] > │ let v13 : float = 0.0 │
00:00:18 #2202 [Verbose] > │ let v14 : float = 0.1 │
00:00:18 #2203 [Verbose] > │ let v15 : float = 0.0 │
00:00:18 #2204 [Verbose] > │ let v16 : float = 0.0 │
00:00:18 #2205 [Verbose] > │ let struct (v17 : float, v18 : float, v19 : float) = method3(v13, │
00:00:18 #2206 [Verbose] > │ v14, v15, v16) │
00:00:18 #2207 [Verbose] > │ let v20 : float = 0.0 │
00:00:18 #2208 [Verbose] > │ let v21 : float = 0.1 │
00:00:18 #2209 [Verbose] > │ let v22 : float = 0.0 │
00:00:18 #2210 [Verbose] > │ let v23 : float = 1.0 │
00:00:18 #2211 [Verbose] > │ let struct (v24 : float, v25 : float, v26 : float) = method3(v20, │
00:00:18 #2212 [Verbose] > │ v21, v22, v23) │
00:00:18 #2213 [Verbose] > │ let v27 : float = v24 - v17 │
00:00:18 #2214 [Verbose] > │ let v28 : float = v12 / v27 │
00:00:18 #2215 [Verbose] > │ let v29 : float = round v28 │
00:00:18 #2216 [Verbose] > │ let v30 : float = -v29 │
00:00:18 #2217 [Verbose] > │ let v31 : bool = v29 >= v30 │
00:00:18 #2218 [Verbose] > │ let v32 : float = │
00:00:18 #2219 [Verbose] > │ if v31 then │
00:00:18 #2220 [Verbose] > │ v29 │
00:00:18 #2221 [Verbose] > │ else │
00:00:18 #2222 [Verbose] > │ v30 │
00:00:18 #2223 [Verbose] > │ let v33 : float = 0.0 │
00:00:18 #2224 [Verbose] > │ let v34 : float = 0.1 │
00:00:18 #2225 [Verbose] > │ let v35 : float = 0.0 │
00:00:18 #2226 [Verbose] > │ let struct (v36 : float, v37 : float, v38 : float) = method3(v33, │
00:00:18 #2227 [Verbose] > │ v34, v35, v32) │
00:00:18 #2228 [Verbose] > │ v8.[int v11] <- v37 │
00:00:18 #2229 [Verbose] > │ let v39 : int32 = v11 + 1 │
00:00:18 #2230 [Verbose] > │ v9.l0 <- v39 │
00:00:18 #2231 [Verbose] > │ () │
00:00:18 #2232 [Verbose] > │ let v40 : string = "position (m)" │
00:00:18 #2233 [Verbose] > │ let v41 : (struct (string * (float []) * (float [])) []) = [|struct │
00:00:18 #2234 [Verbose] > │ (v40, v0, v8)|] │
00:00:18 #2235 [Verbose] > │ let v42 : (struct (string * (float []) * (float [])) []) = method4(v41) │
00:00:18 #2236 [Verbose] > │ let v43 : string = "ping pong ball on a slinky" │
00:00:18 #2237 [Verbose] > │ let v44 : string = "time (s)" │
00:00:18 #2238 [Verbose] > │ let v45 : string = "" │
00:00:18 #2239 [Verbose] > │ struct (v43, v44, v45, v42) │
00:00:18 #2240 [Verbose] > │ method0() │
00:00:18 #2241 [Verbose] > │ │
00:00:18 #2242 [Verbose] > │ │
00:00:18 #2243 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:18 #2244 [Verbose] >
00:00:18 #2245 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:18 #2246 [Verbose] > // // test
00:00:18 #2247 [Verbose] >
00:00:18 #2248 [Verbose] > inl pingpong_velocity t =
00:00:18 #2249 [Verbose] > velocity_ftxv 0.001 0.0027 (state_1d (0, 0.1, 0)) (damped_ho_forces ()) t
00:00:18 #2250 [Verbose] >
00:00:18 #2251 [Verbose] > inl x = am'.init_series 0 3 0.01
00:00:18 #2252 [Verbose] > inl y = x |> am.map pingpong_velocity
00:00:18 #2253 [Verbose] > "ping pong ball on a slinky", "time (s)", "", ;[[ "velocity (m/s)", x, y ]]
00:00:18 #2254 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-5387-8749-8fe08917fbe6/main.spi
00:00:18 #2255 [Verbose] >
00:00:18 #2256 [Verbose] > ╭─[ 246.88ms - return value ]──────────────────────────────────────────────────╮
00:00:18 #2257 [Verbose] > │ <svg width="640" height="480" viewBox="0 0 640 480" │
00:00:18 #2258 [Verbose] > │ xmlns="http://www.w3.org/2000/svg"> │
00:00:18 #2259 [Verbose] > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414" │
00:00:18 #2260 [Verbose] > │ stroke="none"/> │
00:00:18 #2261 [Verbose] > │ <text x="320" y="10" dy="0.76em" text-anchor="middle" │
00:00:18 #2262 [Verbose] > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1" │
00:00:18 #2263 [Verbose] > │ fill="#FFFFFF"> │
00:00:18 #2264 [Verbose] > │ ping pong ball on a slinky │
00:00:18 #2265 [Verbose] > │ </text> │
00:00:18 #2266 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="61" y1="424" x2="61" │
00:00:18 #2267 [Verbose] > │ y2="75"/> │
00:00:18 #2268 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:00:18 #2269 [Verbose] > │ y2="75"/> │
00:00:18 #2270 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="78" y1="424" x2="78" │
00:00:18 #2271 [Verbose] > │ y2="75"/> │
00:00:18 #2272 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="86" y1="424" x2="86" │
00:00:18 #2273 [Verbose] > │ y2="75"/> │
00:00:18 #2274 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="9... │
00:00:18 #2275 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:18 #2276 [Verbose] >
00:00:18 #2277 [Verbose] > ╭─[ 275.98ms - stdout ]────────────────────────────────────────────────────────╮
00:00:18 #2278 [Verbose] > │ type Mut0 = {mutable l0 : int32} │
00:00:18 #2279 [Verbose] > │ let rec method1 (v0 : Mut0) : bool = │
00:00:18 #2280 [Verbose] > │ let v1 : int32 = v0.l0 │
00:00:18 #2281 [Verbose] > │ let v2 : bool = v1 < 301 │
00:00:18 #2282 [Verbose] > │ v2 │
00:00:18 #2283 [Verbose] > │ and method2 (v0 : int32, v1 : Mut0) : bool = │
00:00:18 #2284 [Verbose] > │ let v2 : int32 = v1.l0 │
00:00:18 #2285 [Verbose] > │ let v3 : bool = v2 < v0 │
00:00:18 #2286 [Verbose] > │ v3 │
00:00:18 #2287 [Verbose] > │ and method3 (v0 : float, v1 : float, v2 : float, v3 : float) : struct (float │
00:00:18 #2288 [Verbose] > │ * float * float) = │
00:00:18 #2289 [Verbose] > │ let v4 : bool = v3 <= 0.0 │
00:00:18 #2290 [Verbose] > │ if v4 then │
00:00:18 #2291 [Verbose] > │ struct (v0, v1, v2) │
00:00:18 #2292 [Verbose] > │ else │
00:00:18 #2293 [Verbose] > │ let v5 : float = -v2 │
00:00:18 #2294 [Verbose] > │ let v6 : bool = v2 >= v5 │
00:00:18 #2295 [Verbose] > │ let v7 : float = │
00:00:18 #2296 [Verbose] > │ if v6 then │
00:00:18 #2297 [Verbose] > │ v2 │
00:00:18 #2298 [Verbose] > │ else │
00:00:18 #2299 [Verbose] > │ v5 │
00:00:18 #2300 [Verbose] > │ let v8 : float = -0.0030787608005179976 * v7 │
00:00:18 #2301 [Verbose] > │ let v9 : float = v8 * v2 │
00:00:18 #2302 [Verbose] > │ let v10 : float = v9 / 2.0 │
00:00:18 #2303 [Verbose] > │ let v11 : float = -0.8 * v1 │
00:00:18 #2304 [Verbose] > │ let v12 : float = v11 + v10 │
00:00:18 #2305 [Verbose] > │ let v13 : float = v12 + -0.026477955 │
00:00:18 #2306 [Verbose] > │ let v14 : float = v13 / 0.0027 │
00:00:18 #2307 [Verbose] > │ let v15 : float = v0 + 0.001 │
00:00:18 #2308 [Verbose] > │ let v16 : float = v2 * 0.001 │
00:00:18 #2309 [Verbose] > │ let v17 : float = v1 + v16 │
00:00:18 #2310 [Verbose] > │ let v18 : float = v14 * 0.001 │
00:00:18 #2311 [Verbose] > │ let v19 : float = v2 + v18 │
00:00:18 #2312 [Verbose] > │ let v20 : float = v3 - 1.0 │
00:00:18 #2313 [Verbose] > │ method3(v15, v17, v19, v20) │
00:00:18 #2314 [Verbose] > │ and method4 (v0 : (struct (string * (float []) * (float [])) [])) : (struct │
00:00:18 #2315 [Verbose] > │ (string * (float []) * (float [])) []) = │
00:00:18 #2316 [Verbose] > │ v0 │
00:00:18 #2317 [Verbose] > │ and method0 () : struct (string * string * string * (struct (string * (float │
00:00:18 #2318 [Verbose] > │ []) * (float [])) [])) = │
00:00:18 #2319 [Verbose] > │ let v0 : (float []) = Array.zeroCreate<float> (301) │
00:00:18 #2320 [Verbose] > │ let v1 : Mut0 = {l0 = 0} : Mut0 │
00:00:18 #2321 [Verbose] > │ while method1(v1) do │
00:00:18 #2322 [Verbose] > │ let v3 : int32 = v1.l0 │
00:00:18 #2323 [Verbose] > │ let v4 : float = float v3 │
00:00:18 #2324 [Verbose] > │ let v5 : float = 0.01 * v4 │
00:00:18 #2325 [Verbose] > │ v0.[int v3] <- v5 │
00:00:18 #2326 [Verbose] > │ let v6 : int32 = v3 + 1 │
00:00:18 #2327 [Verbose] > │ v1.l0 <- v6 │
00:00:18 #2328 [Verbose] > │ () │
00:00:18 #2329 [Verbose] > │ let v7 : int32 = v0.Length │
00:00:18 #2330 [Verbose] > │ let v8 : (float []) = Array.zeroCreate<float> (v7) │
00:00:18 #2331 [Verbose] > │ let v9 : Mut0 = {l0 = 0} : Mut0 │
00:00:18 #2332 [Verbose] > │ while method2(v7, v9) do │
00:00:18 #2333 [Verbose] > │ let v11 : int32 = v9.l0 │
00:00:18 #2334 [Verbose] > │ let v12 : float = v0.[int v11] │
00:00:18 #2335 [Verbose] > │ let v13 : float = 0.0 │
00:00:18 #2336 [Verbose] > │ let v14 : float = 0.1 │
00:00:18 #2337 [Verbose] > │ let v15 : float = 0.0 │
00:00:18 #2338 [Verbose] > │ let v16 : float = 0.0 │
00:00:18 #2339 [Verbose] > │ let struct (v17 : float, v18 : float, v19 : float) = method3(v13, │
00:00:18 #2340 [Verbose] > │ v14, v15, v16) │
00:00:18 #2341 [Verbose] > │ let v20 : float = 0.0 │
00:00:18 #2342 [Verbose] > │ let v21 : float = 0.1 │
00:00:18 #2343 [Verbose] > │ let v22 : float = 0.0 │
00:00:18 #2344 [Verbose] > │ let v23 : float = 1.0 │
00:00:18 #2345 [Verbose] > │ let struct (v24 : float, v25 : float, v26 : float) = method3(v20, │
00:00:18 #2346 [Verbose] > │ v21, v22, v23) │
00:00:18 #2347 [Verbose] > │ let v27 : float = v24 - v17 │
00:00:18 #2348 [Verbose] > │ let v28 : float = v12 / v27 │
00:00:18 #2349 [Verbose] > │ let v29 : float = round v28 │
00:00:18 #2350 [Verbose] > │ let v30 : float = -v29 │
00:00:18 #2351 [Verbose] > │ let v31 : bool = v29 >= v30 │
00:00:18 #2352 [Verbose] > │ let v32 : float = │
00:00:18 #2353 [Verbose] > │ if v31 then │
00:00:18 #2354 [Verbose] > │ v29 │
00:00:18 #2355 [Verbose] > │ else │
00:00:18 #2356 [Verbose] > │ v30 │
00:00:18 #2357 [Verbose] > │ let v33 : float = 0.0 │
00:00:18 #2358 [Verbose] > │ let v34 : float = 0.1 │
00:00:18 #2359 [Verbose] > │ let v35 : float = 0.0 │
00:00:18 #2360 [Verbose] > │ let struct (v36 : float, v37 : float, v38 : float) = method3(v33, │
00:00:18 #2361 [Verbose] > │ v34, v35, v32) │
00:00:18 #2362 [Verbose] > │ v8.[int v11] <- v38 │
00:00:18 #2363 [Verbose] > │ let v39 : int32 = v11 + 1 │
00:00:18 #2364 [Verbose] > │ v9.l0 <- v39 │
00:00:18 #2365 [Verbose] > │ () │
00:00:18 #2366 [Verbose] > │ let v40 : string = "velocity (m/s)" │
00:00:18 #2367 [Verbose] > │ let v41 : (struct (string * (float []) * (float [])) []) = [|struct │
00:00:18 #2368 [Verbose] > │ (v40, v0, v8)|] │
00:00:18 #2369 [Verbose] > │ let v42 : (struct (string * (float []) * (float [])) []) = method4(v41) │
00:00:18 #2370 [Verbose] > │ let v43 : string = "ping pong ball on a slinky" │
00:00:18 #2371 [Verbose] > │ let v44 : string = "time (s)" │
00:00:18 #2372 [Verbose] > │ let v45 : string = "" │
00:00:18 #2373 [Verbose] > │ struct (v43, v44, v45, v42) │
00:00:18 #2374 [Verbose] > │ method0() │
00:00:18 #2375 [Verbose] > │ │
00:00:18 #2376 [Verbose] > │ │
00:00:18 #2377 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:18 #2378 [Verbose] >
00:00:18 #2379 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:18 #2380 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:18 #2381 [Verbose] > │ ## shift │
00:00:18 #2382 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:18 #2383 [Verbose] >
00:00:18 #2384 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:18 #2385 [Verbose] > type update_function s = s -> s
00:00:18 #2386 [Verbose] >
00:00:18 #2387 [Verbose] > type differential_equation s ds = s -> ds
00:00:18 #2388 [Verbose] >
00:00:18 #2389 [Verbose] > type numerical_method s ds = differential_equation s ds -> update_function s
00:00:18 #2390 [Verbose] >
00:00:18 #2391 [Verbose] >
00:00:18 #2392 [Verbose] > inl solver method =
00:00:18 #2393 [Verbose] > method >> seq.iterate
00:00:18 #2394 [Verbose] > inl solver' method =
00:00:18 #2395 [Verbose] > method >> seq.iterate'
00:00:18 #2396 [Verbose] > inl solver_ method =
00:00:18 #2397 [Verbose] > method >> seq.iterate_
00:00:18 #2398 [Verbose] >
00:00:18 #2399 [Verbose] >
00:00:18 #2400 [Verbose] > inl euler_cromer_1d dt deriv (state_1d (t0, x0, v0) as t) =
00:00:18 #2401 [Verbose] > inl (rrr (_, _, dvdt)) = deriv t
00:00:18 #2402 [Verbose] > inl t1 = t0 + dt
00:00:18 #2403 [Verbose] > inl v1 = v0 + dvdt * dt
00:00:18 #2404 [Verbose] > inl x1 = x0 + v1 * dt
00:00:18 #2405 [Verbose] > state_1d (t1, x1, v1)
00:00:18 #2406 [Verbose] >
00:00:18 #2407 [Verbose] > inl update_txv_ec dt m fs =
00:00:18 #2408 [Verbose] > euler_cromer_1d dt (newton_second_1d m fs)
00:00:18 #2409 [Verbose] >
00:00:18 #2410 [Verbose] > prototype (+++) ds : ds -> ds -> ds
00:00:18 #2411 [Verbose] > prototype scale ds : f64 -> ds -> ds
00:00:18 #2412 [Verbose] >
00:00:18 #2413 [Verbose] > instance (+++) rrr = fun (rrr (dtdt0, dxdt0, dvdt0)) (rrr (dtdt1, dxdt1, dvdt1))
00:00:18 #2414 [Verbose] > =>
00:00:18 #2415 [Verbose] > rrr (dtdt0 + dtdt1, dxdt0 + dxdt1, dvdt0 + dvdt1)
00:00:18 #2416 [Verbose] >
00:00:18 #2417 [Verbose] > instance scale rrr = fun w (rrr (dtdt0, dxdt0, dvdt0)) =>
00:00:18 #2418 [Verbose] > rrr (w * dtdt0, w * dxdt0, w * dvdt0)
00:00:18 #2419 [Verbose] >
00:00:18 #2420 [Verbose] > prototype shift s : forall ds. f64 -> ds -> s -> s
00:00:18 #2421 [Verbose] >
00:00:18 #2422 [Verbose] > instance shift state_1d = fun dt ds (state_1d (t, x, v)) =>
00:00:18 #2423 [Verbose] > inl dtdt, dxdt, dvdt =
00:00:18 #2424 [Verbose] > real
00:00:18 #2425 [Verbose] > match ds with
00:00:18 #2426 [Verbose] > | rrr x => x
00:00:18 #2427 [Verbose] > | state_1d x => x
00:00:18 #2428 [Verbose] > state_1d (t + dtdt * dt, x + dxdt * dt, v + dvdt * dt)
00:00:18 #2429 [Verbose] >
00:00:18 #2430 [Verbose] > inl euler dt deriv st0 =
00:00:18 #2431 [Verbose] > shift dt (deriv st0) st0
00:00:18 #2432 [Verbose] >
00:00:18 #2433 [Verbose] > inl runge_kutta_4 dt deriv st0 =
00:00:18 #2434 [Verbose] > inl m0 = deriv st0
00:00:18 #2435 [Verbose] > inl m1 = deriv (shift (dt / 2) m0 st0)
00:00:18 #2436 [Verbose] > inl m2 = deriv (shift (dt / 2) m1 st0)
00:00:18 #2437 [Verbose] > inl m3 = deriv (shift dt m2 st0)
00:00:18 #2438 [Verbose] > shift (dt / 6) (m0 +++ m1 +++ m1 +++ m2 +++ m2 +++ m3) st0
00:00:18 #2439 [Verbose] >
00:00:18 #2440 [Verbose] > inl exponential (_, x0, v0) =
00:00:18 #2441 [Verbose] > 1f64, v0, x0
00:00:18 #2442 [Verbose] >
00:00:18 #2443 [Verbose] > inl of_state_1d (state_1d (t, x, v)) =
00:00:18 #2444 [Verbose] > t, x, v
00:00:18 #2445 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-5416-1648-1fb770bfa67c/main.spi
00:00:18 #2446 [Verbose] >
00:00:18 #2447 [Verbose] > ╭─[ 183.79ms - stdout ]────────────────────────────────────────────────────────╮
00:00:18 #2448 [Verbose] > │ () │
00:00:18 #2449 [Verbose] > │ │
00:00:18 #2450 [Verbose] > │ │
00:00:18 #2451 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:18 #2452 [Verbose] >
00:00:18 #2453 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:18 #2454 [Verbose] > // // test
00:00:18 #2455 [Verbose] >
00:00:18 #2456 [Verbose] > solver (euler 0.01) (of_state_1d >> exponential >> state_1d) (state_1d (0, 1,
00:00:18 #2457 [Verbose] > 1)) 800i32
00:00:18 #2458 [Verbose] > |> _assert_eq (state_1d (7.999999999999874, 2864.8311229272326,
00:00:18 #2459 [Verbose] > 2864.8311229272326))
00:00:18 #2460 [Verbose] >
00:00:18 #2461 [Verbose] > solver (euler_cromer_1d 0.1) (of_state_1d >> exponential >> rrr) (state_1d (0,
00:00:18 #2462 [Verbose] > 1, 1)) 80i32
00:00:18 #2463 [Verbose] > |> _assert_eq (state_1d (7.999999999999988, 3043.379244966009,
00:00:18 #2464 [Verbose] > 2895.0121485099035))
00:00:18 #2465 [Verbose] >
00:00:18 #2466 [Verbose] > solver (runge_kutta_4 1) (of_state_1d >> exponential >> rrr) (state_1d (0, 1,
00:00:18 #2467 [Verbose] > 1)) 8i32
00:00:18 #2468 [Verbose] > |> _assert_eq (state_1d (8.0, 2894.789038540849, 2894.789038540849))
00:00:18 #2469 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-5433-3396-31d30d1ff7ea/main.spi
00:00:18 #2470 [Verbose] >
00:00:18 #2471 [Verbose] > ╭─[ 261.75ms - stdout ]────────────────────────────────────────────────────────╮
00:00:18 #2472 [Verbose] > │ let rec method0 () : unit = │
00:00:18 #2473 [Verbose] > │ let v0 : string = $"__expect / actual: %A{struct (7.999999999999874, │
00:00:18 #2474 [Verbose] > │ 2864.8311229272326, 2864.8311229272326)} / expected: %A{struct │
00:00:18 #2475 [Verbose] > │ (7.999999999999874, 2864.8311229272326, 2864.8311229272326)}" │
00:00:18 #2476 [Verbose] > │ let v1 : string = $"__expect / actual: %A{struct (7.999999999999988, │
00:00:18 #2477 [Verbose] > │ 3043.379244966009, 2895.0121485099035)} / expected: %A{struct │
00:00:18 #2478 [Verbose] > │ (7.999999999999988, 3043.379244966009, 2895.0121485099035)}" │
00:00:18 #2479 [Verbose] > │ let v2 : string = $"__expect / actual: %A{struct (8.0, │
00:00:18 #2480 [Verbose] > │ 2894.789038540849, 2894.789038540849)} / expected: %A{struct (8.0, │
00:00:18 #2481 [Verbose] > │ 2894.789038540849, 2894.789038540849)}" │
00:00:18 #2482 [Verbose] > │ () │
00:00:18 #2483 [Verbose] > │ method0() │
00:00:18 #2484 [Verbose] > │ │
00:00:18 #2485 [Verbose] > │ │
00:00:18 #2486 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:18 #2487 [Verbose] >
00:00:18 #2488 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:18 #2489 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:18 #2490 [Verbose] > │ ## vec │
00:00:18 #2491 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:18 #2492 [Verbose] >
00:00:18 #2493 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:18 #2494 [Verbose] > type vec =
00:00:18 #2495 [Verbose] > {
00:00:18 #2496 [Verbose] > x : f64
00:00:18 #2497 [Verbose] > y : f64
00:00:18 #2498 [Verbose] > z : f64
00:00:18 #2499 [Verbose] > }
00:00:18 #2500 [Verbose] >
00:00:18 #2501 [Verbose] > inl vec x y z : vec =
00:00:18 #2502 [Verbose] > { x y z }
00:00:18 #2503 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-5460-6017-6987f7e1af89/main.spi
00:00:18 #2504 [Verbose] >
00:00:18 #2505 [Verbose] > ╭─[ 152.43ms - stdout ]────────────────────────────────────────────────────────╮
00:00:18 #2506 [Verbose] > │ () │
00:00:18 #2507 [Verbose] > │ │
00:00:18 #2508 [Verbose] > │ │
00:00:18 #2509 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:18 #2510 [Verbose] >
00:00:18 #2511 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:18 #2512 [Verbose] > // // test
00:00:18 #2513 [Verbose] >
00:00:18 #2514 [Verbose] > vec 1 2 3 .z
00:00:18 #2515 [Verbose] > |> _assert_eq 3
00:00:18 #2516 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-5475-7544-7890184e60a7/main.spi
00:00:19 #2517 [Verbose] >
00:00:19 #2518 [Verbose] > ╭─[ 162.52ms - stdout ]────────────────────────────────────────────────────────╮
00:00:19 #2519 [Verbose] > │ let rec method0 () : unit = │
00:00:19 #2520 [Verbose] > │ let v0 : string = $"__expect / actual: %A{3.0} / expected: %A{3.0}" │
00:00:19 #2521 [Verbose] > │ () │
00:00:19 #2522 [Verbose] > │ method0() │
00:00:19 #2523 [Verbose] > │ │
00:00:19 #2524 [Verbose] > │ │
00:00:19 #2525 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:19 #2526 [Verbose] >
00:00:19 #2527 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:19 #2528 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:19 #2529 [Verbose] > │ ### consts │
00:00:19 #2530 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:19 #2531 [Verbose] >
00:00:19 #2532 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:19 #2533 [Verbose] > inl i_hat () = vec 1 0 0
00:00:19 #2534 [Verbose] > inl j_hat () = vec 0 1 0
00:00:19 #2535 [Verbose] > inl k_hat () = vec 0 0 1
00:00:19 #2536 [Verbose] > inl zero_vec () = vec 0 0 0
00:00:19 #2537 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-5491-9189-9473dffaa0a5/main.spi
00:00:19 #2538 [Verbose] >
00:00:19 #2539 [Verbose] > ╭─[ 155.19ms - stdout ]────────────────────────────────────────────────────────╮
00:00:19 #2540 [Verbose] > │ () │
00:00:19 #2541 [Verbose] > │ │
00:00:19 #2542 [Verbose] > │ │
00:00:19 #2543 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:19 #2544 [Verbose] >
00:00:19 #2545 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:19 #2546 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:19 #2547 [Verbose] > │ ### ^+^ │
00:00:19 #2548 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:19 #2549 [Verbose] >
00:00:19 #2550 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:19 #2551 [Verbose] > inl (^+^) (a : vec) (b : vec) =
00:00:19 #2552 [Verbose] > vec (a.x + b.x) (a.y + b.y) (a.z + b.z)
00:00:19 #2553 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-5507-0752-0df85e7e3067/main.spi
00:00:19 #2554 [Verbose] >
00:00:19 #2555 [Verbose] > ╭─[ 163.44ms - stdout ]────────────────────────────────────────────────────────╮
00:00:19 #2556 [Verbose] > │ () │
00:00:19 #2557 [Verbose] > │ │
00:00:19 #2558 [Verbose] > │ │
00:00:19 #2559 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:19 #2560 [Verbose] >
00:00:19 #2561 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:19 #2562 [Verbose] > // // test
00:00:19 #2563 [Verbose] >
00:00:19 #2564 [Verbose] > vec 1 2 3 ^+^ vec 4 5 6
00:00:19 #2565 [Verbose] > |> _assert_eq (vec 5 7 9)
00:00:19 #2566 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-5523-2387-2ac5ba2836c1/main.spi
00:00:19 #2567 [Verbose] >
00:00:19 #2568 [Verbose] > ╭─[ 149.79ms - stdout ]────────────────────────────────────────────────────────╮
00:00:19 #2569 [Verbose] > │ let rec method0 () : unit = │
00:00:19 #2570 [Verbose] > │ let v0 : string = $"__expect / actual: %A{struct (5.0, 7.0, 9.0)} / │
00:00:19 #2571 [Verbose] > │ expected: %A{struct (5.0, 7.0, 9.0)}" │
00:00:19 #2572 [Verbose] > │ () │
00:00:19 #2573 [Verbose] > │ method0() │
00:00:19 #2574 [Verbose] > │ │
00:00:19 #2575 [Verbose] > │ │
00:00:19 #2576 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:19 #2577 [Verbose] >
00:00:19 #2578 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:19 #2579 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:19 #2580 [Verbose] > │ ### sum_vec │
00:00:19 #2581 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:19 #2582 [Verbose] >
00:00:19 #2583 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:19 #2584 [Verbose] > inl sum_vec vs =
00:00:19 #2585 [Verbose] > vs |> listm.fold (^+^) (zero_vec ())
00:00:19 #2586 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-5538-3892-383c10b4f408/main.spi
00:00:19 #2587 [Verbose] >
00:00:19 #2588 [Verbose] > ╭─[ 149.19ms - stdout ]────────────────────────────────────────────────────────╮
00:00:19 #2589 [Verbose] > │ () │
00:00:19 #2590 [Verbose] > │ │
00:00:19 #2591 [Verbose] > │ │
00:00:19 #2592 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:19 #2593 [Verbose] >
00:00:19 #2594 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:19 #2595 [Verbose] > // // test
00:00:19 #2596 [Verbose] >
00:00:19 #2597 [Verbose] > [[ vec 1 2 3; vec 4 5 6 ]]
00:00:19 #2598 [Verbose] > |> sum_vec
00:00:19 #2599 [Verbose] > |> _assert_eq (vec 5 7 9)
00:00:19 #2600 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-5553-5394-5bacd8691e65/main.spi
00:00:19 #2601 [Verbose] >
00:00:19 #2602 [Verbose] > ╭─[ 192.59ms - stdout ]────────────────────────────────────────────────────────╮
00:00:19 #2603 [Verbose] > │ let rec method0 () : unit = │
00:00:19 #2604 [Verbose] > │ let v0 : string = $"__expect / actual: %A{struct (5.0, 7.0, 9.0)} / │
00:00:19 #2605 [Verbose] > │ expected: %A{struct (5.0, 7.0, 9.0)}" │
00:00:19 #2606 [Verbose] > │ () │
00:00:19 #2607 [Verbose] > │ method0() │
00:00:19 #2608 [Verbose] > │ │
00:00:19 #2609 [Verbose] > │ │
00:00:19 #2610 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:19 #2611 [Verbose] >
00:00:19 #2612 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:19 #2613 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:19 #2614 [Verbose] > │ ### *^ │
00:00:19 #2615 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:19 #2616 [Verbose] >
00:00:19 #2617 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:19 #2618 [Verbose] > inl (*^) c { x y z } =
00:00:19 #2619 [Verbose] > vec (c * x) (c * y) (c * z)
00:00:19 #2620 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-5573-7321-7339f4ab1075/main.spi
00:00:20 #2621 [Verbose] >
00:00:20 #2622 [Verbose] > ╭─[ 145.33ms - stdout ]────────────────────────────────────────────────────────╮
00:00:20 #2623 [Verbose] > │ () │
00:00:20 #2624 [Verbose] > │ │
00:00:20 #2625 [Verbose] > │ │
00:00:20 #2626 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:20 #2627 [Verbose] >
00:00:20 #2628 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:20 #2629 [Verbose] > // // test
00:00:20 #2630 [Verbose] >
00:00:20 #2631 [Verbose] > 5 *^ vec 1 2 3
00:00:20 #2632 [Verbose] > |> _assert_eq (vec 5 10 15)
00:00:20 #2633 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-5587-8781-8abd20000709/main.spi
00:00:20 #2634 [Verbose] >
00:00:20 #2635 [Verbose] > ╭─[ 145.79ms - stdout ]────────────────────────────────────────────────────────╮
00:00:20 #2636 [Verbose] > │ let rec method0 () : unit = │
00:00:20 #2637 [Verbose] > │ let v0 : string = $"__expect / actual: %A{struct (5.0, 10.0, 15.0)} / │
00:00:20 #2638 [Verbose] > │ expected: %A{struct (5.0, 10.0, 15.0)}" │
00:00:20 #2639 [Verbose] > │ () │
00:00:20 #2640 [Verbose] > │ method0() │
00:00:20 #2641 [Verbose] > │ │
00:00:20 #2642 [Verbose] > │ │
00:00:20 #2643 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:20 #2644 [Verbose] >
00:00:20 #2645 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:20 #2646 [Verbose] > // // test
00:00:20 #2647 [Verbose] >
00:00:20 #2648 [Verbose] > 3 *^ i_hat () ^+^ 4 *^ k_hat ()
00:00:20 #2649 [Verbose] > |> _assert_eq (vec 3 0 4)
00:00:20 #2650 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-5602-0236-04b9fe46a605/main.spi
00:00:20 #2651 [Verbose] >
00:00:20 #2652 [Verbose] > ╭─[ 165.76ms - stdout ]────────────────────────────────────────────────────────╮
00:00:20 #2653 [Verbose] > │ let rec method0 () : unit = │
00:00:20 #2654 [Verbose] > │ let v0 : string = $"__expect / actual: %A{struct (3.0, 0.0, 4.0)} / │
00:00:20 #2655 [Verbose] > │ expected: %A{struct (3.0, 0.0, 4.0)}" │
00:00:20 #2656 [Verbose] > │ () │
00:00:20 #2657 [Verbose] > │ method0() │
00:00:20 #2658 [Verbose] > │ │
00:00:20 #2659 [Verbose] > │ │
00:00:20 #2660 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:20 #2661 [Verbose] >
00:00:20 #2662 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:20 #2663 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:20 #2664 [Verbose] > │ ### ^* │
00:00:20 #2665 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:20 #2666 [Verbose] >
00:00:20 #2667 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:20 #2668 [Verbose] > inl (^*) v c =
00:00:20 #2669 [Verbose] > (*^) c v
00:00:20 #2670 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-5619-1919-1580789fa807/main.spi
00:00:20 #2671 [Verbose] >
00:00:20 #2672 [Verbose] > ╭─[ 142.79ms - stdout ]────────────────────────────────────────────────────────╮
00:00:20 #2673 [Verbose] > │ () │
00:00:20 #2674 [Verbose] > │ │
00:00:20 #2675 [Verbose] > │ │
00:00:20 #2676 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:20 #2677 [Verbose] >
00:00:20 #2678 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:20 #2679 [Verbose] > // // test
00:00:20 #2680 [Verbose] >
00:00:20 #2681 [Verbose] > vec 1 2 3 ^* 5
00:00:20 #2682 [Verbose] > |> _assert_eq (vec 5 10 15)
00:00:20 #2683 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-5633-3351-34df8e0d42e6/main.spi
00:00:20 #2684 [Verbose] >
00:00:20 #2685 [Verbose] > ╭─[ 161.37ms - stdout ]────────────────────────────────────────────────────────╮
00:00:20 #2686 [Verbose] > │ let rec method0 () : unit = │
00:00:20 #2687 [Verbose] > │ let v0 : string = $"__expect / actual: %A{struct (5.0, 10.0, 15.0)} / │
00:00:20 #2688 [Verbose] > │ expected: %A{struct (5.0, 10.0, 15.0)}" │
00:00:20 #2689 [Verbose] > │ () │
00:00:20 #2690 [Verbose] > │ method0() │
00:00:20 #2691 [Verbose] > │ │
00:00:20 #2692 [Verbose] > │ │
00:00:20 #2693 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:20 #2694 [Verbose] >
00:00:20 #2695 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:20 #2696 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:20 #2697 [Verbose] > │ ### ^/ │
00:00:20 #2698 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:20 #2699 [Verbose] >
00:00:20 #2700 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:20 #2701 [Verbose] > inl (^/) { x y z } c =
00:00:20 #2702 [Verbose] > vec (x / c) (y / c) (z / c)
00:00:20 #2703 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-5649-4969-4a0ff49d20db/main.spi
00:00:20 #2704 [Verbose] >
00:00:20 #2705 [Verbose] > ╭─[ 145.25ms - stdout ]────────────────────────────────────────────────────────╮
00:00:20 #2706 [Verbose] > │ () │
00:00:20 #2707 [Verbose] > │ │
00:00:20 #2708 [Verbose] > │ │
00:00:20 #2709 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:20 #2710 [Verbose] >
00:00:20 #2711 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:20 #2712 [Verbose] > // // test
00:00:20 #2713 [Verbose] >
00:00:20 #2714 [Verbose] > vec 1 2 3 ^/ 5
00:00:20 #2715 [Verbose] > |> _assert_eq (vec 0.2 0.4 0.6)
00:00:20 #2716 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-5664-6426-6ca8d4ef004f/main.spi
00:00:20 #2717 [Verbose] >
00:00:20 #2718 [Verbose] > ╭─[ 141.39ms - stdout ]────────────────────────────────────────────────────────╮
00:00:20 #2719 [Verbose] > │ let rec method0 () : unit = │
00:00:20 #2720 [Verbose] > │ let v0 : string = $"__expect / actual: %A{struct (0.2, 0.4, 0.6)} / │
00:00:20 #2721 [Verbose] > │ expected: %A{struct (0.2, 0.4, 0.6)}" │
00:00:20 #2722 [Verbose] > │ () │
00:00:20 #2723 [Verbose] > │ method0() │
00:00:20 #2724 [Verbose] > │ │
00:00:20 #2725 [Verbose] > │ │
00:00:20 #2726 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:20 #2727 [Verbose] >
00:00:20 #2728 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:20 #2729 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:20 #2730 [Verbose] > │ ### negate_vec │
00:00:20 #2731 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:20 #2732 [Verbose] >
00:00:20 #2733 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:20 #2734 [Verbose] > inl negate_vec v =
00:00:20 #2735 [Verbose] > v ^* -1
00:00:20 #2736 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-5678-7853-775bcb0e381f/main.spi
00:00:21 #2737 [Verbose] >
00:00:21 #2738 [Verbose] > ╭─[ 136.75ms - stdout ]────────────────────────────────────────────────────────╮
00:00:21 #2739 [Verbose] > │ () │
00:00:21 #2740 [Verbose] > │ │
00:00:21 #2741 [Verbose] > │ │
00:00:21 #2742 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:21 #2743 [Verbose] >
00:00:21 #2744 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:21 #2745 [Verbose] > // // test
00:00:21 #2746 [Verbose] >
00:00:21 #2747 [Verbose] > vec 1 2 3
00:00:21 #2748 [Verbose] > |> negate_vec
00:00:21 #2749 [Verbose] > |> _assert_eq (vec -1 -2 -3)
00:00:21 #2750 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-5692-9222-9a3663dcadd0/main.spi
00:00:21 #2751 [Verbose] >
00:00:21 #2752 [Verbose] > ╭─[ 175.26ms - stdout ]────────────────────────────────────────────────────────╮
00:00:21 #2753 [Verbose] > │ let rec method0 () : unit = │
00:00:21 #2754 [Verbose] > │ let v0 : string = $"__expect / actual: %A{struct (-1.0, -2.0, -3.0)} / │
00:00:21 #2755 [Verbose] > │ expected: %A{struct (-1.0, -2.0, -3.0)}" │
00:00:21 #2756 [Verbose] > │ () │
00:00:21 #2757 [Verbose] > │ method0() │
00:00:21 #2758 [Verbose] > │ │
00:00:21 #2759 [Verbose] > │ │
00:00:21 #2760 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:21 #2761 [Verbose] >
00:00:21 #2762 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:21 #2763 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:21 #2764 [Verbose] > │ ### ^-^ │
00:00:21 #2765 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:21 #2766 [Verbose] >
00:00:21 #2767 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:21 #2768 [Verbose] > inl (^-^) a b =
00:00:21 #2769 [Verbose] > a ^+^ (negate_vec b)
00:00:21 #2770 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-5709-0991-04fe2e7079e2/main.spi
00:00:21 #2771 [Verbose] >
00:00:21 #2772 [Verbose] > ╭─[ 139.12ms - stdout ]────────────────────────────────────────────────────────╮
00:00:21 #2773 [Verbose] > │ () │
00:00:21 #2774 [Verbose] > │ │
00:00:21 #2775 [Verbose] > │ │
00:00:21 #2776 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:21 #2777 [Verbose] >
00:00:21 #2778 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:21 #2779 [Verbose] > // // test
00:00:21 #2780 [Verbose] >
00:00:21 #2781 [Verbose] > vec 1 2 3 ^-^ vec 4 5 6
00:00:21 #2782 [Verbose] > |> _assert_eq (vec -3 -3 -3)
00:00:21 #2783 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-5723-2384-21e3df0064ce/main.spi
00:00:21 #2784 [Verbose] >
00:00:21 #2785 [Verbose] > ╭─[ 141.48ms - stdout ]────────────────────────────────────────────────────────╮
00:00:21 #2786 [Verbose] > │ let rec method0 () : unit = │
00:00:21 #2787 [Verbose] > │ let v0 : string = $"__expect / actual: %A{struct (-3.0, -3.0, -3.0)} / │
00:00:21 #2788 [Verbose] > │ expected: %A{struct (-3.0, -3.0, -3.0)}" │
00:00:21 #2789 [Verbose] > │ () │
00:00:21 #2790 [Verbose] > │ method0() │
00:00:21 #2791 [Verbose] > │ │
00:00:21 #2792 [Verbose] > │ │
00:00:21 #2793 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:21 #2794 [Verbose] >
00:00:21 #2795 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:21 #2796 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:21 #2797 [Verbose] > │ ### <.> │
00:00:21 #2798 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:21 #2799 [Verbose] >
00:00:21 #2800 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:21 #2801 [Verbose] > inl (<.>) { x = ax y = ay z = az } { x = bx y = by z = bz } =
00:00:21 #2802 [Verbose] > ax * bx + ay * by + az * bz
00:00:21 #2803 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-5738-3830-3fde1a22cfd5/main.spi
00:00:21 #2804 [Verbose] >
00:00:21 #2805 [Verbose] > ╭─[ 139.09ms - stdout ]────────────────────────────────────────────────────────╮
00:00:21 #2806 [Verbose] > │ () │
00:00:21 #2807 [Verbose] > │ │
00:00:21 #2808 [Verbose] > │ │
00:00:21 #2809 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:21 #2810 [Verbose] >
00:00:21 #2811 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:21 #2812 [Verbose] > // // test
00:00:21 #2813 [Verbose] >
00:00:21 #2814 [Verbose] > vec 1 2 3 <.> vec 4 5 6
00:00:21 #2815 [Verbose] > |> _assert_eq 32
00:00:21 #2816 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-5752-5236-506e08c7eb85/main.spi
00:00:21 #2817 [Verbose] >
00:00:21 #2818 [Verbose] > ╭─[ 154.72ms - stdout ]────────────────────────────────────────────────────────╮
00:00:21 #2819 [Verbose] > │ let rec method0 () : unit = │
00:00:21 #2820 [Verbose] > │ let v0 : string = $"__expect / actual: %A{32.0} / expected: %A{32.0}" │
00:00:21 #2821 [Verbose] > │ () │
00:00:21 #2822 [Verbose] > │ method0() │
00:00:21 #2823 [Verbose] > │ │
00:00:21 #2824 [Verbose] > │ │
00:00:21 #2825 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:21 #2826 [Verbose] >
00:00:21 #2827 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:21 #2828 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:21 #2829 [Verbose] > │ ### \>\< │
00:00:21 #2830 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:21 #2831 [Verbose] >
00:00:21 #2832 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:21 #2833 [Verbose] > inl (><) (a : vec) (b : vec) =
00:00:21 #2834 [Verbose] > vec
00:00:21 #2835 [Verbose] > (a.y * b.z - a.z * b.y)
00:00:21 #2836 [Verbose] > (a.z * b.x - a.x * b.z)
00:00:21 #2837 [Verbose] > (a.x * b.y - a.y * b.x)
00:00:21 #2838 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-5767-6784-62e157b31e0f/main.spi
00:00:21 #2839 [Verbose] >
00:00:21 #2840 [Verbose] > ╭─[ 139.56ms - stdout ]────────────────────────────────────────────────────────╮
00:00:21 #2841 [Verbose] > │ () │
00:00:21 #2842 [Verbose] > │ │
00:00:21 #2843 [Verbose] > │ │
00:00:21 #2844 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:21 #2845 [Verbose] >
00:00:21 #2846 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:21 #2847 [Verbose] > // // test
00:00:21 #2848 [Verbose] >
00:00:21 #2849 [Verbose] > vec 1 2 3 >< vec 4 5 6
00:00:21 #2850 [Verbose] > |> _assert_eq (vec -3 6 -3)
00:00:22 #2851 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-5781-8186-831388b33f06/main.spi
00:00:22 #2852 [Verbose] >
00:00:22 #2853 [Verbose] > ╭─[ 169.60ms - stdout ]────────────────────────────────────────────────────────╮
00:00:22 #2854 [Verbose] > │ let rec method0 () : unit = │
00:00:22 #2855 [Verbose] > │ let v0 : string = $"__expect / actual: %A{struct (-3.0, 6.0, -3.0)} / │
00:00:22 #2856 [Verbose] > │ expected: %A{struct (-3.0, 6.0, -3.0)}" │
00:00:22 #2857 [Verbose] > │ () │
00:00:22 #2858 [Verbose] > │ method0() │
00:00:22 #2859 [Verbose] > │ │
00:00:22 #2860 [Verbose] > │ │
00:00:22 #2861 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:22 #2862 [Verbose] >
00:00:22 #2863 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:22 #2864 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:22 #2865 [Verbose] > │ ### magnitude │
00:00:22 #2866 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:22 #2867 [Verbose] >
00:00:22 #2868 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:22 #2869 [Verbose] > inl magnitude v =
00:00:22 #2870 [Verbose] > v <.> v |> sqrt
00:00:22 #2871 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-5798-9892-96ba941e393a/main.spi
00:00:22 #2872 [Verbose] >
00:00:22 #2873 [Verbose] > ╭─[ 140.54ms - stdout ]────────────────────────────────────────────────────────╮
00:00:22 #2874 [Verbose] > │ () │
00:00:22 #2875 [Verbose] > │ │
00:00:22 #2876 [Verbose] > │ │
00:00:22 #2877 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:22 #2878 [Verbose] >
00:00:22 #2879 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:22 #2880 [Verbose] > // // test
00:00:22 #2881 [Verbose] >
00:00:22 #2882 [Verbose] > vec 1 2 3
00:00:22 #2883 [Verbose] > |> magnitude
00:00:22 #2884 [Verbose] > |> _assert_approx_eq None 3.7416573867739413
00:00:22 #2885 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-5812-1296-1bd31b4f1682/main.spi
00:00:22 #2886 [Verbose] >
00:00:22 #2887 [Verbose] > ╭─[ 137.92ms - stdout ]────────────────────────────────────────────────────────╮
00:00:22 #2888 [Verbose] > │ let rec method0 () : unit = │
00:00:22 #2889 [Verbose] > │ let v0 : string = $"__expect / actual: %A{3.7416573867739413} / │
00:00:22 #2890 [Verbose] > │ expected: %A{3.7416573867739413}" │
00:00:22 #2891 [Verbose] > │ () │
00:00:22 #2892 [Verbose] > │ method0() │
00:00:22 #2893 [Verbose] > │ │
00:00:22 #2894 [Verbose] > │ │
00:00:22 #2895 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:22 #2896 [Verbose] >
00:00:22 #2897 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:22 #2898 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:22 #2899 [Verbose] > │ ### v1 │
00:00:22 #2900 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:22 #2901 [Verbose] >
00:00:22 #2902 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:22 #2903 [Verbose] > inl v1 t =
00:00:22 #2904 [Verbose] > 2 *^ (t ** 2 *^ i_hat () ^+^ 3 *^ (t ** 3 *^ j_hat () ^+^ t ** 4 *^ k_hat
00:00:22 #2905 [Verbose] > ()))
00:00:22 #2906 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-5826-2684-209468d237a3/main.spi
00:00:22 #2907 [Verbose] >
00:00:22 #2908 [Verbose] > ╭─[ 137.47ms - stdout ]────────────────────────────────────────────────────────╮
00:00:22 #2909 [Verbose] > │ () │
00:00:22 #2910 [Verbose] > │ │
00:00:22 #2911 [Verbose] > │ │
00:00:22 #2912 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:22 #2913 [Verbose] >
00:00:22 #2914 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:22 #2915 [Verbose] > // // test
00:00:22 #2916 [Verbose] >
00:00:22 #2917 [Verbose] > v1 1
00:00:22 #2918 [Verbose] > |> _assert_eq (vec 2 6 6)
00:00:22 #2919 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-5840-4062-48f443ec36e9/main.spi
00:00:22 #2920 [Verbose] >
00:00:22 #2921 [Verbose] > ╭─[ 142.06ms - stdout ]────────────────────────────────────────────────────────╮
00:00:22 #2922 [Verbose] > │ let rec method0 () : unit = │
00:00:22 #2923 [Verbose] > │ let v0 : string = $"__expect / actual: %A{struct (2.0, 6.0, 6.0)} / │
00:00:22 #2924 [Verbose] > │ expected: %A{struct (2.0, 6.0, 6.0)}" │
00:00:22 #2925 [Verbose] > │ () │
00:00:22 #2926 [Verbose] > │ method0() │
00:00:22 #2927 [Verbose] > │ │
00:00:22 #2928 [Verbose] > │ │
00:00:22 #2929 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:22 #2930 [Verbose] >
00:00:22 #2931 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:22 #2932 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:22 #2933 [Verbose] > │ ### vec_derivative │
00:00:22 #2934 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:22 #2935 [Verbose] >
00:00:22 #2936 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:22 #2937 [Verbose] > type vec_derivative = (f64 -> vec) -> f64 -> vec
00:00:22 #2938 [Verbose] >
00:00:22 #2939 [Verbose] > inl vec_derivative dt : vec_derivative =
00:00:22 #2940 [Verbose] > fun v t =>
00:00:22 #2941 [Verbose] > (v (t + dt / 2) ^-^ v (t - dt / 2)) ^/ dt
00:00:22 #2942 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-5854-5492-5bd5f7fb3c62/main.spi
00:00:22 #2943 [Verbose] >
00:00:22 #2944 [Verbose] > ╭─[ 136.54ms - stdout ]────────────────────────────────────────────────────────╮
00:00:22 #2945 [Verbose] > │ () │
00:00:22 #2946 [Verbose] > │ │
00:00:22 #2947 [Verbose] > │ │
00:00:22 #2948 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:22 #2949 [Verbose] >
00:00:22 #2950 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:22 #2951 [Verbose] > // // test
00:00:22 #2952 [Verbose] >
00:00:22 #2953 [Verbose] > vec_derivative 0.01 v1 3 .x
00:00:22 #2954 [Verbose] > |> _assert_approx_eq None (derivative 0.01 (v1 >> fun v => v.x) 3)
00:00:22 #2955 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-5868-6859-6c5c5fb07588/main.spi
00:00:22 #2956 [Verbose] >
00:00:22 #2957 [Verbose] > ╭─[ 146.05ms - stdout ]────────────────────────────────────────────────────────╮
00:00:22 #2958 [Verbose] > │ let rec method0 () : unit = │
00:00:22 #2959 [Verbose] > │ let v0 : string = $"__expect / actual: %A{11.999999999999744} / │
00:00:22 #2960 [Verbose] > │ expected: %A{11.999999999999744}" │
00:00:22 #2961 [Verbose] > │ () │
00:00:22 #2962 [Verbose] > │ method0() │
00:00:22 #2963 [Verbose] > │ │
00:00:22 #2964 [Verbose] > │ │
00:00:22 #2965 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:22 #2966 [Verbose] >
00:00:22 #2967 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:22 #2968 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:22 #2969 [Verbose] > │ ## states_ps │
00:00:22 #2970 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:22 #2971 [Verbose] >
00:00:22 #2972 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:22 #2973 [Verbose] > nominal particle_state =
00:00:22 #2974 [Verbose] > {
00:00:22 #2975 [Verbose] > mass : f64
00:00:22 #2976 [Verbose] > charge : f64
00:00:22 #2977 [Verbose] > time : f64
00:00:22 #2978 [Verbose] > pos_vec : vec
00:00:22 #2979 [Verbose] > velocity : vec
00:00:22 #2980 [Verbose] > }
00:00:22 #2981 [Verbose] >
00:00:22 #2982 [Verbose] > inl default_particle_state () : particle_state =
00:00:22 #2983 [Verbose] > particle_state {
00:00:22 #2984 [Verbose] > mass = 1
00:00:22 #2985 [Verbose] > charge = 0
00:00:22 #2986 [Verbose] > time = 0
00:00:22 #2987 [Verbose] > pos_vec = zero_vec ()
00:00:22 #2988 [Verbose] > velocity = zero_vec ()
00:00:22 #2989 [Verbose] > }
00:00:22 #2990 [Verbose] >
00:00:22 #2991 [Verbose] > type one_body_force = particle_state -> vec
00:00:22 #2992 [Verbose] >
00:00:22 #2993 [Verbose] > nominal d_particle_state =
00:00:22 #2994 [Verbose] > {
00:00:22 #2995 [Verbose] > dmdt : f64
00:00:22 #2996 [Verbose] > dqdt : f64
00:00:22 #2997 [Verbose] > dtdt : f64
00:00:22 #2998 [Verbose] > drdt : vec
00:00:22 #2999 [Verbose] > dvdt : vec
00:00:22 #3000 [Verbose] > }
00:00:22 #3001 [Verbose] >
00:00:22 #3002 [Verbose] > inl newton_second_ps (fs : list one_body_force) (st : particle_state) :
00:00:22 #3003 [Verbose] > d_particle_state =
00:00:22 #3004 [Verbose] > inl f_net = fs |> listm.map (fun f => f st) |> sum_vec
00:00:22 #3005 [Verbose] > d_particle_state {
00:00:22 #3006 [Verbose] > dmdt = 0
00:00:22 #3007 [Verbose] > dqdt = 0
00:00:22 #3008 [Verbose] > dtdt = 1
00:00:22 #3009 [Verbose] > drdt = st.velocity
00:00:22 #3010 [Verbose] > dvdt = f_net ^/ st.mass
00:00:22 #3011 [Verbose] > }
00:00:22 #3012 [Verbose] >
00:00:22 #3013 [Verbose] > inl earth_surface_gravity (st : particle_state) =
00:00:22 #3014 [Verbose] > inl g = 9.80665
00:00:22 #3015 [Verbose] > -st.mass * g *^ k_hat ()
00:00:22 #3016 [Verbose] >
00:00:22 #3017 [Verbose] > inl air_resistance drag rho area (st : particle_state) =
00:00:22 #3018 [Verbose] > -0.5 * drag * rho * area * magnitude st.velocity *^ st.velocity
00:00:22 #3019 [Verbose] >
00:00:22 #3020 [Verbose] > inl euler_cromer_ps dt (deriv : particle_state -> d_particle_state)
00:00:22 #3021 [Verbose] > (particle_state st) =
00:00:22 #3022 [Verbose] > inl dst : d_particle_state = deriv (particle_state st)
00:00:22 #3023 [Verbose] > inl v' = st.velocity ^+^ dst.dvdt ^* dt
00:00:22 #3024 [Verbose] > particle_state { st with
00:00:22 #3025 [Verbose] > time = st.time + dt
00:00:22 #3026 [Verbose] > pos_vec = st.pos_vec ^+^ v' ^* dt
00:00:22 #3027 [Verbose] > velocity = st.velocity ^+^ dst.dvdt ^* dt
00:00:22 #3028 [Verbose] > }
00:00:22 #3029 [Verbose] >
00:00:22 #3030 [Verbose] > instance (+++) d_particle_state = fun (dps : d_particle_state) (dps' :
00:00:22 #3031 [Verbose] > d_particle_state) =>
00:00:22 #3032 [Verbose] > d_particle_state {
00:00:22 #3033 [Verbose] > dmdt = dps.dmdt + dps'.dmdt
00:00:22 #3034 [Verbose] > dqdt = dps.dqdt + dps'.dqdt
00:00:22 #3035 [Verbose] > dtdt = dps.dtdt + dps'.dtdt
00:00:22 #3036 [Verbose] > drdt = dps.drdt ^+^ dps'.drdt
00:00:22 #3037 [Verbose] > dvdt = dps.dvdt ^+^ dps'.dvdt
00:00:22 #3038 [Verbose] > }
00:00:22 #3039 [Verbose] >
00:00:22 #3040 [Verbose] > instance scale d_particle_state = fun w (dps : d_particle_state) =>
00:00:22 #3041 [Verbose] > d_particle_state {
00:00:22 #3042 [Verbose] > dmdt = w * dps.dmdt
00:00:22 #3043 [Verbose] > dqdt = w * dps.dqdt
00:00:22 #3044 [Verbose] > dtdt = w * dps.dtdt
00:00:22 #3045 [Verbose] > drdt = w *^ dps.drdt
00:00:22 #3046 [Verbose] > dvdt = w *^ dps.dvdt
00:00:22 #3047 [Verbose] > }
00:00:22 #3048 [Verbose] >
00:00:22 #3049 [Verbose] > instance shift particle_state = fun dt dps (particle_state st) =>
00:00:22 #3050 [Verbose] > inl (d_particle_state dps) =
00:00:22 #3051 [Verbose] > real
00:00:22 #3052 [Verbose] > match dps with
00:00:22 #3053 [Verbose] > | d_particle_state _ => dps
00:00:22 #3054 [Verbose] > particle_state { st with
00:00:22 #3055 [Verbose] > time = st.time + dps.dtdt * dt
00:00:22 #3056 [Verbose] > pos_vec = st.pos_vec ^+^ dps.drdt ^* dt
00:00:22 #3057 [Verbose] > velocity = st.velocity ^+^ dps.dvdt ^* dt
00:00:22 #3058 [Verbose] > }
00:00:22 #3059 [Verbose] >
00:00:22 #3060 [Verbose] > inl states_ps (method : numerical_method particle_state d_particle_state) : _ ->
00:00:22 #3061 [Verbose] > _ -> i32 -> particle_state =
00:00:22 #3062 [Verbose] > newton_second_ps >> method >> seq.iterate_
00:00:22 #3063 [Verbose] >
00:00:22 #3064 [Verbose] > inl z_ge0 sts =
00:00:22 #3065 [Verbose] > sts
00:00:22 #3066 [Verbose] > |> seq.take_while_ (fun (particle_state st) _ => st.pos_vec.z >= 0)
00:00:22 #3067 [Verbose] >
00:00:22 #3068 [Verbose] > inl trajectory sts =
00:00:22 #3069 [Verbose] > sts |> listm.map (fun (particle_state st) => st.pos_vec.y, st.pos_vec.z)
00:00:23 #3070 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-5883-8337-80e32e777a5a/main.spi
00:00:23 #3071 [Verbose] >
00:00:23 #3072 [Verbose] > ╭─[ 144.74ms - stdout ]────────────────────────────────────────────────────────╮
00:00:23 #3073 [Verbose] > │ () │
00:00:23 #3074 [Verbose] > │ │
00:00:23 #3075 [Verbose] > │ │
00:00:23 #3076 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:23 #3077 [Verbose] >
00:00:23 #3078 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:23 #3079 [Verbose] > // // test
00:00:23 #3080 [Verbose] >
00:00:23 #3081 [Verbose] > inl update_ps (method : numerical_method particle_state d_particle_state) =
00:00:23 #3082 [Verbose] > newton_second_ps >> method
00:00:23 #3083 [Verbose] >
00:00:23 #3084 [Verbose] > inl position_ps (method : numerical_method particle_state d_particle_state) fs
00:00:23 #3085 [Verbose] > st t =
00:00:23 #3086 [Verbose] > inl states : i32 -> particle_state = states_ps method fs st
00:00:23 #3087 [Verbose] > inl dt = (states 1).time - (states 0).time
00:00:23 #3088 [Verbose] > inl num_steps = t / dt |> math.round |> abs
00:00:23 #3089 [Verbose] > inl st1 = solver' method (newton_second_ps fs) st num_steps
00:00:23 #3090 [Verbose] > st1.pos_vec
00:00:23 #3091 [Verbose] >
00:00:23 #3092 [Verbose] > inl sun_gravity (st : particle_state) : vec =
00:00:23 #3093 [Verbose] > inl big_g = 0.0000000000667408
00:00:23 #3094 [Verbose] > inl sun_mass = 1988480000000000000000000000000
00:00:23 #3095 [Verbose] > -big_g * sun_mass * st.mass *^ st.pos_vec ^/ magnitude st.pos_vec ** 3
00:00:23 #3096 [Verbose] >
00:00:23 #3097 [Verbose] > inl wind_force v_wind drag rho area (st : particle_state) =
00:00:23 #3098 [Verbose] > inl v_rel = st.velocity ^-^ v_wind
00:00:23 #3099 [Verbose] > -0.5 * drag * rho * area * magnitude v_rel *^ v_rel
00:00:23 #3100 [Verbose] >
00:00:23 #3101 [Verbose] > inl rock_state () =
00:00:23 #3102 [Verbose] > inl (particle_state default_particle_state') = default_particle_state ()
00:00:23 #3103 [Verbose] > particle_state { default_particle_state' with
00:00:23 #3104 [Verbose] > mass = 2
00:00:23 #3105 [Verbose] > velocity = vec 3 0 4
00:00:23 #3106 [Verbose] > }
00:00:23 #3107 [Verbose] >
00:00:23 #3108 [Verbose] > inl halley_update dt =
00:00:23 #3109 [Verbose] > update_ps (euler_cromer_ps dt) [[ sun_gravity ]]
00:00:23 #3110 [Verbose] >
00:00:23 #3111 [Verbose] > inl halley_initial () =
00:00:23 #3112 [Verbose] > inl (particle_state default_particle_state') = default_particle_state ()
00:00:23 #3113 [Verbose] > particle_state { default_particle_state' with
00:00:23 #3114 [Verbose] > mass = 220000000000000
00:00:23 #3115 [Verbose] > pos_vec = 87660000000 *^ i_hat ()
00:00:23 #3116 [Verbose] > velocity = 54569 *^ j_hat ()
00:00:23 #3117 [Verbose] > }
00:00:23 #3118 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-5897-9784-97583f2297bd/main.spi
00:00:23 #3119 [Verbose] >
00:00:23 #3120 [Verbose] > ╭─[ 147.49ms - stdout ]────────────────────────────────────────────────────────╮
00:00:23 #3121 [Verbose] > │ () │
00:00:23 #3122 [Verbose] > │ │
00:00:23 #3123 [Verbose] > │ │
00:00:23 #3124 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:23 #3125 [Verbose] >
00:00:23 #3126 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:23 #3127 [Verbose] > // // test
00:00:23 #3128 [Verbose] >
00:00:23 #3129 [Verbose] > inl baseball_forces () =
00:00:23 #3130 [Verbose] > inl area = pi * (0.074 / 2) ** 2
00:00:23 #3131 [Verbose] > [[
00:00:23 #3132 [Verbose] > earth_surface_gravity
00:00:23 #3133 [Verbose] > air_resistance 0.3 1.225 area
00:00:23 #3134 [Verbose] > ]]
00:00:23 #3135 [Verbose] >
00:00:23 #3136 [Verbose] > inl baseball_trajectory dt v0 theta_deg =
00:00:23 #3137 [Verbose] > inl theta_rad = theta_deg * pi / 180
00:00:23 #3138 [Verbose] > inl vy0 = v0 * cos theta_rad
00:00:23 #3139 [Verbose] > inl vz0 = v0 * sin theta_rad
00:00:23 #3140 [Verbose] > inl initial_state =
00:00:23 #3141 [Verbose] > particle_state {
00:00:23 #3142 [Verbose] > mass = 0.145
00:00:23 #3143 [Verbose] > charge = 0
00:00:23 #3144 [Verbose] > time = 0
00:00:23 #3145 [Verbose] > pos_vec = zero_vec ()
00:00:23 #3146 [Verbose] > velocity = vec 0 vy0 vz0
00:00:23 #3147 [Verbose] > }
00:00:23 #3148 [Verbose] > states_ps (euler_cromer_ps dt) (baseball_forces ()) initial_state
00:00:23 #3149 [Verbose] > >> Some
00:00:23 #3150 [Verbose] > |> z_ge0
00:00:23 #3151 [Verbose] > |> trajectory
00:00:23 #3152 [Verbose] >
00:00:23 #3153 [Verbose] > inl baseball_range dt v0 theta_deg =
00:00:23 #3154 [Verbose] > baseball_trajectory dt v0 theta_deg
00:00:23 #3155 [Verbose] > |> listm.fold (fun _ (y, _) => y) 0
00:00:23 #3156 [Verbose] >
00:00:23 #3157 [Verbose] > inl x : a _ f64 = am'.init_series 10 80 1
00:00:23 #3158 [Verbose] > inl y = x |> am.map (baseball_range 0.01 45)
00:00:23 #3159 [Verbose] > "range for a baseball hit at 45 m/s",
00:00:23 #3160 [Verbose] > "angle above horizontal (degrees)",
00:00:23 #3161 [Verbose] > "",
00:00:23 #3162 [Verbose] > ;[[ "horizontal range (m)", x, y ]]
00:00:23 #3163 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-5912-1258-1b8c1cf6649d/main.spi
00:00:24 #3164 [Verbose] >
00:00:24 #3165 [Verbose] > ╭─[ 821.82ms - return value ]──────────────────────────────────────────────────╮
00:00:24 #3166 [Verbose] > │ <svg width="640" height="480" viewBox="0 0 640 480" │
00:00:24 #3167 [Verbose] > │ xmlns="http://www.w3.org/2000/svg"> │
00:00:24 #3168 [Verbose] > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414" │
00:00:24 #3169 [Verbose] > │ stroke="none"/> │
00:00:24 #3170 [Verbose] > │ <text x="320" y="10" dy="0.76em" text-anchor="middle" │
00:00:24 #3171 [Verbose] > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1" │
00:00:24 #3172 [Verbose] > │ fill="#FFFFFF"> │
00:00:24 #3173 [Verbose] > │ range for a baseball hit at 45 m/s │
00:00:24 #3174 [Verbose] > │ </text> │
00:00:24 #3175 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="55" y1="424" x2="55" │
00:00:24 #3176 [Verbose] > │ y2="75"/> │
00:00:24 #3177 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="62" y1="424" x2="62" │
00:00:24 #3178 [Verbose] > │ y2="75"/> │
00:00:24 #3179 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:00:24 #3180 [Verbose] > │ y2="75"/> │
00:00:24 #3181 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="77" y1="424" x2="77" │
00:00:24 #3182 [Verbose] > │ y2="75"/> │
00:00:24 #3183 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="... │
00:00:24 #3184 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:24 #3185 [Verbose] >
00:00:24 #3186 [Verbose] > ╭─[ 826.42ms - stdout ]────────────────────────────────────────────────────────╮
00:00:24 #3187 [Verbose] > │ type Mut0 = {mutable l0 : int32} │
00:00:24 #3188 [Verbose] > │ and UH0 = │
00:00:24 #3189 [Verbose] > │ | UH0_0 of float * float * float * float * float * float * float * float │
00:00:24 #3190 [Verbose] > │ * float * UH0 │
00:00:24 #3191 [Verbose] > │ | UH0_1 │
00:00:24 #3192 [Verbose] > │ and UH1 = │
00:00:24 #3193 [Verbose] > │ | UH1_0 of float * float * UH1 │
00:00:24 #3194 [Verbose] > │ | UH1_1 │
00:00:24 #3195 [Verbose] > │ let rec method1 (v0 : Mut0) : bool = │
00:00:24 #3196 [Verbose] > │ let v1 : int32 = v0.l0 │
00:00:24 #3197 [Verbose] > │ let v2 : bool = v1 < 71 │
00:00:24 #3198 [Verbose] > │ v2 │
00:00:24 #3199 [Verbose] > │ and method2 (v0 : int32, v1 : Mut0) : bool = │
00:00:24 #3200 [Verbose] > │ let v2 : int32 = v1.l0 │
00:00:24 #3201 [Verbose] > │ let v3 : bool = v2 < v0 │
00:00:24 #3202 [Verbose] > │ v3 │
00:00:24 #3203 [Verbose] > │ and method4 (v0 : float, v1 : float, v2 : float, v3 : float, v4 : float, v5 │
00:00:24 #3204 [Verbose] > │ : float, v6 : float, v7 : float, v8 : float, v9 : int32) : struct (float * │
00:00:24 #3205 [Verbose] > │ float * float * float * float * float * float * float * float) = │
00:00:24 #3206 [Verbose] > │ let v10 : bool = v9 <= 0 │
00:00:24 #3207 [Verbose] > │ if v10 then │
00:00:24 #3208 [Verbose] > │ struct (v0, v1, v2, v3, v4, v5, v6, v7, v8) │
00:00:24 #3209 [Verbose] > │ else │
00:00:24 #3210 [Verbose] > │ let v11 : float = v6 * v6 │
00:00:24 #3211 [Verbose] > │ let v12 : float = v7 * v7 │
00:00:24 #3212 [Verbose] > │ let v13 : float = v11 + v12 │
00:00:24 #3213 [Verbose] > │ let v14 : float = v8 * v8 │
00:00:24 #3214 [Verbose] > │ let v15 : float = v13 + v14 │
00:00:24 #3215 [Verbose] > │ let v16 : float = sqrt v15 │
00:00:24 #3216 [Verbose] > │ let v17 : float = -0.0007902794129829633 * v16 │
00:00:24 #3217 [Verbose] > │ let v18 : float = v17 * v6 │
00:00:24 #3218 [Verbose] > │ let v19 : float = v17 * v7 │
00:00:24 #3219 [Verbose] > │ let v20 : float = v17 * v8 │
00:00:24 #3220 [Verbose] > │ let v21 : float = -v1 │
00:00:24 #3221 [Verbose] > │ let v22 : float = v21 * 9.80665 │
00:00:24 #3222 [Verbose] > │ let v23 : float = v22 * 0.0 │
00:00:24 #3223 [Verbose] > │ let v24 : float = v23 + v18 │
00:00:24 #3224 [Verbose] > │ let v25 : float = v23 + v19 │
00:00:24 #3225 [Verbose] > │ let v26 : float = v22 + v20 │
00:00:24 #3226 [Verbose] > │ let v27 : float = v24 / v1 │
00:00:24 #3227 [Verbose] > │ let v28 : float = v25 / v1 │
00:00:24 #3228 [Verbose] > │ let v29 : float = v26 / v1 │
00:00:24 #3229 [Verbose] > │ let v30 : float = 0.01 * v27 │
00:00:24 #3230 [Verbose] > │ let v31 : float = 0.01 * v28 │
00:00:24 #3231 [Verbose] > │ let v32 : float = 0.01 * v29 │
00:00:24 #3232 [Verbose] > │ let v33 : float = v6 + v30 │
00:00:24 #3233 [Verbose] > │ let v34 : float = v7 + v31 │
00:00:24 #3234 [Verbose] > │ let v35 : float = v8 + v32 │
00:00:24 #3235 [Verbose] > │ let v36 : float = v5 + 0.01 │
00:00:24 #3236 [Verbose] > │ let v37 : float = 0.01 * v33 │
00:00:24 #3237 [Verbose] > │ let v38 : float = 0.01 * v34 │
00:00:24 #3238 [Verbose] > │ let v39 : float = 0.01 * v35 │
00:00:24 #3239 [Verbose] > │ let v40 : float = v2 + v37 │
00:00:24 #3240 [Verbose] > │ let v41 : float = v3 + v38 │
00:00:24 #3241 [Verbose] > │ let v42 : float = v4 + v39 │
00:00:24 #3242 [Verbose] > │ let v43 : int32 = v9 - 1 │
00:00:24 #3243 [Verbose] > │ method4(v0, v1, v40, v41, v42, v36, v33, v34, v35, v43) │
00:00:24 #3244 [Verbose] > │ and method5 (v0 : UH0, v1 : UH0) : UH0 = │
00:00:24 #3245 [Verbose] > │ match v0 with │
00:00:24 #3246 [Verbose] > │ | UH0_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11) -> (* Cons *) │
00:00:24 #3247 [Verbose] > │ let v12 : UH0 = UH0_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v1) │
00:00:24 #3248 [Verbose] > │ method5(v11, v12) │
00:00:24 #3249 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:24 #3250 [Verbose] > │ v1 │
00:00:24 #3251 [Verbose] > │ and method3 (v0 : float, v1 : float, v2 : UH0, v3 : int32) : UH0 = │
00:00:24 #3252 [Verbose] > │ let v4 : float = 0.0 │
00:00:24 #3253 [Verbose] > │ let v5 : float = 0.145 │
00:00:24 #3254 [Verbose] > │ let v6 : float = 0.0 │
00:00:24 #3255 [Verbose] > │ let v7 : float = 0.0 │
00:00:24 #3256 [Verbose] > │ let v8 : float = 0.0 │
00:00:24 #3257 [Verbose] > │ let v9 : float = 0.0 │
00:00:24 #3258 [Verbose] > │ let v10 : float = 0.0 │
00:00:24 #3259 [Verbose] > │ let struct (v11 : float, v12 : float, v13 : float, v14 : float, v15 : │
00:00:24 #3260 [Verbose] > │ float, v16 : float, v17 : float, v18 : float, v19 : float) = method4(v4, v5, │
00:00:24 #3261 [Verbose] > │ v6, v7, v8, v9, v10, v0, v1, v3) │
00:00:24 #3262 [Verbose] > │ let v20 : bool = v15 >= 0.0 │
00:00:24 #3263 [Verbose] > │ if v20 then │
00:00:24 #3264 [Verbose] > │ let v21 : UH0 = UH0_0(v11, v12, v13, v14, v15, v16, v17, v18, v19, │
00:00:24 #3265 [Verbose] > │ v2) │
00:00:24 #3266 [Verbose] > │ let v22 : int32 = v3 + 1 │
00:00:24 #3267 [Verbose] > │ method3(v0, v1, v21, v22) │
00:00:24 #3268 [Verbose] > │ else │
00:00:24 #3269 [Verbose] > │ let v24 : UH0 = UH0_1 │
00:00:24 #3270 [Verbose] > │ method5(v2, v24) │
00:00:24 #3271 [Verbose] > │ and method6 (v0 : UH0, v1 : UH1) : UH1 = │
00:00:24 #3272 [Verbose] > │ match v0 with │
00:00:24 #3273 [Verbose] > │ | UH0_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11) -> (* Cons *) │
00:00:24 #3274 [Verbose] > │ let v12 : UH1 = method6(v11, v1) │
00:00:24 #3275 [Verbose] > │ UH1_0(v5, v6, v12) │
00:00:24 #3276 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:24 #3277 [Verbose] > │ v1 │
00:00:24 #3278 [Verbose] > │ and method7 (v0 : UH1, v1 : float) : float = │
00:00:24 #3279 [Verbose] > │ match v0 with │
00:00:24 #3280 [Verbose] > │ | UH1_0(v2, v3, v4) -> (* Cons *) │
00:00:24 #3281 [Verbose] > │ method7(v4, v2) │
00:00:24 #3282 [Verbose] > │ | UH1_1 -> (* Nil *) │
00:00:24 #3283 [Verbose] > │ v1 │
00:00:24 #3284 [Verbose] > │ and method8 (v0 : (struct (string * (float []) * (float [])) [])) : (struct │
00:00:24 #3285 [Verbose] > │ (string * (float []) * (float [])) []) = │
00:00:24 #3286 [Verbose] > │ v0 │
00:00:24 #3287 [Verbose] > │ and method0 () : struct (string * string * string * (struct (string * (float │
00:00:24 #3288 [Verbose] > │ []) * (float [])) [])) = │
00:00:24 #3289 [Verbose] > │ let v0 : (float []) = Array.zeroCreate<float> (71) │
00:00:24 #3290 [Verbose] > │ let v1 : Mut0 = {l0 = 0} : Mut0 │
00:00:24 #3291 [Verbose] > │ while method1(v1) do │
00:00:24 #3292 [Verbose] > │ let v3 : int32 = v1.l0 │
00:00:24 #3293 [Verbose] > │ let v4 : float = float v3 │
00:00:24 #3294 [Verbose] > │ let v5 : float = 10.0 + v4 │
00:00:24 #3295 [Verbose] > │ v0.[int v3] <- v5 │
00:00:24 #3296 [Verbose] > │ let v6 : int32 = v3 + 1 │
00:00:24 #3297 [Verbose] > │ v1.l0 <- v6 │
00:00:24 #3298 [Verbose] > │ () │
00:00:24 #3299 [Verbose] > │ let v7 : int32 = v0.Length │
00:00:24 #3300 [Verbose] > │ let v8 : (float []) = Array.zeroCreate<float> (v7) │
00:00:24 #3301 [Verbose] > │ let v9 : Mut0 = {l0 = 0} : Mut0 │
00:00:24 #3302 [Verbose] > │ while method2(v7, v9) do │
00:00:24 #3303 [Verbose] > │ let v11 : int32 = v9.l0 │
00:00:24 #3304 [Verbose] > │ let v12 : float = v0.[int v11] │
00:00:24 #3305 [Verbose] > │ let v13 : float = v12 * 3.141592653589793 │
00:00:24 #3306 [Verbose] > │ let v14 : float = v13 / 180.0 │
00:00:24 #3307 [Verbose] > │ let v15 : float = cos v14 │
00:00:24 #3308 [Verbose] > │ let v16 : float = 45.0 * v15 │
00:00:24 #3309 [Verbose] > │ let v17 : float = sin v14 │
00:00:24 #3310 [Verbose] > │ let v18 : float = 45.0 * v17 │
00:00:24 #3311 [Verbose] > │ let v19 : UH0 = UH0_1 │
00:00:24 #3312 [Verbose] > │ let v20 : int32 = 0 │
00:00:24 #3313 [Verbose] > │ let v21 : UH0 = method3(v16, v18, v19, v20) │
00:00:24 #3314 [Verbose] > │ let v22 : UH1 = UH1_1 │
00:00:24 #3315 [Verbose] > │ let v23 : UH1 = method6(v21, v22) │
00:00:24 #3316 [Verbose] > │ let v24 : float = 0.0 │
00:00:24 #3317 [Verbose] > │ let v25 : float = method7(v23, v24) │
00:00:24 #3318 [Verbose] > │ v8.[int v11] <- v25 │
00:00:24 #3319 [Verbose] > │ let v26 : int32 = v11 + 1 │
00:00:24 #3320 [Verbose] > │ v9.l0 <- v26 │
00:00:24 #3321 [Verbose] > │ () │
00:00:24 #3322 [Verbose] > │ let v27 : string = "horizontal range (m)" │
00:00:24 #3323 [Verbose] > │ let v28 : (struct (string * (float []) * (float [])) []) = [|struct │
00:00:24 #3324 [Verbose] > │ (v27, v0, v8)|] │
00:00:24 #3325 [Verbose] > │ let v29 : (struct (string * (float []) * (float [])) []) = method8(v28) │
00:00:24 #3326 [Verbose] > │ let v30 : string = "range for a baseball hit at 45 m/s" │
00:00:24 #3327 [Verbose] > │ let v31 : string = "angle above horizontal (degrees)" │
00:00:24 #3328 [Verbose] > │ let v32 : string = "" │
00:00:24 #3329 [Verbose] > │ struct (v30, v31, v32, v29) │
00:00:24 #3330 [Verbose] > │ method0() │
00:00:24 #3331 [Verbose] > │ │
00:00:24 #3332 [Verbose] > │ │
00:00:24 #3333 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:24 #3334 [Verbose] >
00:00:24 #3335 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:24 #3336 [Verbose] > // // test
00:00:24 #3337 [Verbose] >
00:00:24 #3338 [Verbose] > inl best_angle (min, max) =
00:00:24 #3339 [Verbose] > let rec loop theta_deg (best_range, best_theta_deg) =
00:00:24 #3340 [Verbose] > if theta_deg > max
00:00:24 #3341 [Verbose] > then best_range, best_theta_deg
00:00:24 #3342 [Verbose] > else
00:00:24 #3343 [Verbose] > inl range = baseball_range 0.01 45 theta_deg
00:00:24 #3344 [Verbose] > loop
00:00:24 #3345 [Verbose] > (theta_deg + 1)
00:00:24 #3346 [Verbose] > (if range > best_range
00:00:24 #3347 [Verbose] > then range, theta_deg
00:00:24 #3348 [Verbose] > else best_range, best_theta_deg)
00:00:24 #3349 [Verbose] > loop min (0f64, min)
00:00:24 #3350 [Verbose] >
00:00:24 #3351 [Verbose] > best_angle (30f64, 60f64)
00:00:24 #3352 [Verbose] > |> _assert_eq (116.77499158246208, 41)
00:00:24 #3353 [Verbose] > Building /tmp/!dotnet-repl/20240325-2025-5996-9636-9d7b34fe3ad4/main.spi
00:00:24 #3354 [Verbose] >
00:00:24 #3355 [Verbose] > ╭─[ 508.95ms - stdout ]────────────────────────────────────────────────────────╮
00:00:24 #3356 [Verbose] > │ type UH0 = │
00:00:24 #3357 [Verbose] > │ | UH0_0 of float * float * float * float * float * float * float * float │
00:00:24 #3358 [Verbose] > │ * float * UH0 │
00:00:24 #3359 [Verbose] > │ | UH0_1 │
00:00:24 #3360 [Verbose] > │ and UH1 = │
00:00:24 #3361 [Verbose] > │ | UH1_0 of float * float * UH1 │
00:00:24 #3362 [Verbose] > │ | UH1_1 │
00:00:24 #3363 [Verbose] > │ let rec method3 (v0 : float, v1 : float, v2 : float, v3 : float, v4 : float, │
00:00:24 #3364 [Verbose] > │ v5 : float, v6 : float, v7 : float, v8 : float, v9 : int32) : struct (float │
00:00:24 #3365 [Verbose] > │ * float * float * float * float * float * float * float * float) = │
00:00:24 #3366 [Verbose] > │ let v10 : bool = v9 <= 0 │
00:00:24 #3367 [Verbose] > │ if v10 then │
00:00:24 #3368 [Verbose] > │ struct (v0, v1, v2, v3, v4, v5, v6, v7, v8) │
00:00:24 #3369 [Verbose] > │ else │
00:00:24 #3370 [Verbose] > │ let v11 : float = v6 * v6 │
00:00:24 #3371 [Verbose] > │ let v12 : float = v7 * v7 │
00:00:24 #3372 [Verbose] > │ let v13 : float = v11 + v12 │
00:00:24 #3373 [Verbose] > │ let v14 : float = v8 * v8 │
00:00:24 #3374 [Verbose] > │ let v15 : float = v13 + v14 │
00:00:24 #3375 [Verbose] > │ let v16 : float = sqrt v15 │
00:00:24 #3376 [Verbose] > │ let v17 : float = -0.0007902794129829633 * v16 │
00:00:24 #3377 [Verbose] > │ let v18 : float = v17 * v6 │
00:00:24 #3378 [Verbose] > │ let v19 : float = v17 * v7 │
00:00:24 #3379 [Verbose] > │ let v20 : float = v17 * v8 │
00:00:24 #3380 [Verbose] > │ let v21 : float = -v1 │
00:00:24 #3381 [Verbose] > │ let v22 : float = v21 * 9.80665 │
00:00:24 #3382 [Verbose] > │ let v23 : float = v22 * 0.0 │
00:00:24 #3383 [Verbose] > │ let v24 : float = v23 + v18 │
00:00:24 #3384 [Verbose] > │ let v25 : float = v23 + v19 │
00:00:24 #3385 [Verbose] > │ let v26 : float = v22 + v20 │
00:00:24 #3386 [Verbose] > │ let v27 : float = v24 / v1 │
00:00:24 #3387 [Verbose] > │ let v28 : float = v25 / v1 │
00:00:24 #3388 [Verbose] > │ let v29 : float = v26 / v1 │
00:00:24 #3389 [Verbose] > │ let v30 : float = 0.01 * v27 │
00:00:24 #3390 [Verbose] > │ let v31 : float = 0.01 * v28 │
00:00:24 #3391 [Verbose] > │ let v32 : float = 0.01 * v29 │
00:00:24 #3392 [Verbose] > │ let v33 : float = v6 + v30 │
00:00:24 #3393 [Verbose] > │ let v34 : float = v7 + v31 │
00:00:24 #3394 [Verbose] > │ let v35 : float = v8 + v32 │
00:00:24 #3395 [Verbose] > │ let v36 : float = v5 + 0.01 │
00:00:24 #3396 [Verbose] > │ let v37 : float = 0.01 * v33 │
00:00:24 #3397 [Verbose] > │ let v38 : float = 0.01 * v34 │
00:00:24 #3398 [Verbose] > │ let v39 : float = 0.01 * v35 │
00:00:24 #3399 [Verbose] > │ let v40 : float = v2 + v37 │
00:00:24 #3400 [Verbose] > │ let v41 : float = v3 + v38 │
00:00:24 #3401 [Verbose] > │ let v42 : float = v4 + v39 │
00:00:24 #3402 [Verbose] > │ let v43 : int32 = v9 - 1 │
00:00:24 #3403 [Verbose] > │ method3(v0, v1, v40, v41, v42, v36, v33, v34, v35, v43) │
00:00:24 #3404 [Verbose] > │ and method4 (v0 : UH0, v1 : UH0) : UH0 = │
00:00:24 #3405 [Verbose] > │ match v0 with │
00:00:24 #3406 [Verbose] > │ | UH0_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11) -> (* Cons *) │
00:00:24 #3407 [Verbose] > │ let v12 : UH0 = UH0_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v1) │
00:00:24 #3408 [Verbose] > │ method4(v11, v12) │
00:00:24 #3409 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:24 #3410 [Verbose] > │ v1 │
00:00:24 #3411 [Verbose] > │ and method2 (v0 : float, v1 : float, v2 : UH0, v3 : int32) : UH0 = │
00:00:24 #3412 [Verbose] > │ let v4 : float = 0.0 │
00:00:24 #3413 [Verbose] > │ let v5 : float = 0.145 │
00:00:24 #3414 [Verbose] > │ let v6 : float = 0.0 │
00:00:24 #3415 [Verbose] > │ let v7 : float = 0.0 │
00:00:24 #3416 [Verbose] > │ let v8 : float = 0.0 │
00:00:24 #3417 [Verbose] > │ let v9 : float = 0.0 │
00:00:24 #3418 [Verbose] > │ let v10 : float = 0.0 │
00:00:24 #3419 [Verbose] > │ let struct (v11 : float, v12 : float, v13 : float, v14 : float, v15 : │
00:00:24 #3420 [Verbose] > │ float, v16 : float, v17 : float, v18 : float, v19 : float) = method3(v4, v5, │
00:00:24 #3421 [Verbose] > │ v6, v7, v8, v9, v10, v0, v1, v3) │
00:00:24 #3422 [Verbose] > │ let v20 : bool = v15 >= 0.0 │
00:00:24 #3423 [Verbose] > │ if v20 then │
00:00:24 #3424 [Verbose] > │ let v21 : UH0 = UH0_0(v11, v12, v13, v14, v15, v16, v17, v18, v19, │
00:00:24 #3425 [Verbose] > │ v2) │
00:00:24 #3426 [Verbose] > │ let v22 : int32 = v3 + 1 │
00:00:24 #3427 [Verbose] > │ method2(v0, v1, v21, v22) │
00:00:24 #3428 [Verbose] > │ else │
00:00:24 #3429 [Verbose] > │ let v24 : UH0 = UH0_1 │
00:00:24 #3430 [Verbose] > │ method4(v2, v24) │
00:00:24 #3431 [Verbose] > │ and method5 (v0 : UH0, v1 : UH1) : UH1 = │
00:00:24 #3432 [Verbose] > │ match v0 with │
00:00:24 #3433 [Verbose] > │ | UH0_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11) -> (* Cons *) │
00:00:24 #3434 [Verbose] > │ let v12 : UH1 = method5(v11, v1) │
00:00:24 #3435 [Verbose] > │ UH1_0(v5, v6, v12) │
00:00:24 #3436 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:24 #3437 [Verbose] > │ v1 │
00:00:24 #3438 [Verbose] > │ and method6 (v0 : UH1, v1 : float) : float = │
00:00:24 #3439 [Verbose] > │ match v0 with │
00:00:24 #3440 [Verbose] > │ | UH1_0(v2, v3, v4) -> (* Cons *) │
00:00:24 #3441 [Verbose] > │ method6(v4, v2) │
00:00:24 #3442 [Verbose] > │ | UH1_1 -> (* Nil *) │
00:00:24 #3443 [Verbose] > │ v1 │
00:00:24 #3444 [Verbose] > │ and method1 (v0 : float, v1 : float, v2 : float) : struct (float * float) = │
00:00:24 #3445 [Verbose] > │ let v3 : bool = v0 > 60.0 │
00:00:24 #3446 [Verbose] > │ if v3 then │
00:00:24 #3447 [Verbose] > │ struct (v2, v1) │
00:00:24 #3448 [Verbose] > │ else │
00:00:24 #3449 [Verbose] > │ let v4 : float = v0 * 3.141592653589793 │
00:00:24 #3450 [Verbose] > │ let v5 : float = v4 / 180.0 │
00:00:24 #3451 [Verbose] > │ let v6 : float = cos v5 │
00:00:24 #3452 [Verbose] > │ let v7 : float = 45.0 * v6 │
00:00:24 #3453 [Verbose] > │ let v8 : float = sin v5 │
00:00:24 #3454 [Verbose] > │ let v9 : float = 45.0 * v8 │
00:00:24 #3455 [Verbose] > │ let v10 : UH0 = UH0_1 │
00:00:24 #3456 [Verbose] > │ let v11 : int32 = 0 │
00:00:24 #3457 [Verbose] > │ let v12 : UH0 = method2(v7, v9, v10, v11) │
00:00:24 #3458 [Verbose] > │ let v13 : UH1 = UH1_1 │
00:00:24 #3459 [Verbose] > │ let v14 : UH1 = method5(v12, v13) │
00:00:24 #3460 [Verbose] > │ let v15 : float = 0.0 │
00:00:24 #3461 [Verbose] > │ let v16 : float = method6(v14, v15) │
00:00:24 #3462 [Verbose] > │ let v17 : float = v0 + 1.0 │
00:00:24 #3463 [Verbose] > │ let v18 : bool = v16 > v2 │
00:00:24 #3464 [Verbose] > │ let struct (v19 : float, v20 : float) = │
00:00:24 #3465 [Verbose] > │ if v18 then │
00:00:24 #3466 [Verbose] > │ struct (v16, v0) │
00:00:24 #3467 [Verbose] > │ else │
00:00:24 #3468 [Verbose] > │ struct (v2, v1) │
00:00:24 #3469 [Verbose] > │ method1(v17, v20, v19) │
00:00:24 #3470 [Verbose] > │ and method7 (v0 : bool) : bool = │
00:00:24 #3471 [Verbose] > │ v0 │
00:00:24 #3472 [Verbose] > │ and method0 () : unit = │
00:00:24 #3473 [Verbose] > │ let v0 : float = 30.0 │
00:00:24 #3474 [Verbose] > │ let v1 : float = 0.0 │
00:00:24 #3475 [Verbose] > │ let v2 : float = 30.0 │
00:00:24 #3476 [Verbose] > │ let struct (v3 : float, v4 : float) = method1(v0, v2, v1) │
00:00:24 #3477 [Verbose] > │ let v5 : bool = v3 = 116.77499158246208 │
00:00:24 #3478 [Verbose] > │ let v7 : bool = │
00:00:24 #3479 [Verbose] > │ if v5 then │
00:00:24 #3480 [Verbose] > │ let v6 : bool = v4 = 41.0 │
00:00:24 #3481 [Verbose] > │ v6 │
00:00:24 #3482 [Verbose] > │ else │
00:00:24 #3483 [Verbose] > │ false │
00:00:24 #3484 [Verbose] > │ let v9 : bool = │
00:00:24 #3485 [Verbose] > │ if v7 then │
00:00:24 #3486 [Verbose] > │ true │
00:00:24 #3487 [Verbose] > │ else │
00:00:24 #3488 [Verbose] > │ method7(v7) │
00:00:24 #3489 [Verbose] > │ let v10 : string = $"__expect / actual: %A{struct (v3, v4)} / expected: │
00:00:24 #3490 [Verbose] > │ %A{struct (116.77499158246208, 41.0)}" │
00:00:24 #3491 [Verbose] > │ let v11 : bool = v9 = false │
00:00:24 #3492 [Verbose] > │ if v11 then │
00:00:24 #3493 [Verbose] > │ failwith<unit> v10 │
00:00:24 #3494 [Verbose] > │ method0() │
00:00:24 #3495 [Verbose] > │ │
00:00:24 #3496 [Verbose] > │ │
00:00:24 #3497 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:24 #3498 [Verbose] >
00:00:24 #3499 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:24 #3500 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:24 #3501 [Verbose] > │ ## relativity_ps │
00:00:24 #3502 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:24 #3503 [Verbose] >
00:00:24 #3504 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:24 #3505 [Verbose] > inl relativity_ps fs (st : particle_state) =
00:00:24 #3506 [Verbose] > inl f_net = fs |> listm.map (fun f => f st) |> sum_vec
00:00:24 #3507 [Verbose] > inl c = 299792458
00:00:24 #3508 [Verbose] > inl u = st.velocity ^/ c
00:00:24 #3509 [Verbose] > inl acc = sqrt (1 - (u <.> u)) *^ (f_net ^-^ (f_net <.> u) *^ u) ^/ st.mass
00:00:24 #3510 [Verbose] > d_particle_state {
00:00:24 #3511 [Verbose] > dmdt = 0
00:00:24 #3512 [Verbose] > dqdt = 0
00:00:24 #3513 [Verbose] > dtdt = 1
00:00:24 #3514 [Verbose] > drdt = st.velocity
00:00:24 #3515 [Verbose] > dvdt = acc
00:00:24 #3516 [Verbose] > }
00:00:24 #3517 [Verbose] > Building /tmp/!dotnet-repl/20240325-2026-0047-4763-4bfbf8d49995/main.spi
00:00:24 #3518 [Verbose] >
00:00:24 #3519 [Verbose] > ╭─[ 146.65ms - stdout ]────────────────────────────────────────────────────────╮
00:00:24 #3520 [Verbose] > │ () │
00:00:24 #3521 [Verbose] > │ │
00:00:24 #3522 [Verbose] > │ │
00:00:24 #3523 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:24 #3524 [Verbose] >
00:00:24 #3525 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:24 #3526 [Verbose] > // // test
00:00:24 #3527 [Verbose] >
00:00:24 #3528 [Verbose] > inl year = 365.25 * 24 * 60 * 60
00:00:24 #3529 [Verbose] > inl c = 299792458
00:00:24 #3530 [Verbose] > inl ~method = runge_kutta_4 100000
00:00:24 #3531 [Verbose] > inl forces = [[ fun _ => 10 *^ i_hat () ]]
00:00:24 #3532 [Verbose] > inl (particle_state default_particle_state') = default_particle_state ()
00:00:24 #3533 [Verbose] > inl initial_state =
00:00:24 #3534 [Verbose] > particle_state { default_particle_state' with
00:00:24 #3535 [Verbose] > mass = 1
00:00:24 #3536 [Verbose] > }
00:00:24 #3537 [Verbose] >
00:00:24 #3538 [Verbose] > inl newton_states = solver_ method (newton_second_ps forces) initial_state
00:00:24 #3539 [Verbose] > inl relativity_states = solver_ method (relativity_ps forces) initial_state
00:00:24 #3540 [Verbose] >
00:00:24 #3541 [Verbose] > inl newton_x, newton_y =
00:00:24 #3542 [Verbose] > newton_states
00:00:24 #3543 [Verbose] > >> Some
00:00:24 #3544 [Verbose] > |> seq.take_while_ (fun (particle_state st) (_ : i32) => st.time <= year)
00:00:24 #3545 [Verbose] > |> listm.map (fun (particle_state st) => st.time / year, st.velocity.x / c)
00:00:24 #3546 [Verbose] > |> listm'.unzip
00:00:24 #3547 [Verbose] >
00:00:24 #3548 [Verbose] > inl _, relativity_y =
00:00:24 #3549 [Verbose] > relativity_states
00:00:24 #3550 [Verbose] > >> Some
00:00:24 #3551 [Verbose] > |> seq.take_while_ (fun (particle_state st) (_ : i32) => st.time <= year)
00:00:24 #3552 [Verbose] > |> listm.map (fun (particle_state st) => st.time / year, st.velocity.x / c)
00:00:24 #3553 [Verbose] > |> listm'.unzip
00:00:24 #3554 [Verbose] >
00:00:24 #3555 [Verbose] > inl newton_x : a i32 _ = newton_x |> listm.toArray
00:00:24 #3556 [Verbose] > inl newton_y : a i32 _ = newton_y |> listm.toArray
00:00:24 #3557 [Verbose] > inl relativity_y : a i32 _ = relativity_y |> listm.toArray
00:00:24 #3558 [Verbose] >
00:00:24 #3559 [Verbose] > "response to a constant force",
00:00:24 #3560 [Verbose] > "time (years)",
00:00:24 #3561 [Verbose] > "velocity (multiples of c)",
00:00:24 #3562 [Verbose] > ;[[
00:00:24 #3563 [Verbose] > "newtonian", newton_x, newton_y
00:00:24 #3564 [Verbose] > "relativistic", newton_x, relativity_y
00:00:24 #3565 [Verbose] > ]]
00:00:24 #3566 [Verbose] > Building /tmp/!dotnet-repl/20240325-2026-0062-6219-6430cc82fe75/main.spi
00:00:25 #3567 [Verbose] >
00:00:25 #3568 [Verbose] > ╭─[ 348.12ms - return value ]──────────────────────────────────────────────────╮
00:00:25 #3569 [Verbose] > │ <svg width="640" height="480" viewBox="0 0 640 480" │
00:00:25 #3570 [Verbose] > │ xmlns="http://www.w3.org/2000/svg"> │
00:00:25 #3571 [Verbose] > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414" │
00:00:25 #3572 [Verbose] > │ stroke="none"/> │
00:00:25 #3573 [Verbose] > │ <text x="320" y="10" dy="0.76em" text-anchor="middle" │
00:00:25 #3574 [Verbose] > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1" │
00:00:25 #3575 [Verbose] > │ fill="#FFFFFF"> │
00:00:25 #3576 [Verbose] > │ response to a constant force │
00:00:25 #3577 [Verbose] > │ </text> │
00:00:25 #3578 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="59" y1="424" x2="59" │
00:00:25 #3579 [Verbose] > │ y2="75"/> │
00:00:25 #3580 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:00:25 #3581 [Verbose] > │ y2="75"/> │
00:00:25 #3582 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="79" y1="424" x2="79" │
00:00:25 #3583 [Verbose] > │ y2="75"/> │
00:00:25 #3584 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="89" y1="424" x2="89" │
00:00:25 #3585 [Verbose] > │ y2="75"/> │
00:00:25 #3586 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1=... │
00:00:25 #3587 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:25 #3588 [Verbose] >
00:00:25 #3589 [Verbose] > ╭─[ 351.93ms - stdout ]────────────────────────────────────────────────────────╮
00:00:25 #3590 [Verbose] > │ type UH0 = │
00:00:25 #3591 [Verbose] > │ | UH0_0 of float * float * float * float * float * float * float * float │
00:00:25 #3592 [Verbose] > │ * float * UH0 │
00:00:25 #3593 [Verbose] > │ | UH0_1 │
00:00:25 #3594 [Verbose] > │ and UH1 = │
00:00:25 #3595 [Verbose] > │ | UH1_0 of float * float * UH1 │
00:00:25 #3596 [Verbose] > │ | UH1_1 │
00:00:25 #3597 [Verbose] > │ and UH2 = │
00:00:25 #3598 [Verbose] > │ | UH2_0 of float * UH2 │
00:00:25 #3599 [Verbose] > │ | UH2_1 │
00:00:25 #3600 [Verbose] > │ let rec closure1 (v0 : (struct (float * float * float * float * float * │
00:00:25 #3601 [Verbose] > │ float * float * float * float) -> struct (float * float * float * float * │
00:00:25 #3602 [Verbose] > │ float * float * float * float * float))) struct (v1 : float, v2 : float, v3 │
00:00:25 #3603 [Verbose] > │ : float, v4 : float, v5 : float, v6 : float, v7 : float, v8 : float, v9 : │
00:00:25 #3604 [Verbose] > │ float) : struct (float * float * float * float * float * float * float * │
00:00:25 #3605 [Verbose] > │ float * float) = │
00:00:25 #3606 [Verbose] > │ let struct (v10 : float, v11 : float, v12 : float, v13 : float, v14 : │
00:00:25 #3607 [Verbose] > │ float, v15 : float, v16 : float, v17 : float, v18 : float) = v0 struct (v1, │
00:00:25 #3608 [Verbose] > │ v2, v3, v4, v5, v6, v7, v8, v9) │
00:00:25 #3609 [Verbose] > │ let v19 : float = v15 * 50000.0 │
00:00:25 #3610 [Verbose] > │ let v20 : float = v6 + v19 │
00:00:25 #3611 [Verbose] > │ let v21 : float = 50000.0 * v12 │
00:00:25 #3612 [Verbose] > │ let v22 : float = 50000.0 * v13 │
00:00:25 #3613 [Verbose] > │ let v23 : float = 50000.0 * v14 │
00:00:25 #3614 [Verbose] > │ let v24 : float = v3 + v21 │
00:00:25 #3615 [Verbose] > │ let v25 : float = v4 + v22 │
00:00:25 #3616 [Verbose] > │ let v26 : float = v5 + v23 │
00:00:25 #3617 [Verbose] > │ let v27 : float = 50000.0 * v16 │
00:00:25 #3618 [Verbose] > │ let v28 : float = 50000.0 * v17 │
00:00:25 #3619 [Verbose] > │ let v29 : float = 50000.0 * v18 │
00:00:25 #3620 [Verbose] > │ let v30 : float = v7 + v27 │
00:00:25 #3621 [Verbose] > │ let v31 : float = v8 + v28 │
00:00:25 #3622 [Verbose] > │ let v32 : float = v9 + v29 │
00:00:25 #3623 [Verbose] > │ let struct (v33 : float, v34 : float, v35 : float, v36 : float, v37 : │
00:00:25 #3624 [Verbose] > │ float, v38 : float, v39 : float, v40 : float, v41 : float) = v0 struct (v1, │
00:00:25 #3625 [Verbose] > │ v2, v24, v25, v26, v20, v30, v31, v32) │
00:00:25 #3626 [Verbose] > │ let v42 : float = v38 * 50000.0 │
00:00:25 #3627 [Verbose] > │ let v43 : float = v6 + v42 │
00:00:25 #3628 [Verbose] > │ let v44 : float = 50000.0 * v35 │
00:00:25 #3629 [Verbose] > │ let v45 : float = 50000.0 * v36 │
00:00:25 #3630 [Verbose] > │ let v46 : float = 50000.0 * v37 │
00:00:25 #3631 [Verbose] > │ let v47 : float = v3 + v44 │
00:00:25 #3632 [Verbose] > │ let v48 : float = v4 + v45 │
00:00:25 #3633 [Verbose] > │ let v49 : float = v5 + v46 │
00:00:25 #3634 [Verbose] > │ let v50 : float = 50000.0 * v39 │
00:00:25 #3635 [Verbose] > │ let v51 : float = 50000.0 * v40 │
00:00:25 #3636 [Verbose] > │ let v52 : float = 50000.0 * v41 │
00:00:25 #3637 [Verbose] > │ let v53 : float = v7 + v50 │
00:00:25 #3638 [Verbose] > │ let v54 : float = v8 + v51 │
00:00:25 #3639 [Verbose] > │ let v55 : float = v9 + v52 │
00:00:25 #3640 [Verbose] > │ let struct (v56 : float, v57 : float, v58 : float, v59 : float, v60 : │
00:00:25 #3641 [Verbose] > │ float, v61 : float, v62 : float, v63 : float, v64 : float) = v0 struct (v1, │
00:00:25 #3642 [Verbose] > │ v2, v47, v48, v49, v43, v53, v54, v55) │
00:00:25 #3643 [Verbose] > │ let v65 : float = v61 * 100000.0 │
00:00:25 #3644 [Verbose] > │ let v66 : float = v6 + v65 │
00:00:25 #3645 [Verbose] > │ let v67 : float = 100000.0 * v58 │
00:00:25 #3646 [Verbose] > │ let v68 : float = 100000.0 * v59 │
00:00:25 #3647 [Verbose] > │ let v69 : float = 100000.0 * v60 │
00:00:25 #3648 [Verbose] > │ let v70 : float = v3 + v67 │
00:00:25 #3649 [Verbose] > │ let v71 : float = v4 + v68 │
00:00:25 #3650 [Verbose] > │ let v72 : float = v5 + v69 │
00:00:25 #3651 [Verbose] > │ let v73 : float = 100000.0 * v62 │
00:00:25 #3652 [Verbose] > │ let v74 : float = 100000.0 * v63 │
00:00:25 #3653 [Verbose] > │ let v75 : float = 100000.0 * v64 │
00:00:25 #3654 [Verbose] > │ let v76 : float = v7 + v73 │
00:00:25 #3655 [Verbose] > │ let v77 : float = v8 + v74 │
00:00:25 #3656 [Verbose] > │ let v78 : float = v9 + v75 │
00:00:25 #3657 [Verbose] > │ let struct (v79 : float, v80 : float, v81 : float, v82 : float, v83 : │
00:00:25 #3658 [Verbose] > │ float, v84 : float, v85 : float, v86 : float, v87 : float) = v0 struct (v1, │
00:00:25 #3659 [Verbose] > │ v2, v70, v71, v72, v66, v76, v77, v78) │
00:00:25 #3660 [Verbose] > │ let v88 : float = v10 + v33 │
00:00:25 #3661 [Verbose] > │ let v89 : float = v11 + v34 │
00:00:25 #3662 [Verbose] > │ let v90 : float = v15 + v38 │
00:00:25 #3663 [Verbose] > │ let v91 : float = v12 + v35 │
00:00:25 #3664 [Verbose] > │ let v92 : float = v13 + v36 │
00:00:25 #3665 [Verbose] > │ let v93 : float = v14 + v37 │
00:00:25 #3666 [Verbose] > │ let v94 : float = v16 + v39 │
00:00:25 #3667 [Verbose] > │ let v95 : float = v17 + v40 │
00:00:25 #3668 [Verbose] > │ let v96 : float = v18 + v41 │
00:00:25 #3669 [Verbose] > │ let v97 : float = v88 + v33 │
00:00:25 #3670 [Verbose] > │ let v98 : float = v89 + v34 │
00:00:25 #3671 [Verbose] > │ let v99 : float = v90 + v38 │
00:00:25 #3672 [Verbose] > │ let v100 : float = v91 + v35 │
00:00:25 #3673 [Verbose] > │ let v101 : float = v92 + v36 │
00:00:25 #3674 [Verbose] > │ let v102 : float = v93 + v37 │
00:00:25 #3675 [Verbose] > │ let v103 : float = v94 + v39 │
00:00:25 #3676 [Verbose] > │ let v104 : float = v95 + v40 │
00:00:25 #3677 [Verbose] > │ let v105 : float = v96 + v41 │
00:00:25 #3678 [Verbose] > │ let v106 : float = v97 + v56 │
00:00:25 #3679 [Verbose] > │ let v107 : float = v98 + v57 │
00:00:25 #3680 [Verbose] > │ let v108 : float = v99 + v61 │
00:00:25 #3681 [Verbose] > │ let v109 : float = v100 + v58 │
00:00:25 #3682 [Verbose] > │ let v110 : float = v101 + v59 │
00:00:25 #3683 [Verbose] > │ let v111 : float = v102 + v60 │
00:00:25 #3684 [Verbose] > │ let v112 : float = v103 + v62 │
00:00:25 #3685 [Verbose] > │ let v113 : float = v104 + v63 │
00:00:25 #3686 [Verbose] > │ let v114 : float = v105 + v64 │
00:00:25 #3687 [Verbose] > │ let v115 : float = v106 + v56 │
00:00:25 #3688 [Verbose] > │ let v116 : float = v107 + v57 │
00:00:25 #3689 [Verbose] > │ let v117 : float = v108 + v61 │
00:00:25 #3690 [Verbose] > │ let v118 : float = v109 + v58 │
00:00:25 #3691 [Verbose] > │ let v119 : float = v110 + v59 │
00:00:25 #3692 [Verbose] > │ let v120 : float = v111 + v60 │
00:00:25 #3693 [Verbose] > │ let v121 : float = v112 + v62 │
00:00:25 #3694 [Verbose] > │ let v122 : float = v113 + v63 │
00:00:25 #3695 [Verbose] > │ let v123 : float = v114 + v64 │
00:00:25 #3696 [Verbose] > │ let v124 : float = v115 + v79 │
00:00:25 #3697 [Verbose] > │ let v125 : float = v116 + v80 │
00:00:25 #3698 [Verbose] > │ let v126 : float = v117 + v84 │
00:00:25 #3699 [Verbose] > │ let v127 : float = v118 + v81 │
00:00:25 #3700 [Verbose] > │ let v128 : float = v119 + v82 │
00:00:25 #3701 [Verbose] > │ let v129 : float = v120 + v83 │
00:00:25 #3702 [Verbose] > │ let v130 : float = v121 + v85 │
00:00:25 #3703 [Verbose] > │ let v131 : float = v122 + v86 │
00:00:25 #3704 [Verbose] > │ let v132 : float = v123 + v87 │
00:00:25 #3705 [Verbose] > │ let v133 : float = v126 * 16666.666666666668 │
00:00:25 #3706 [Verbose] > │ let v134 : float = v6 + v133 │
00:00:25 #3707 [Verbose] > │ let v135 : float = 16666.666666666668 * v127 │
00:00:25 #3708 [Verbose] > │ let v136 : float = 16666.666666666668 * v128 │
00:00:25 #3709 [Verbose] > │ let v137 : float = 16666.666666666668 * v129 │
00:00:25 #3710 [Verbose] > │ let v138 : float = v3 + v135 │
00:00:25 #3711 [Verbose] > │ let v139 : float = v4 + v136 │
00:00:25 #3712 [Verbose] > │ let v140 : float = v5 + v137 │
00:00:25 #3713 [Verbose] > │ let v141 : float = 16666.666666666668 * v130 │
00:00:25 #3714 [Verbose] > │ let v142 : float = 16666.666666666668 * v131 │
00:00:25 #3715 [Verbose] > │ let v143 : float = 16666.666666666668 * v132 │
00:00:25 #3716 [Verbose] > │ let v144 : float = v7 + v141 │
00:00:25 #3717 [Verbose] > │ let v145 : float = v8 + v142 │
00:00:25 #3718 [Verbose] > │ let v146 : float = v9 + v143 │
00:00:25 #3719 [Verbose] > │ struct (v1, v2, v138, v139, v140, v134, v144, v145, v146) │
00:00:25 #3720 [Verbose] > │ and closure0 () (v0 : (struct (float * float * float * float * float * float │
00:00:25 #3721 [Verbose] > │ * float * float * float) -> struct (float * float * float * float * float * │
00:00:25 #3722 [Verbose] > │ float * float * float * float))) : (struct (float * float * float * float * │
00:00:25 #3723 [Verbose] > │ float * float * float * float * float) -> struct (float * float * float * │
00:00:25 #3724 [Verbose] > │ float * float * float * float * float * float)) = │
00:00:25 #3725 [Verbose] > │ closure1(v0) │
00:00:25 #3726 [Verbose] > │ and closure2 () struct (v0 : float, v1 : float, v2 : float, v3 : float, v4 : │
00:00:25 #3727 [Verbose] > │ float, v5 : float, v6 : float, v7 : float, v8 : float) : struct (float * │
00:00:25 #3728 [Verbose] > │ float * float * float * float * float * float * float * float) = │
00:00:25 #3729 [Verbose] > │ let v9 : float = 10.0 / v1 │
00:00:25 #3730 [Verbose] > │ let v10 : float = 0.0 / v1 │
00:00:25 #3731 [Verbose] > │ struct (0.0, 0.0, v6, v7, v8, 1.0, v9, v10, v10) │
00:00:25 #3732 [Verbose] > │ and closure3 () struct (v0 : float, v1 : float, v2 : float, v3 : float, v4 : │
00:00:25 #3733 [Verbose] > │ float, v5 : float, v6 : float, v7 : float, v8 : float) : struct (float * │
00:00:25 #3734 [Verbose] > │ float * float * float * float * float * float * float * float) = │
00:00:25 #3735 [Verbose] > │ let v9 : float = v6 / 299792458.0 │
00:00:25 #3736 [Verbose] > │ let v10 : float = v7 / 299792458.0 │
00:00:25 #3737 [Verbose] > │ let v11 : float = v8 / 299792458.0 │
00:00:25 #3738 [Verbose] > │ let v12 : float = v9 * v9 │
00:00:25 #3739 [Verbose] > │ let v13 : float = v10 * v10 │
00:00:25 #3740 [Verbose] > │ let v14 : float = v12 + v13 │
00:00:25 #3741 [Verbose] > │ let v15 : float = v11 * v11 │
00:00:25 #3742 [Verbose] > │ let v16 : float = v14 + v15 │
00:00:25 #3743 [Verbose] > │ let v17 : float = 1.0 - v16 │
00:00:25 #3744 [Verbose] > │ let v18 : float = sqrt v17 │
00:00:25 #3745 [Verbose] > │ let v19 : float = 10.0 * v9 │
00:00:25 #3746 [Verbose] > │ let v20 : float = 0.0 * v10 │
00:00:25 #3747 [Verbose] > │ let v21 : float = v19 + v20 │
00:00:25 #3748 [Verbose] > │ let v22 : float = 0.0 * v11 │
00:00:25 #3749 [Verbose] > │ let v23 : float = v21 + v22 │
00:00:25 #3750 [Verbose] > │ let v24 : float = v23 * v9 │
00:00:25 #3751 [Verbose] > │ let v25 : float = v23 * v10 │
00:00:25 #3752 [Verbose] > │ let v26 : float = v23 * v11 │
00:00:25 #3753 [Verbose] > │ let v27 : float = -1.0 * v24 │
00:00:25 #3754 [Verbose] > │ let v28 : float = -1.0 * v25 │
00:00:25 #3755 [Verbose] > │ let v29 : float = -1.0 * v26 │
00:00:25 #3756 [Verbose] > │ let v30 : float = 10.0 + v27 │
00:00:25 #3757 [Verbose] > │ let v31 : float = v18 * v30 │
00:00:25 #3758 [Verbose] > │ let v32 : float = v18 * v28 │
00:00:25 #3759 [Verbose] > │ let v33 : float = v18 * v29 │
00:00:25 #3760 [Verbose] > │ let v34 : float = v31 / v1 │
00:00:25 #3761 [Verbose] > │ let v35 : float = v32 / v1 │
00:00:25 #3762 [Verbose] > │ let v36 : float = v33 / v1 │
00:00:25 #3763 [Verbose] > │ struct (0.0, 0.0, v6, v7, v8, 1.0, v34, v35, v36) │
00:00:25 #3764 [Verbose] > │ and method2 (v0 : (struct (float * float * float * float * float * float * │
00:00:25 #3765 [Verbose] > │ float * float * float) -> struct (float * float * float * float * float * │
00:00:25 #3766 [Verbose] > │ float * float * float * float)), v1 : float, v2 : float, v3 : float, v4 : │
00:00:25 #3767 [Verbose] > │ float, v5 : float, v6 : float, v7 : float, v8 : float, v9 : float, v10 : │
00:00:25 #3768 [Verbose] > │ int32) : struct (float * float * float * float * float * float * float * │
00:00:25 #3769 [Verbose] > │ float * float) = │
00:00:25 #3770 [Verbose] > │ let v11 : bool = v10 <= 0 │
00:00:25 #3771 [Verbose] > │ if v11 then │
00:00:25 #3772 [Verbose] > │ struct (v1, v2, v3, v4, v5, v6, v7, v8, v9) │
00:00:25 #3773 [Verbose] > │ else │
00:00:25 #3774 [Verbose] > │ let struct (v12 : float, v13 : float, v14 : float, v15 : float, v16 │
00:00:25 #3775 [Verbose] > │ : float, v17 : float, v18 : float, v19 : float, v20 : float) = v0 struct │
00:00:25 #3776 [Verbose] > │ (v1, v2, v3, v4, v5, v6, v7, v8, v9) │
00:00:25 #3777 [Verbose] > │ let v21 : int32 = v10 - 1 │
00:00:25 #3778 [Verbose] > │ method2(v0, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21) │
00:00:25 #3779 [Verbose] > │ and method3 (v0 : UH0, v1 : UH0) : UH0 = │
00:00:25 #3780 [Verbose] > │ match v0 with │
00:00:25 #3781 [Verbose] > │ | UH0_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11) -> (* Cons *) │
00:00:25 #3782 [Verbose] > │ let v12 : UH0 = UH0_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v1) │
00:00:25 #3783 [Verbose] > │ method3(v11, v12) │
00:00:25 #3784 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:25 #3785 [Verbose] > │ v1 │
00:00:25 #3786 [Verbose] > │ and method1 (v0 : (struct (float * float * float * float * float * float * │
00:00:25 #3787 [Verbose] > │ float * float * float) -> struct (float * float * float * float * float * │
00:00:25 #3788 [Verbose] > │ float * float * float * float)), v1 : UH0, v2 : int32) : UH0 = │
00:00:25 #3789 [Verbose] > │ let v3 : float = 0.0 │
00:00:25 #3790 [Verbose] > │ let v4 : float = 1.0 │
00:00:25 #3791 [Verbose] > │ let v5 : float = 0.0 │
00:00:25 #3792 [Verbose] > │ let v6 : float = 0.0 │
00:00:25 #3793 [Verbose] > │ let v7 : float = 0.0 │
00:00:25 #3794 [Verbose] > │ let v8 : float = 0.0 │
00:00:25 #3795 [Verbose] > │ let v9 : float = 0.0 │
00:00:25 #3796 [Verbose] > │ let v10 : float = 0.0 │
00:00:25 #3797 [Verbose] > │ let v11 : float = 0.0 │
00:00:25 #3798 [Verbose] > │ let struct (v12 : float, v13 : float, v14 : float, v15 : float, v16 : │
00:00:25 #3799 [Verbose] > │ float, v17 : float, v18 : float, v19 : float, v20 : float) = method2(v0, v3, │
00:00:25 #3800 [Verbose] > │ v4, v5, v6, v7, v8, v9, v10, v11, v2) │
00:00:25 #3801 [Verbose] > │ let v21 : bool = v17 <= 31557600.0 │
00:00:25 #3802 [Verbose] > │ if v21 then │
00:00:25 #3803 [Verbose] > │ let v22 : UH0 = UH0_0(v12, v13, v14, v15, v16, v17, v18, v19, v20, │
00:00:25 #3804 [Verbose] > │ v1) │
00:00:25 #3805 [Verbose] > │ let v23 : int32 = v2 + 1 │
00:00:25 #3806 [Verbose] > │ method1(v0, v22, v23) │
00:00:25 #3807 [Verbose] > │ else │
00:00:25 #3808 [Verbose] > │ let v25 : UH0 = UH0_1 │
00:00:25 #3809 [Verbose] > │ method3(v1, v25) │
00:00:25 #3810 [Verbose] > │ and method4 (v0 : UH0, v1 : UH1) : UH1 = │
00:00:25 #3811 [Verbose] > │ match v0 with │
00:00:25 #3812 [Verbose] > │ | UH0_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11) -> (* Cons *) │
00:00:25 #3813 [Verbose] > │ let v12 : UH1 = method4(v11, v1) │
00:00:25 #3814 [Verbose] > │ let v13 : float = v7 / 31557600.0 │
00:00:25 #3815 [Verbose] > │ let v14 : float = v8 / 299792458.0 │
00:00:25 #3816 [Verbose] > │ UH1_0(v13, v14, v12) │
00:00:25 #3817 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:25 #3818 [Verbose] > │ v1 │
00:00:25 #3819 [Verbose] > │ and method5 (v0 : UH1, v1 : UH2, v2 : UH2) : struct (UH2 * UH2) = │
00:00:25 #3820 [Verbose] > │ match v0 with │
00:00:25 #3821 [Verbose] > │ | UH1_0(v3, v4, v5) -> (* Cons *) │
00:00:25 #3822 [Verbose] > │ let v6 : UH2 = UH2_0(v3, v1) │
00:00:25 #3823 [Verbose] > │ let v7 : UH2 = UH2_0(v4, v2) │
00:00:25 #3824 [Verbose] > │ method5(v5, v6, v7) │
00:00:25 #3825 [Verbose] > │ | UH1_1 -> (* Nil *) │
00:00:25 #3826 [Verbose] > │ struct (v1, v2) │
00:00:25 #3827 [Verbose] > │ and method6 (v0 : UH2, v1 : UH2) : UH2 = │
00:00:25 #3828 [Verbose] > │ match v0 with │
00:00:25 #3829 [Verbose] > │ | UH2_0(v2, v3) -> (* Cons *) │
00:00:25 #3830 [Verbose] > │ let v4 : UH2 = UH2_0(v2, v1) │
00:00:25 #3831 [Verbose] > │ method6(v3, v4) │
00:00:25 #3832 [Verbose] > │ | UH2_1 -> (* Nil *) │
00:00:25 #3833 [Verbose] > │ v1 │
00:00:25 #3834 [Verbose] > │ and method7 (v0 : (struct (float * float * float * float * float * float * │
00:00:25 #3835 [Verbose] > │ float * float * float) -> struct (float * float * float * float * float * │
00:00:25 #3836 [Verbose] > │ float * float * float * float)), v1 : UH0, v2 : int32) : UH0 = │
00:00:25 #3837 [Verbose] > │ let v3 : float = 0.0 │
00:00:25 #3838 [Verbose] > │ let v4 : float = 1.0 │
00:00:25 #3839 [Verbose] > │ let v5 : float = 0.0 │
00:00:25 #3840 [Verbose] > │ let v6 : float = 0.0 │
00:00:25 #3841 [Verbose] > │ let v7 : float = 0.0 │
00:00:25 #3842 [Verbose] > │ let v8 : float = 0.0 │
00:00:25 #3843 [Verbose] > │ let v9 : float = 0.0 │
00:00:25 #3844 [Verbose] > │ let v10 : float = 0.0 │
00:00:25 #3845 [Verbose] > │ let v11 : float = 0.0 │
00:00:25 #3846 [Verbose] > │ let struct (v12 : float, v13 : float, v14 : float, v15 : float, v16 : │
00:00:25 #3847 [Verbose] > │ float, v17 : float, v18 : float, v19 : float, v20 : float) = method2(v0, v3, │
00:00:25 #3848 [Verbose] > │ v4, v5, v6, v7, v8, v9, v10, v11, v2) │
00:00:25 #3849 [Verbose] > │ let v21 : bool = v17 <= 31557600.0 │
00:00:25 #3850 [Verbose] > │ if v21 then │
00:00:25 #3851 [Verbose] > │ let v22 : UH0 = UH0_0(v12, v13, v14, v15, v16, v17, v18, v19, v20, │
00:00:25 #3852 [Verbose] > │ v1) │
00:00:25 #3853 [Verbose] > │ let v23 : int32 = v2 + 1 │
00:00:25 #3854 [Verbose] > │ method7(v0, v22, v23) │
00:00:25 #3855 [Verbose] > │ else │
00:00:25 #3856 [Verbose] > │ let v25 : UH0 = UH0_1 │
00:00:25 #3857 [Verbose] > │ method3(v1, v25) │
00:00:25 #3858 [Verbose] > │ and method8 (v0 : UH0, v1 : UH1) : UH1 = │
00:00:25 #3859 [Verbose] > │ match v0 with │
00:00:25 #3860 [Verbose] > │ | UH0_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11) -> (* Cons *) │
00:00:25 #3861 [Verbose] > │ let v12 : UH1 = method8(v11, v1) │
00:00:25 #3862 [Verbose] > │ let v13 : float = v7 / 31557600.0 │
00:00:25 #3863 [Verbose] > │ let v14 : float = v8 / 299792458.0 │
00:00:25 #3864 [Verbose] > │ UH1_0(v13, v14, v12) │
00:00:25 #3865 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:25 #3866 [Verbose] > │ v1 │
00:00:25 #3867 [Verbose] > │ and method10 (v0 : UH2, v1 : int32) : int32 = │
00:00:25 #3868 [Verbose] > │ match v0 with │
00:00:25 #3869 [Verbose] > │ | UH2_0(v2, v3) -> (* Cons *) │
00:00:25 #3870 [Verbose] > │ let v4 : int32 = v1 + 1 │
00:00:25 #3871 [Verbose] > │ method10(v3, v4) │
00:00:25 #3872 [Verbose] > │ | UH2_1 -> (* Nil *) │
00:00:25 #3873 [Verbose] > │ v1 │
00:00:25 #3874 [Verbose] > │ and method11 (v0 : (float []), v1 : UH2, v2 : int32) : int32 = │
00:00:25 #3875 [Verbose] > │ match v1 with │
00:00:25 #3876 [Verbose] > │ | UH2_0(v3, v4) -> (* Cons *) │
00:00:25 #3877 [Verbose] > │ v0.[int v2] <- v3 │
00:00:25 #3878 [Verbose] > │ let v5 : int32 = v2 + 1 │
00:00:25 #3879 [Verbose] > │ method11(v0, v4, v5) │
00:00:25 #3880 [Verbose] > │ | UH2_1 -> (* Nil *) │
00:00:25 #3881 [Verbose] > │ v2 │
00:00:25 #3882 [Verbose] > │ and method9 (v0 : UH2) : (float []) = │
00:00:25 #3883 [Verbose] > │ let v1 : int32 = 0 │
00:00:25 #3884 [Verbose] > │ let v2 : int32 = method10(v0, v1) │
00:00:25 #3885 [Verbose] > │ let v3 : (float []) = Array.zeroCreate<float> (v2) │
00:00:25 #3886 [Verbose] > │ let v4 : int32 = 0 │
00:00:25 #3887 [Verbose] > │ let v5 : int32 = method11(v3, v0, v4) │
00:00:25 #3888 [Verbose] > │ v3 │
00:00:25 #3889 [Verbose] > │ and method12 (v0 : (struct (string * (float []) * (float [])) [])) : (struct │
00:00:25 #3890 [Verbose] > │ (string * (float []) * (float [])) []) = │
00:00:25 #3891 [Verbose] > │ v0 │
00:00:25 #3892 [Verbose] > │ and method0 () : struct (string * string * string * (struct (string * (float │
00:00:25 #3893 [Verbose] > │ []) * (float [])) [])) = │
00:00:25 #3894 [Verbose] > │ let v0 : ((struct (float * float * float * float * float * float * float │
00:00:25 #3895 [Verbose] > │ * float * float) -> struct (float * float * float * float * float * float * │
00:00:25 #3896 [Verbose] > │ float * float * float)) -> (struct (float * float * float * float * float * │
00:00:25 #3897 [Verbose] > │ float * float * float * float) -> struct (float * float * float * float * │
00:00:25 #3898 [Verbose] > │ float * float * float * float * float))) = closure0() │
00:00:25 #3899 [Verbose] > │ let v1 : (struct (float * float * float * float * float * float * float │
00:00:25 #3900 [Verbose] > │ * float * float) -> struct (float * float * float * float * float * float * │
00:00:25 #3901 [Verbose] > │ float * float * float)) = closure2() │
00:00:25 #3902 [Verbose] > │ let v2 : (struct (float * float * float * float * float * float * float │
00:00:25 #3903 [Verbose] > │ * float * float) -> struct (float * float * float * float * float * float * │
00:00:25 #3904 [Verbose] > │ float * float * float)) = v0 v1 │
00:00:25 #3905 [Verbose] > │ let v3 : (struct (float * float * float * float * float * float * float │
00:00:25 #3906 [Verbose] > │ * float * float) -> struct (float * float * float * float * float * float * │
00:00:25 #3907 [Verbose] > │ float * float * float)) = closure3() │
00:00:25 #3908 [Verbose] > │ let v4 : (struct (float * float * float * float * float * float * float │
00:00:25 #3909 [Verbose] > │ * float * float) -> struct (float * float * float * float * float * float * │
00:00:25 #3910 [Verbose] > │ float * float * float)) = v0 v3 │
00:00:25 #3911 [Verbose] > │ let v5 : UH0 = UH0_1 │
00:00:25 #3912 [Verbose] > │ let v6 : int32 = 0 │
00:00:25 #3913 [Verbose] > │ let v7 : UH0 = method1(v2, v5, v6) │
00:00:25 #3914 [Verbose] > │ let v8 : UH1 = UH1_1 │
00:00:25 #3915 [Verbose] > │ let v9 : UH1 = method4(v7, v8) │
00:00:25 #3916 [Verbose] > │ let v10 : UH2 = UH2_1 │
00:00:25 #3917 [Verbose] > │ let v11 : UH2 = UH2_1 │
00:00:25 #3918 [Verbose] > │ let struct (v12 : UH2, v13 : UH2) = method5(v9, v10, v11) │
00:00:25 #3919 [Verbose] > │ let v14 : UH2 = UH2_1 │
00:00:25 #3920 [Verbose] > │ let v15 : UH2 = method6(v12, v14) │
00:00:25 #3921 [Verbose] > │ let v16 : UH2 = UH2_1 │
00:00:25 #3922 [Verbose] > │ let v17 : UH2 = method6(v13, v16) │
00:00:25 #3923 [Verbose] > │ let v18 : UH0 = UH0_1 │
00:00:25 #3924 [Verbose] > │ let v19 : int32 = 0 │
00:00:25 #3925 [Verbose] > │ let v20 : UH0 = method7(v4, v18, v19) │
00:00:25 #3926 [Verbose] > │ let v21 : UH1 = UH1_1 │
00:00:25 #3927 [Verbose] > │ let v22 : UH1 = method8(v20, v21) │
00:00:25 #3928 [Verbose] > │ let v23 : UH2 = UH2_1 │
00:00:25 #3929 [Verbose] > │ let v24 : UH2 = UH2_1 │
00:00:25 #3930 [Verbose] > │ let struct (v25 : UH2, v26 : UH2) = method5(v22, v23, v24) │
00:00:25 #3931 [Verbose] > │ let v27 : UH2 = UH2_1 │
00:00:25 #3932 [Verbose] > │ let v28 : UH2 = method6(v25, v27) │
00:00:25 #3933 [Verbose] > │ let v29 : UH2 = UH2_1 │
00:00:25 #3934 [Verbose] > │ let v30 : UH2 = method6(v26, v29) │
00:00:25 #3935 [Verbose] > │ let v31 : (float []) = method9(v15) │
00:00:25 #3936 [Verbose] > │ let v32 : (float []) = method9(v17) │
00:00:25 #3937 [Verbose] > │ let v33 : (float []) = method9(v30) │
00:00:25 #3938 [Verbose] > │ let v34 : string = "newtonian" │
00:00:25 #3939 [Verbose] > │ let v35 : string = "relativistic" │
00:00:25 #3940 [Verbose] > │ let v36 : (struct (string * (float []) * (float [])) []) = [|struct │
00:00:25 #3941 [Verbose] > │ (v34, v31, v32); struct (v35, v31, v33)|] │
00:00:25 #3942 [Verbose] > │ let v37 : (struct (string * (float []) * (float [])) []) = method12(v36) │
00:00:25 #3943 [Verbose] > │ let v38 : string = "response to a constant force" │
00:00:25 #3944 [Verbose] > │ let v39 : string = "time (years)" │
00:00:25 #3945 [Verbose] > │ let v40 : string = "velocity (multiples of c)" │
00:00:25 #3946 [Verbose] > │ struct (v38, v39, v40, v37) │
00:00:25 #3947 [Verbose] > │ method0() │
00:00:25 #3948 [Verbose] > │ │
00:00:25 #3949 [Verbose] > │ │
00:00:25 #3950 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:25 #3951 [Verbose] >
00:00:25 #3952 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:25 #3953 [Verbose] > inl uniform_lorentz_force v_e v_b (st : particle_state) =
00:00:25 #3954 [Verbose] > st.charge *^ (v_e ^+^ st.velocity >< v_b)
00:00:25 #3955 [Verbose] > Building /tmp/!dotnet-repl/20240325-2026-0098-9805-946495e9c064/main.spi
00:00:25 #3956 [Verbose] >
00:00:25 #3957 [Verbose] > ╭─[ 189.65ms - stdout ]────────────────────────────────────────────────────────╮
00:00:25 #3958 [Verbose] > │ () │
00:00:25 #3959 [Verbose] > │ │
00:00:25 #3960 [Verbose] > │ │
00:00:25 #3961 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:25 #3962 [Verbose] >
00:00:25 #3963 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:25 #3964 [Verbose] > // // test
00:00:25 #3965 [Verbose] >
00:00:25 #3966 [Verbose] > inl c : f64 = 299792458
00:00:25 #3967 [Verbose] > inl ~method = runge_kutta_4 0.000000001
00:00:25 #3968 [Verbose] > inl forces = [[ uniform_lorentz_force (zero_vec ()) (k_hat ()) ]]
00:00:25 #3969 [Verbose] > inl (particle_state default_particle_state') = default_particle_state ()
00:00:25 #3970 [Verbose] > inl initial_state =
00:00:25 #3971 [Verbose] > particle_state { default_particle_state' with
00:00:25 #3972 [Verbose] > mass = 0.000000000000000000000000001672621898
00:00:25 #3973 [Verbose] > charge = 0.0000000000000000001602176621
00:00:25 #3974 [Verbose] > velocity = 0.8 *^ (c *^ j_hat ())
00:00:25 #3975 [Verbose] > }
00:00:25 #3976 [Verbose] >
00:00:25 #3977 [Verbose] > inl newton_states = solver_ method (newton_second_ps forces) initial_state
00:00:25 #3978 [Verbose] > inl relativity_states = solver_ method (relativity_ps forces) initial_state
00:00:25 #3979 [Verbose] >
00:00:25 #3980 [Verbose] > inl newton_x, newton_y =
00:00:25 #3981 [Verbose] > newton_states
00:00:25 #3982 [Verbose] > >> Some
00:00:25 #3983 [Verbose] > |> seq.take_while_ (fun (particle_state st) i => i < 100i32)
00:00:25 #3984 [Verbose] > |> listm.map (fun (particle_state st) => st.pos_vec.x, st.pos_vec.y)
00:00:25 #3985 [Verbose] > |> listm'.unzip
00:00:25 #3986 [Verbose] >
00:00:25 #3987 [Verbose] > inl relativity_x, relativity_y =
00:00:25 #3988 [Verbose] > relativity_states
00:00:25 #3989 [Verbose] > >> Some
00:00:25 #3990 [Verbose] > |> seq.take_while_ (fun (particle_state st) i => i < 165i32)
00:00:25 #3991 [Verbose] > |> listm.map (fun (particle_state st) => st.pos_vec.x, st.pos_vec.y)
00:00:25 #3992 [Verbose] > |> listm'.unzip
00:00:25 #3993 [Verbose] >
00:00:25 #3994 [Verbose] > inl newton_x : a i32 _ = newton_x |> listm.toArray
00:00:25 #3995 [Verbose] > inl newton_y : a i32 _ = newton_y |> listm.toArray
00:00:25 #3996 [Verbose] >
00:00:25 #3997 [Verbose] > inl relativity_x : a i32 _ = relativity_x |> listm.toArray
00:00:25 #3998 [Verbose] > inl relativity_y : a i32 _ = relativity_y |> listm.toArray
00:00:25 #3999 [Verbose] >
00:00:25 #4000 [Verbose] > "proton in a 1-t magnetic field",
00:00:25 #4001 [Verbose] > "x (m)",
00:00:25 #4002 [Verbose] > "y (m)",
00:00:25 #4003 [Verbose] > ;[[
00:00:25 #4004 [Verbose] > "newtonian", newton_x, newton_y
00:00:25 #4005 [Verbose] > "relativistic", relativity_x, relativity_y
00:00:25 #4006 [Verbose] > ]]
00:00:26 #4007 [Verbose] > Building /tmp/!dotnet-repl/20240325-2026-0117-1705-13701a4e932e/main.spi
00:00:26 #4008 [Verbose] >
00:00:26 #4009 [Verbose] > ╭─[ 1.57s - return value ]─────────────────────────────────────────────────────╮
00:00:26 #4010 [Verbose] > │ <svg width="640" height="480" viewBox="0 0 640 480" │
00:00:26 #4011 [Verbose] > │ xmlns="http://www.w3.org/2000/svg"> │
00:00:26 #4012 [Verbose] > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414" │
00:00:26 #4013 [Verbose] > │ stroke="none"/> │
00:00:26 #4014 [Verbose] > │ <text x="320" y="10" dy="0.76em" text-anchor="middle" │
00:00:26 #4015 [Verbose] > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1" │
00:00:26 #4016 [Verbose] > │ fill="#FFFFFF"> │
00:00:26 #4017 [Verbose] > │ proton in a 1-t magnetic field │
00:00:26 #4018 [Verbose] > │ </text> │
00:00:26 #4019 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="58" y1="424" x2="58" │
00:00:26 #4020 [Verbose] > │ y2="75"/> │
00:00:26 #4021 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:00:26 #4022 [Verbose] > │ y2="75"/> │
00:00:26 #4023 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="81" y1="424" x2="81" │
00:00:26 #4024 [Verbose] > │ y2="75"/> │
00:00:26 #4025 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="93" y1="424" x2="93" │
00:00:26 #4026 [Verbose] > │ y2="75"/> │
00:00:26 #4027 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x... │
00:00:26 #4028 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:26 #4029 [Verbose] >
00:00:26 #4030 [Verbose] > ╭─[ 1.58s - stdout ]───────────────────────────────────────────────────────────╮
00:00:26 #4031 [Verbose] > │ type UH0 = │
00:00:26 #4032 [Verbose] > │ | UH0_0 of float * float * float * float * float * float * float * float │
00:00:26 #4033 [Verbose] > │ * float * UH0 │
00:00:26 #4034 [Verbose] > │ | UH0_1 │
00:00:26 #4035 [Verbose] > │ and UH1 = │
00:00:26 #4036 [Verbose] > │ | UH1_0 of float * float * UH1 │
00:00:26 #4037 [Verbose] > │ | UH1_1 │
00:00:26 #4038 [Verbose] > │ and UH2 = │
00:00:26 #4039 [Verbose] > │ | UH2_0 of float * UH2 │
00:00:26 #4040 [Verbose] > │ | UH2_1 │
00:00:26 #4041 [Verbose] > │ let rec closure1 (v0 : (struct (float * float * float * float * float * │
00:00:26 #4042 [Verbose] > │ float * float * float * float) -> struct (float * float * float * float * │
00:00:26 #4043 [Verbose] > │ float * float * float * float * float))) struct (v1 : float, v2 : float, v3 │
00:00:26 #4044 [Verbose] > │ : float, v4 : float, v5 : float, v6 : float, v7 : float, v8 : float, v9 : │
00:00:26 #4045 [Verbose] > │ float) : struct (float * float * float * float * float * float * float * │
00:00:26 #4046 [Verbose] > │ float * float) = │
00:00:26 #4047 [Verbose] > │ let struct (v10 : float, v11 : float, v12 : float, v13 : float, v14 : │
00:00:26 #4048 [Verbose] > │ float, v15 : float, v16 : float, v17 : float, v18 : float) = v0 struct (v1, │
00:00:26 #4049 [Verbose] > │ v2, v3, v4, v5, v6, v7, v8, v9) │
00:00:26 #4050 [Verbose] > │ let v19 : float = v15 * 5E-10 │
00:00:26 #4051 [Verbose] > │ let v20 : float = v6 + v19 │
00:00:26 #4052 [Verbose] > │ let v21 : float = 5E-10 * v12 │
00:00:26 #4053 [Verbose] > │ let v22 : float = 5E-10 * v13 │
00:00:26 #4054 [Verbose] > │ let v23 : float = 5E-10 * v14 │
00:00:26 #4055 [Verbose] > │ let v24 : float = v3 + v21 │
00:00:26 #4056 [Verbose] > │ let v25 : float = v4 + v22 │
00:00:26 #4057 [Verbose] > │ let v26 : float = v5 + v23 │
00:00:26 #4058 [Verbose] > │ let v27 : float = 5E-10 * v16 │
00:00:26 #4059 [Verbose] > │ let v28 : float = 5E-10 * v17 │
00:00:26 #4060 [Verbose] > │ let v29 : float = 5E-10 * v18 │
00:00:26 #4061 [Verbose] > │ let v30 : float = v7 + v27 │
00:00:26 #4062 [Verbose] > │ let v31 : float = v8 + v28 │
00:00:26 #4063 [Verbose] > │ let v32 : float = v9 + v29 │
00:00:26 #4064 [Verbose] > │ let struct (v33 : float, v34 : float, v35 : float, v36 : float, v37 : │
00:00:26 #4065 [Verbose] > │ float, v38 : float, v39 : float, v40 : float, v41 : float) = v0 struct (v1, │
00:00:26 #4066 [Verbose] > │ v2, v24, v25, v26, v20, v30, v31, v32) │
00:00:26 #4067 [Verbose] > │ let v42 : float = v38 * 5E-10 │
00:00:26 #4068 [Verbose] > │ let v43 : float = v6 + v42 │
00:00:26 #4069 [Verbose] > │ let v44 : float = 5E-10 * v35 │
00:00:26 #4070 [Verbose] > │ let v45 : float = 5E-10 * v36 │
00:00:26 #4071 [Verbose] > │ let v46 : float = 5E-10 * v37 │
00:00:26 #4072 [Verbose] > │ let v47 : float = v3 + v44 │
00:00:26 #4073 [Verbose] > │ let v48 : float = v4 + v45 │
00:00:26 #4074 [Verbose] > │ let v49 : float = v5 + v46 │
00:00:26 #4075 [Verbose] > │ let v50 : float = 5E-10 * v39 │
00:00:26 #4076 [Verbose] > │ let v51 : float = 5E-10 * v40 │
00:00:26 #4077 [Verbose] > │ let v52 : float = 5E-10 * v41 │
00:00:26 #4078 [Verbose] > │ let v53 : float = v7 + v50 │
00:00:26 #4079 [Verbose] > │ let v54 : float = v8 + v51 │
00:00:26 #4080 [Verbose] > │ let v55 : float = v9 + v52 │
00:00:26 #4081 [Verbose] > │ let struct (v56 : float, v57 : float, v58 : float, v59 : float, v60 : │
00:00:26 #4082 [Verbose] > │ float, v61 : float, v62 : float, v63 : float, v64 : float) = v0 struct (v1, │
00:00:26 #4083 [Verbose] > │ v2, v47, v48, v49, v43, v53, v54, v55) │
00:00:26 #4084 [Verbose] > │ let v65 : float = v61 * 1E-09 │
00:00:26 #4085 [Verbose] > │ let v66 : float = v6 + v65 │
00:00:26 #4086 [Verbose] > │ let v67 : float = 1E-09 * v58 │
00:00:26 #4087 [Verbose] > │ let v68 : float = 1E-09 * v59 │
00:00:26 #4088 [Verbose] > │ let v69 : float = 1E-09 * v60 │
00:00:26 #4089 [Verbose] > │ let v70 : float = v3 + v67 │
00:00:26 #4090 [Verbose] > │ let v71 : float = v4 + v68 │
00:00:26 #4091 [Verbose] > │ let v72 : float = v5 + v69 │
00:00:26 #4092 [Verbose] > │ let v73 : float = 1E-09 * v62 │
00:00:26 #4093 [Verbose] > │ let v74 : float = 1E-09 * v63 │
00:00:26 #4094 [Verbose] > │ let v75 : float = 1E-09 * v64 │
00:00:26 #4095 [Verbose] > │ let v76 : float = v7 + v73 │
00:00:26 #4096 [Verbose] > │ let v77 : float = v8 + v74 │
00:00:26 #4097 [Verbose] > │ let v78 : float = v9 + v75 │
00:00:26 #4098 [Verbose] > │ let struct (v79 : float, v80 : float, v81 : float, v82 : float, v83 : │
00:00:26 #4099 [Verbose] > │ float, v84 : float, v85 : float, v86 : float, v87 : float) = v0 struct (v1, │
00:00:26 #4100 [Verbose] > │ v2, v70, v71, v72, v66, v76, v77, v78) │
00:00:26 #4101 [Verbose] > │ let v88 : float = v10 + v33 │
00:00:26 #4102 [Verbose] > │ let v89 : float = v11 + v34 │
00:00:26 #4103 [Verbose] > │ let v90 : float = v15 + v38 │
00:00:26 #4104 [Verbose] > │ let v91 : float = v12 + v35 │
00:00:26 #4105 [Verbose] > │ let v92 : float = v13 + v36 │
00:00:26 #4106 [Verbose] > │ let v93 : float = v14 + v37 │
00:00:26 #4107 [Verbose] > │ let v94 : float = v16 + v39 │
00:00:26 #4108 [Verbose] > │ let v95 : float = v17 + v40 │
00:00:26 #4109 [Verbose] > │ let v96 : float = v18 + v41 │
00:00:26 #4110 [Verbose] > │ let v97 : float = v88 + v33 │
00:00:26 #4111 [Verbose] > │ let v98 : float = v89 + v34 │
00:00:26 #4112 [Verbose] > │ let v99 : float = v90 + v38 │
00:00:26 #4113 [Verbose] > │ let v100 : float = v91 + v35 │
00:00:26 #4114 [Verbose] > │ let v101 : float = v92 + v36 │
00:00:26 #4115 [Verbose] > │ let v102 : float = v93 + v37 │
00:00:26 #4116 [Verbose] > │ let v103 : float = v94 + v39 │
00:00:26 #4117 [Verbose] > │ let v104 : float = v95 + v40 │
00:00:26 #4118 [Verbose] > │ let v105 : float = v96 + v41 │
00:00:26 #4119 [Verbose] > │ let v106 : float = v97 + v56 │
00:00:26 #4120 [Verbose] > │ let v107 : float = v98 + v57 │
00:00:26 #4121 [Verbose] > │ let v108 : float = v99 + v61 │
00:00:26 #4122 [Verbose] > │ let v109 : float = v100 + v58 │
00:00:26 #4123 [Verbose] > │ let v110 : float = v101 + v59 │
00:00:26 #4124 [Verbose] > │ let v111 : float = v102 + v60 │
00:00:26 #4125 [Verbose] > │ let v112 : float = v103 + v62 │
00:00:26 #4126 [Verbose] > │ let v113 : float = v104 + v63 │
00:00:26 #4127 [Verbose] > │ let v114 : float = v105 + v64 │
00:00:26 #4128 [Verbose] > │ let v115 : float = v106 + v56 │
00:00:26 #4129 [Verbose] > │ let v116 : float = v107 + v57 │
00:00:26 #4130 [Verbose] > │ let v117 : float = v108 + v61 │
00:00:26 #4131 [Verbose] > │ let v118 : float = v109 + v58 │
00:00:26 #4132 [Verbose] > │ let v119 : float = v110 + v59 │
00:00:26 #4133 [Verbose] > │ let v120 : float = v111 + v60 │
00:00:26 #4134 [Verbose] > │ let v121 : float = v112 + v62 │
00:00:26 #4135 [Verbose] > │ let v122 : float = v113 + v63 │
00:00:26 #4136 [Verbose] > │ let v123 : float = v114 + v64 │
00:00:26 #4137 [Verbose] > │ let v124 : float = v115 + v79 │
00:00:26 #4138 [Verbose] > │ let v125 : float = v116 + v80 │
00:00:26 #4139 [Verbose] > │ let v126 : float = v117 + v84 │
00:00:26 #4140 [Verbose] > │ let v127 : float = v118 + v81 │
00:00:26 #4141 [Verbose] > │ let v128 : float = v119 + v82 │
00:00:26 #4142 [Verbose] > │ let v129 : float = v120 + v83 │
00:00:26 #4143 [Verbose] > │ let v130 : float = v121 + v85 │
00:00:26 #4144 [Verbose] > │ let v131 : float = v122 + v86 │
00:00:26 #4145 [Verbose] > │ let v132 : float = v123 + v87 │
00:00:26 #4146 [Verbose] > │ let v133 : float = v126 * 1.6666666666666669E-10 │
00:00:26 #4147 [Verbose] > │ let v134 : float = v6 + v133 │
00:00:26 #4148 [Verbose] > │ let v135 : float = 1.6666666666666669E-10 * v127 │
00:00:26 #4149 [Verbose] > │ let v136 : float = 1.6666666666666669E-10 * v128 │
00:00:26 #4150 [Verbose] > │ let v137 : float = 1.6666666666666669E-10 * v129 │
00:00:26 #4151 [Verbose] > │ let v138 : float = v3 + v135 │
00:00:26 #4152 [Verbose] > │ let v139 : float = v4 + v136 │
00:00:26 #4153 [Verbose] > │ let v140 : float = v5 + v137 │
00:00:26 #4154 [Verbose] > │ let v141 : float = 1.6666666666666669E-10 * v130 │
00:00:26 #4155 [Verbose] > │ let v142 : float = 1.6666666666666669E-10 * v131 │
00:00:26 #4156 [Verbose] > │ let v143 : float = 1.6666666666666669E-10 * v132 │
00:00:26 #4157 [Verbose] > │ let v144 : float = v7 + v141 │
00:00:26 #4158 [Verbose] > │ let v145 : float = v8 + v142 │
00:00:26 #4159 [Verbose] > │ let v146 : float = v9 + v143 │
00:00:26 #4160 [Verbose] > │ struct (v1, v2, v138, v139, v140, v134, v144, v145, v146) │
00:00:26 #4161 [Verbose] > │ and closure0 () (v0 : (struct (float * float * float * float * float * float │
00:00:26 #4162 [Verbose] > │ * float * float * float) -> struct (float * float * float * float * float * │
00:00:26 #4163 [Verbose] > │ float * float * float * float))) : (struct (float * float * float * float * │
00:00:26 #4164 [Verbose] > │ float * float * float * float * float) -> struct (float * float * float * │
00:00:26 #4165 [Verbose] > │ float * float * float * float * float * float)) = │
00:00:26 #4166 [Verbose] > │ closure1(v0) │
00:00:26 #4167 [Verbose] > │ and closure2 () struct (v0 : float, v1 : float, v2 : float, v3 : float, v4 : │
00:00:26 #4168 [Verbose] > │ float, v5 : float, v6 : float, v7 : float, v8 : float) : struct (float * │
00:00:26 #4169 [Verbose] > │ float * float * float * float * float * float * float * float) = │
00:00:26 #4170 [Verbose] > │ let v9 : float = v8 * 0.0 │
00:00:26 #4171 [Verbose] > │ let v10 : float = v7 - v9 │
00:00:26 #4172 [Verbose] > │ let v11 : float = v9 - v6 │
00:00:26 #4173 [Verbose] > │ let v12 : float = v6 * 0.0 │
00:00:26 #4174 [Verbose] > │ let v13 : float = v7 * 0.0 │
00:00:26 #4175 [Verbose] > │ let v14 : float = v12 - v13 │
00:00:26 #4176 [Verbose] > │ let v15 : float = v0 * v10 │
00:00:26 #4177 [Verbose] > │ let v16 : float = v0 * v11 │
00:00:26 #4178 [Verbose] > │ let v17 : float = v0 * v14 │
00:00:26 #4179 [Verbose] > │ let v18 : float = v15 / v1 │
00:00:26 #4180 [Verbose] > │ let v19 : float = v16 / v1 │
00:00:26 #4181 [Verbose] > │ let v20 : float = v17 / v1 │
00:00:26 #4182 [Verbose] > │ struct (0.0, 0.0, v6, v7, v8, 1.0, v18, v19, v20) │
00:00:26 #4183 [Verbose] > │ and closure3 () struct (v0 : float, v1 : float, v2 : float, v3 : float, v4 : │
00:00:26 #4184 [Verbose] > │ float, v5 : float, v6 : float, v7 : float, v8 : float) : struct (float * │
00:00:26 #4185 [Verbose] > │ float * float * float * float * float * float * float * float) = │
00:00:26 #4186 [Verbose] > │ let v9 : float = v8 * 0.0 │
00:00:26 #4187 [Verbose] > │ let v10 : float = v7 - v9 │
00:00:26 #4188 [Verbose] > │ let v11 : float = v9 - v6 │
00:00:26 #4189 [Verbose] > │ let v12 : float = v6 * 0.0 │
00:00:26 #4190 [Verbose] > │ let v13 : float = v7 * 0.0 │
00:00:26 #4191 [Verbose] > │ let v14 : float = v12 - v13 │
00:00:26 #4192 [Verbose] > │ let v15 : float = v0 * v10 │
00:00:26 #4193 [Verbose] > │ let v16 : float = v0 * v11 │
00:00:26 #4194 [Verbose] > │ let v17 : float = v0 * v14 │
00:00:26 #4195 [Verbose] > │ let v18 : float = v6 / 299792458.0 │
00:00:26 #4196 [Verbose] > │ let v19 : float = v7 / 299792458.0 │
00:00:26 #4197 [Verbose] > │ let v20 : float = v8 / 299792458.0 │
00:00:26 #4198 [Verbose] > │ let v21 : float = v18 * v18 │
00:00:26 #4199 [Verbose] > │ let v22 : float = v19 * v19 │
00:00:26 #4200 [Verbose] > │ let v23 : float = v21 + v22 │
00:00:26 #4201 [Verbose] > │ let v24 : float = v20 * v20 │
00:00:26 #4202 [Verbose] > │ let v25 : float = v23 + v24 │
00:00:26 #4203 [Verbose] > │ let v26 : float = 1.0 - v25 │
00:00:26 #4204 [Verbose] > │ let v27 : float = sqrt v26 │
00:00:26 #4205 [Verbose] > │ let v28 : float = v15 * v18 │
00:00:26 #4206 [Verbose] > │ let v29 : float = v16 * v19 │
00:00:26 #4207 [Verbose] > │ let v30 : float = v28 + v29 │
00:00:26 #4208 [Verbose] > │ let v31 : float = v17 * v20 │
00:00:26 #4209 [Verbose] > │ let v32 : float = v30 + v31 │
00:00:26 #4210 [Verbose] > │ let v33 : float = v32 * v18 │
00:00:26 #4211 [Verbose] > │ let v34 : float = v32 * v19 │
00:00:26 #4212 [Verbose] > │ let v35 : float = v32 * v20 │
00:00:26 #4213 [Verbose] > │ let v36 : float = -1.0 * v33 │
00:00:26 #4214 [Verbose] > │ let v37 : float = -1.0 * v34 │
00:00:26 #4215 [Verbose] > │ let v38 : float = -1.0 * v35 │
00:00:26 #4216 [Verbose] > │ let v39 : float = v15 + v36 │
00:00:26 #4217 [Verbose] > │ let v40 : float = v16 + v37 │
00:00:26 #4218 [Verbose] > │ let v41 : float = v17 + v38 │
00:00:26 #4219 [Verbose] > │ let v42 : float = v27 * v39 │
00:00:26 #4220 [Verbose] > │ let v43 : float = v27 * v40 │
00:00:26 #4221 [Verbose] > │ let v44 : float = v27 * v41 │
00:00:26 #4222 [Verbose] > │ let v45 : float = v42 / v1 │
00:00:26 #4223 [Verbose] > │ let v46 : float = v43 / v1 │
00:00:26 #4224 [Verbose] > │ let v47 : float = v44 / v1 │
00:00:26 #4225 [Verbose] > │ struct (0.0, 0.0, v6, v7, v8, 1.0, v45, v46, v47) │
00:00:26 #4226 [Verbose] > │ and method2 (v0 : (struct (float * float * float * float * float * float * │
00:00:26 #4227 [Verbose] > │ float * float * float) -> struct (float * float * float * float * float * │
00:00:26 #4228 [Verbose] > │ float * float * float * float)), v1 : float, v2 : float, v3 : float, v4 : │
00:00:26 #4229 [Verbose] > │ float, v5 : float, v6 : float, v7 : float, v8 : float, v9 : float, v10 : │
00:00:26 #4230 [Verbose] > │ int32) : struct (float * float * float * float * float * float * float * │
00:00:26 #4231 [Verbose] > │ float * float) = │
00:00:26 #4232 [Verbose] > │ let v11 : bool = v10 <= 0 │
00:00:26 #4233 [Verbose] > │ if v11 then │
00:00:26 #4234 [Verbose] > │ struct (v1, v2, v3, v4, v5, v6, v7, v8, v9) │
00:00:26 #4235 [Verbose] > │ else │
00:00:26 #4236 [Verbose] > │ let struct (v12 : float, v13 : float, v14 : float, v15 : float, v16 │
00:00:26 #4237 [Verbose] > │ : float, v17 : float, v18 : float, v19 : float, v20 : float) = v0 struct │
00:00:26 #4238 [Verbose] > │ (v1, v2, v3, v4, v5, v6, v7, v8, v9) │
00:00:26 #4239 [Verbose] > │ let v21 : int32 = v10 - 1 │
00:00:26 #4240 [Verbose] > │ method2(v0, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21) │
00:00:26 #4241 [Verbose] > │ and method3 (v0 : UH0, v1 : UH0) : UH0 = │
00:00:26 #4242 [Verbose] > │ match v0 with │
00:00:26 #4243 [Verbose] > │ | UH0_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11) -> (* Cons *) │
00:00:26 #4244 [Verbose] > │ let v12 : UH0 = UH0_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v1) │
00:00:26 #4245 [Verbose] > │ method3(v11, v12) │
00:00:26 #4246 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:26 #4247 [Verbose] > │ v1 │
00:00:26 #4248 [Verbose] > │ and method1 (v0 : (struct (float * float * float * float * float * float * │
00:00:26 #4249 [Verbose] > │ float * float * float) -> struct (float * float * float * float * float * │
00:00:26 #4250 [Verbose] > │ float * float * float * float)), v1 : UH0, v2 : int32) : UH0 = │
00:00:26 #4251 [Verbose] > │ let v3 : float = 1.602176621E-19 │
00:00:26 #4252 [Verbose] > │ let v4 : float = 1.672621898E-27 │
00:00:26 #4253 [Verbose] > │ let v5 : float = 0.0 │
00:00:26 #4254 [Verbose] > │ let v6 : float = 0.0 │
00:00:26 #4255 [Verbose] > │ let v7 : float = 0.0 │
00:00:26 #4256 [Verbose] > │ let v8 : float = 0.0 │
00:00:26 #4257 [Verbose] > │ let v9 : float = 0.0 │
00:00:26 #4258 [Verbose] > │ let v10 : float = 239833966.4 │
00:00:26 #4259 [Verbose] > │ let v11 : float = 0.0 │
00:00:26 #4260 [Verbose] > │ let struct (v12 : float, v13 : float, v14 : float, v15 : float, v16 : │
00:00:26 #4261 [Verbose] > │ float, v17 : float, v18 : float, v19 : float, v20 : float) = method2(v0, v3, │
00:00:26 #4262 [Verbose] > │ v4, v5, v6, v7, v8, v9, v10, v11, v2) │
00:00:26 #4263 [Verbose] > │ let v21 : bool = v2 < 100 │
00:00:26 #4264 [Verbose] > │ if v21 then │
00:00:26 #4265 [Verbose] > │ let v22 : UH0 = UH0_0(v12, v13, v14, v15, v16, v17, v18, v19, v20, │
00:00:26 #4266 [Verbose] > │ v1) │
00:00:26 #4267 [Verbose] > │ let v23 : int32 = v2 + 1 │
00:00:26 #4268 [Verbose] > │ method1(v0, v22, v23) │
00:00:26 #4269 [Verbose] > │ else │
00:00:26 #4270 [Verbose] > │ let v25 : UH0 = UH0_1 │
00:00:26 #4271 [Verbose] > │ method3(v1, v25) │
00:00:26 #4272 [Verbose] > │ and method4 (v0 : UH0, v1 : UH1) : UH1 = │
00:00:26 #4273 [Verbose] > │ match v0 with │
00:00:26 #4274 [Verbose] > │ | UH0_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11) -> (* Cons *) │
00:00:26 #4275 [Verbose] > │ let v12 : UH1 = method4(v11, v1) │
00:00:26 #4276 [Verbose] > │ UH1_0(v4, v5, v12) │
00:00:26 #4277 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:26 #4278 [Verbose] > │ v1 │
00:00:26 #4279 [Verbose] > │ and method5 (v0 : UH1, v1 : UH2, v2 : UH2) : struct (UH2 * UH2) = │
00:00:26 #4280 [Verbose] > │ match v0 with │
00:00:26 #4281 [Verbose] > │ | UH1_0(v3, v4, v5) -> (* Cons *) │
00:00:26 #4282 [Verbose] > │ let v6 : UH2 = UH2_0(v3, v1) │
00:00:26 #4283 [Verbose] > │ let v7 : UH2 = UH2_0(v4, v2) │
00:00:26 #4284 [Verbose] > │ method5(v5, v6, v7) │
00:00:26 #4285 [Verbose] > │ | UH1_1 -> (* Nil *) │
00:00:26 #4286 [Verbose] > │ struct (v1, v2) │
00:00:26 #4287 [Verbose] > │ and method6 (v0 : UH2, v1 : UH2) : UH2 = │
00:00:26 #4288 [Verbose] > │ match v0 with │
00:00:26 #4289 [Verbose] > │ | UH2_0(v2, v3) -> (* Cons *) │
00:00:26 #4290 [Verbose] > │ let v4 : UH2 = UH2_0(v2, v1) │
00:00:26 #4291 [Verbose] > │ method6(v3, v4) │
00:00:26 #4292 [Verbose] > │ | UH2_1 -> (* Nil *) │
00:00:26 #4293 [Verbose] > │ v1 │
00:00:26 #4294 [Verbose] > │ and method7 (v0 : (struct (float * float * float * float * float * float * │
00:00:26 #4295 [Verbose] > │ float * float * float) -> struct (float * float * float * float * float * │
00:00:26 #4296 [Verbose] > │ float * float * float * float)), v1 : UH0, v2 : int32) : UH0 = │
00:00:26 #4297 [Verbose] > │ let v3 : float = 1.602176621E-19 │
00:00:26 #4298 [Verbose] > │ let v4 : float = 1.672621898E-27 │
00:00:26 #4299 [Verbose] > │ let v5 : float = 0.0 │
00:00:26 #4300 [Verbose] > │ let v6 : float = 0.0 │
00:00:26 #4301 [Verbose] > │ let v7 : float = 0.0 │
00:00:26 #4302 [Verbose] > │ let v8 : float = 0.0 │
00:00:26 #4303 [Verbose] > │ let v9 : float = 0.0 │
00:00:26 #4304 [Verbose] > │ let v10 : float = 239833966.4 │
00:00:26 #4305 [Verbose] > │ let v11 : float = 0.0 │
00:00:26 #4306 [Verbose] > │ let struct (v12 : float, v13 : float, v14 : float, v15 : float, v16 : │
00:00:26 #4307 [Verbose] > │ float, v17 : float, v18 : float, v19 : float, v20 : float) = method2(v0, v3, │
00:00:26 #4308 [Verbose] > │ v4, v5, v6, v7, v8, v9, v10, v11, v2) │
00:00:26 #4309 [Verbose] > │ let v21 : bool = v2 < 165 │
00:00:26 #4310 [Verbose] > │ if v21 then │
00:00:26 #4311 [Verbose] > │ let v22 : UH0 = UH0_0(v12, v13, v14, v15, v16, v17, v18, v19, v20, │
00:00:26 #4312 [Verbose] > │ v1) │
00:00:26 #4313 [Verbose] > │ let v23 : int32 = v2 + 1 │
00:00:26 #4314 [Verbose] > │ method7(v0, v22, v23) │
00:00:26 #4315 [Verbose] > │ else │
00:00:26 #4316 [Verbose] > │ let v25 : UH0 = UH0_1 │
00:00:26 #4317 [Verbose] > │ method3(v1, v25) │
00:00:26 #4318 [Verbose] > │ and method8 (v0 : UH0, v1 : UH1) : UH1 = │
00:00:26 #4319 [Verbose] > │ match v0 with │
00:00:26 #4320 [Verbose] > │ | UH0_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11) -> (* Cons *) │
00:00:26 #4321 [Verbose] > │ let v12 : UH1 = method8(v11, v1) │
00:00:26 #4322 [Verbose] > │ UH1_0(v4, v5, v12) │
00:00:26 #4323 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:26 #4324 [Verbose] > │ v1 │
00:00:26 #4325 [Verbose] > │ and method10 (v0 : UH2, v1 : int32) : int32 = │
00:00:26 #4326 [Verbose] > │ match v0 with │
00:00:26 #4327 [Verbose] > │ | UH2_0(v2, v3) -> (* Cons *) │
00:00:26 #4328 [Verbose] > │ let v4 : int32 = v1 + 1 │
00:00:26 #4329 [Verbose] > │ method10(v3, v4) │
00:00:26 #4330 [Verbose] > │ | UH2_1 -> (* Nil *) │
00:00:26 #4331 [Verbose] > │ v1 │
00:00:26 #4332 [Verbose] > │ and method11 (v0 : (float []), v1 : UH2, v2 : int32) : int32 = │
00:00:26 #4333 [Verbose] > │ match v1 with │
00:00:26 #4334 [Verbose] > │ | UH2_0(v3, v4) -> (* Cons *) │
00:00:26 #4335 [Verbose] > │ v0.[int v2] <- v3 │
00:00:26 #4336 [Verbose] > │ let v5 : int32 = v2 + 1 │
00:00:26 #4337 [Verbose] > │ method11(v0, v4, v5) │
00:00:26 #4338 [Verbose] > │ | UH2_1 -> (* Nil *) │
00:00:26 #4339 [Verbose] > │ v2 │
00:00:26 #4340 [Verbose] > │ and method9 (v0 : UH2) : (float []) = │
00:00:26 #4341 [Verbose] > │ let v1 : int32 = 0 │
00:00:26 #4342 [Verbose] > │ let v2 : int32 = method10(v0, v1) │
00:00:26 #4343 [Verbose] > │ let v3 : (float []) = Array.zeroCreate<float> (v2) │
00:00:26 #4344 [Verbose] > │ let v4 : int32 = 0 │
00:00:26 #4345 [Verbose] > │ let v5 : int32 = method11(v3, v0, v4) │
00:00:26 #4346 [Verbose] > │ v3 │
00:00:26 #4347 [Verbose] > │ and method12 (v0 : (struct (string * (float []) * (float [])) [])) : (struct │
00:00:26 #4348 [Verbose] > │ (string * (float []) * (float [])) []) = │
00:00:26 #4349 [Verbose] > │ v0 │
00:00:26 #4350 [Verbose] > │ and method0 () : struct (string * string * string * (struct (string * (float │
00:00:26 #4351 [Verbose] > │ []) * (float [])) [])) = │
00:00:26 #4352 [Verbose] > │ let v0 : ((struct (float * float * float * float * float * float * float │
00:00:26 #4353 [Verbose] > │ * float * float) -> struct (float * float * float * float * float * float * │
00:00:26 #4354 [Verbose] > │ float * float * float)) -> (struct (float * float * float * float * float * │
00:00:26 #4355 [Verbose] > │ float * float * float * float) -> struct (float * float * float * float * │
00:00:26 #4356 [Verbose] > │ float * float * float * float * float))) = closure0() │
00:00:26 #4357 [Verbose] > │ let v1 : (struct (float * float * float * float * float * float * float │
00:00:26 #4358 [Verbose] > │ * float * float) -> struct (float * float * float * float * float * float * │
00:00:26 #4359 [Verbose] > │ float * float * float)) = closure2() │
00:00:26 #4360 [Verbose] > │ let v2 : (struct (float * float * float * float * float * float * float │
00:00:26 #4361 [Verbose] > │ * float * float) -> struct (float * float * float * float * float * float * │
00:00:26 #4362 [Verbose] > │ float * float * float)) = v0 v1 │
00:00:26 #4363 [Verbose] > │ let v3 : (struct (float * float * float * float * float * float * float │
00:00:26 #4364 [Verbose] > │ * float * float) -> struct (float * float * float * float * float * float * │
00:00:26 #4365 [Verbose] > │ float * float * float)) = closure3() │
00:00:26 #4366 [Verbose] > │ let v4 : (struct (float * float * float * float * float * float * float │
00:00:26 #4367 [Verbose] > │ * float * float) -> struct (float * float * float * float * float * float * │
00:00:26 #4368 [Verbose] > │ float * float * float)) = v0 v3 │
00:00:26 #4369 [Verbose] > │ let v5 : UH0 = UH0_1 │
00:00:26 #4370 [Verbose] > │ let v6 : int32 = 0 │
00:00:26 #4371 [Verbose] > │ let v7 : UH0 = method1(v2, v5, v6) │
00:00:26 #4372 [Verbose] > │ let v8 : UH1 = UH1_1 │
00:00:26 #4373 [Verbose] > │ let v9 : UH1 = method4(v7, v8) │
00:00:26 #4374 [Verbose] > │ let v10 : UH2 = UH2_1 │
00:00:26 #4375 [Verbose] > │ let v11 : UH2 = UH2_1 │
00:00:26 #4376 [Verbose] > │ let struct (v12 : UH2, v13 : UH2) = method5(v9, v10, v11) │
00:00:26 #4377 [Verbose] > │ let v14 : UH2 = UH2_1 │
00:00:26 #4378 [Verbose] > │ let v15 : UH2 = method6(v12, v14) │
00:00:26 #4379 [Verbose] > │ let v16 : UH2 = UH2_1 │
00:00:26 #4380 [Verbose] > │ let v17 : UH2 = method6(v13, v16) │
00:00:26 #4381 [Verbose] > │ let v18 : UH0 = UH0_1 │
00:00:26 #4382 [Verbose] > │ let v19 : int32 = 0 │
00:00:26 #4383 [Verbose] > │ let v20 : UH0 = method7(v4, v18, v19) │
00:00:26 #4384 [Verbose] > │ let v21 : UH1 = UH1_1 │
00:00:26 #4385 [Verbose] > │ let v22 : UH1 = method8(v20, v21) │
00:00:26 #4386 [Verbose] > │ let v23 : UH2 = UH2_1 │
00:00:26 #4387 [Verbose] > │ let v24 : UH2 = UH2_1 │
00:00:26 #4388 [Verbose] > │ let struct (v25 : UH2, v26 : UH2) = method5(v22, v23, v24) │
00:00:26 #4389 [Verbose] > │ let v27 : UH2 = UH2_1 │
00:00:26 #4390 [Verbose] > │ let v28 : UH2 = method6(v25, v27) │
00:00:26 #4391 [Verbose] > │ let v29 : UH2 = UH2_1 │
00:00:26 #4392 [Verbose] > │ let v30 : UH2 = method6(v26, v29) │
00:00:26 #4393 [Verbose] > │ let v31 : (float []) = method9(v15) │
00:00:26 #4394 [Verbose] > │ let v32 : (float []) = method9(v17) │
00:00:26 #4395 [Verbose] > │ let v33 : (float []) = method9(v28) │
00:00:26 #4396 [Verbose] > │ let v34 : (float []) = method9(v30) │
00:00:26 #4397 [Verbose] > │ let v35 : string = "newtonian" │
00:00:26 #4398 [Verbose] > │ let v36 : string = "relativistic" │
00:00:26 #4399 [Verbose] > │ let v37 : (struct (string * (float []) * (float [])) []) = [|struct │
00:00:26 #4400 [Verbose] > │ (v35, v31, v32); struct (v36, v33, v34)|] │
00:00:26 #4401 [Verbose] > │ let v38 : (struct (string * (float []) * (float [])) []) = method12(v37) │
00:00:26 #4402 [Verbose] > │ let v39 : string = "proton in a 1-t magnetic field" │
00:00:26 #4403 [Verbose] > │ let v40 : string = "x (m)" │
00:00:26 #4404 [Verbose] > │ let v41 : string = "y (m)" │
00:00:26 #4405 [Verbose] > │ struct (v39, v40, v41, v38) │
00:00:26 #4406 [Verbose] > │ method0() │
00:00:26 #4407 [Verbose] > │ │
00:00:26 #4408 [Verbose] > │ │
00:00:26 #4409 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:26 #4410 [Verbose] >
00:00:26 #4411 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:26 #4412 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:26 #4413 [Verbose] > │ ### system kinetic energy versus time 1 │
00:00:26 #4414 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:26 #4415 [Verbose] >
00:00:26 #4416 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:26 #4417 [Verbose] > // // test
00:00:26 #4418 [Verbose] >
00:00:26 #4419 [Verbose] > inl central_force f (particle_state st1) (particle_state st2) =
00:00:26 #4420 [Verbose] > inl r1 = st1.pos_vec
00:00:26 #4421 [Verbose] > inl r2 = st2.pos_vec
00:00:26 #4422 [Verbose] > inl r21 = r2 ^-^ r1
00:00:26 #4423 [Verbose] > inl r21mag = magnitude r21
00:00:26 #4424 [Verbose] > f r21mag *^ r21 ^/ r21mag
00:00:26 #4425 [Verbose] >
00:00:26 #4426 [Verbose] > inl billiard_force k re =
00:00:26 #4427 [Verbose] > inl f r =
00:00:26 #4428 [Verbose] > if r >= re
00:00:26 #4429 [Verbose] > then 0
00:00:26 #4430 [Verbose] > else -k * (r - re)
00:00:26 #4431 [Verbose] > central_force f
00:00:26 #4432 [Verbose] >
00:00:26 #4433 [Verbose] > type force_vector = vec
00:00:26 #4434 [Verbose] > type two_body_force = particle_state -> particle_state -> force_vector
00:00:26 #4435 [Verbose] >
00:00:26 #4436 [Verbose] > union force =
00:00:26 #4437 [Verbose] > | ExternalForce : i32 * one_body_force
00:00:26 #4438 [Verbose] > | InternalForce : i32 * i32 * two_body_force
00:00:26 #4439 [Verbose] >
00:00:26 #4440 [Verbose] > nominal multi_particle_state = list particle_state
00:00:26 #4441 [Verbose] >
00:00:26 #4442 [Verbose] > nominal d_multi_particle_state = list d_particle_state
00:00:26 #4443 [Verbose] >
00:00:26 #4444 [Verbose] > inl force_on n sts force =
00:00:26 #4445 [Verbose] > match force with
00:00:26 #4446 [Verbose] > | ExternalForce (n0, f_one_body) =>
00:00:26 #4447 [Verbose] > if n = n0
00:00:26 #4448 [Verbose] > then f_one_body
00:00:26 #4449 [Verbose] > else fun _ => zero_vec ()
00:00:26 #4450 [Verbose] > | InternalForce (n0, n1, f_two_body) =>
00:00:26 #4451 [Verbose] > if n = n0
00:00:26 #4452 [Verbose] > then f_two_body (sts |> listm'.item n1)
00:00:26 #4453 [Verbose] > elif n = n1
00:00:26 #4454 [Verbose] > then f_two_body (sts |> listm'.item n0)
00:00:26 #4455 [Verbose] > else fun _ => zero_vec ()
00:00:26 #4456 [Verbose] >
00:00:26 #4457 [Verbose] > inl forces_on n (multi_particle_state sts) fs =
00:00:26 #4458 [Verbose] > fs |> listm.map (force_on n sts)
00:00:26 #4459 [Verbose] >
00:00:26 #4460 [Verbose] > inl newton_second_mps fs (multi_particle_state sts) : d_multi_particle_state =
00:00:26 #4461 [Verbose] > inl deriv (n, st) =
00:00:26 #4462 [Verbose] > newton_second_ps (forces_on n (multi_particle_state sts) fs) st
00:00:26 #4463 [Verbose] > sts |> listm'.indexed |> listm.map deriv |> d_multi_particle_state
00:00:26 #4464 [Verbose] >
00:00:26 #4465 [Verbose] > instance (+++) d_multi_particle_state = fun (d_multi_particle_state dsts1)
00:00:26 #4466 [Verbose] > (d_multi_particle_state dsts2) =>
00:00:26 #4467 [Verbose] > d_multi_particle_state (listm'.zip_with_ (+++) dsts1 dsts2)
00:00:26 #4468 [Verbose] >
00:00:26 #4469 [Verbose] > instance scale d_multi_particle_state = fun w (d_multi_particle_state dsts) =>
00:00:26 #4470 [Verbose] > d_multi_particle_state (dsts |> listm.map (scale w))
00:00:26 #4471 [Verbose] >
00:00:26 #4472 [Verbose] > instance shift multi_particle_state = fun dt dsts (multi_particle_state sts) =>
00:00:26 #4473 [Verbose] > inl (d_multi_particle_state dsts) =
00:00:26 #4474 [Verbose] > real
00:00:26 #4475 [Verbose] > match dsts with
00:00:26 #4476 [Verbose] > | d_multi_particle_state _ => dsts
00:00:26 #4477 [Verbose] > listm'.zip_with_ (shift dt) dsts sts |> multi_particle_state
00:00:26 #4478 [Verbose] >
00:00:26 #4479 [Verbose] > inl euler_cromer_mps dt : numerical_method multi_particle_state
00:00:26 #4480 [Verbose] > d_multi_particle_state =
00:00:26 #4481 [Verbose] > fun deriv mpst0 =>
00:00:26 #4482 [Verbose] > inl mpst1 = euler dt deriv mpst0
00:00:26 #4483 [Verbose] > inl (multi_particle_state sts0) = mpst0
00:00:26 #4484 [Verbose] > inl (multi_particle_state sts1) = mpst1
00:00:26 #4485 [Verbose] > sts1
00:00:26 #4486 [Verbose] > |> listm'.zip_ sts0
00:00:26 #4487 [Verbose] > |> listm.map (fun ((particle_state st0), (particle_state st1)) =>
00:00:26 #4488 [Verbose] > particle_state {
00:00:26 #4489 [Verbose] > st1 with
00:00:26 #4490 [Verbose] > pos_vec = st0.pos_vec ^+^ st1.velocity ^* dt
00:00:26 #4491 [Verbose] > }
00:00:26 #4492 [Verbose] > )
00:00:26 #4493 [Verbose] > |> multi_particle_state
00:00:26 #4494 [Verbose] >
00:00:26 #4495 [Verbose] > inl update_mps (method : numerical_method multi_particle_state
00:00:26 #4496 [Verbose] > d_multi_particle_state) =
00:00:26 #4497 [Verbose] > newton_second_mps >> method
00:00:26 #4498 [Verbose] >
00:00:26 #4499 [Verbose] > inl states_mps (method : numerical_method multi_particle_state
00:00:26 #4500 [Verbose] > d_multi_particle_state) =
00:00:26 #4501 [Verbose] > newton_second_mps >> method >> seq.iterate_
00:00:26 #4502 [Verbose] >
00:00:26 #4503 [Verbose] >
00:00:26 #4504 [Verbose] > inl kinetic_energy (particle_state st) =
00:00:26 #4505 [Verbose] > inl m = st.mass
00:00:26 #4506 [Verbose] > inl v = magnitude st.velocity
00:00:26 #4507 [Verbose] > 0.5 * m * v ** 2
00:00:26 #4508 [Verbose] >
00:00:26 #4509 [Verbose] > inl system_ke (multi_particle_state sts) =
00:00:26 #4510 [Verbose] > sts |> listm.map kinetic_energy |> listm'.sum
00:00:26 #4511 [Verbose] >
00:00:26 #4512 [Verbose] > inl linear_spring_pe k re (particle_state st1) (particle_state st2) =
00:00:26 #4513 [Verbose] > inl r1 = st1.pos_vec
00:00:26 #4514 [Verbose] > inl r2 = st2.pos_vec
00:00:26 #4515 [Verbose] > inl r21 = r2 ^-^ r1
00:00:26 #4516 [Verbose] > inl r21mag = magnitude r21
00:00:26 #4517 [Verbose] > k * (r21mag - re) ** 2 / 2
00:00:26 #4518 [Verbose] >
00:00:26 #4519 [Verbose] > inl earth_surface_gravity_pe (particle_state st) =
00:00:26 #4520 [Verbose] > inl g = 9.80665
00:00:26 #4521 [Verbose] > inl m = st.mass
00:00:26 #4522 [Verbose] > inl z = st.pos_vec.z
00:00:26 #4523 [Verbose] > m * g * z
00:00:26 #4524 [Verbose] >
00:00:26 #4525 [Verbose] > inl two_springs_pe (multi_particle_state sts) =
00:00:26 #4526 [Verbose] > inl st0 = sts |> listm'.item 0i32
00:00:26 #4527 [Verbose] > inl st1 = sts |> listm'.item 1i32
00:00:26 #4528 [Verbose] > linear_spring_pe 100 0.5 (default_particle_state ()) st0
00:00:26 #4529 [Verbose] > + linear_spring_pe 100 0.5 st0 st1
00:00:26 #4530 [Verbose] > + earth_surface_gravity_pe st0
00:00:26 #4531 [Verbose] > + earth_surface_gravity_pe st1
00:00:26 #4532 [Verbose] >
00:00:26 #4533 [Verbose] > inl two_springs_me mpst =
00:00:26 #4534 [Verbose] > system_ke mpst + two_springs_pe mpst
00:00:26 #4535 [Verbose] >
00:00:26 #4536 [Verbose] > inl ball_radius () = 0.03
00:00:26 #4537 [Verbose] >
00:00:26 #4538 [Verbose] > inl billiard_forces k =
00:00:26 #4539 [Verbose] > [[ InternalForce (0, 1, billiard_force k (2 * ball_radius ())) ]]
00:00:26 #4540 [Verbose] >
00:00:26 #4541 [Verbose] > inl billiard_update n_method k dt =
00:00:26 #4542 [Verbose] > update_mps (n_method dt) (billiard_forces k)
00:00:26 #4543 [Verbose] >
00:00:26 #4544 [Verbose] > inl billiard_initial () =
00:00:26 #4545 [Verbose] > inl ball_mass = 0.160
00:00:26 #4546 [Verbose] > inl (particle_state default_particle_state') = default_particle_state ()
00:00:26 #4547 [Verbose] > multi_particle_state [[
00:00:26 #4548 [Verbose] > particle_state {
00:00:26 #4549 [Verbose] > default_particle_state' with
00:00:26 #4550 [Verbose] > mass = ball_mass
00:00:26 #4551 [Verbose] > pos_vec = zero_vec ()
00:00:26 #4552 [Verbose] > velocity = 0.2 *^ i_hat ()
00:00:26 #4553 [Verbose] > }
00:00:26 #4554 [Verbose] > particle_state {
00:00:26 #4555 [Verbose] > default_particle_state' with
00:00:26 #4556 [Verbose] > mass = ball_mass
00:00:26 #4557 [Verbose] > pos_vec = i_hat () ^+^ 0.02 *^ j_hat ()
00:00:26 #4558 [Verbose] > velocity = zero_vec ()
00:00:26 #4559 [Verbose] > }
00:00:26 #4560 [Verbose] > ]]
00:00:26 #4561 [Verbose] >
00:00:26 #4562 [Verbose] > inl billiard_states ~n_method k dt =
00:00:26 #4563 [Verbose] > states_mps (n_method dt) (billiard_forces k) (billiard_initial ())
00:00:26 #4564 [Verbose] >
00:00:26 #4565 [Verbose] > inl billiard_states_finite n_method k dt =
00:00:26 #4566 [Verbose] > billiard_states n_method k dt
00:00:26 #4567 [Verbose] > >> Some
00:00:26 #4568 [Verbose] > |> seq.take_while_ (fun (multi_particle_state mpst) (_ : i32) =>
00:00:26 #4569 [Verbose] > (mpst |> listm'.item 0i32).time <= 10
00:00:26 #4570 [Verbose] > )
00:00:26 #4571 [Verbose] >
00:00:26 #4572 [Verbose] > inl momentum (particle_state st) =
00:00:26 #4573 [Verbose] > inl m = st.mass
00:00:26 #4574 [Verbose] > inl v = st.velocity
00:00:26 #4575 [Verbose] > m *^ v
00:00:26 #4576 [Verbose] >
00:00:26 #4577 [Verbose] > inl system_p (multi_particle_state sts) =
00:00:26 #4578 [Verbose] > sts |> listm.map momentum |> sum_vec
00:00:26 #4579 [Verbose] >
00:00:26 #4580 [Verbose] >
00:00:26 #4581 [Verbose] > inl time_ke_ec_x, time_ke_ec_y =
00:00:26 #4582 [Verbose] > billiard_states_finite euler_cromer_mps 30 0.03
00:00:26 #4583 [Verbose] > |> listm.map (fun (multi_particle_state mpst) =>
00:00:26 #4584 [Verbose] > (mpst |> listm'.item 0i32).time, system_ke (multi_particle_state mpst)
00:00:26 #4585 [Verbose] > )
00:00:26 #4586 [Verbose] > |> listm'.unzip
00:00:26 #4587 [Verbose] >
00:00:26 #4588 [Verbose] > inl time_ke_rk4_x, time_ke_rk4_y =
00:00:26 #4589 [Verbose] > billiard_states_finite runge_kutta_4 30 0.03
00:00:26 #4590 [Verbose] > |> listm.map (fun (multi_particle_state mpst) =>
00:00:26 #4591 [Verbose] > (mpst |> listm'.item 0i32).time, system_ke (multi_particle_state mpst)
00:00:26 #4592 [Verbose] > )
00:00:26 #4593 [Verbose] > |> listm'.unzip
00:00:26 #4594 [Verbose] >
00:00:26 #4595 [Verbose] > inl time_ke_ec_x : a i32 _ = time_ke_ec_x |> listm.toArray
00:00:26 #4596 [Verbose] > inl time_ke_ec_y : a i32 _ = time_ke_ec_y |> listm.toArray
00:00:26 #4597 [Verbose] >
00:00:26 #4598 [Verbose] > inl time_ke_rk4_x : a i32 _ = time_ke_rk4_x |> listm.toArray
00:00:26 #4599 [Verbose] > inl time_ke_rk4_y : a i32 _ = time_ke_rk4_y |> listm.toArray
00:00:26 #4600 [Verbose] >
00:00:26 #4601 [Verbose] > "system kinetic energy versus time",
00:00:26 #4602 [Verbose] > "time (s)",
00:00:26 #4603 [Verbose] > "system kinetic energy (j)",
00:00:26 #4604 [Verbose] > ;[[
00:00:26 #4605 [Verbose] > "euler-cromer", time_ke_ec_x, time_ke_ec_y
00:00:26 #4606 [Verbose] > "runge-kutta 4", time_ke_rk4_x, time_ke_rk4_y
00:00:26 #4607 [Verbose] > ]]
00:00:26 #4608 [Verbose] > Building /tmp/!dotnet-repl/20240325-2026-0276-7602-73efe4f47234/main.spi
00:00:27 #4609 [Verbose] >
00:00:27 #4610 [Verbose] > ╭─[ 998.67ms - return value ]──────────────────────────────────────────────────╮
00:00:27 #4611 [Verbose] > │ <svg width="640" height="480" viewBox="0 0 640 480" │
00:00:27 #4612 [Verbose] > │ xmlns="http://www.w3.org/2000/svg"> │
00:00:27 #4613 [Verbose] > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414" │
00:00:27 #4614 [Verbose] > │ stroke="none"/> │
00:00:27 #4615 [Verbose] > │ <text x="320" y="10" dy="0.76em" text-anchor="middle" │
00:00:27 #4616 [Verbose] > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1" │
00:00:27 #4617 [Verbose] > │ fill="#FFFFFF"> │
00:00:27 #4618 [Verbose] > │ system kinetic energy versus time │
00:00:27 #4619 [Verbose] > │ </text> │
00:00:27 #4620 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="59" y1="424" x2="59" │
00:00:27 #4621 [Verbose] > │ y2="75"/> │
00:00:27 #4622 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:00:27 #4623 [Verbose] > │ y2="75"/> │
00:00:27 #4624 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="79" y1="424" x2="79" │
00:00:27 #4625 [Verbose] > │ y2="75"/> │
00:00:27 #4626 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="89" y1="424" x2="89" │
00:00:27 #4627 [Verbose] > │ y2="75"/> │
00:00:27 #4628 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1... │
00:00:27 #4629 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:27 #4630 [Verbose] >
00:00:27 #4631 [Verbose] > ╭─[ 1.00s - stdout ]───────────────────────────────────────────────────────────╮
00:00:27 #4632 [Verbose] > │ type UH0 = │
00:00:27 #4633 [Verbose] > │ | UH0_0 of float * float * float * float * float * float * float * float │
00:00:27 #4634 [Verbose] > │ * float * UH0 │
00:00:27 #4635 [Verbose] > │ | UH0_1 │
00:00:27 #4636 [Verbose] > │ and UH1 = │
00:00:27 #4637 [Verbose] > │ | UH1_0 of float * float * float * float * float * float * float * float │
00:00:27 #4638 [Verbose] > │ * float * UH1 │
00:00:27 #4639 [Verbose] > │ | UH1_1 │
00:00:27 #4640 [Verbose] > │ and UH2 = │
00:00:27 #4641 [Verbose] > │ | UH2_0 of float * float * float * float * float * float * float * float │
00:00:27 #4642 [Verbose] > │ * float * float * float * float * float * float * float * float * float * │
00:00:27 #4643 [Verbose] > │ float * UH2 │
00:00:27 #4644 [Verbose] > │ | UH2_1 │
00:00:27 #4645 [Verbose] > │ and UH3 = │
00:00:27 #4646 [Verbose] > │ | UH3_0 of int32 * float * float * float * float * float * float * float │
00:00:27 #4647 [Verbose] > │ * float * float * UH3 │
00:00:27 #4648 [Verbose] > │ | UH3_1 │
00:00:27 #4649 [Verbose] > │ and [<Struct>] US0 = │
00:00:27 #4650 [Verbose] > │ | US0_0 │
00:00:27 #4651 [Verbose] > │ | US0_1 of f1_0 : float * f1_1 : float * f1_2 : float * f1_3 : float * │
00:00:27 #4652 [Verbose] > │ f1_4 : float * f1_5 : float * f1_6 : float * f1_7 : float * f1_8 : float │
00:00:27 #4653 [Verbose] > │ and UH4 = │
00:00:27 #4654 [Verbose] > │ | UH4_0 of UH0 * UH4 │
00:00:27 #4655 [Verbose] > │ | UH4_1 │
00:00:27 #4656 [Verbose] > │ and UH5 = │
00:00:27 #4657 [Verbose] > │ | UH5_0 of float * float * UH5 │
00:00:27 #4658 [Verbose] > │ | UH5_1 │
00:00:27 #4659 [Verbose] > │ and UH6 = │
00:00:27 #4660 [Verbose] > │ | UH6_0 of float * UH6 │
00:00:27 #4661 [Verbose] > │ | UH6_1 │
00:00:27 #4662 [Verbose] > │ let rec method2 (v0 : UH0, v1 : UH0) : UH0 = │
00:00:27 #4663 [Verbose] > │ match v0 with │
00:00:27 #4664 [Verbose] > │ | UH0_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11) -> (* Cons *) │
00:00:27 #4665 [Verbose] > │ let v12 : UH0 = UH0_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v1) │
00:00:27 #4666 [Verbose] > │ method2(v11, v12) │
00:00:27 #4667 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:27 #4668 [Verbose] > │ v1 │
00:00:27 #4669 [Verbose] > │ and method1 (v0 : float, v1 : UH0, v2 : UH1, v3 : UH0) : UH0 = │
00:00:27 #4670 [Verbose] > │ match v2 with │
00:00:27 #4671 [Verbose] > │ | UH1_0(v4, v5, v6, v7, v8, v9, v10, v11, v12, v13) -> (* Cons *) │
00:00:27 #4672 [Verbose] > │ match v3 with │
00:00:27 #4673 [Verbose] > │ | UH0_0(v14, v15, v16, v17, v18, v19, v20, v21, v22, v23) -> (* Cons │
00:00:27 #4674 [Verbose] > │ *) │
00:00:27 #4675 [Verbose] > │ let v24 : float = v9 * v0 │
00:00:27 #4676 [Verbose] > │ let v25 : float = v19 + v24 │
00:00:27 #4677 [Verbose] > │ let v26 : float = v0 * v6 │
00:00:27 #4678 [Verbose] > │ let v27 : float = v0 * v7 │
00:00:27 #4679 [Verbose] > │ let v28 : float = v0 * v8 │
00:00:27 #4680 [Verbose] > │ let v29 : float = v16 + v26 │
00:00:27 #4681 [Verbose] > │ let v30 : float = v17 + v27 │
00:00:27 #4682 [Verbose] > │ let v31 : float = v18 + v28 │
00:00:27 #4683 [Verbose] > │ let v32 : float = v0 * v10 │
00:00:27 #4684 [Verbose] > │ let v33 : float = v0 * v11 │
00:00:27 #4685 [Verbose] > │ let v34 : float = v0 * v12 │
00:00:27 #4686 [Verbose] > │ let v35 : float = v20 + v32 │
00:00:27 #4687 [Verbose] > │ let v36 : float = v21 + v33 │
00:00:27 #4688 [Verbose] > │ let v37 : float = v22 + v34 │
00:00:27 #4689 [Verbose] > │ let v38 : UH0 = UH0_0(v14, v15, v29, v30, v31, v25, v35, v36, │
00:00:27 #4690 [Verbose] > │ v37, v1) │
00:00:27 #4691 [Verbose] > │ method1(v0, v38, v13, v23) │
00:00:27 #4692 [Verbose] > │ | _ -> │
00:00:27 #4693 [Verbose] > │ let v40 : UH0 = UH0_1 │
00:00:27 #4694 [Verbose] > │ method2(v1, v40) │
00:00:27 #4695 [Verbose] > │ | _ -> │
00:00:27 #4696 [Verbose] > │ let v43 : UH0 = UH0_1 │
00:00:27 #4697 [Verbose] > │ method2(v1, v43) │
00:00:27 #4698 [Verbose] > │ and method4 (v0 : UH2, v1 : UH2) : UH2 = │
00:00:27 #4699 [Verbose] > │ match v0 with │
00:00:27 #4700 [Verbose] > │ | UH2_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, │
00:00:27 #4701 [Verbose] > │ v16, v17, v18, v19, v20) -> (* Cons *) │
00:00:27 #4702 [Verbose] > │ let v21 : UH2 = UH2_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, │
00:00:27 #4703 [Verbose] > │ v13, v14, v15, v16, v17, v18, v19, v1) │
00:00:27 #4704 [Verbose] > │ method4(v20, v21) │
00:00:27 #4705 [Verbose] > │ | UH2_1 -> (* Nil *) │
00:00:27 #4706 [Verbose] > │ v1 │
00:00:27 #4707 [Verbose] > │ and method3 (v0 : UH2, v1 : UH0, v2 : UH0) : UH2 = │
00:00:27 #4708 [Verbose] > │ match v1 with │
00:00:27 #4709 [Verbose] > │ | UH0_0(v3, v4, v5, v6, v7, v8, v9, v10, v11, v12) -> (* Cons *) │
00:00:27 #4710 [Verbose] > │ match v2 with │
00:00:27 #4711 [Verbose] > │ | UH0_0(v13, v14, v15, v16, v17, v18, v19, v20, v21, v22) -> (* Cons │
00:00:27 #4712 [Verbose] > │ *) │
00:00:27 #4713 [Verbose] > │ let v23 : UH2 = UH2_0(v3, v4, v5, v6, v7, v8, v9, v10, v11, v13, │
00:00:27 #4714 [Verbose] > │ v14, v15, v16, v17, v18, v19, v20, v21, v0) │
00:00:27 #4715 [Verbose] > │ method3(v23, v12, v22) │
00:00:27 #4716 [Verbose] > │ | _ -> │
00:00:27 #4717 [Verbose] > │ let v25 : UH2 = UH2_1 │
00:00:27 #4718 [Verbose] > │ method4(v0, v25) │
00:00:27 #4719 [Verbose] > │ | _ -> │
00:00:27 #4720 [Verbose] > │ let v28 : UH2 = UH2_1 │
00:00:27 #4721 [Verbose] > │ method4(v0, v28) │
00:00:27 #4722 [Verbose] > │ and method5 (v0 : float, v1 : UH2, v2 : UH0) : UH0 = │
00:00:27 #4723 [Verbose] > │ match v1 with │
00:00:27 #4724 [Verbose] > │ | UH2_0(v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, │
00:00:27 #4725 [Verbose] > │ v17, v18, v19, v20, v21) -> (* Cons *) │
00:00:27 #4726 [Verbose] > │ let v22 : UH0 = method5(v0, v21, v2) │
00:00:27 #4727 [Verbose] > │ let v23 : float = v0 * v18 │
00:00:27 #4728 [Verbose] > │ let v24 : float = v0 * v19 │
00:00:27 #4729 [Verbose] > │ let v25 : float = v0 * v20 │
00:00:27 #4730 [Verbose] > │ let v26 : float = v5 + v23 │
00:00:27 #4731 [Verbose] > │ let v27 : float = v6 + v24 │
00:00:27 #4732 [Verbose] > │ let v28 : float = v7 + v25 │
00:00:27 #4733 [Verbose] > │ UH0_0(v12, v13, v26, v27, v28, v17, v18, v19, v20, v22) │
00:00:27 #4734 [Verbose] > │ | UH2_1 -> (* Nil *) │
00:00:27 #4735 [Verbose] > │ v2 │
00:00:27 #4736 [Verbose] > │ and closure2 (v0 : float, v1 : (UH0 -> UH1)) (v2 : UH0) : UH0 = │
00:00:27 #4737 [Verbose] > │ let v3 : UH1 = v1 v2 │
00:00:27 #4738 [Verbose] > │ let v4 : UH0 = UH0_1 │
00:00:27 #4739 [Verbose] > │ let v5 : UH0 = method1(v0, v4, v3, v2) │
00:00:27 #4740 [Verbose] > │ let v6 : UH2 = UH2_1 │
00:00:27 #4741 [Verbose] > │ let v7 : UH2 = method3(v6, v2, v5) │
00:00:27 #4742 [Verbose] > │ let v8 : UH0 = UH0_1 │
00:00:27 #4743 [Verbose] > │ let v9 : UH0 = method5(v0, v7, v8) │
00:00:27 #4744 [Verbose] > │ v9 │
00:00:27 #4745 [Verbose] > │ and closure1 (v0 : float) (v1 : (UH0 -> UH1)) : (UH0 -> UH0) = │
00:00:27 #4746 [Verbose] > │ closure2(v0, v1) │
00:00:27 #4747 [Verbose] > │ and closure0 () (v0 : float) : ((UH0 -> UH1) -> (UH0 -> UH0)) = │
00:00:27 #4748 [Verbose] > │ closure1(v0) │
00:00:27 #4749 [Verbose] > │ and method6 (v0 : UH0, v1 : UH3, v2 : int32) : struct (UH3 * int32) = │
00:00:27 #4750 [Verbose] > │ match v0 with │
00:00:27 #4751 [Verbose] > │ | UH0_0(v3, v4, v5, v6, v7, v8, v9, v10, v11, v12) -> (* Cons *) │
00:00:27 #4752 [Verbose] > │ let v13 : int32 = v2 + 1 │
00:00:27 #4753 [Verbose] > │ let v14 : UH3 = UH3_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v1) │
00:00:27 #4754 [Verbose] > │ method6(v12, v14, v13) │
00:00:27 #4755 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:27 #4756 [Verbose] > │ struct (v1, v2) │
00:00:27 #4757 [Verbose] > │ and method7 (v0 : UH3, v1 : UH3) : UH3 = │
00:00:27 #4758 [Verbose] > │ match v0 with │
00:00:27 #4759 [Verbose] > │ | UH3_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12) -> (* Cons *) │
00:00:27 #4760 [Verbose] > │ let v13 : UH3 = UH3_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v1) │
00:00:27 #4761 [Verbose] > │ method7(v12, v13) │
00:00:27 #4762 [Verbose] > │ | UH3_1 -> (* Nil *) │
00:00:27 #4763 [Verbose] > │ v1 │
00:00:27 #4764 [Verbose] > │ and closure4 (v0 : float, v1 : float, v2 : float, v3 : float, v4 : float, v5 │
00:00:27 #4765 [Verbose] > │ : float, v6 : float, v7 : float, v8 : float) struct (v9 : float, v10 : │
00:00:27 #4766 [Verbose] > │ float, v11 : float, v12 : float, v13 : float, v14 : float, v15 : float, v16 │
00:00:27 #4767 [Verbose] > │ : float, v17 : float) : struct (float * float * float) = │
00:00:27 #4768 [Verbose] > │ let v18 : float = -1.0 * v2 │
00:00:27 #4769 [Verbose] > │ let v19 : float = -1.0 * v3 │
00:00:27 #4770 [Verbose] > │ let v20 : float = -1.0 * v4 │
00:00:27 #4771 [Verbose] > │ let v21 : float = v11 + v18 │
00:00:27 #4772 [Verbose] > │ let v22 : float = v12 + v19 │
00:00:27 #4773 [Verbose] > │ let v23 : float = v13 + v20 │
00:00:27 #4774 [Verbose] > │ let v24 : float = v21 * v21 │
00:00:27 #4775 [Verbose] > │ let v25 : float = v22 * v22 │
00:00:27 #4776 [Verbose] > │ let v26 : float = v24 + v25 │
00:00:27 #4777 [Verbose] > │ let v27 : float = v23 * v23 │
00:00:27 #4778 [Verbose] > │ let v28 : float = v26 + v27 │
00:00:27 #4779 [Verbose] > │ let v29 : float = sqrt v28 │
00:00:27 #4780 [Verbose] > │ let v30 : bool = v29 >= 0.06 │
00:00:27 #4781 [Verbose] > │ let v33 : float = │
00:00:27 #4782 [Verbose] > │ if v30 then │
00:00:27 #4783 [Verbose] > │ 0.0 │
00:00:27 #4784 [Verbose] > │ else │
00:00:27 #4785 [Verbose] > │ let v31 : float = v29 - 0.06 │
00:00:27 #4786 [Verbose] > │ let v32 : float = -30.0 * v31 │
00:00:27 #4787 [Verbose] > │ v32 │
00:00:27 #4788 [Verbose] > │ let v34 : float = v33 * v21 │
00:00:27 #4789 [Verbose] > │ let v35 : float = v33 * v22 │
00:00:27 #4790 [Verbose] > │ let v36 : float = v33 * v23 │
00:00:27 #4791 [Verbose] > │ let v37 : float = v34 / v29 │
00:00:27 #4792 [Verbose] > │ let v38 : float = v35 / v29 │
00:00:27 #4793 [Verbose] > │ let v39 : float = v36 / v29 │
00:00:27 #4794 [Verbose] > │ struct (v37, v38, v39) │
00:00:27 #4795 [Verbose] > │ and closure5 () struct (v0 : float, v1 : float, v2 : float, v3 : float, v4 : │
00:00:27 #4796 [Verbose] > │ float, v5 : float, v6 : float, v7 : float, v8 : float) : struct (float * │
00:00:27 #4797 [Verbose] > │ float * float) = │
00:00:27 #4798 [Verbose] > │ struct (0.0, 0.0, 0.0) │
00:00:27 #4799 [Verbose] > │ and method8 (v0 : UH0, v1 : UH3, v2 : UH1) : UH1 = │
00:00:27 #4800 [Verbose] > │ match v1 with │
00:00:27 #4801 [Verbose] > │ | UH3_0(v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13) -> (* Cons *) │
00:00:27 #4802 [Verbose] > │ let v14 : UH1 = method8(v0, v13, v2) │
00:00:27 #4803 [Verbose] > │ let v15 : bool = v3 = 0 │
00:00:27 #4804 [Verbose] > │ let v134 : (struct (float * float * float * float * float * float * │
00:00:27 #4805 [Verbose] > │ float * float * float) -> struct (float * float * float)) = │
00:00:27 #4806 [Verbose] > │ if v15 then │
00:00:27 #4807 [Verbose] > │ let v42 : US0 = │
00:00:27 #4808 [Verbose] > │ match v0 with │
00:00:27 #4809 [Verbose] > │ | UH0_0(v16, v17, v18, v19, v20, v21, v22, v23, v24, │
00:00:27 #4810 [Verbose] > │ v25) -> (* Cons *) │
00:00:27 #4811 [Verbose] > │ match v25 with │
00:00:27 #4812 [Verbose] > │ | UH0_0(v26, v27, v28, v29, v30, v31, v32, v33, v34, │
00:00:27 #4813 [Verbose] > │ v35) -> (* Cons *) │
00:00:27 #4814 [Verbose] > │ US0_1(v26, v27, v28, v29, v30, v31, v32, v33, │
00:00:27 #4815 [Verbose] > │ v34) │
00:00:27 #4816 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:27 #4817 [Verbose] > │ US0_0 │
00:00:27 #4818 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:27 #4819 [Verbose] > │ US0_0 │
00:00:27 #4820 [Verbose] > │ let struct (v70 : float, v71 : float, v72 : float, v73 : │
00:00:27 #4821 [Verbose] > │ float, v74 : float, v75 : float, v76 : float, v77 : float, v78 : float) = │
00:00:27 #4822 [Verbose] > │ match v42 with │
00:00:27 #4823 [Verbose] > │ | US0_0 -> (* None *) │
00:00:27 #4824 [Verbose] > │ failwith<struct (float * float * float * float * │
00:00:27 #4825 [Verbose] > │ float * float * float * float * float)> "Option does not have a value." │
00:00:27 #4826 [Verbose] > │ | US0_1(v43, v44, v45, v46, v47, v48, v49, v50, v51) -> │
00:00:27 #4827 [Verbose] > │ (* Some *) │
00:00:27 #4828 [Verbose] > │ struct (v43, v44, v45, v46, v47, v48, v49, v50, v51) │
00:00:27 #4829 [Verbose] > │ closure4(v70, v71, v72, v73, v74, v75, v76, v77, v78) │
00:00:27 #4830 [Verbose] > │ else │
00:00:27 #4831 [Verbose] > │ let v80 : bool = v3 = 1 │
00:00:27 #4832 [Verbose] > │ if v80 then │
00:00:27 #4833 [Verbose] > │ let v94 : US0 = │
00:00:27 #4834 [Verbose] > │ match v0 with │
00:00:27 #4835 [Verbose] > │ | UH0_0(v81, v82, v83, v84, v85, v86, v87, v88, v89, │
00:00:27 #4836 [Verbose] > │ v90) -> (* Cons *) │
00:00:27 #4837 [Verbose] > │ US0_1(v81, v82, v83, v84, v85, v86, v87, v88, │
00:00:27 #4838 [Verbose] > │ v89) │
00:00:27 #4839 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:27 #4840 [Verbose] > │ US0_0 │
00:00:27 #4841 [Verbose] > │ let struct (v122 : float, v123 : float, v124 : float, │
00:00:27 #4842 [Verbose] > │ v125 : float, v126 : float, v127 : float, v128 : float, v129 : float, v130 : │
00:00:27 #4843 [Verbose] > │ float) = │
00:00:27 #4844 [Verbose] > │ match v94 with │
00:00:27 #4845 [Verbose] > │ | US0_0 -> (* None *) │
00:00:27 #4846 [Verbose] > │ failwith<struct (float * float * float * float * │
00:00:27 #4847 [Verbose] > │ float * float * float * float * float)> "Option does not have a value." │
00:00:27 #4848 [Verbose] > │ | US0_1(v95, v96, v97, v98, v99, v100, v101, v102, │
00:00:27 #4849 [Verbose] > │ v103) -> (* Some *) │
00:00:27 #4850 [Verbose] > │ struct (v95, v96, v97, v98, v99, v100, v101, │
00:00:27 #4851 [Verbose] > │ v102, v103) │
00:00:27 #4852 [Verbose] > │ closure4(v122, v123, v124, v125, v126, v127, v128, v129, │
00:00:27 #4853 [Verbose] > │ v130) │
00:00:27 #4854 [Verbose] > │ else │
00:00:27 #4855 [Verbose] > │ closure5() │
00:00:27 #4856 [Verbose] > │ let struct (v135 : float, v136 : float, v137 : float) = v134 struct │
00:00:27 #4857 [Verbose] > │ (v4, v5, v6, v7, v8, v9, v10, v11, v12) │
00:00:27 #4858 [Verbose] > │ let v138 : float = v135 / v5 │
00:00:27 #4859 [Verbose] > │ let v139 : float = v136 / v5 │
00:00:27 #4860 [Verbose] > │ let v140 : float = v137 / v5 │
00:00:27 #4861 [Verbose] > │ UH1_0(0.0, 0.0, v10, v11, v12, 1.0, v138, v139, v140, v14) │
00:00:27 #4862 [Verbose] > │ | UH3_1 -> (* Nil *) │
00:00:27 #4863 [Verbose] > │ v2 │
00:00:27 #4864 [Verbose] > │ and closure3 () (v0 : UH0) : UH1 = │
00:00:27 #4865 [Verbose] > │ let v1 : UH3 = UH3_1 │
00:00:27 #4866 [Verbose] > │ let v2 : int32 = 0 │
00:00:27 #4867 [Verbose] > │ let struct (v3 : UH3, v4 : int32) = method6(v0, v1, v2) │
00:00:27 #4868 [Verbose] > │ let v5 : UH3 = UH3_1 │
00:00:27 #4869 [Verbose] > │ let v6 : UH3 = method7(v3, v5) │
00:00:27 #4870 [Verbose] > │ let v7 : UH1 = UH1_1 │
00:00:27 #4871 [Verbose] > │ let v8 : UH1 = method8(v0, v6, v7) │
00:00:27 #4872 [Verbose] > │ v8 │
00:00:27 #4873 [Verbose] > │ and method10 (v0 : (UH0 -> UH0), v1 : UH0, v2 : int32) : UH0 = │
00:00:27 #4874 [Verbose] > │ let v3 : bool = v2 <= 0 │
00:00:27 #4875 [Verbose] > │ if v3 then │
00:00:27 #4876 [Verbose] > │ v1 │
00:00:27 #4877 [Verbose] > │ else │
00:00:27 #4878 [Verbose] > │ let v4 : UH0 = v0 v1 │
00:00:27 #4879 [Verbose] > │ let v5 : int32 = v2 - 1 │
00:00:27 #4880 [Verbose] > │ method10(v0, v4, v5) │
00:00:27 #4881 [Verbose] > │ and method11 (v0 : UH4, v1 : UH4) : UH4 = │
00:00:27 #4882 [Verbose] > │ match v0 with │
00:00:27 #4883 [Verbose] > │ | UH4_0(v2, v3) -> (* Cons *) │
00:00:27 #4884 [Verbose] > │ let v4 : UH4 = UH4_0(v2, v1) │
00:00:27 #4885 [Verbose] > │ method11(v3, v4) │
00:00:27 #4886 [Verbose] > │ | UH4_1 -> (* Nil *) │
00:00:27 #4887 [Verbose] > │ v1 │
00:00:27 #4888 [Verbose] > │ and method9 (v0 : (UH0 -> UH0), v1 : UH4, v2 : int32) : UH4 = │
00:00:27 #4889 [Verbose] > │ let v3 : float = 0.0 │
00:00:27 #4890 [Verbose] > │ let v4 : float = 0.16 │
00:00:27 #4891 [Verbose] > │ let v5 : float = 0.0 │
00:00:27 #4892 [Verbose] > │ let v6 : float = 0.0 │
00:00:27 #4893 [Verbose] > │ let v7 : float = 0.0 │
00:00:27 #4894 [Verbose] > │ let v8 : float = 0.0 │
00:00:27 #4895 [Verbose] > │ let v9 : float = 0.2 │
00:00:27 #4896 [Verbose] > │ let v10 : float = 0.0 │
00:00:27 #4897 [Verbose] > │ let v11 : float = 0.0 │
00:00:27 #4898 [Verbose] > │ let v12 : float = 1.0 │
00:00:27 #4899 [Verbose] > │ let v13 : float = 0.02 │
00:00:27 #4900 [Verbose] > │ let v14 : float = 0.0 │
00:00:27 #4901 [Verbose] > │ let v15 : float = 0.0 │
00:00:27 #4902 [Verbose] > │ let v16 : float = 0.0 │
00:00:27 #4903 [Verbose] > │ let v17 : float = 0.0 │
00:00:27 #4904 [Verbose] > │ let v18 : UH0 = UH0_1 │
00:00:27 #4905 [Verbose] > │ let v19 : UH0 = UH0_0(v3, v4, v12, v13, v14, v8, v15, v16, v17, v18) │
00:00:27 #4906 [Verbose] > │ let v20 : UH0 = UH0_0(v3, v4, v5, v6, v7, v8, v9, v10, v11, v19) │
00:00:27 #4907 [Verbose] > │ let v21 : UH0 = method10(v0, v20, v2) │
00:00:27 #4908 [Verbose] > │ let v35 : US0 = │
00:00:27 #4909 [Verbose] > │ match v21 with │
00:00:27 #4910 [Verbose] > │ | UH0_0(v22, v23, v24, v25, v26, v27, v28, v29, v30, v31) -> (* Cons │
00:00:27 #4911 [Verbose] > │ *) │
00:00:27 #4912 [Verbose] > │ US0_1(v22, v23, v24, v25, v26, v27, v28, v29, v30) │
00:00:27 #4913 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:27 #4914 [Verbose] > │ US0_0 │
00:00:27 #4915 [Verbose] > │ let struct (v63 : float, v64 : float, v65 : float, v66 : float, v67 : │
00:00:27 #4916 [Verbose] > │ float, v68 : float, v69 : float, v70 : float, v71 : float) = │
00:00:27 #4917 [Verbose] > │ match v35 with │
00:00:27 #4918 [Verbose] > │ | US0_0 -> (* None *) │
00:00:27 #4919 [Verbose] > │ failwith<struct (float * float * float * float * float * float * │
00:00:27 #4920 [Verbose] > │ float * float * float)> "Option does not have a value." │
00:00:27 #4921 [Verbose] > │ | US0_1(v36, v37, v38, v39, v40, v41, v42, v43, v44) -> (* Some *) │
00:00:27 #4922 [Verbose] > │ struct (v36, v37, v38, v39, v40, v41, v42, v43, v44) │
00:00:27 #4923 [Verbose] > │ let v72 : bool = v68 <= 10.0 │
00:00:27 #4924 [Verbose] > │ if v72 then │
00:00:27 #4925 [Verbose] > │ let v73 : UH4 = UH4_0(v21, v1) │
00:00:27 #4926 [Verbose] > │ let v74 : int32 = v2 + 1 │
00:00:27 #4927 [Verbose] > │ method9(v0, v73, v74) │
00:00:27 #4928 [Verbose] > │ else │
00:00:27 #4929 [Verbose] > │ let v76 : UH4 = UH4_1 │
00:00:27 #4930 [Verbose] > │ method11(v1, v76) │
00:00:27 #4931 [Verbose] > │ and method13 (v0 : UH0, v1 : UH6) : UH6 = │
00:00:27 #4932 [Verbose] > │ match v0 with │
00:00:27 #4933 [Verbose] > │ | UH0_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11) -> (* Cons *) │
00:00:27 #4934 [Verbose] > │ let v12 : UH6 = method13(v11, v1) │
00:00:27 #4935 [Verbose] > │ let v13 : float = v8 * v8 │
00:00:27 #4936 [Verbose] > │ let v14 : float = v9 * v9 │
00:00:27 #4937 [Verbose] > │ let v15 : float = v13 + v14 │
00:00:27 #4938 [Verbose] > │ let v16 : float = v10 * v10 │
00:00:27 #4939 [Verbose] > │ let v17 : float = v15 + v16 │
00:00:27 #4940 [Verbose] > │ let v18 : float = sqrt v17 │
00:00:27 #4941 [Verbose] > │ let v19 : float = 0.5 * v3 │
00:00:27 #4942 [Verbose] > │ let v20 : float = v18 ** 2.0 │
00:00:27 #4943 [Verbose] > │ let v21 : float = v19 * v20 │
00:00:27 #4944 [Verbose] > │ UH6_0(v21, v12) │
00:00:27 #4945 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:27 #4946 [Verbose] > │ v1 │
00:00:27 #4947 [Verbose] > │ and method14 (v0 : UH6, v1 : float) : float = │
00:00:27 #4948 [Verbose] > │ match v0 with │
00:00:27 #4949 [Verbose] > │ | UH6_0(v2, v3) -> (* Cons *) │
00:00:27 #4950 [Verbose] > │ let v4 : float = v1 + v2 │
00:00:27 #4951 [Verbose] > │ method14(v3, v4) │
00:00:27 #4952 [Verbose] > │ | UH6_1 -> (* Nil *) │
00:00:27 #4953 [Verbose] > │ v1 │
00:00:27 #4954 [Verbose] > │ and method12 (v0 : UH4, v1 : UH5) : UH5 = │
00:00:27 #4955 [Verbose] > │ match v0 with │
00:00:27 #4956 [Verbose] > │ | UH4_0(v2, v3) -> (* Cons *) │
00:00:27 #4957 [Verbose] > │ let v4 : UH5 = method12(v3, v1) │
00:00:27 #4958 [Verbose] > │ let v18 : US0 = │
00:00:27 #4959 [Verbose] > │ match v2 with │
00:00:27 #4960 [Verbose] > │ | UH0_0(v5, v6, v7, v8, v9, v10, v11, v12, v13, v14) -> (* Cons │
00:00:27 #4961 [Verbose] > │ *) │
00:00:27 #4962 [Verbose] > │ US0_1(v5, v6, v7, v8, v9, v10, v11, v12, v13) │
00:00:27 #4963 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:27 #4964 [Verbose] > │ US0_0 │
00:00:27 #4965 [Verbose] > │ let struct (v46 : float, v47 : float, v48 : float, v49 : float, v50 │
00:00:27 #4966 [Verbose] > │ : float, v51 : float, v52 : float, v53 : float, v54 : float) = │
00:00:27 #4967 [Verbose] > │ match v18 with │
00:00:27 #4968 [Verbose] > │ | US0_0 -> (* None *) │
00:00:27 #4969 [Verbose] > │ failwith<struct (float * float * float * float * float * │
00:00:27 #4970 [Verbose] > │ float * float * float * float)> "Option does not have a value." │
00:00:27 #4971 [Verbose] > │ | US0_1(v19, v20, v21, v22, v23, v24, v25, v26, v27) -> (* Some │
00:00:27 #4972 [Verbose] > │ *) │
00:00:27 #4973 [Verbose] > │ struct (v19, v20, v21, v22, v23, v24, v25, v26, v27) │
00:00:27 #4974 [Verbose] > │ let v55 : UH6 = UH6_1 │
00:00:27 #4975 [Verbose] > │ let v56 : UH6 = method13(v2, v55) │
00:00:27 #4976 [Verbose] > │ let v57 : float = 0.0 │
00:00:27 #4977 [Verbose] > │ let v58 : float = method14(v56, v57) │
00:00:27 #4978 [Verbose] > │ UH5_0(v51, v58, v4) │
00:00:27 #4979 [Verbose] > │ | UH4_1 -> (* Nil *) │
00:00:27 #4980 [Verbose] > │ v1 │
00:00:27 #4981 [Verbose] > │ and method15 (v0 : UH5, v1 : UH6, v2 : UH6) : struct (UH6 * UH6) = │
00:00:27 #4982 [Verbose] > │ match v0 with │
00:00:27 #4983 [Verbose] > │ | UH5_0(v3, v4, v5) -> (* Cons *) │
00:00:27 #4984 [Verbose] > │ let v6 : UH6 = UH6_0(v3, v1) │
00:00:27 #4985 [Verbose] > │ let v7 : UH6 = UH6_0(v4, v2) │
00:00:27 #4986 [Verbose] > │ method15(v5, v6, v7) │
00:00:27 #4987 [Verbose] > │ | UH5_1 -> (* Nil *) │
00:00:27 #4988 [Verbose] > │ struct (v1, v2) │
00:00:27 #4989 [Verbose] > │ and method16 (v0 : UH6, v1 : UH6) : UH6 = │
00:00:27 #4990 [Verbose] > │ match v0 with │
00:00:27 #4991 [Verbose] > │ | UH6_0(v2, v3) -> (* Cons *) │
00:00:27 #4992 [Verbose] > │ let v4 : UH6 = UH6_0(v2, v1) │
00:00:27 #4993 [Verbose] > │ method16(v3, v4) │
00:00:27 #4994 [Verbose] > │ | UH6_1 -> (* Nil *) │
00:00:27 #4995 [Verbose] > │ v1 │
00:00:27 #4996 [Verbose] > │ and method18 (v0 : UH1, v1 : UH1) : UH1 = │
00:00:27 #4997 [Verbose] > │ match v0 with │
00:00:27 #4998 [Verbose] > │ | UH1_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11) -> (* Cons *) │
00:00:27 #4999 [Verbose] > │ let v12 : UH1 = UH1_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v1) │
00:00:27 #5000 [Verbose] > │ method18(v11, v12) │
00:00:27 #5001 [Verbose] > │ | UH1_1 -> (* Nil *) │
00:00:27 #5002 [Verbose] > │ v1 │
00:00:27 #5003 [Verbose] > │ and method17 (v0 : UH1, v1 : UH1, v2 : UH1) : UH1 = │
00:00:27 #5004 [Verbose] > │ match v1 with │
00:00:27 #5005 [Verbose] > │ | UH1_0(v3, v4, v5, v6, v7, v8, v9, v10, v11, v12) -> (* Cons *) │
00:00:27 #5006 [Verbose] > │ match v2 with │
00:00:27 #5007 [Verbose] > │ | UH1_0(v13, v14, v15, v16, v17, v18, v19, v20, v21, v22) -> (* Cons │
00:00:27 #5008 [Verbose] > │ *) │
00:00:27 #5009 [Verbose] > │ let v23 : float = v3 + v13 │
00:00:27 #5010 [Verbose] > │ let v24 : float = v4 + v14 │
00:00:27 #5011 [Verbose] > │ let v25 : float = v8 + v18 │
00:00:27 #5012 [Verbose] > │ let v26 : float = v5 + v15 │
00:00:27 #5013 [Verbose] > │ let v27 : float = v6 + v16 │
00:00:27 #5014 [Verbose] > │ let v28 : float = v7 + v17 │
00:00:27 #5015 [Verbose] > │ let v29 : float = v9 + v19 │
00:00:27 #5016 [Verbose] > │ let v30 : float = v10 + v20 │
00:00:27 #5017 [Verbose] > │ let v31 : float = v11 + v21 │
00:00:27 #5018 [Verbose] > │ let v32 : UH1 = UH1_0(v23, v24, v26, v27, v28, v25, v29, v30, │
00:00:27 #5019 [Verbose] > │ v31, v0) │
00:00:27 #5020 [Verbose] > │ method17(v32, v12, v22) │
00:00:27 #5021 [Verbose] > │ | _ -> │
00:00:27 #5022 [Verbose] > │ let v34 : UH1 = UH1_1 │
00:00:27 #5023 [Verbose] > │ method18(v0, v34) │
00:00:27 #5024 [Verbose] > │ | _ -> │
00:00:27 #5025 [Verbose] > │ let v37 : UH1 = UH1_1 │
00:00:27 #5026 [Verbose] > │ method18(v0, v37) │
00:00:27 #5027 [Verbose] > │ and closure8 (v0 : float, v1 : (UH0 -> UH1)) (v2 : UH0) : UH0 = │
00:00:27 #5028 [Verbose] > │ let v3 : UH1 = v1 v2 │
00:00:27 #5029 [Verbose] > │ let v4 : float = v0 / 2.0 │
00:00:27 #5030 [Verbose] > │ let v5 : UH0 = UH0_1 │
00:00:27 #5031 [Verbose] > │ let v6 : UH0 = method1(v4, v5, v3, v2) │
00:00:27 #5032 [Verbose] > │ let v7 : UH1 = v1 v6 │
00:00:27 #5033 [Verbose] > │ let v8 : UH0 = UH0_1 │
00:00:27 #5034 [Verbose] > │ let v9 : UH0 = method1(v4, v8, v7, v2) │
00:00:27 #5035 [Verbose] > │ let v10 : UH1 = v1 v9 │
00:00:27 #5036 [Verbose] > │ let v11 : UH0 = UH0_1 │
00:00:27 #5037 [Verbose] > │ let v12 : UH0 = method1(v0, v11, v10, v2) │
00:00:27 #5038 [Verbose] > │ let v13 : UH1 = v1 v12 │
00:00:27 #5039 [Verbose] > │ let v14 : float = v0 / 6.0 │
00:00:27 #5040 [Verbose] > │ let v15 : UH1 = UH1_1 │
00:00:27 #5041 [Verbose] > │ let v16 : UH1 = method17(v15, v3, v7) │
00:00:27 #5042 [Verbose] > │ let v17 : UH1 = UH1_1 │
00:00:27 #5043 [Verbose] > │ let v18 : UH1 = method17(v17, v16, v7) │
00:00:27 #5044 [Verbose] > │ let v19 : UH1 = UH1_1 │
00:00:27 #5045 [Verbose] > │ let v20 : UH1 = method17(v19, v18, v10) │
00:00:27 #5046 [Verbose] > │ let v21 : UH1 = UH1_1 │
00:00:27 #5047 [Verbose] > │ let v22 : UH1 = method17(v21, v20, v10) │
00:00:27 #5048 [Verbose] > │ let v23 : UH1 = UH1_1 │
00:00:27 #5049 [Verbose] > │ let v24 : UH1 = method17(v23, v22, v13) │
00:00:27 #5050 [Verbose] > │ let v25 : UH0 = UH0_1 │
00:00:27 #5051 [Verbose] > │ let v26 : UH0 = method1(v14, v25, v24, v2) │
00:00:27 #5052 [Verbose] > │ v26 │
00:00:27 #5053 [Verbose] > │ and closure7 (v0 : float) (v1 : (UH0 -> UH1)) : (UH0 -> UH0) = │
00:00:27 #5054 [Verbose] > │ closure8(v0, v1) │
00:00:27 #5055 [Verbose] > │ and closure6 () (v0 : float) : ((UH0 -> UH1) -> (UH0 -> UH0)) = │
00:00:27 #5056 [Verbose] > │ closure7(v0) │
00:00:27 #5057 [Verbose] > │ and method19 (v0 : UH4, v1 : UH5) : UH5 = │
00:00:27 #5058 [Verbose] > │ match v0 with │
00:00:27 #5059 [Verbose] > │ | UH4_0(v2, v3) -> (* Cons *) │
00:00:27 #5060 [Verbose] > │ let v4 : UH5 = method19(v3, v1) │
00:00:27 #5061 [Verbose] > │ let v18 : US0 = │
00:00:27 #5062 [Verbose] > │ match v2 with │
00:00:27 #5063 [Verbose] > │ | UH0_0(v5, v6, v7, v8, v9, v10, v11, v12, v13, v14) -> (* Cons │
00:00:27 #5064 [Verbose] > │ *) │
00:00:27 #5065 [Verbose] > │ US0_1(v5, v6, v7, v8, v9, v10, v11, v12, v13) │
00:00:27 #5066 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:27 #5067 [Verbose] > │ US0_0 │
00:00:27 #5068 [Verbose] > │ let struct (v46 : float, v47 : float, v48 : float, v49 : float, v50 │
00:00:27 #5069 [Verbose] > │ : float, v51 : float, v52 : float, v53 : float, v54 : float) = │
00:00:27 #5070 [Verbose] > │ match v18 with │
00:00:27 #5071 [Verbose] > │ | US0_0 -> (* None *) │
00:00:27 #5072 [Verbose] > │ failwith<struct (float * float * float * float * float * │
00:00:27 #5073 [Verbose] > │ float * float * float * float)> "Option does not have a value." │
00:00:27 #5074 [Verbose] > │ | US0_1(v19, v20, v21, v22, v23, v24, v25, v26, v27) -> (* Some │
00:00:27 #5075 [Verbose] > │ *) │
00:00:27 #5076 [Verbose] > │ struct (v19, v20, v21, v22, v23, v24, v25, v26, v27) │
00:00:27 #5077 [Verbose] > │ let v55 : UH6 = UH6_1 │
00:00:27 #5078 [Verbose] > │ let v56 : UH6 = method13(v2, v55) │
00:00:27 #5079 [Verbose] > │ let v57 : float = 0.0 │
00:00:27 #5080 [Verbose] > │ let v58 : float = method14(v56, v57) │
00:00:27 #5081 [Verbose] > │ UH5_0(v51, v58, v4) │
00:00:27 #5082 [Verbose] > │ | UH4_1 -> (* Nil *) │
00:00:27 #5083 [Verbose] > │ v1 │
00:00:27 #5084 [Verbose] > │ and method21 (v0 : UH6, v1 : int32) : int32 = │
00:00:27 #5085 [Verbose] > │ match v0 with │
00:00:27 #5086 [Verbose] > │ | UH6_0(v2, v3) -> (* Cons *) │
00:00:27 #5087 [Verbose] > │ let v4 : int32 = v1 + 1 │
00:00:27 #5088 [Verbose] > │ method21(v3, v4) │
00:00:27 #5089 [Verbose] > │ | UH6_1 -> (* Nil *) │
00:00:27 #5090 [Verbose] > │ v1 │
00:00:27 #5091 [Verbose] > │ and method22 (v0 : (float []), v1 : UH6, v2 : int32) : int32 = │
00:00:27 #5092 [Verbose] > │ match v1 with │
00:00:27 #5093 [Verbose] > │ | UH6_0(v3, v4) -> (* Cons *) │
00:00:27 #5094 [Verbose] > │ v0.[int v2] <- v3 │
00:00:27 #5095 [Verbose] > │ let v5 : int32 = v2 + 1 │
00:00:27 #5096 [Verbose] > │ method22(v0, v4, v5) │
00:00:27 #5097 [Verbose] > │ | UH6_1 -> (* Nil *) │
00:00:27 #5098 [Verbose] > │ v2 │
00:00:27 #5099 [Verbose] > │ and method20 (v0 : UH6) : (float []) = │
00:00:27 #5100 [Verbose] > │ let v1 : int32 = 0 │
00:00:27 #5101 [Verbose] > │ let v2 : int32 = method21(v0, v1) │
00:00:27 #5102 [Verbose] > │ let v3 : (float []) = Array.zeroCreate<float> (v2) │
00:00:27 #5103 [Verbose] > │ let v4 : int32 = 0 │
00:00:27 #5104 [Verbose] > │ let v5 : int32 = method22(v3, v0, v4) │
00:00:27 #5105 [Verbose] > │ v3 │
00:00:27 #5106 [Verbose] > │ and method23 (v0 : (struct (string * (float []) * (float [])) [])) : (struct │
00:00:27 #5107 [Verbose] > │ (string * (float []) * (float [])) []) = │
00:00:27 #5108 [Verbose] > │ v0 │
00:00:27 #5109 [Verbose] > │ and method0 () : struct (string * string * string * (struct (string * (float │
00:00:27 #5110 [Verbose] > │ []) * (float [])) [])) = │
00:00:27 #5111 [Verbose] > │ let v0 : (float -> ((UH0 -> UH1) -> (UH0 -> UH0))) = closure0() │
00:00:27 #5112 [Verbose] > │ let v1 : ((UH0 -> UH1) -> (UH0 -> UH0)) = v0 0.03 │
00:00:27 #5113 [Verbose] > │ let v2 : (UH0 -> UH1) = closure3() │
00:00:27 #5114 [Verbose] > │ let v3 : (UH0 -> UH0) = v1 v2 │
00:00:27 #5115 [Verbose] > │ let v4 : UH4 = UH4_1 │
00:00:27 #5116 [Verbose] > │ let v5 : int32 = 0 │
00:00:27 #5117 [Verbose] > │ let v6 : UH4 = method9(v3, v4, v5) │
00:00:27 #5118 [Verbose] > │ let v7 : UH5 = UH5_1 │
00:00:27 #5119 [Verbose] > │ let v8 : UH5 = method12(v6, v7) │
00:00:27 #5120 [Verbose] > │ let v9 : UH6 = UH6_1 │
00:00:27 #5121 [Verbose] > │ let v10 : UH6 = UH6_1 │
00:00:27 #5122 [Verbose] > │ let struct (v11 : UH6, v12 : UH6) = method15(v8, v9, v10) │
00:00:27 #5123 [Verbose] > │ let v13 : UH6 = UH6_1 │
00:00:27 #5124 [Verbose] > │ let v14 : UH6 = method16(v11, v13) │
00:00:27 #5125 [Verbose] > │ let v15 : UH6 = UH6_1 │
00:00:27 #5126 [Verbose] > │ let v16 : UH6 = method16(v12, v15) │
00:00:27 #5127 [Verbose] > │ let v17 : (float -> ((UH0 -> UH1) -> (UH0 -> UH0))) = closure6() │
00:00:27 #5128 [Verbose] > │ let v18 : ((UH0 -> UH1) -> (UH0 -> UH0)) = v17 0.03 │
00:00:27 #5129 [Verbose] > │ let v19 : (UH0 -> UH0) = v18 v2 │
00:00:27 #5130 [Verbose] > │ let v20 : UH4 = UH4_1 │
00:00:27 #5131 [Verbose] > │ let v21 : int32 = 0 │
00:00:27 #5132 [Verbose] > │ let v22 : UH4 = method9(v19, v20, v21) │
00:00:27 #5133 [Verbose] > │ let v23 : UH5 = UH5_1 │
00:00:27 #5134 [Verbose] > │ let v24 : UH5 = method19(v22, v23) │
00:00:27 #5135 [Verbose] > │ let v25 : UH6 = UH6_1 │
00:00:27 #5136 [Verbose] > │ let v26 : UH6 = UH6_1 │
00:00:27 #5137 [Verbose] > │ let struct (v27 : UH6, v28 : UH6) = method15(v24, v25, v26) │
00:00:27 #5138 [Verbose] > │ let v29 : UH6 = UH6_1 │
00:00:27 #5139 [Verbose] > │ let v30 : UH6 = method16(v27, v29) │
00:00:27 #5140 [Verbose] > │ let v31 : UH6 = UH6_1 │
00:00:27 #5141 [Verbose] > │ let v32 : UH6 = method16(v28, v31) │
00:00:27 #5142 [Verbose] > │ let v33 : (float []) = method20(v14) │
00:00:27 #5143 [Verbose] > │ let v34 : (float []) = method20(v16) │
00:00:27 #5144 [Verbose] > │ let v35 : (float []) = method20(v30) │
00:00:27 #5145 [Verbose] > │ let v36 : (float []) = method20(v32) │
00:00:27 #5146 [Verbose] > │ let v37 : string = "euler-cromer" │
00:00:27 #5147 [Verbose] > │ let v38 : string = "runge-kutta 4" │
00:00:27 #5148 [Verbose] > │ let v39 : (struct (string * (float []) * (float [])) []) = [|struct │
00:00:27 #5149 [Verbose] > │ (v37, v33, v34); struct (v38, v35, v36)|] │
00:00:27 #5150 [Verbose] > │ let v40 : (struct (string * (float []) * (float [])) []) = method23(v39) │
00:00:27 #5151 [Verbose] > │ let v41 : string = "system kinetic energy versus time" │
00:00:27 #5152 [Verbose] > │ let v42 : string = "time (s)" │
00:00:27 #5153 [Verbose] > │ let v43 : string = "system kinetic energy (j)" │
00:00:27 #5154 [Verbose] > │ struct (v41, v42, v43, v40) │
00:00:27 #5155 [Verbose] > │ method0() │
00:00:27 #5156 [Verbose] > │ │
00:00:27 #5157 [Verbose] > │ │
00:00:27 #5158 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:27 #5159 [Verbose] >
00:00:27 #5160 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:27 #5161 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:27 #5162 [Verbose] > │ ### wave 1 │
00:00:27 #5163 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:27 #5164 [Verbose] >
00:00:27 #5165 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:27 #5166 [Verbose] > // // test
00:00:27 #5167 [Verbose] >
00:00:27 #5168 [Verbose] > inl linear_spring k re (particle_state st1) (particle_state st2) =
00:00:27 #5169 [Verbose] > inl r1 = st1.pos_vec
00:00:27 #5170 [Verbose] > inl r2 = st2.pos_vec
00:00:27 #5171 [Verbose] > inl r21 = r2 ^-^ r1
00:00:27 #5172 [Verbose] > inl r21mag = magnitude r21
00:00:27 #5173 [Verbose] > -k * (r21mag - re) *^ r21 ^/ r21mag
00:00:27 #5174 [Verbose] >
00:00:27 #5175 [Verbose] > inl fixed_linear_spring k re r1 =
00:00:27 #5176 [Verbose] > inl (particle_state default_particle_state') = default_particle_state ()
00:00:27 #5177 [Verbose] > linear_spring k re (particle_state { default_particle_state' with pos_vec =
00:00:27 #5178 [Verbose] > r1 })
00:00:27 #5179 [Verbose] >
00:00:27 #5180 [Verbose] > inl forces_string () =
00:00:27 #5181 [Verbose] > [[
00:00:27 #5182 [Verbose] > ExternalForce (0, fixed_linear_spring 5384 0 (zero_vec ()))
00:00:27 #5183 [Verbose] > ExternalForce (63, fixed_linear_spring 5384 0 (0.65 *^ i_hat ()))
00:00:27 #5184 [Verbose] > ]] /@ (
00:00:27 #5185 [Verbose] > listm'.init_series 0 59 1
00:00:27 #5186 [Verbose] > |> listm.map (fun n => InternalForce (n, n + 1, linear_spring 5384 0))
00:00:27 #5187 [Verbose] > )
00:00:27 #5188 [Verbose] >
00:00:27 #5189 [Verbose] > inl string_update dt =
00:00:27 #5190 [Verbose] > update_mps (runge_kutta_4 dt) (forces_string ())
00:00:27 #5191 [Verbose] >
00:00:27 #5192 [Verbose] > inl string_initial_overtone n =
00:00:27 #5193 [Verbose] > inl ball_mass = 0.0008293 * 0.65 / 64
00:00:27 #5194 [Verbose] > inl (particle_state default_particle_state') = default_particle_state ()
00:00:27 #5195 [Verbose] > listm'.init_series 0.01 0.64 0.01
00:00:27 #5196 [Verbose] > |> listm.map (fun x =>
00:00:27 #5197 [Verbose] > inl y = 0.005 * sin (conv n * pi * x / 0.65)
00:00:27 #5198 [Verbose] > particle_state {
00:00:27 #5199 [Verbose] > default_particle_state' with
00:00:27 #5200 [Verbose] > mass = ball_mass
00:00:27 #5201 [Verbose] > pos_vec = x *^ i_hat () ^+^ y *^ j_hat ()
00:00:27 #5202 [Verbose] > velocity = zero_vec ()
00:00:27 #5203 [Verbose] > }
00:00:27 #5204 [Verbose] > )
00:00:27 #5205 [Verbose] > |> multi_particle_state
00:00:27 #5206 [Verbose] >
00:00:27 #5207 [Verbose] > inl string_initial_pluck () =
00:00:27 #5208 [Verbose] > inl ball_mass = 0.0008293 * 0.65 / 64
00:00:27 #5209 [Verbose] > inl (particle_state default_particle_state') = default_particle_state ()
00:00:27 #5210 [Verbose] > listm'.init_series 0.01 0.64 0.01
00:00:27 #5211 [Verbose] > |> listm.map (fun x =>
00:00:27 #5212 [Verbose] > inl y =
00:00:27 #5213 [Verbose] > inl n = if x <= 0.51 then 0 else 0.65
00:00:27 #5214 [Verbose] > 0.005 / (0.51 - n) * (x - n)
00:00:27 #5215 [Verbose] > particle_state {
00:00:27 #5216 [Verbose] > default_particle_state' with
00:00:27 #5217 [Verbose] > mass = ball_mass
00:00:27 #5218 [Verbose] > pos_vec = x *^ i_hat () ^+^ y *^ j_hat ()
00:00:27 #5219 [Verbose] > velocity = zero_vec ()
00:00:27 #5220 [Verbose] > }
00:00:27 #5221 [Verbose] > )
00:00:27 #5222 [Verbose] > |> multi_particle_state
00:00:27 #5223 [Verbose] >
00:00:27 #5224 [Verbose] > let main () =
00:00:27 #5225 [Verbose] > inl ~frames = listm'.init_series 0 9 1f64
00:00:27 #5226 [Verbose] > inl initial_state = string_initial_overtone 3i32
00:00:27 #5227 [Verbose] > inl frames =
00:00:27 #5228 [Verbose] > frames
00:00:27 #5229 [Verbose] > |> listm.map (fun n =>
00:00:27 #5230 [Verbose] > inl (multi_particle_state sts) =
00:00:27 #5231 [Verbose] > seq.iterate' (string_update 0.000025) initial_state |> fun f =>
00:00:27 #5232 [Verbose] > f 0f64
00:00:27 #5233 [Verbose] > inl rs =
00:00:27 #5234 [Verbose] > [[ zero_vec () ]]
00:00:27 #5235 [Verbose] > /@ (sts |> listm.map (fun (particle_state st) => st.pos_vec))
00:00:27 #5236 [Verbose] > /@ [[ 0.65 *^ i_hat () ]]
00:00:27 #5237 [Verbose] > inl x, y =
00:00:27 #5238 [Verbose] > rs
00:00:27 #5239 [Verbose] > |> listm.map (fun r => r.x, r.y)
00:00:27 #5240 [Verbose] > |> listm'.unzip
00:00:27 #5241 [Verbose] > inl x : a i32 _ = x |> listm.toArray
00:00:27 #5242 [Verbose] > inl y : a i32 _ = y |> listm.toArray
00:00:27 #5243 [Verbose] > x, y
00:00:27 #5244 [Verbose] > )
00:00:27 #5245 [Verbose] > |> listm.toArray : a i32 _
00:00:27 #5246 [Verbose] >
00:00:27 #5247 [Verbose] > inl n = 0i32
00:00:27 #5248 [Verbose] >
00:00:27 #5249 [Verbose] > inl x, y = index frames n
00:00:27 #5250 [Verbose] >
00:00:27 #5251 [Verbose] > "wave",
00:00:27 #5252 [Verbose] > "position (m)",
00:00:27 #5253 [Verbose] > "displacement (m)",
00:00:27 #5254 [Verbose] > ;[[
00:00:27 #5255 [Verbose] > ($"$\"{!n}\"" : string), x, y
00:00:27 #5256 [Verbose] > ]]
00:00:27 #5257 [Verbose] > Building /tmp/!dotnet-repl/20240325-2026-0377-7735-7f0a50729a3c/main.spi
00:00:28 #5258 [Verbose] >
00:00:28 #5259 [Verbose] > ╭─[ 216.55ms - return value ]──────────────────────────────────────────────────╮
00:00:28 #5260 [Verbose] > │ <svg width="640" height="480" viewBox="0 0 640 480" │
00:00:28 #5261 [Verbose] > │ xmlns="http://www.w3.org/2000/svg"> │
00:00:28 #5262 [Verbose] > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414" │
00:00:28 #5263 [Verbose] > │ stroke="none"/> │
00:00:28 #5264 [Verbose] > │ <text x="320" y="10" dy="0.76em" text-anchor="middle" │
00:00:28 #5265 [Verbose] > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1" │
00:00:28 #5266 [Verbose] > │ fill="#FFFFFF"> │
00:00:28 #5267 [Verbose] > │ wave │
00:00:28 #5268 [Verbose] > │ </text> │
00:00:28 #5269 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="62" y1="424" x2="62" │
00:00:28 #5270 [Verbose] > │ y2="75"/> │
00:00:28 #5271 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:00:28 #5272 [Verbose] > │ y2="75"/> │
00:00:28 #5273 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="77" y1="424" x2="77" │
00:00:28 #5274 [Verbose] > │ y2="75"/> │
00:00:28 #5275 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="85" y1="424" x2="85" │
00:00:28 #5276 [Verbose] > │ y2="75"/> │
00:00:28 #5277 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="93" y1="424" x2="93" │
00:00:28 #5278 [Verbose] > │ y2... │
00:00:28 #5279 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:28 #5280 [Verbose] >
00:00:28 #5281 [Verbose] > ╭─[ 219.45ms - stdout ]────────────────────────────────────────────────────────╮
00:00:28 #5282 [Verbose] > │ type UH0 = │
00:00:28 #5283 [Verbose] > │ | UH0_0 of float * UH0 │
00:00:28 #5284 [Verbose] > │ | UH0_1 │
00:00:28 #5285 [Verbose] > │ and UH1 = │
00:00:28 #5286 [Verbose] > │ | UH1_0 of (float []) * (float []) * UH1 │
00:00:28 #5287 [Verbose] > │ | UH1_1 │
00:00:28 #5288 [Verbose] > │ let rec method3 (v0 : UH0, v1 : int32) : int32 = │
00:00:28 #5289 [Verbose] > │ match v0 with │
00:00:28 #5290 [Verbose] > │ | UH0_0(v2, v3) -> (* Cons *) │
00:00:28 #5291 [Verbose] > │ let v4 : int32 = v1 + 1 │
00:00:28 #5292 [Verbose] > │ method3(v3, v4) │
00:00:28 #5293 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:28 #5294 [Verbose] > │ v1 │
00:00:28 #5295 [Verbose] > │ and method4 (v0 : (float []), v1 : UH0, v2 : int32) : int32 = │
00:00:28 #5296 [Verbose] > │ match v1 with │
00:00:28 #5297 [Verbose] > │ | UH0_0(v3, v4) -> (* Cons *) │
00:00:28 #5298 [Verbose] > │ v0.[int v2] <- v3 │
00:00:28 #5299 [Verbose] > │ let v5 : int32 = v2 + 1 │
00:00:28 #5300 [Verbose] > │ method4(v0, v4, v5) │
00:00:28 #5301 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:28 #5302 [Verbose] > │ v2 │
00:00:28 #5303 [Verbose] > │ and method2 (v0 : UH0) : (float []) = │
00:00:28 #5304 [Verbose] > │ let v1 : int32 = 0 │
00:00:28 #5305 [Verbose] > │ let v2 : int32 = method3(v0, v1) │
00:00:28 #5306 [Verbose] > │ let v3 : (float []) = Array.zeroCreate<float> (v2) │
00:00:28 #5307 [Verbose] > │ let v4 : int32 = 0 │
00:00:28 #5308 [Verbose] > │ let v5 : int32 = method4(v3, v0, v4) │
00:00:28 #5309 [Verbose] > │ v3 │
00:00:28 #5310 [Verbose] > │ and method1 (v0 : UH0, v1 : UH1) : UH1 = │
00:00:28 #5311 [Verbose] > │ match v0 with │
00:00:28 #5312 [Verbose] > │ | UH0_0(v2, v3) -> (* Cons *) │
00:00:28 #5313 [Verbose] > │ let v4 : UH1 = method1(v3, v1) │
00:00:28 #5314 [Verbose] > │ let v5 : float = 0.0 │
00:00:28 #5315 [Verbose] > │ let v6 : float = 0.01 │
00:00:28 #5316 [Verbose] > │ let v7 : float = 0.02 │
00:00:28 #5317 [Verbose] > │ let v8 : float = 0.03 │
00:00:28 #5318 [Verbose] > │ let v9 : float = 0.04 │
00:00:28 #5319 [Verbose] > │ let v10 : float = 0.05 │
00:00:28 #5320 [Verbose] > │ let v11 : float = 0.060000000000000005 │
00:00:28 #5321 [Verbose] > │ let v12 : float = 0.06999999999999999 │
00:00:28 #5322 [Verbose] > │ let v13 : float = 0.08 │
00:00:28 #5323 [Verbose] > │ let v14 : float = 0.09 │
00:00:28 #5324 [Verbose] > │ let v15 : float = 0.09999999999999999 │
00:00:28 #5325 [Verbose] > │ let v16 : float = 0.11 │
00:00:28 #5326 [Verbose] > │ let v17 : float = 0.12 │
00:00:28 #5327 [Verbose] > │ let v18 : float = 0.13 │
00:00:28 #5328 [Verbose] > │ let v19 : float = 0.14 │
00:00:28 #5329 [Verbose] > │ let v20 : float = 0.15000000000000002 │
00:00:28 #5330 [Verbose] > │ let v21 : float = 0.16 │
00:00:28 #5331 [Verbose] > │ let v22 : float = 0.17 │
00:00:28 #5332 [Verbose] > │ let v23 : float = 0.18000000000000002 │
00:00:28 #5333 [Verbose] > │ let v24 : float = 0.19 │
00:00:28 #5334 [Verbose] > │ let v25 : float = 0.2 │
00:00:28 #5335 [Verbose] > │ let v26 : float = 0.21000000000000002 │
00:00:28 #5336 [Verbose] > │ let v27 : float = 0.22 │
00:00:28 #5337 [Verbose] > │ let v28 : float = 0.23 │
00:00:28 #5338 [Verbose] > │ let v29 : float = 0.24000000000000002 │
00:00:28 #5339 [Verbose] > │ let v30 : float = 0.25 │
00:00:28 #5340 [Verbose] > │ let v31 : float = 0.26 │
00:00:28 #5341 [Verbose] > │ let v32 : float = 0.27 │
00:00:28 #5342 [Verbose] > │ let v33 : float = 0.28 │
00:00:28 #5343 [Verbose] > │ let v34 : float = 0.29000000000000004 │
00:00:28 #5344 [Verbose] > │ let v35 : float = 0.3 │
00:00:28 #5345 [Verbose] > │ let v36 : float = 0.31 │
00:00:28 #5346 [Verbose] > │ let v37 : float = 0.32 │
00:00:28 #5347 [Verbose] > │ let v38 : float = 0.33 │
00:00:28 #5348 [Verbose] > │ let v39 : float = 0.34 │
00:00:28 #5349 [Verbose] > │ let v40 : float = 0.35000000000000003 │
00:00:28 #5350 [Verbose] > │ let v41 : float = 0.36000000000000004 │
00:00:28 #5351 [Verbose] > │ let v42 : float = 0.37 │
00:00:28 #5352 [Verbose] > │ let v43 : float = 0.38 │
00:00:28 #5353 [Verbose] > │ let v44 : float = 0.39 │
00:00:28 #5354 [Verbose] > │ let v45 : float = 0.4 │
00:00:28 #5355 [Verbose] > │ let v46 : float = 0.41000000000000003 │
00:00:28 #5356 [Verbose] > │ let v47 : float = 0.42000000000000004 │
00:00:28 #5357 [Verbose] > │ let v48 : float = 0.43 │
00:00:28 #5358 [Verbose] > │ let v49 : float = 0.44 │
00:00:28 #5359 [Verbose] > │ let v50 : float = 0.45 │
00:00:28 #5360 [Verbose] > │ let v51 : float = 0.46 │
00:00:28 #5361 [Verbose] > │ let v52 : float = 0.47000000000000003 │
00:00:28 #5362 [Verbose] > │ let v53 : float = 0.48000000000000004 │
00:00:28 #5363 [Verbose] > │ let v54 : float = 0.49 │
00:00:28 #5364 [Verbose] > │ let v55 : float = 0.5 │
00:00:28 #5365 [Verbose] > │ let v56 : float = 0.51 │
00:00:28 #5366 [Verbose] > │ let v57 : float = 0.52 │
00:00:28 #5367 [Verbose] > │ let v58 : float = 0.53 │
00:00:28 #5368 [Verbose] > │ let v59 : float = 0.54 │
00:00:28 #5369 [Verbose] > │ let v60 : float = 0.55 │
00:00:28 #5370 [Verbose] > │ let v61 : float = 0.56 │
00:00:28 #5371 [Verbose] > │ let v62 : float = 0.5700000000000001 │
00:00:28 #5372 [Verbose] > │ let v63 : float = 0.5800000000000001 │
00:00:28 #5373 [Verbose] > │ let v64 : float = 0.59 │
00:00:28 #5374 [Verbose] > │ let v65 : float = 0.6 │
00:00:28 #5375 [Verbose] > │ let v66 : float = 0.61 │
00:00:28 #5376 [Verbose] > │ let v67 : float = 0.62 │
00:00:28 #5377 [Verbose] > │ let v68 : float = 0.63 │
00:00:28 #5378 [Verbose] > │ let v69 : float = 0.64 │
00:00:28 #5379 [Verbose] > │ let v70 : float = 0.65 │
00:00:28 #5380 [Verbose] > │ let v71 : UH0 = UH0_1 │
00:00:28 #5381 [Verbose] > │ let v72 : UH0 = UH0_0(v70, v71) │
00:00:28 #5382 [Verbose] > │ let v73 : UH0 = UH0_0(v69, v72) │
00:00:28 #5383 [Verbose] > │ let v74 : UH0 = UH0_0(v68, v73) │
00:00:28 #5384 [Verbose] > │ let v75 : UH0 = UH0_0(v67, v74) │
00:00:28 #5385 [Verbose] > │ let v76 : UH0 = UH0_0(v66, v75) │
00:00:28 #5386 [Verbose] > │ let v77 : UH0 = UH0_0(v65, v76) │
00:00:28 #5387 [Verbose] > │ let v78 : UH0 = UH0_0(v64, v77) │
00:00:28 #5388 [Verbose] > │ let v79 : UH0 = UH0_0(v63, v78) │
00:00:28 #5389 [Verbose] > │ let v80 : UH0 = UH0_0(v62, v79) │
00:00:28 #5390 [Verbose] > │ let v81 : UH0 = UH0_0(v61, v80) │
00:00:28 #5391 [Verbose] > │ let v82 : UH0 = UH0_0(v60, v81) │
00:00:28 #5392 [Verbose] > │ let v83 : UH0 = UH0_0(v59, v82) │
00:00:28 #5393 [Verbose] > │ let v84 : UH0 = UH0_0(v58, v83) │
00:00:28 #5394 [Verbose] > │ let v85 : UH0 = UH0_0(v57, v84) │
00:00:28 #5395 [Verbose] > │ let v86 : UH0 = UH0_0(v56, v85) │
00:00:28 #5396 [Verbose] > │ let v87 : UH0 = UH0_0(v55, v86) │
00:00:28 #5397 [Verbose] > │ let v88 : UH0 = UH0_0(v54, v87) │
00:00:28 #5398 [Verbose] > │ let v89 : UH0 = UH0_0(v53, v88) │
00:00:28 #5399 [Verbose] > │ let v90 : UH0 = UH0_0(v52, v89) │
00:00:28 #5400 [Verbose] > │ let v91 : UH0 = UH0_0(v51, v90) │
00:00:28 #5401 [Verbose] > │ let v92 : UH0 = UH0_0(v50, v91) │
00:00:28 #5402 [Verbose] > │ let v93 : UH0 = UH0_0(v49, v92) │
00:00:28 #5403 [Verbose] > │ let v94 : UH0 = UH0_0(v48, v93) │
00:00:28 #5404 [Verbose] > │ let v95 : UH0 = UH0_0(v47, v94) │
00:00:28 #5405 [Verbose] > │ let v96 : UH0 = UH0_0(v46, v95) │
00:00:28 #5406 [Verbose] > │ let v97 : UH0 = UH0_0(v45, v96) │
00:00:28 #5407 [Verbose] > │ let v98 : UH0 = UH0_0(v44, v97) │
00:00:28 #5408 [Verbose] > │ let v99 : UH0 = UH0_0(v43, v98) │
00:00:28 #5409 [Verbose] > │ let v100 : UH0 = UH0_0(v42, v99) │
00:00:28 #5410 [Verbose] > │ let v101 : UH0 = UH0_0(v41, v100) │
00:00:28 #5411 [Verbose] > │ let v102 : UH0 = UH0_0(v40, v101) │
00:00:28 #5412 [Verbose] > │ let v103 : UH0 = UH0_0(v39, v102) │
00:00:28 #5413 [Verbose] > │ let v104 : UH0 = UH0_0(v38, v103) │
00:00:28 #5414 [Verbose] > │ let v105 : UH0 = UH0_0(v37, v104) │
00:00:28 #5415 [Verbose] > │ let v106 : UH0 = UH0_0(v36, v105) │
00:00:28 #5416 [Verbose] > │ let v107 : UH0 = UH0_0(v35, v106) │
00:00:28 #5417 [Verbose] > │ let v108 : UH0 = UH0_0(v34, v107) │
00:00:28 #5418 [Verbose] > │ let v109 : UH0 = UH0_0(v33, v108) │
00:00:28 #5419 [Verbose] > │ let v110 : UH0 = UH0_0(v32, v109) │
00:00:28 #5420 [Verbose] > │ let v111 : UH0 = UH0_0(v31, v110) │
00:00:28 #5421 [Verbose] > │ let v112 : UH0 = UH0_0(v30, v111) │
00:00:28 #5422 [Verbose] > │ let v113 : UH0 = UH0_0(v29, v112) │
00:00:28 #5423 [Verbose] > │ let v114 : UH0 = UH0_0(v28, v113) │
00:00:28 #5424 [Verbose] > │ let v115 : UH0 = UH0_0(v27, v114) │
00:00:28 #5425 [Verbose] > │ let v116 : UH0 = UH0_0(v26, v115) │
00:00:28 #5426 [Verbose] > │ let v117 : UH0 = UH0_0(v25, v116) │
00:00:28 #5427 [Verbose] > │ let v118 : UH0 = UH0_0(v24, v117) │
00:00:28 #5428 [Verbose] > │ let v119 : UH0 = UH0_0(v23, v118) │
00:00:28 #5429 [Verbose] > │ let v120 : UH0 = UH0_0(v22, v119) │
00:00:28 #5430 [Verbose] > │ let v121 : UH0 = UH0_0(v21, v120) │
00:00:28 #5431 [Verbose] > │ let v122 : UH0 = UH0_0(v20, v121) │
00:00:28 #5432 [Verbose] > │ let v123 : UH0 = UH0_0(v19, v122) │
00:00:28 #5433 [Verbose] > │ let v124 : UH0 = UH0_0(v18, v123) │
00:00:28 #5434 [Verbose] > │ let v125 : UH0 = UH0_0(v17, v124) │
00:00:28 #5435 [Verbose] > │ let v126 : UH0 = UH0_0(v16, v125) │
00:00:28 #5436 [Verbose] > │ let v127 : UH0 = UH0_0(v15, v126) │
00:00:28 #5437 [Verbose] > │ let v128 : UH0 = UH0_0(v14, v127) │
00:00:28 #5438 [Verbose] > │ let v129 : UH0 = UH0_0(v13, v128) │
00:00:28 #5439 [Verbose] > │ let v130 : UH0 = UH0_0(v12, v129) │
00:00:28 #5440 [Verbose] > │ let v131 : UH0 = UH0_0(v11, v130) │
00:00:28 #5441 [Verbose] > │ let v132 : UH0 = UH0_0(v10, v131) │
00:00:28 #5442 [Verbose] > │ let v133 : UH0 = UH0_0(v9, v132) │
00:00:28 #5443 [Verbose] > │ let v134 : UH0 = UH0_0(v8, v133) │
00:00:28 #5444 [Verbose] > │ let v135 : UH0 = UH0_0(v7, v134) │
00:00:28 #5445 [Verbose] > │ let v136 : UH0 = UH0_0(v6, v135) │
00:00:28 #5446 [Verbose] > │ let v137 : UH0 = UH0_0(v5, v136) │
00:00:28 #5447 [Verbose] > │ let v138 : (float []) = method2(v137) │
00:00:28 #5448 [Verbose] > │ let v139 : float = 0.0 │
00:00:28 #5449 [Verbose] > │ let v140 : float = 0.0007224452478461068 │
00:00:28 #5450 [Verbose] > │ let v141 : float = 0.0014297283919934465 │
00:00:28 #5451 [Verbose] > │ let v142 : float = 0.0021070055388626454 │
00:00:28 #5452 [Verbose] > │ let v143 : float = 0.00274006253677335 │
00:00:28 #5453 [Verbose] > │ let v144 : float = 0.0033156132912039757 │
00:00:28 #5454 [Verbose] > │ let v145 : float = 0.0038215786027292415 │
00:00:28 #5455 [Verbose] > │ let v146 : float = 0.004247339675607605 │
00:00:28 #5456 [Verbose] > │ let v147 : float = 0.004583960976582912 │
00:00:28 #5457 [Verbose] > │ let v148 : float = 0.004824377766717757 │
00:00:28 #5458 [Verbose] > │ let v149 : float = 0.00496354437049027 │
00:00:28 #5459 [Verbose] > │ let v150 : float = 0.004998540070400965 │
00:00:28 #5460 [Verbose] > │ let v151 : float = 0.004928630404658255 │
00:00:28 #5461 [Verbose] > │ let v152 : float = 0.004755282581475768 │
00:00:28 #5462 [Verbose] > │ let v153 : float = 0.004482134686478519 │
00:00:28 #5463 [Verbose] > │ let v154 : float = 0.0041149193294682815 │
00:00:28 #5464 [Verbose] > │ let v155 : float = 0.0036613433329888666 │
00:00:28 #5465 [Verbose] > │ let v156 : float = 0.0031309259876915697 │
00:00:28 #5466 [Verbose] > │ let v157 : float = 0.002534799269067951 │
00:00:28 #5467 [Verbose] > │ let v158 : float = 0.0018854742084416015 │
00:00:28 #5468 [Verbose] > │ let v159 : float = 0.0011965783214377905 │
00:00:28 #5469 [Verbose] > │ let v160 : float = 0.00048256960457257535 │
00:00:28 #5470 [Verbose] > │ let v161 : float = -0.00024156689762753317 │
00:00:28 #5471 [Verbose] > │ let v162 : float = -0.0009606335867685418 │
00:00:28 #5472 [Verbose] > │ let v163 : float = -0.001659539265642642 │
00:00:28 #5473 [Verbose] > │ let v164 : float = -0.002323615860218842 │
00:00:28 #5474 [Verbose] > │ let v165 : float = -0.0029389262614623636 │
00:00:28 #5475 [Verbose] > │ let v166 : float = -0.003492556826244686 │
00:00:28 #5476 [Verbose] > │ let v167 : float = -0.003972888398568771 │
00:00:28 #5477 [Verbose] > │ let v168 : float = -0.00436984016313259 │
00:00:28 #5478 [Verbose] > │ let v169 : float = -0.004675081213427074 │
00:00:28 #5479 [Verbose] > │ let v170 : float = -0.004882205394146359 │
00:00:28 #5480 [Verbose] > │ let v171 : float = -0.004986865748457456 │
00:00:28 #5481 [Verbose] > │ let v172 : float = -0.004986865748457456 │
00:00:28 #5482 [Verbose] > │ let v173 : float = -0.004882205394146361 │
00:00:28 #5483 [Verbose] > │ let v174 : float = -0.004675081213427074 │
00:00:28 #5484 [Verbose] > │ let v175 : float = -0.004369840163132589 │
00:00:28 #5485 [Verbose] > │ let v176 : float = -0.003972888398568774 │
00:00:28 #5486 [Verbose] > │ let v177 : float = -0.0034925568262446837 │
00:00:28 #5487 [Verbose] > │ let v178 : float = -0.002938926261462367 │
00:00:28 #5488 [Verbose] > │ let v179 : float = -0.002323615860218846 │
00:00:28 #5489 [Verbose] > │ let v180 : float = -0.0016595392656426435 │
00:00:28 #5490 [Verbose] > │ let v181 : float = -0.0009606335867685414 │
00:00:28 #5491 [Verbose] > │ let v182 : float = -0.00024156689762753724 │
00:00:28 #5492 [Verbose] > │ let v183 : float = 0.0004825696045725713 │
00:00:28 #5493 [Verbose] > │ let v184 : float = 0.0011965783214377866 │
00:00:28 #5494 [Verbose] > │ let v185 : float = 0.0018854742084416021 │
00:00:28 #5495 [Verbose] > │ let v186 : float = 0.002534799269067954 │
00:00:28 #5496 [Verbose] > │ let v187 : float = 0.003130925987691568 │
00:00:28 #5497 [Verbose] > │ let v188 : float = 0.0036613433329888622 │
00:00:28 #5498 [Verbose] > │ let v189 : float = 0.0041149193294682815 │
00:00:28 #5499 [Verbose] > │ let v190 : float = 0.0044821346864785195 │
00:00:28 #5500 [Verbose] > │ let v191 : float = 0.004755282581475766 │
00:00:28 #5501 [Verbose] > │ let v192 : float = 0.004928630404658255 │
00:00:28 #5502 [Verbose] > │ let v193 : float = 0.004998540070400965 │
00:00:28 #5503 [Verbose] > │ let v194 : float = 0.004963544370490271 │
00:00:28 #5504 [Verbose] > │ let v195 : float = 0.004824377766717758 │
00:00:28 #5505 [Verbose] > │ let v196 : float = 0.004583960976582912 │
00:00:28 #5506 [Verbose] > │ let v197 : float = 0.004247339675607605 │
00:00:28 #5507 [Verbose] > │ let v198 : float = 0.003821578602729245 │
00:00:28 #5508 [Verbose] > │ let v199 : float = 0.0033156132912039783 │
00:00:28 #5509 [Verbose] > │ let v200 : float = 0.0027400625367733585 │
00:00:28 #5510 [Verbose] > │ let v201 : float = 0.0021070055388626528 │
00:00:28 #5511 [Verbose] > │ let v202 : float = 0.001429728391993452 │
00:00:28 #5512 [Verbose] > │ let v203 : float = 0.0007224452478461016 │
00:00:28 #5513 [Verbose] > │ let v204 : float = 0.0 │
00:00:28 #5514 [Verbose] > │ let v205 : UH0 = UH0_1 │
00:00:28 #5515 [Verbose] > │ let v206 : UH0 = UH0_0(v204, v205) │
00:00:28 #5516 [Verbose] > │ let v207 : UH0 = UH0_0(v203, v206) │
00:00:28 #5517 [Verbose] > │ let v208 : UH0 = UH0_0(v202, v207) │
00:00:28 #5518 [Verbose] > │ let v209 : UH0 = UH0_0(v201, v208) │
00:00:28 #5519 [Verbose] > │ let v210 : UH0 = UH0_0(v200, v209) │
00:00:28 #5520 [Verbose] > │ let v211 : UH0 = UH0_0(v199, v210) │
00:00:28 #5521 [Verbose] > │ let v212 : UH0 = UH0_0(v198, v211) │
00:00:28 #5522 [Verbose] > │ let v213 : UH0 = UH0_0(v197, v212) │
00:00:28 #5523 [Verbose] > │ let v214 : UH0 = UH0_0(v196, v213) │
00:00:28 #5524 [Verbose] > │ let v215 : UH0 = UH0_0(v195, v214) │
00:00:28 #5525 [Verbose] > │ let v216 : UH0 = UH0_0(v194, v215) │
00:00:28 #5526 [Verbose] > │ let v217 : UH0 = UH0_0(v193, v216) │
00:00:28 #5527 [Verbose] > │ let v218 : UH0 = UH0_0(v192, v217) │
00:00:28 #5528 [Verbose] > │ let v219 : UH0 = UH0_0(v191, v218) │
00:00:28 #5529 [Verbose] > │ let v220 : UH0 = UH0_0(v190, v219) │
00:00:28 #5530 [Verbose] > │ let v221 : UH0 = UH0_0(v189, v220) │
00:00:28 #5531 [Verbose] > │ let v222 : UH0 = UH0_0(v188, v221) │
00:00:28 #5532 [Verbose] > │ let v223 : UH0 = UH0_0(v187, v222) │
00:00:28 #5533 [Verbose] > │ let v224 : UH0 = UH0_0(v186, v223) │
00:00:28 #5534 [Verbose] > │ let v225 : UH0 = UH0_0(v185, v224) │
00:00:28 #5535 [Verbose] > │ let v226 : UH0 = UH0_0(v184, v225) │
00:00:28 #5536 [Verbose] > │ let v227 : UH0 = UH0_0(v183, v226) │
00:00:28 #5537 [Verbose] > │ let v228 : UH0 = UH0_0(v182, v227) │
00:00:28 #5538 [Verbose] > │ let v229 : UH0 = UH0_0(v181, v228) │
00:00:28 #5539 [Verbose] > │ let v230 : UH0 = UH0_0(v180, v229) │
00:00:28 #5540 [Verbose] > │ let v231 : UH0 = UH0_0(v179, v230) │
00:00:28 #5541 [Verbose] > │ let v232 : UH0 = UH0_0(v178, v231) │
00:00:28 #5542 [Verbose] > │ let v233 : UH0 = UH0_0(v177, v232) │
00:00:28 #5543 [Verbose] > │ let v234 : UH0 = UH0_0(v176, v233) │
00:00:28 #5544 [Verbose] > │ let v235 : UH0 = UH0_0(v175, v234) │
00:00:28 #5545 [Verbose] > │ let v236 : UH0 = UH0_0(v174, v235) │
00:00:28 #5546 [Verbose] > │ let v237 : UH0 = UH0_0(v173, v236) │
00:00:28 #5547 [Verbose] > │ let v238 : UH0 = UH0_0(v172, v237) │
00:00:28 #5548 [Verbose] > │ let v239 : UH0 = UH0_0(v171, v238) │
00:00:28 #5549 [Verbose] > │ let v240 : UH0 = UH0_0(v170, v239) │
00:00:28 #5550 [Verbose] > │ let v241 : UH0 = UH0_0(v169, v240) │
00:00:28 #5551 [Verbose] > │ let v242 : UH0 = UH0_0(v168, v241) │
00:00:28 #5552 [Verbose] > │ let v243 : UH0 = UH0_0(v167, v242) │
00:00:28 #5553 [Verbose] > │ let v244 : UH0 = UH0_0(v166, v243) │
00:00:28 #5554 [Verbose] > │ let v245 : UH0 = UH0_0(v165, v244) │
00:00:28 #5555 [Verbose] > │ let v246 : UH0 = UH0_0(v164, v245) │
00:00:28 #5556 [Verbose] > │ let v247 : UH0 = UH0_0(v163, v246) │
00:00:28 #5557 [Verbose] > │ let v248 : UH0 = UH0_0(v162, v247) │
00:00:28 #5558 [Verbose] > │ let v249 : UH0 = UH0_0(v161, v248) │
00:00:28 #5559 [Verbose] > │ let v250 : UH0 = UH0_0(v160, v249) │
00:00:28 #5560 [Verbose] > │ let v251 : UH0 = UH0_0(v159, v250) │
00:00:28 #5561 [Verbose] > │ let v252 : UH0 = UH0_0(v158, v251) │
00:00:28 #5562 [Verbose] > │ let v253 : UH0 = UH0_0(v157, v252) │
00:00:28 #5563 [Verbose] > │ let v254 : UH0 = UH0_0(v156, v253) │
00:00:28 #5564 [Verbose] > │ let v255 : UH0 = UH0_0(v155, v254) │
00:00:28 #5565 [Verbose] > │ let v256 : UH0 = UH0_0(v154, v255) │
00:00:28 #5566 [Verbose] > │ let v257 : UH0 = UH0_0(v153, v256) │
00:00:28 #5567 [Verbose] > │ let v258 : UH0 = UH0_0(v152, v257) │
00:00:28 #5568 [Verbose] > │ let v259 : UH0 = UH0_0(v151, v258) │
00:00:28 #5569 [Verbose] > │ let v260 : UH0 = UH0_0(v150, v259) │
00:00:28 #5570 [Verbose] > │ let v261 : UH0 = UH0_0(v149, v260) │
00:00:28 #5571 [Verbose] > │ let v262 : UH0 = UH0_0(v148, v261) │
00:00:28 #5572 [Verbose] > │ let v263 : UH0 = UH0_0(v147, v262) │
00:00:28 #5573 [Verbose] > │ let v264 : UH0 = UH0_0(v146, v263) │
00:00:28 #5574 [Verbose] > │ let v265 : UH0 = UH0_0(v145, v264) │
00:00:28 #5575 [Verbose] > │ let v266 : UH0 = UH0_0(v144, v265) │
00:00:28 #5576 [Verbose] > │ let v267 : UH0 = UH0_0(v143, v266) │
00:00:28 #5577 [Verbose] > │ let v268 : UH0 = UH0_0(v142, v267) │
00:00:28 #5578 [Verbose] > │ let v269 : UH0 = UH0_0(v141, v268) │
00:00:28 #5579 [Verbose] > │ let v270 : UH0 = UH0_0(v140, v269) │
00:00:28 #5580 [Verbose] > │ let v271 : UH0 = UH0_0(v139, v270) │
00:00:28 #5581 [Verbose] > │ let v272 : (float []) = method2(v271) │
00:00:28 #5582 [Verbose] > │ UH1_0(v138, v272, v4) │
00:00:28 #5583 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:28 #5584 [Verbose] > │ v1 │
00:00:28 #5585 [Verbose] > │ and method6 (v0 : UH1, v1 : int32) : int32 = │
00:00:28 #5586 [Verbose] > │ match v0 with │
00:00:28 #5587 [Verbose] > │ | UH1_0(v2, v3, v4) -> (* Cons *) │
00:00:28 #5588 [Verbose] > │ let v5 : int32 = v1 + 1 │
00:00:28 #5589 [Verbose] > │ method6(v4, v5) │
00:00:28 #5590 [Verbose] > │ | UH1_1 -> (* Nil *) │
00:00:28 #5591 [Verbose] > │ v1 │
00:00:28 #5592 [Verbose] > │ and method7 (v0 : (struct ((float []) * (float [])) []), v1 : UH1, v2 : │
00:00:28 #5593 [Verbose] > │ int32) : int32 = │
00:00:28 #5594 [Verbose] > │ match v1 with │
00:00:28 #5595 [Verbose] > │ | UH1_0(v3, v4, v5) -> (* Cons *) │
00:00:28 #5596 [Verbose] > │ v0.[int v2] <- struct (v3, v4) │
00:00:28 #5597 [Verbose] > │ let v6 : int32 = v2 + 1 │
00:00:28 #5598 [Verbose] > │ method7(v0, v5, v6) │
00:00:28 #5599 [Verbose] > │ | UH1_1 -> (* Nil *) │
00:00:28 #5600 [Verbose] > │ v2 │
00:00:28 #5601 [Verbose] > │ and method5 (v0 : UH1) : (struct ((float []) * (float [])) []) = │
00:00:28 #5602 [Verbose] > │ let v1 : int32 = 0 │
00:00:28 #5603 [Verbose] > │ let v2 : int32 = method6(v0, v1) │
00:00:28 #5604 [Verbose] > │ let v3 : (struct ((float []) * (float [])) []) = Array.zeroCreate<struct │
00:00:28 #5605 [Verbose] > │ ((float []) * (float []))> (v2) │
00:00:28 #5606 [Verbose] > │ let v4 : int32 = 0 │
00:00:28 #5607 [Verbose] > │ let v5 : int32 = method7(v3, v0, v4) │
00:00:28 #5608 [Verbose] > │ v3 │
00:00:28 #5609 [Verbose] > │ and method8 (v0 : (struct (string * (float []) * (float [])) [])) : (struct │
00:00:28 #5610 [Verbose] > │ (string * (float []) * (float [])) []) = │
00:00:28 #5611 [Verbose] > │ v0 │
00:00:28 #5612 [Verbose] > │ and method0 () : struct (string * string * string * (struct (string * (float │
00:00:28 #5613 [Verbose] > │ []) * (float [])) [])) = │
00:00:28 #5614 [Verbose] > │ let v0 : float = 0.0 │
00:00:28 #5615 [Verbose] > │ let v1 : float = 1.0 │
00:00:28 #5616 [Verbose] > │ let v2 : float = 2.0 │
00:00:28 #5617 [Verbose] > │ let v3 : float = 3.0 │
00:00:28 #5618 [Verbose] > │ let v4 : float = 4.0 │
00:00:28 #5619 [Verbose] > │ let v5 : float = 5.0 │
00:00:28 #5620 [Verbose] > │ let v6 : float = 6.0 │
00:00:28 #5621 [Verbose] > │ let v7 : float = 7.0 │
00:00:28 #5622 [Verbose] > │ let v8 : float = 8.0 │
00:00:28 #5623 [Verbose] > │ let v9 : float = 9.0 │
00:00:28 #5624 [Verbose] > │ let v10 : UH0 = UH0_1 │
00:00:28 #5625 [Verbose] > │ let v11 : UH0 = UH0_0(v9, v10) │
00:00:28 #5626 [Verbose] > │ let v12 : UH0 = UH0_0(v8, v11) │
00:00:28 #5627 [Verbose] > │ let v13 : UH0 = UH0_0(v7, v12) │
00:00:28 #5628 [Verbose] > │ let v14 : UH0 = UH0_0(v6, v13) │
00:00:28 #5629 [Verbose] > │ let v15 : UH0 = UH0_0(v5, v14) │
00:00:28 #5630 [Verbose] > │ let v16 : UH0 = UH0_0(v4, v15) │
00:00:28 #5631 [Verbose] > │ let v17 : UH0 = UH0_0(v3, v16) │
00:00:28 #5632 [Verbose] > │ let v18 : UH0 = UH0_0(v2, v17) │
00:00:28 #5633 [Verbose] > │ let v19 : UH0 = UH0_0(v1, v18) │
00:00:28 #5634 [Verbose] > │ let v20 : UH0 = UH0_0(v0, v19) │
00:00:28 #5635 [Verbose] > │ let v21 : UH1 = UH1_1 │
00:00:28 #5636 [Verbose] > │ let v22 : UH1 = method1(v20, v21) │
00:00:28 #5637 [Verbose] > │ let v23 : (struct ((float []) * (float [])) []) = method5(v22) │
00:00:28 #5638 [Verbose] > │ let struct (v24 : (float []), v25 : (float [])) = v23.[int 0] │
00:00:28 #5639 [Verbose] > │ let v26 : string = $"{0}" │
00:00:28 #5640 [Verbose] > │ let v27 : (struct (string * (float []) * (float [])) []) = [|struct │
00:00:28 #5641 [Verbose] > │ (v26, v24, v25)|] │
00:00:28 #5642 [Verbose] > │ let v28 : (struct (string * (float []) * (float [])) []) = method8(v27) │
00:00:28 #5643 [Verbose] > │ let v29 : string = "wave" │
00:00:28 #5644 [Verbose] > │ let v30 : string = "position (m)" │
00:00:28 #5645 [Verbose] > │ let v31 : string = "displacement (m)" │
00:00:28 #5646 [Verbose] > │ struct (v29, v30, v31, v28) │
00:00:28 #5647 [Verbose] > │ method0() │
00:00:28 #5648 [Verbose] > │ │
00:00:28 #5649 [Verbose] > │ │
00:00:28 #5650 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:28 #5651 [Verbose] >
00:00:28 #5652 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:28 #5653 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:28 #5654 [Verbose] > │ ### system kinetic energy versus time 2 │
00:00:28 #5655 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:28 #5656 [Verbose] >
00:00:28 #5657 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:28 #5658 [Verbose] > // // test
00:00:28 #5659 [Verbose] >
00:00:28 #5660 [Verbose] > inl central_force f (particle_state st1) (particle_state st2) =
00:00:28 #5661 [Verbose] > inl r1 = st1.pos_vec
00:00:28 #5662 [Verbose] > inl r2 = st2.pos_vec
00:00:28 #5663 [Verbose] > inl r21 = r2 ^-^ r1
00:00:28 #5664 [Verbose] > inl r21mag = magnitude r21
00:00:28 #5665 [Verbose] > f r21mag *^ r21 ^/ r21mag
00:00:28 #5666 [Verbose] >
00:00:28 #5667 [Verbose] > inl billiard_force k re =
00:00:28 #5668 [Verbose] > inl f r =
00:00:28 #5669 [Verbose] > if r >= re
00:00:28 #5670 [Verbose] > then 0
00:00:28 #5671 [Verbose] > else -k * (r - re)
00:00:28 #5672 [Verbose] > central_force f
00:00:28 #5673 [Verbose] >
00:00:28 #5674 [Verbose] > type force_vector = vec
00:00:28 #5675 [Verbose] > type two_body_force = particle_state -> particle_state -> force_vector
00:00:28 #5676 [Verbose] >
00:00:28 #5677 [Verbose] > union force t =
00:00:28 #5678 [Verbose] > | ExternalForce : t * one_body_force
00:00:28 #5679 [Verbose] > | InternalForce : t * t * two_body_force
00:00:28 #5680 [Verbose] >
00:00:28 #5681 [Verbose] > nominal multi_particle_state = stream.stream particle_state
00:00:28 #5682 [Verbose] >
00:00:28 #5683 [Verbose] > nominal d_multi_particle_state = stream.stream d_particle_state
00:00:28 #5684 [Verbose] >
00:00:28 #5685 [Verbose] > inl force_on n s force =
00:00:28 #5686 [Verbose] > match force with
00:00:28 #5687 [Verbose] > | ExternalForce (n0, f_one_body) =>
00:00:28 #5688 [Verbose] > if n = n0
00:00:28 #5689 [Verbose] > then f_one_body
00:00:28 #5690 [Verbose] > else fun _ => zero_vec ()
00:00:28 #5691 [Verbose] > | InternalForce (n0, n1, f_two_body) =>
00:00:28 #5692 [Verbose] > if n = n0
00:00:28 #5693 [Verbose] > then s |> stream.try_item n1 |> optionm.map f_two_body
00:00:28 #5694 [Verbose] > elif n = n1
00:00:28 #5695 [Verbose] > then s |> stream.try_item n0 |> optionm.map f_two_body
00:00:28 #5696 [Verbose] > else None
00:00:28 #5697 [Verbose] > |> optionm'.default_value (fun _ => zero_vec ())
00:00:28 #5698 [Verbose] >
00:00:28 #5699 [Verbose] > inl forces_on n (multi_particle_state sts) fs =
00:00:28 #5700 [Verbose] > fs
00:00:28 #5701 [Verbose] > |> listm.map (force_on n sts)
00:00:28 #5702 [Verbose] >
00:00:28 #5703 [Verbose] > inl newton_second_mps fs ((multi_particle_state sts) as mpst) =
00:00:28 #5704 [Verbose] > inl deriv (n, st) =
00:00:28 #5705 [Verbose] > newton_second_ps (forces_on n mpst fs) st
00:00:28 #5706 [Verbose] > sts |> stream.indexed |> stream.map deriv |> d_multi_particle_state
00:00:28 #5707 [Verbose] >
00:00:28 #5708 [Verbose] > instance (+++) d_multi_particle_state =
00:00:28 #5709 [Verbose] > fun (d_multi_particle_state dsts1) (d_multi_particle_state dsts2) =>
00:00:28 #5710 [Verbose] > (dsts1, dsts2)
00:00:28 #5711 [Verbose] > ||> stream.zip_with (+++)
00:00:28 #5712 [Verbose] > |> d_multi_particle_state
00:00:28 #5713 [Verbose] >
00:00:28 #5714 [Verbose] > instance scale d_multi_particle_state = fun w (d_multi_particle_state dsts) =>
00:00:28 #5715 [Verbose] > dsts
00:00:28 #5716 [Verbose] > |> stream.map (scale w)
00:00:28 #5717 [Verbose] > |> d_multi_particle_state
00:00:28 #5718 [Verbose] >
00:00:28 #5719 [Verbose] > instance shift multi_particle_state = fun dt dsts (multi_particle_state sts) =>
00:00:28 #5720 [Verbose] > inl (d_multi_particle_state dsts) =
00:00:28 #5721 [Verbose] > real
00:00:28 #5722 [Verbose] > match dsts with
00:00:28 #5723 [Verbose] > | d_multi_particle_state _ => dsts
00:00:28 #5724 [Verbose] > (dsts, sts)
00:00:28 #5725 [Verbose] > ||> stream.zip_with (shift dt)
00:00:28 #5726 [Verbose] > |> stream.memoize
00:00:28 #5727 [Verbose] > |> fun x => x ()
00:00:28 #5728 [Verbose] > |> multi_particle_state
00:00:28 #5729 [Verbose] >
00:00:28 #5730 [Verbose] > inl euler_cromer_mps dt : numerical_method multi_particle_state
00:00:28 #5731 [Verbose] > d_multi_particle_state =
00:00:28 #5732 [Verbose] > fun deriv ((multi_particle_state sts0) as mpst0) =>
00:00:28 #5733 [Verbose] > inl (multi_particle_state sts1) = euler dt deriv mpst0
00:00:28 #5734 [Verbose] > (sts0, sts1)
00:00:28 #5735 [Verbose] > ||> stream.zip
00:00:28 #5736 [Verbose] > |> stream.map (fun ((particle_state st0), (particle_state st1)) =>
00:00:28 #5737 [Verbose] > particle_state {
00:00:28 #5738 [Verbose] > st1 with
00:00:28 #5739 [Verbose] > pos_vec = st0.pos_vec ^+^ st1.velocity ^* dt
00:00:28 #5740 [Verbose] > }
00:00:28 #5741 [Verbose] > )
00:00:28 #5742 [Verbose] > |> multi_particle_state
00:00:28 #5743 [Verbose] >
00:00:28 #5744 [Verbose] > inl update_mps (method : numerical_method multi_particle_state
00:00:28 #5745 [Verbose] > d_multi_particle_state) =
00:00:28 #5746 [Verbose] > newton_second_mps >> method
00:00:28 #5747 [Verbose] >
00:00:28 #5748 [Verbose] > inl states_mps (method : numerical_method multi_particle_state
00:00:28 #5749 [Verbose] > d_multi_particle_state) =
00:00:28 #5750 [Verbose] > newton_second_mps
00:00:28 #5751 [Verbose] > >> method
00:00:28 #5752 [Verbose] > >> (fun x (multi_particle_state y) =>
00:00:28 #5753 [Verbose] > y
00:00:28 #5754 [Verbose] > |> stream.memoize
00:00:28 #5755 [Verbose] > |> (fun x => x ())
00:00:28 #5756 [Verbose] > |> multi_particle_state |> x
00:00:28 #5757 [Verbose] > )
00:00:28 #5758 [Verbose] > // >> stream.iterate
00:00:28 #5759 [Verbose] > >> seq.iterate'
00:00:28 #5760 [Verbose] >
00:00:28 #5761 [Verbose] > inl kinetic_energy (particle_state st) =
00:00:28 #5762 [Verbose] > inl m = st.mass
00:00:28 #5763 [Verbose] > inl v = magnitude st.velocity
00:00:28 #5764 [Verbose] > 0.5 * m * v ** 2
00:00:28 #5765 [Verbose] >
00:00:28 #5766 [Verbose] > inl system_ke (multi_particle_state sts) =
00:00:28 #5767 [Verbose] > sts
00:00:28 #5768 [Verbose] > |> stream.map kinetic_energy
00:00:28 #5769 [Verbose] > |> stream.sum
00:00:28 #5770 [Verbose] >
00:00:28 #5771 [Verbose] > inl linear_spring_pe k re (particle_state st1) (particle_state st2) =
00:00:28 #5772 [Verbose] > inl r1 = st1.pos_vec
00:00:28 #5773 [Verbose] > inl r2 = st2.pos_vec
00:00:28 #5774 [Verbose] > inl r21 = r2 ^-^ r1
00:00:28 #5775 [Verbose] > inl r21mag = magnitude r21
00:00:28 #5776 [Verbose] > k * (r21mag - re) ** 2 / 2
00:00:28 #5777 [Verbose] >
00:00:28 #5778 [Verbose] > inl earth_surface_gravity_pe (particle_state st) =
00:00:28 #5779 [Verbose] > inl g = 9.80665
00:00:28 #5780 [Verbose] > inl m = st.mass
00:00:28 #5781 [Verbose] > inl z = st.pos_vec.z
00:00:28 #5782 [Verbose] > m * g * z
00:00:28 #5783 [Verbose] >
00:00:28 #5784 [Verbose] > inl ball_radius () = 0.03
00:00:28 #5785 [Verbose] >
00:00:28 #5786 [Verbose] > inl billiard_forces k =
00:00:28 #5787 [Verbose] > [[ InternalForce (0i32, 1, billiard_force k (2 * ball_radius ())) ]]
00:00:28 #5788 [Verbose] >
00:00:28 #5789 [Verbose] > inl billiard_initial () =
00:00:28 #5790 [Verbose] > inl ball_mass = 0.160
00:00:28 #5791 [Verbose] > inl (particle_state default_particle_state') = default_particle_state ()
00:00:28 #5792 [Verbose] > [[
00:00:28 #5793 [Verbose] > particle_state {
00:00:28 #5794 [Verbose] > default_particle_state' with
00:00:28 #5795 [Verbose] > mass = ball_mass
00:00:28 #5796 [Verbose] > pos_vec = zero_vec ()
00:00:28 #5797 [Verbose] > velocity = 0.2 *^ i_hat ()
00:00:28 #5798 [Verbose] > }
00:00:28 #5799 [Verbose] > particle_state {
00:00:28 #5800 [Verbose] > default_particle_state' with
00:00:28 #5801 [Verbose] > mass = ball_mass
00:00:28 #5802 [Verbose] > pos_vec = i_hat () ^+^ 0.02 *^ j_hat ()
00:00:28 #5803 [Verbose] > velocity = zero_vec ()
00:00:28 #5804 [Verbose] > }
00:00:28 #5805 [Verbose] > ]]
00:00:28 #5806 [Verbose] > |> stream.from_list
00:00:28 #5807 [Verbose] > |> multi_particle_state
00:00:28 #5808 [Verbose] >
00:00:28 #5809 [Verbose] > inl billiard_states ~n_method k dt =
00:00:28 #5810 [Verbose] > states_mps (n_method dt) (billiard_forces k) (billiard_initial ())
00:00:28 #5811 [Verbose] >
00:00:28 #5812 [Verbose] > inl billiard_states_finite n_method k dt =
00:00:28 #5813 [Verbose] > billiard_states n_method k dt
00:00:28 #5814 [Verbose] > >> Some
00:00:28 #5815 [Verbose] > |> seq.take_while_ (fun (multi_particle_state mpst) (_ : i32) =>
00:00:28 #5816 [Verbose] > match mpst |> stream.try_item 0i32 with
00:00:28 #5817 [Verbose] > | Some st =>
00:00:28 #5818 [Verbose] > st.time <= 10
00:00:28 #5819 [Verbose] > | None => false
00:00:28 #5820 [Verbose] > )
00:00:28 #5821 [Verbose] >
00:00:28 #5822 [Verbose] > inl momentum (particle_state st) =
00:00:28 #5823 [Verbose] > inl m = st.mass
00:00:28 #5824 [Verbose] > inl v = st.velocity
00:00:28 #5825 [Verbose] > m *^ v
00:00:28 #5826 [Verbose] >
00:00:28 #5827 [Verbose] > inl system_p (multi_particle_state sts) =
00:00:28 #5828 [Verbose] > sts
00:00:28 #5829 [Verbose] > |> stream.map momentum
00:00:28 #5830 [Verbose] > |> stream.fold (^+^) (zero_vec ())
00:00:28 #5831 [Verbose] >
00:00:28 #5832 [Verbose] > inl time_ke_ec_x, time_ke_ec_y =
00:00:28 #5833 [Verbose] > billiard_states_finite euler_cromer_mps 30 0.03
00:00:28 #5834 [Verbose] > |> listm.map (fun (multi_particle_state mpst) =>
00:00:28 #5835 [Verbose] > mpst |> stream.try_item 0i32
00:00:28 #5836 [Verbose] > |> optionm.map (fun st =>
00:00:28 #5837 [Verbose] > st.time, system_ke (multi_particle_state mpst)
00:00:28 #5838 [Verbose] > )
00:00:28 #5839 [Verbose] > )
00:00:28 #5840 [Verbose] > // |> stream.to_list
00:00:28 #5841 [Verbose] > |> listm'.choose id
00:00:28 #5842 [Verbose] > |> listm'.unzip
00:00:28 #5843 [Verbose] >
00:00:28 #5844 [Verbose] > inl time_ke_rk4_x, time_ke_rk4_y =
00:00:28 #5845 [Verbose] > billiard_states_finite runge_kutta_4 30 0.03
00:00:28 #5846 [Verbose] > |> listm.map (fun (multi_particle_state mpst) =>
00:00:28 #5847 [Verbose] > mpst |> stream.try_item 0i32
00:00:28 #5848 [Verbose] > |> optionm.map (fun st =>
00:00:28 #5849 [Verbose] > st.time, system_ke (multi_particle_state mpst)
00:00:28 #5850 [Verbose] > )
00:00:28 #5851 [Verbose] > )
00:00:28 #5852 [Verbose] > // |> stream.to_list
00:00:28 #5853 [Verbose] > |> listm'.choose id
00:00:28 #5854 [Verbose] > |> listm'.unzip
00:00:28 #5855 [Verbose] >
00:00:28 #5856 [Verbose] > inl time_ke_ec_x : a i32 _ = time_ke_ec_x |> listm.toArray
00:00:28 #5857 [Verbose] > inl time_ke_ec_y : a i32 _ = time_ke_ec_y |> listm.toArray
00:00:28 #5858 [Verbose] >
00:00:28 #5859 [Verbose] > inl time_ke_rk4_x : a i32 _ = time_ke_rk4_x |> listm.toArray
00:00:28 #5860 [Verbose] > inl time_ke_rk4_y : a i32 _ = time_ke_rk4_y |> listm.toArray
00:00:28 #5861 [Verbose] >
00:00:28 #5862 [Verbose] > "system kinetic energy versus time",
00:00:28 #5863 [Verbose] > "time (s)",
00:00:28 #5864 [Verbose] > "system kinetic energy (j)",
00:00:28 #5865 [Verbose] > ;[[
00:00:28 #5866 [Verbose] > "euler-cromer", time_ke_ec_x, time_ke_ec_y
00:00:28 #5867 [Verbose] > "runge-kutta 4", time_ke_rk4_x, time_ke_rk4_y
00:00:28 #5868 [Verbose] > ]]
00:00:28 #5869 [Verbose] > Building /tmp/!dotnet-repl/20240325-2026-0399-9992-9df152fe580a/main.spi
00:00:29 #5870 [Verbose] >
00:00:29 #5871 [Verbose] > ╭─[ 1.43s - return value ]─────────────────────────────────────────────────────╮
00:00:29 #5872 [Verbose] > │ <svg width="640" height="480" viewBox="0 0 640 480" │
00:00:29 #5873 [Verbose] > │ xmlns="http://www.w3.org/2000/svg"> │
00:00:29 #5874 [Verbose] > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414" │
00:00:29 #5875 [Verbose] > │ stroke="none"/> │
00:00:29 #5876 [Verbose] > │ <text x="320" y="10" dy="0.76em" text-anchor="middle" │
00:00:29 #5877 [Verbose] > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1" │
00:00:29 #5878 [Verbose] > │ fill="#FFFFFF"> │
00:00:29 #5879 [Verbose] > │ system kinetic energy versus time │
00:00:29 #5880 [Verbose] > │ </text> │
00:00:29 #5881 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="59" y1="424" x2="59" │
00:00:29 #5882 [Verbose] > │ y2="75"/> │
00:00:29 #5883 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:00:29 #5884 [Verbose] > │ y2="75"/> │
00:00:29 #5885 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="79" y1="424" x2="79" │
00:00:29 #5886 [Verbose] > │ y2="75"/> │
00:00:29 #5887 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="89" y1="424" x2="89" │
00:00:29 #5888 [Verbose] > │ y2="75"/> │
00:00:29 #5889 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1... │
00:00:29 #5890 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:29 #5891 [Verbose] >
00:00:29 #5892 [Verbose] > ╭─[ 1.44s - stdout ]───────────────────────────────────────────────────────────╮
00:00:29 #5893 [Verbose] > │ type UH0 = │
00:00:29 #5894 [Verbose] > │ | UH0_0 of float * float * float * float * float * float * float * float │
00:00:29 #5895 [Verbose] > │ * float * (unit -> UH0) │
00:00:29 #5896 [Verbose] > │ | UH0_1 │
00:00:29 #5897 [Verbose] > │ and UH1 = │
00:00:29 #5898 [Verbose] > │ | UH1_0 of float * float * float * float * float * float * float * float │
00:00:29 #5899 [Verbose] > │ * float * (unit -> UH1) │
00:00:29 #5900 [Verbose] > │ | UH1_1 │
00:00:29 #5901 [Verbose] > │ and [<Struct>] US0 = │
00:00:29 #5902 [Verbose] > │ | US0_0 of f0_0 : UH0 │
00:00:29 #5903 [Verbose] > │ | US0_1 of f1_0 : (unit -> UH0) │
00:00:29 #5904 [Verbose] > │ and Mut0 = {mutable l0 : US0} │
00:00:29 #5905 [Verbose] > │ and UH2 = │
00:00:29 #5906 [Verbose] > │ | UH2_0 of float * float * float * float * float * float * float * float │
00:00:29 #5907 [Verbose] > │ * float * float * float * float * float * float * float * float * float * │
00:00:29 #5908 [Verbose] > │ float * (unit -> UH2) │
00:00:29 #5909 [Verbose] > │ | UH2_1 │
00:00:29 #5910 [Verbose] > │ and UH3 = │
00:00:29 #5911 [Verbose] > │ | UH3_0 of int32 * float * float * float * float * float * float * float │
00:00:29 #5912 [Verbose] > │ * float * float * (unit -> UH3) │
00:00:29 #5913 [Verbose] > │ | UH3_1 │
00:00:29 #5914 [Verbose] > │ and [<Struct>] US1 = │
00:00:29 #5915 [Verbose] > │ | US1_0 │
00:00:29 #5916 [Verbose] > │ | US1_1 of f1_0 : (struct (float * float * float * float * float * float │
00:00:29 #5917 [Verbose] > │ * float * float * float) -> struct (float * float * float)) │
00:00:29 #5918 [Verbose] > │ and [<Struct>] US2 = │
00:00:29 #5919 [Verbose] > │ | US2_0 │
00:00:29 #5920 [Verbose] > │ | US2_1 of f1_0 : float * f1_1 : float * f1_2 : float * f1_3 : float * │
00:00:29 #5921 [Verbose] > │ f1_4 : float * f1_5 : float * f1_6 : float * f1_7 : float * f1_8 : float │
00:00:29 #5922 [Verbose] > │ and UH4 = │
00:00:29 #5923 [Verbose] > │ | UH4_0 of UH0 * UH4 │
00:00:29 #5924 [Verbose] > │ | UH4_1 │
00:00:29 #5925 [Verbose] > │ and UH5 = │
00:00:29 #5926 [Verbose] > │ | UH5_0 of int32 * UH5 │
00:00:29 #5927 [Verbose] > │ | UH5_1 │
00:00:29 #5928 [Verbose] > │ and [<Struct>] US3 = │
00:00:29 #5929 [Verbose] > │ | US3_0 │
00:00:29 #5930 [Verbose] > │ | US3_1 of f1_0 : float * f1_1 : float │
00:00:29 #5931 [Verbose] > │ and UH6 = │
00:00:29 #5932 [Verbose] > │ | UH6_0 of US3 * UH6 │
00:00:29 #5933 [Verbose] > │ | UH6_1 │
00:00:29 #5934 [Verbose] > │ and UH7 = │
00:00:29 #5935 [Verbose] > │ | UH7_0 of float * (unit -> UH7) │
00:00:29 #5936 [Verbose] > │ | UH7_1 │
00:00:29 #5937 [Verbose] > │ and UH8 = │
00:00:29 #5938 [Verbose] > │ | UH8_0 of float * float * UH8 │
00:00:29 #5939 [Verbose] > │ | UH8_1 │
00:00:29 #5940 [Verbose] > │ and UH9 = │
00:00:29 #5941 [Verbose] > │ | UH9_0 of float * UH9 │
00:00:29 #5942 [Verbose] > │ | UH9_1 │
00:00:29 #5943 [Verbose] > │ let rec closure3 (v0 : float, v1 : (unit -> UH0), v2 : (unit -> UH1)) () : │
00:00:29 #5944 [Verbose] > │ UH0 = │
00:00:29 #5945 [Verbose] > │ let v3 : UH1 = v2 () │
00:00:29 #5946 [Verbose] > │ let v4 : UH0 = v1 () │
00:00:29 #5947 [Verbose] > │ match v3 with │
00:00:29 #5948 [Verbose] > │ | UH1_0(v5, v6, v7, v8, v9, v10, v11, v12, v13, v14) -> (* StreamCons *) │
00:00:29 #5949 [Verbose] > │ match v4 with │
00:00:29 #5950 [Verbose] > │ | UH0_0(v15, v16, v17, v18, v19, v20, v21, v22, v23, v24) -> (* │
00:00:29 #5951 [Verbose] > │ StreamCons *) │
00:00:29 #5952 [Verbose] > │ let v25 : float = v10 * v0 │
00:00:29 #5953 [Verbose] > │ let v26 : float = v20 + v25 │
00:00:29 #5954 [Verbose] > │ let v27 : float = v0 * v7 │
00:00:29 #5955 [Verbose] > │ let v28 : float = v0 * v8 │
00:00:29 #5956 [Verbose] > │ let v29 : float = v0 * v9 │
00:00:29 #5957 [Verbose] > │ let v30 : float = v17 + v27 │
00:00:29 #5958 [Verbose] > │ let v31 : float = v18 + v28 │
00:00:29 #5959 [Verbose] > │ let v32 : float = v19 + v29 │
00:00:29 #5960 [Verbose] > │ let v33 : float = v0 * v11 │
00:00:29 #5961 [Verbose] > │ let v34 : float = v0 * v12 │
00:00:29 #5962 [Verbose] > │ let v35 : float = v0 * v13 │
00:00:29 #5963 [Verbose] > │ let v36 : float = v21 + v33 │
00:00:29 #5964 [Verbose] > │ let v37 : float = v22 + v34 │
00:00:29 #5965 [Verbose] > │ let v38 : float = v23 + v35 │
00:00:29 #5966 [Verbose] > │ let v39 : (unit -> UH0) = closure3(v0, v24, v14) │
00:00:29 #5967 [Verbose] > │ UH0_0(v15, v16, v30, v31, v32, v26, v36, v37, v38, v39) │
00:00:29 #5968 [Verbose] > │ | UH0_1 -> (* StreamNil *) │
00:00:29 #5969 [Verbose] > │ UH0_1 │
00:00:29 #5970 [Verbose] > │ | UH1_1 -> (* StreamNil *) │
00:00:29 #5971 [Verbose] > │ UH0_1 │
00:00:29 #5972 [Verbose] > │ and closure4 (v0 : UH0) () : UH0 = │
00:00:29 #5973 [Verbose] > │ v0 │
00:00:29 #5974 [Verbose] > │ and closure5 (v0 : UH0, v1 : Mut0) () : UH0 = │
00:00:29 #5975 [Verbose] > │ let v2 : US0 = v1.l0 │
00:00:29 #5976 [Verbose] > │ match v2 with │
00:00:29 #5977 [Verbose] > │ | US0_0(v3) -> (* Computed *) │
00:00:29 #5978 [Verbose] > │ v3 │
00:00:29 #5979 [Verbose] > │ | US0_1(v4) -> (* NotComputed *) │
00:00:29 #5980 [Verbose] > │ let v5 : UH0 = v4 () │
00:00:29 #5981 [Verbose] > │ let v20 : UH0 = │
00:00:29 #5982 [Verbose] > │ match v5 with │
00:00:29 #5983 [Verbose] > │ | UH0_0(v7, v8, v9, v10, v11, v12, v13, v14, v15, v16) -> (* │
00:00:29 #5984 [Verbose] > │ StreamCons *) │
00:00:29 #5985 [Verbose] > │ let v17 : (unit -> UH0) = method1(v0, v16) │
00:00:29 #5986 [Verbose] > │ UH0_0(v7, v8, v9, v10, v11, v12, v13, v14, v15, v17) │
00:00:29 #5987 [Verbose] > │ | UH0_1 -> (* StreamNil *) │
00:00:29 #5988 [Verbose] > │ UH0_1 │
00:00:29 #5989 [Verbose] > │ let v21 : US0 = US0_0(v20) │
00:00:29 #5990 [Verbose] > │ v1.l0 <- v21 │
00:00:29 #5991 [Verbose] > │ v20 │
00:00:29 #5992 [Verbose] > │ and method1 (v0 : UH0, v1 : (unit -> UH0)) : (unit -> UH0) = │
00:00:29 #5993 [Verbose] > │ let v2 : US0 = US0_1(v1) │
00:00:29 #5994 [Verbose] > │ let v3 : Mut0 = {l0 = v2} : Mut0 │
00:00:29 #5995 [Verbose] > │ closure5(v0, v3) │
00:00:29 #5996 [Verbose] > │ and closure6 (v0 : (unit -> UH0), v1 : (unit -> UH0)) () : UH2 = │
00:00:29 #5997 [Verbose] > │ let v2 : UH0 = v1 () │
00:00:29 #5998 [Verbose] > │ let v3 : UH0 = v0 () │
00:00:29 #5999 [Verbose] > │ match v2 with │
00:00:29 #6000 [Verbose] > │ | UH0_0(v4, v5, v6, v7, v8, v9, v10, v11, v12, v13) -> (* StreamCons *) │
00:00:29 #6001 [Verbose] > │ match v3 with │
00:00:29 #6002 [Verbose] > │ | UH0_0(v14, v15, v16, v17, v18, v19, v20, v21, v22, v23) -> (* │
00:00:29 #6003 [Verbose] > │ StreamCons *) │
00:00:29 #6004 [Verbose] > │ let v24 : (unit -> UH2) = closure6(v23, v13) │
00:00:29 #6005 [Verbose] > │ UH2_0(v4, v5, v6, v7, v8, v9, v10, v11, v12, v14, v15, v16, v17, │
00:00:29 #6006 [Verbose] > │ v18, v19, v20, v21, v22, v24) │
00:00:29 #6007 [Verbose] > │ | UH0_1 -> (* StreamNil *) │
00:00:29 #6008 [Verbose] > │ UH2_1 │
00:00:29 #6009 [Verbose] > │ | UH0_1 -> (* StreamNil *) │
00:00:29 #6010 [Verbose] > │ UH2_1 │
00:00:29 #6011 [Verbose] > │ and closure7 (v0 : UH0) () : UH0 = │
00:00:29 #6012 [Verbose] > │ v0 │
00:00:29 #6013 [Verbose] > │ and method2 (v0 : float, v1 : UH2, v2 : UH0) : UH0 = │
00:00:29 #6014 [Verbose] > │ match v1 with │
00:00:29 #6015 [Verbose] > │ | UH2_0(v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, │
00:00:29 #6016 [Verbose] > │ v17, v18, v19, v20, v21) -> (* StreamCons *) │
00:00:29 #6017 [Verbose] > │ let v22 : UH2 = v21 () │
00:00:29 #6018 [Verbose] > │ let v23 : UH0 = method2(v0, v22, v2) │
00:00:29 #6019 [Verbose] > │ let v24 : float = v0 * v18 │
00:00:29 #6020 [Verbose] > │ let v25 : float = v0 * v19 │
00:00:29 #6021 [Verbose] > │ let v26 : float = v0 * v20 │
00:00:29 #6022 [Verbose] > │ let v27 : float = v5 + v24 │
00:00:29 #6023 [Verbose] > │ let v28 : float = v6 + v25 │
00:00:29 #6024 [Verbose] > │ let v29 : float = v7 + v26 │
00:00:29 #6025 [Verbose] > │ let v30 : (unit -> UH0) = closure7(v23) │
00:00:29 #6026 [Verbose] > │ UH0_0(v12, v13, v27, v28, v29, v17, v18, v19, v20, v30) │
00:00:29 #6027 [Verbose] > │ | UH2_1 -> (* StreamNil *) │
00:00:29 #6028 [Verbose] > │ v2 │
00:00:29 #6029 [Verbose] > │ and closure2 (v0 : float, v1 : (UH0 -> UH1)) (v2 : UH0) : UH0 = │
00:00:29 #6030 [Verbose] > │ let v3 : UH1 = v1 v2 │
00:00:29 #6031 [Verbose] > │ let v45 : UH0 = │
00:00:29 #6032 [Verbose] > │ match v3 with │
00:00:29 #6033 [Verbose] > │ | UH1_0(v4, v5, v6, v7, v8, v9, v10, v11, v12, v13) -> (* StreamCons │
00:00:29 #6034 [Verbose] > │ *) │
00:00:29 #6035 [Verbose] > │ match v2 with │
00:00:29 #6036 [Verbose] > │ | UH0_0(v14, v15, v16, v17, v18, v19, v20, v21, v22, v23) -> (* │
00:00:29 #6037 [Verbose] > │ StreamCons *) │
00:00:29 #6038 [Verbose] > │ let v24 : float = v9 * v0 │
00:00:29 #6039 [Verbose] > │ let v25 : float = v19 + v24 │
00:00:29 #6040 [Verbose] > │ let v26 : float = v0 * v6 │
00:00:29 #6041 [Verbose] > │ let v27 : float = v0 * v7 │
00:00:29 #6042 [Verbose] > │ let v28 : float = v0 * v8 │
00:00:29 #6043 [Verbose] > │ let v29 : float = v16 + v26 │
00:00:29 #6044 [Verbose] > │ let v30 : float = v17 + v27 │
00:00:29 #6045 [Verbose] > │ let v31 : float = v18 + v28 │
00:00:29 #6046 [Verbose] > │ let v32 : float = v0 * v10 │
00:00:29 #6047 [Verbose] > │ let v33 : float = v0 * v11 │
00:00:29 #6048 [Verbose] > │ let v34 : float = v0 * v12 │
00:00:29 #6049 [Verbose] > │ let v35 : float = v20 + v32 │
00:00:29 #6050 [Verbose] > │ let v36 : float = v21 + v33 │
00:00:29 #6051 [Verbose] > │ let v37 : float = v22 + v34 │
00:00:29 #6052 [Verbose] > │ let v38 : (unit -> UH0) = closure3(v0, v23, v13) │
00:00:29 #6053 [Verbose] > │ UH0_0(v14, v15, v29, v30, v31, v25, v35, v36, v37, v38) │
00:00:29 #6054 [Verbose] > │ | UH0_1 -> (* StreamNil *) │
00:00:29 #6055 [Verbose] > │ UH0_1 │
00:00:29 #6056 [Verbose] > │ | UH1_1 -> (* StreamNil *) │
00:00:29 #6057 [Verbose] > │ UH0_1 │
00:00:29 #6058 [Verbose] > │ let v46 : (unit -> UH0) = closure4(v45) │
00:00:29 #6059 [Verbose] > │ let v47 : (unit -> UH0) = method1(v45, v46) │
00:00:29 #6060 [Verbose] > │ let v48 : UH0 = v47 () │
00:00:29 #6061 [Verbose] > │ let v76 : UH2 = │
00:00:29 #6062 [Verbose] > │ match v2 with │
00:00:29 #6063 [Verbose] > │ | UH0_0(v49, v50, v51, v52, v53, v54, v55, v56, v57, v58) -> (* │
00:00:29 #6064 [Verbose] > │ StreamCons *) │
00:00:29 #6065 [Verbose] > │ match v48 with │
00:00:29 #6066 [Verbose] > │ | UH0_0(v59, v60, v61, v62, v63, v64, v65, v66, v67, v68) -> (* │
00:00:29 #6067 [Verbose] > │ StreamCons *) │
00:00:29 #6068 [Verbose] > │ let v69 : (unit -> UH2) = closure6(v68, v58) │
00:00:29 #6069 [Verbose] > │ UH2_0(v49, v50, v51, v52, v53, v54, v55, v56, v57, v59, v60, │
00:00:29 #6070 [Verbose] > │ v61, v62, v63, v64, v65, v66, v67, v69) │
00:00:29 #6071 [Verbose] > │ | UH0_1 -> (* StreamNil *) │
00:00:29 #6072 [Verbose] > │ UH2_1 │
00:00:29 #6073 [Verbose] > │ | UH0_1 -> (* StreamNil *) │
00:00:29 #6074 [Verbose] > │ UH2_1 │
00:00:29 #6075 [Verbose] > │ let v77 : UH0 = UH0_1 │
00:00:29 #6076 [Verbose] > │ let v78 : UH0 = method2(v0, v76, v77) │
00:00:29 #6077 [Verbose] > │ v78 │
00:00:29 #6078 [Verbose] > │ and closure1 (v0 : float) (v1 : (UH0 -> UH1)) : (UH0 -> UH0) = │
00:00:29 #6079 [Verbose] > │ closure2(v0, v1) │
00:00:29 #6080 [Verbose] > │ and closure0 () (v0 : float) : ((UH0 -> UH1) -> (UH0 -> UH0)) = │
00:00:29 #6081 [Verbose] > │ closure1(v0) │
00:00:29 #6082 [Verbose] > │ and closure9 (v0 : UH3) () : UH3 = │
00:00:29 #6083 [Verbose] > │ v0 │
00:00:29 #6084 [Verbose] > │ and method3 (v0 : UH0, v1 : UH3, v2 : int32) : struct (UH3 * int32) = │
00:00:29 #6085 [Verbose] > │ match v0 with │
00:00:29 #6086 [Verbose] > │ | UH0_0(v3, v4, v5, v6, v7, v8, v9, v10, v11, v12) -> (* StreamCons *) │
00:00:29 #6087 [Verbose] > │ let v13 : int32 = v2 + 1 │
00:00:29 #6088 [Verbose] > │ let v14 : UH0 = v12 () │
00:00:29 #6089 [Verbose] > │ let v15 : (unit -> UH3) = closure9(v1) │
00:00:29 #6090 [Verbose] > │ let v16 : UH3 = UH3_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v15) │
00:00:29 #6091 [Verbose] > │ method3(v14, v16, v13) │
00:00:29 #6092 [Verbose] > │ | UH0_1 -> (* StreamNil *) │
00:00:29 #6093 [Verbose] > │ struct (v1, v2) │
00:00:29 #6094 [Verbose] > │ and closure10 (v0 : UH3) () : UH3 = │
00:00:29 #6095 [Verbose] > │ v0 │
00:00:29 #6096 [Verbose] > │ and method4 (v0 : UH3, v1 : UH3) : UH3 = │
00:00:29 #6097 [Verbose] > │ match v0 with │
00:00:29 #6098 [Verbose] > │ | UH3_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12) -> (* StreamCons │
00:00:29 #6099 [Verbose] > │ *) │
00:00:29 #6100 [Verbose] > │ let v13 : UH3 = v12 () │
00:00:29 #6101 [Verbose] > │ let v14 : (unit -> UH3) = closure10(v1) │
00:00:29 #6102 [Verbose] > │ let v15 : UH3 = UH3_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v14) │
00:00:29 #6103 [Verbose] > │ method4(v13, v15) │
00:00:29 #6104 [Verbose] > │ | UH3_1 -> (* StreamNil *) │
00:00:29 #6105 [Verbose] > │ v1 │
00:00:29 #6106 [Verbose] > │ and method6 (v0 : int32, v1 : UH0) : US2 = │
00:00:29 #6107 [Verbose] > │ match v1 with │
00:00:29 #6108 [Verbose] > │ | UH0_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11) -> (* StreamCons *) │
00:00:29 #6109 [Verbose] > │ let v12 : bool = v0 <= 0 │
00:00:29 #6110 [Verbose] > │ if v12 then │
00:00:29 #6111 [Verbose] > │ US2_1(v2, v3, v4, v5, v6, v7, v8, v9, v10) │
00:00:29 #6112 [Verbose] > │ else │
00:00:29 #6113 [Verbose] > │ let v14 : int32 = v0 - 1 │
00:00:29 #6114 [Verbose] > │ let v15 : UH0 = v11 () │
00:00:29 #6115 [Verbose] > │ method6(v14, v15) │
00:00:29 #6116 [Verbose] > │ | UH0_1 -> (* StreamNil *) │
00:00:29 #6117 [Verbose] > │ US2_0 │
00:00:29 #6118 [Verbose] > │ and closure11 (v0 : float, v1 : float, v2 : float, v3 : float, v4 : float, │
00:00:29 #6119 [Verbose] > │ v5 : float, v6 : float, v7 : float, v8 : float) struct (v9 : float, v10 : │
00:00:29 #6120 [Verbose] > │ float, v11 : float, v12 : float, v13 : float, v14 : float, v15 : float, v16 │
00:00:29 #6121 [Verbose] > │ : float, v17 : float) : struct (float * float * float) = │
00:00:29 #6122 [Verbose] > │ let v18 : float = -1.0 * v2 │
00:00:29 #6123 [Verbose] > │ let v19 : float = -1.0 * v3 │
00:00:29 #6124 [Verbose] > │ let v20 : float = -1.0 * v4 │
00:00:29 #6125 [Verbose] > │ let v21 : float = v11 + v18 │
00:00:29 #6126 [Verbose] > │ let v22 : float = v12 + v19 │
00:00:29 #6127 [Verbose] > │ let v23 : float = v13 + v20 │
00:00:29 #6128 [Verbose] > │ let v24 : float = v21 * v21 │
00:00:29 #6129 [Verbose] > │ let v25 : float = v22 * v22 │
00:00:29 #6130 [Verbose] > │ let v26 : float = v24 + v25 │
00:00:29 #6131 [Verbose] > │ let v27 : float = v23 * v23 │
00:00:29 #6132 [Verbose] > │ let v28 : float = v26 + v27 │
00:00:29 #6133 [Verbose] > │ let v29 : float = sqrt v28 │
00:00:29 #6134 [Verbose] > │ let v30 : bool = v29 >= 0.06 │
00:00:29 #6135 [Verbose] > │ let v33 : float = │
00:00:29 #6136 [Verbose] > │ if v30 then │
00:00:29 #6137 [Verbose] > │ 0.0 │
00:00:29 #6138 [Verbose] > │ else │
00:00:29 #6139 [Verbose] > │ let v31 : float = v29 - 0.06 │
00:00:29 #6140 [Verbose] > │ let v32 : float = -30.0 * v31 │
00:00:29 #6141 [Verbose] > │ v32 │
00:00:29 #6142 [Verbose] > │ let v34 : float = v33 * v21 │
00:00:29 #6143 [Verbose] > │ let v35 : float = v33 * v22 │
00:00:29 #6144 [Verbose] > │ let v36 : float = v33 * v23 │
00:00:29 #6145 [Verbose] > │ let v37 : float = v34 / v29 │
00:00:29 #6146 [Verbose] > │ let v38 : float = v35 / v29 │
00:00:29 #6147 [Verbose] > │ let v39 : float = v36 / v29 │
00:00:29 #6148 [Verbose] > │ struct (v37, v38, v39) │
00:00:29 #6149 [Verbose] > │ and closure12 () struct (v0 : float, v1 : float, v2 : float, v3 : float, v4 │
00:00:29 #6150 [Verbose] > │ : float, v5 : float, v6 : float, v7 : float, v8 : float) : struct (float * │
00:00:29 #6151 [Verbose] > │ float * float) = │
00:00:29 #6152 [Verbose] > │ struct (0.0, 0.0, 0.0) │
00:00:29 #6153 [Verbose] > │ and closure13 (v0 : UH1) () : UH1 = │
00:00:29 #6154 [Verbose] > │ v0 │
00:00:29 #6155 [Verbose] > │ and method5 (v0 : UH0, v1 : UH3, v2 : UH1) : UH1 = │
00:00:29 #6156 [Verbose] > │ match v1 with │
00:00:29 #6157 [Verbose] > │ | UH3_0(v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13) -> (* StreamCons │
00:00:29 #6158 [Verbose] > │ *) │
00:00:29 #6159 [Verbose] > │ let v14 : UH3 = v13 () │
00:00:29 #6160 [Verbose] > │ let v15 : UH1 = method5(v0, v14, v2) │
00:00:29 #6161 [Verbose] > │ let v16 : bool = v3 = 0 │
00:00:29 #6162 [Verbose] > │ let v52 : US1 = │
00:00:29 #6163 [Verbose] > │ if v16 then │
00:00:29 #6164 [Verbose] > │ let v17 : int32 = 1 │
00:00:29 #6165 [Verbose] > │ let v18 : US2 = method6(v17, v0) │
00:00:29 #6166 [Verbose] > │ match v18 with │
00:00:29 #6167 [Verbose] > │ | US2_0 -> (* None *) │
00:00:29 #6168 [Verbose] > │ US1_0 │
00:00:29 #6169 [Verbose] > │ | US2_1(v19, v20, v21, v22, v23, v24, v25, v26, v27) -> (* │
00:00:29 #6170 [Verbose] > │ Some *) │
00:00:29 #6171 [Verbose] > │ let v28 : (struct (float * float * float * float * float │
00:00:29 #6172 [Verbose] > │ * float * float * float * float) -> struct (float * float * float)) = │
00:00:29 #6173 [Verbose] > │ closure11(v19, v20, v21, v22, v23, v24, v25, v26, v27) │
00:00:29 #6174 [Verbose] > │ US1_1(v28) │
00:00:29 #6175 [Verbose] > │ else │
00:00:29 #6176 [Verbose] > │ let v33 : bool = v3 = 1 │
00:00:29 #6177 [Verbose] > │ if v33 then │
00:00:29 #6178 [Verbose] > │ let v34 : int32 = 0 │
00:00:29 #6179 [Verbose] > │ let v35 : US2 = method6(v34, v0) │
00:00:29 #6180 [Verbose] > │ match v35 with │
00:00:29 #6181 [Verbose] > │ | US2_0 -> (* None *) │
00:00:29 #6182 [Verbose] > │ US1_0 │
00:00:29 #6183 [Verbose] > │ | US2_1(v36, v37, v38, v39, v40, v41, v42, v43, v44) -> │
00:00:29 #6184 [Verbose] > │ (* Some *) │
00:00:29 #6185 [Verbose] > │ let v45 : (struct (float * float * float * float * │
00:00:29 #6186 [Verbose] > │ float * float * float * float * float) -> struct (float * float * float)) = │
00:00:29 #6187 [Verbose] > │ closure11(v36, v37, v38, v39, v40, v41, v42, v43, v44) │
00:00:29 #6188 [Verbose] > │ US1_1(v45) │
00:00:29 #6189 [Verbose] > │ else │
00:00:29 #6190 [Verbose] > │ US1_0 │
00:00:29 #6191 [Verbose] > │ let v56 : (struct (float * float * float * float * float * float * │
00:00:29 #6192 [Verbose] > │ float * float * float) -> struct (float * float * float)) = │
00:00:29 #6193 [Verbose] > │ match v52 with │
00:00:29 #6194 [Verbose] > │ | US1_0 -> (* None *) │
00:00:29 #6195 [Verbose] > │ closure12() │
00:00:29 #6196 [Verbose] > │ | US1_1(v53) -> (* Some *) │
00:00:29 #6197 [Verbose] > │ v53 │
00:00:29 #6198 [Verbose] > │ let struct (v57 : float, v58 : float, v59 : float) = v56 struct (v4, │
00:00:29 #6199 [Verbose] > │ v5, v6, v7, v8, v9, v10, v11, v12) │
00:00:29 #6200 [Verbose] > │ let v60 : float = v57 / v5 │
00:00:29 #6201 [Verbose] > │ let v61 : float = v58 / v5 │
00:00:29 #6202 [Verbose] > │ let v62 : float = v59 / v5 │
00:00:29 #6203 [Verbose] > │ let v63 : (unit -> UH1) = closure13(v15) │
00:00:29 #6204 [Verbose] > │ UH1_0(0.0, 0.0, v10, v11, v12, 1.0, v60, v61, v62, v63) │
00:00:29 #6205 [Verbose] > │ | UH3_1 -> (* StreamNil *) │
00:00:29 #6206 [Verbose] > │ v2 │
00:00:29 #6207 [Verbose] > │ and closure8 () (v0 : UH0) : UH1 = │
00:00:29 #6208 [Verbose] > │ let v1 : UH3 = UH3_1 │
00:00:29 #6209 [Verbose] > │ let v2 : int32 = 0 │
00:00:29 #6210 [Verbose] > │ let struct (v3 : UH3, v4 : int32) = method3(v0, v1, v2) │
00:00:29 #6211 [Verbose] > │ let v5 : UH3 = UH3_1 │
00:00:29 #6212 [Verbose] > │ let v6 : UH3 = method4(v3, v5) │
00:00:29 #6213 [Verbose] > │ let v7 : UH1 = UH1_1 │
00:00:29 #6214 [Verbose] > │ let v8 : UH1 = method5(v0, v6, v7) │
00:00:29 #6215 [Verbose] > │ v8 │
00:00:29 #6216 [Verbose] > │ and method8 (v0 : int32, v1 : int32) : UH5 = │
00:00:29 #6217 [Verbose] > │ let v2 : bool = v1 < v0 │
00:00:29 #6218 [Verbose] > │ if v2 then │
00:00:29 #6219 [Verbose] > │ let v3 : int32 = v1 + 1 │
00:00:29 #6220 [Verbose] > │ let v4 : UH5 = method8(v0, v3) │
00:00:29 #6221 [Verbose] > │ UH5_0(v1, v4) │
00:00:29 #6222 [Verbose] > │ else │
00:00:29 #6223 [Verbose] > │ UH5_1 │
00:00:29 #6224 [Verbose] > │ and closure15 () () : UH0 = │
00:00:29 #6225 [Verbose] > │ UH0_1 │
00:00:29 #6226 [Verbose] > │ and closure14 () () : UH0 = │
00:00:29 #6227 [Verbose] > │ let v0 : (unit -> UH0) = closure15() │
00:00:29 #6228 [Verbose] > │ UH0_0(0.0, 0.16, 1.0, 0.02, 0.0, 0.0, 0.0, 0.0, 0.0, v0) │
00:00:29 #6229 [Verbose] > │ and method9 (v0 : (UH0 -> UH0), v1 : UH5, v2 : UH0) : UH0 = │
00:00:29 #6230 [Verbose] > │ match v1 with │
00:00:29 #6231 [Verbose] > │ | UH5_0(v3, v4) -> (* Cons *) │
00:00:29 #6232 [Verbose] > │ let v5 : (unit -> UH0) = closure4(v2) │
00:00:29 #6233 [Verbose] > │ let v6 : (unit -> UH0) = method1(v2, v5) │
00:00:29 #6234 [Verbose] > │ let v7 : UH0 = v6 () │
00:00:29 #6235 [Verbose] > │ let v8 : UH0 = v0 v7 │
00:00:29 #6236 [Verbose] > │ method9(v0, v4, v8) │
00:00:29 #6237 [Verbose] > │ | UH5_1 -> (* Nil *) │
00:00:29 #6238 [Verbose] > │ v2 │
00:00:29 #6239 [Verbose] > │ and method10 (v0 : UH4, v1 : UH4) : UH4 = │
00:00:29 #6240 [Verbose] > │ match v0 with │
00:00:29 #6241 [Verbose] > │ | UH4_0(v2, v3) -> (* Cons *) │
00:00:29 #6242 [Verbose] > │ let v4 : UH4 = UH4_0(v2, v1) │
00:00:29 #6243 [Verbose] > │ method10(v3, v4) │
00:00:29 #6244 [Verbose] > │ | UH4_1 -> (* Nil *) │
00:00:29 #6245 [Verbose] > │ v1 │
00:00:29 #6246 [Verbose] > │ and method7 (v0 : (UH0 -> UH0), v1 : UH4, v2 : int32) : UH4 = │
00:00:29 #6247 [Verbose] > │ let v3 : int32 = 0 │
00:00:29 #6248 [Verbose] > │ let v4 : UH5 = method8(v2, v3) │
00:00:29 #6249 [Verbose] > │ let v5 : float = 0.0 │
00:00:29 #6250 [Verbose] > │ let v6 : float = 0.16 │
00:00:29 #6251 [Verbose] > │ let v7 : float = 0.0 │
00:00:29 #6252 [Verbose] > │ let v8 : float = 0.0 │
00:00:29 #6253 [Verbose] > │ let v9 : float = 0.0 │
00:00:29 #6254 [Verbose] > │ let v10 : float = 0.0 │
00:00:29 #6255 [Verbose] > │ let v11 : float = 0.2 │
00:00:29 #6256 [Verbose] > │ let v12 : float = 0.0 │
00:00:29 #6257 [Verbose] > │ let v13 : float = 0.0 │
00:00:29 #6258 [Verbose] > │ let v14 : (unit -> UH0) = closure14() │
00:00:29 #6259 [Verbose] > │ let v15 : UH0 = UH0_0(v5, v6, v7, v8, v9, v10, v11, v12, v13, v14) │
00:00:29 #6260 [Verbose] > │ let v16 : UH0 = method9(v0, v4, v15) │
00:00:29 #6261 [Verbose] > │ let v17 : int32 = 0 │
00:00:29 #6262 [Verbose] > │ let v18 : US2 = method6(v17, v16) │
00:00:29 #6263 [Verbose] > │ let v30 : bool = │
00:00:29 #6264 [Verbose] > │ match v18 with │
00:00:29 #6265 [Verbose] > │ | US2_0 -> (* None *) │
00:00:29 #6266 [Verbose] > │ false │
00:00:29 #6267 [Verbose] > │ | US2_1(v19, v20, v21, v22, v23, v24, v25, v26, v27) -> (* Some *) │
00:00:29 #6268 [Verbose] > │ let v28 : bool = v24 <= 10.0 │
00:00:29 #6269 [Verbose] > │ v28 │
00:00:29 #6270 [Verbose] > │ if v30 then │
00:00:29 #6271 [Verbose] > │ let v31 : UH4 = UH4_0(v16, v1) │
00:00:29 #6272 [Verbose] > │ let v32 : int32 = v2 + 1 │
00:00:29 #6273 [Verbose] > │ method7(v0, v31, v32) │
00:00:29 #6274 [Verbose] > │ else │
00:00:29 #6275 [Verbose] > │ let v34 : UH4 = UH4_1 │
00:00:29 #6276 [Verbose] > │ method10(v1, v34) │
00:00:29 #6277 [Verbose] > │ and closure16 (v0 : UH7) () : UH7 = │
00:00:29 #6278 [Verbose] > │ v0 │
00:00:29 #6279 [Verbose] > │ and method12 (v0 : UH0, v1 : UH7) : UH7 = │
00:00:29 #6280 [Verbose] > │ match v0 with │
00:00:29 #6281 [Verbose] > │ | UH0_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11) -> (* StreamCons *) │
00:00:29 #6282 [Verbose] > │ let v12 : UH0 = v11 () │
00:00:29 #6283 [Verbose] > │ let v13 : UH7 = method12(v12, v1) │
00:00:29 #6284 [Verbose] > │ let v14 : float = v8 * v8 │
00:00:29 #6285 [Verbose] > │ let v15 : float = v9 * v9 │
00:00:29 #6286 [Verbose] > │ let v16 : float = v14 + v15 │
00:00:29 #6287 [Verbose] > │ let v17 : float = v10 * v10 │
00:00:29 #6288 [Verbose] > │ let v18 : float = v16 + v17 │
00:00:29 #6289 [Verbose] > │ let v19 : float = sqrt v18 │
00:00:29 #6290 [Verbose] > │ let v20 : float = 0.5 * v3 │
00:00:29 #6291 [Verbose] > │ let v21 : float = v19 ** 2.0 │
00:00:29 #6292 [Verbose] > │ let v22 : float = v20 * v21 │
00:00:29 #6293 [Verbose] > │ let v23 : (unit -> UH7) = closure16(v13) │
00:00:29 #6294 [Verbose] > │ UH7_0(v22, v23) │
00:00:29 #6295 [Verbose] > │ | UH0_1 -> (* StreamNil *) │
00:00:29 #6296 [Verbose] > │ v1 │
00:00:29 #6297 [Verbose] > │ and method13 (v0 : UH7, v1 : float) : float = │
00:00:29 #6298 [Verbose] > │ match v0 with │
00:00:29 #6299 [Verbose] > │ | UH7_0(v2, v3) -> (* StreamCons *) │
00:00:29 #6300 [Verbose] > │ let v4 : float = v1 + v2 │
00:00:29 #6301 [Verbose] > │ let v5 : UH7 = v3 () │
00:00:29 #6302 [Verbose] > │ method13(v5, v4) │
00:00:29 #6303 [Verbose] > │ | UH7_1 -> (* StreamNil *) │
00:00:29 #6304 [Verbose] > │ v1 │
00:00:29 #6305 [Verbose] > │ and method11 (v0 : UH4, v1 : UH6) : UH6 = │
00:00:29 #6306 [Verbose] > │ match v0 with │
00:00:29 #6307 [Verbose] > │ | UH4_0(v2, v3) -> (* Cons *) │
00:00:29 #6308 [Verbose] > │ let v4 : UH6 = method11(v3, v1) │
00:00:29 #6309 [Verbose] > │ let v5 : int32 = 0 │
00:00:29 #6310 [Verbose] > │ let v6 : US2 = method6(v5, v2) │
00:00:29 #6311 [Verbose] > │ let v23 : US3 = │
00:00:29 #6312 [Verbose] > │ match v6 with │
00:00:29 #6313 [Verbose] > │ | US2_0 -> (* None *) │
00:00:29 #6314 [Verbose] > │ US3_0 │
00:00:29 #6315 [Verbose] > │ | US2_1(v7, v8, v9, v10, v11, v12, v13, v14, v15) -> (* Some *) │
00:00:29 #6316 [Verbose] > │ let v16 : UH7 = UH7_1 │
00:00:29 #6317 [Verbose] > │ let v17 : UH7 = method12(v2, v16) │
00:00:29 #6318 [Verbose] > │ let v18 : float = 0.0 │
00:00:29 #6319 [Verbose] > │ let v19 : float = method13(v17, v18) │
00:00:29 #6320 [Verbose] > │ US3_1(v12, v19) │
00:00:29 #6321 [Verbose] > │ UH6_0(v23, v4) │
00:00:29 #6322 [Verbose] > │ | UH4_1 -> (* Nil *) │
00:00:29 #6323 [Verbose] > │ v1 │
00:00:29 #6324 [Verbose] > │ and method14 (v0 : UH6, v1 : UH8) : UH8 = │
00:00:29 #6325 [Verbose] > │ match v0 with │
00:00:29 #6326 [Verbose] > │ | UH6_0(v2, v3) -> (* Cons *) │
00:00:29 #6327 [Verbose] > │ let v4 : UH8 = method14(v3, v1) │
00:00:29 #6328 [Verbose] > │ match v2 with │
00:00:29 #6329 [Verbose] > │ | US3_0 -> (* None *) │
00:00:29 #6330 [Verbose] > │ v4 │
00:00:29 #6331 [Verbose] > │ | US3_1(v5, v6) -> (* Some *) │
00:00:29 #6332 [Verbose] > │ UH8_0(v5, v6, v4) │
00:00:29 #6333 [Verbose] > │ | UH6_1 -> (* Nil *) │
00:00:29 #6334 [Verbose] > │ v1 │
00:00:29 #6335 [Verbose] > │ and method15 (v0 : UH8, v1 : UH9, v2 : UH9) : struct (UH9 * UH9) = │
00:00:29 #6336 [Verbose] > │ match v0 with │
00:00:29 #6337 [Verbose] > │ | UH8_0(v3, v4, v5) -> (* Cons *) │
00:00:29 #6338 [Verbose] > │ let v6 : UH9 = UH9_0(v3, v1) │
00:00:29 #6339 [Verbose] > │ let v7 : UH9 = UH9_0(v4, v2) │
00:00:29 #6340 [Verbose] > │ method15(v5, v6, v7) │
00:00:29 #6341 [Verbose] > │ | UH8_1 -> (* Nil *) │
00:00:29 #6342 [Verbose] > │ struct (v1, v2) │
00:00:29 #6343 [Verbose] > │ and method16 (v0 : UH9, v1 : UH9) : UH9 = │
00:00:29 #6344 [Verbose] > │ match v0 with │
00:00:29 #6345 [Verbose] > │ | UH9_0(v2, v3) -> (* Cons *) │
00:00:29 #6346 [Verbose] > │ let v4 : UH9 = UH9_0(v2, v1) │
00:00:29 #6347 [Verbose] > │ method16(v3, v4) │
00:00:29 #6348 [Verbose] > │ | UH9_1 -> (* Nil *) │
00:00:29 #6349 [Verbose] > │ v1 │
00:00:29 #6350 [Verbose] > │ and closure20 (v0 : (unit -> UH1), v1 : (unit -> UH1)) () : UH1 = │
00:00:29 #6351 [Verbose] > │ let v2 : UH1 = v1 () │
00:00:29 #6352 [Verbose] > │ let v3 : UH1 = v0 () │
00:00:29 #6353 [Verbose] > │ match v2 with │
00:00:29 #6354 [Verbose] > │ | UH1_0(v4, v5, v6, v7, v8, v9, v10, v11, v12, v13) -> (* StreamCons *) │
00:00:29 #6355 [Verbose] > │ match v3 with │
00:00:29 #6356 [Verbose] > │ | UH1_0(v14, v15, v16, v17, v18, v19, v20, v21, v22, v23) -> (* │
00:00:29 #6357 [Verbose] > │ StreamCons *) │
00:00:29 #6358 [Verbose] > │ let v24 : float = v4 + v14 │
00:00:29 #6359 [Verbose] > │ let v25 : float = v5 + v15 │
00:00:29 #6360 [Verbose] > │ let v26 : float = v9 + v19 │
00:00:29 #6361 [Verbose] > │ let v27 : float = v6 + v16 │
00:00:29 #6362 [Verbose] > │ let v28 : float = v7 + v17 │
00:00:29 #6363 [Verbose] > │ let v29 : float = v8 + v18 │
00:00:29 #6364 [Verbose] > │ let v30 : float = v10 + v20 │
00:00:29 #6365 [Verbose] > │ let v31 : float = v11 + v21 │
00:00:29 #6366 [Verbose] > │ let v32 : float = v12 + v22 │
00:00:29 #6367 [Verbose] > │ let v33 : (unit -> UH1) = closure20(v23, v13) │
00:00:29 #6368 [Verbose] > │ UH1_0(v24, v25, v27, v28, v29, v26, v30, v31, v32, v33) │
00:00:29 #6369 [Verbose] > │ | UH1_1 -> (* StreamNil *) │
00:00:29 #6370 [Verbose] > │ UH1_1 │
00:00:29 #6371 [Verbose] > │ | UH1_1 -> (* StreamNil *) │
00:00:29 #6372 [Verbose] > │ UH1_1 │
00:00:29 #6373 [Verbose] > │ and closure19 (v0 : float, v1 : (UH0 -> UH1)) (v2 : UH0) : UH0 = │
00:00:29 #6374 [Verbose] > │ let v3 : UH1 = v1 v2 │
00:00:29 #6375 [Verbose] > │ let v4 : float = v0 / 2.0 │
00:00:29 #6376 [Verbose] > │ let v46 : UH0 = │
00:00:29 #6377 [Verbose] > │ match v3 with │
00:00:29 #6378 [Verbose] > │ | UH1_0(v5, v6, v7, v8, v9, v10, v11, v12, v13, v14) -> (* │
00:00:29 #6379 [Verbose] > │ StreamCons *) │
00:00:29 #6380 [Verbose] > │ match v2 with │
00:00:29 #6381 [Verbose] > │ | UH0_0(v15, v16, v17, v18, v19, v20, v21, v22, v23, v24) -> (* │
00:00:29 #6382 [Verbose] > │ StreamCons *) │
00:00:29 #6383 [Verbose] > │ let v25 : float = v10 * v4 │
00:00:29 #6384 [Verbose] > │ let v26 : float = v20 + v25 │
00:00:29 #6385 [Verbose] > │ let v27 : float = v4 * v7 │
00:00:29 #6386 [Verbose] > │ let v28 : float = v4 * v8 │
00:00:29 #6387 [Verbose] > │ let v29 : float = v4 * v9 │
00:00:29 #6388 [Verbose] > │ let v30 : float = v17 + v27 │
00:00:29 #6389 [Verbose] > │ let v31 : float = v18 + v28 │
00:00:29 #6390 [Verbose] > │ let v32 : float = v19 + v29 │
00:00:29 #6391 [Verbose] > │ let v33 : float = v4 * v11 │
00:00:29 #6392 [Verbose] > │ let v34 : float = v4 * v12 │
00:00:29 #6393 [Verbose] > │ let v35 : float = v4 * v13 │
00:00:29 #6394 [Verbose] > │ let v36 : float = v21 + v33 │
00:00:29 #6395 [Verbose] > │ let v37 : float = v22 + v34 │
00:00:29 #6396 [Verbose] > │ let v38 : float = v23 + v35 │
00:00:29 #6397 [Verbose] > │ let v39 : (unit -> UH0) = closure3(v4, v24, v14) │
00:00:29 #6398 [Verbose] > │ UH0_0(v15, v16, v30, v31, v32, v26, v36, v37, v38, v39) │
00:00:29 #6399 [Verbose] > │ | UH0_1 -> (* StreamNil *) │
00:00:29 #6400 [Verbose] > │ UH0_1 │
00:00:29 #6401 [Verbose] > │ | UH1_1 -> (* StreamNil *) │
00:00:29 #6402 [Verbose] > │ UH0_1 │
00:00:29 #6403 [Verbose] > │ let v47 : (unit -> UH0) = closure4(v46) │
00:00:29 #6404 [Verbose] > │ let v48 : (unit -> UH0) = method1(v46, v47) │
00:00:29 #6405 [Verbose] > │ let v49 : UH0 = v48 () │
00:00:29 #6406 [Verbose] > │ let v50 : UH1 = v1 v49 │
00:00:29 #6407 [Verbose] > │ let v92 : UH0 = │
00:00:29 #6408 [Verbose] > │ match v50 with │
00:00:29 #6409 [Verbose] > │ | UH1_0(v51, v52, v53, v54, v55, v56, v57, v58, v59, v60) -> (* │
00:00:29 #6410 [Verbose] > │ StreamCons *) │
00:00:29 #6411 [Verbose] > │ match v2 with │
00:00:29 #6412 [Verbose] > │ | UH0_0(v61, v62, v63, v64, v65, v66, v67, v68, v69, v70) -> (* │
00:00:29 #6413 [Verbose] > │ StreamCons *) │
00:00:29 #6414 [Verbose] > │ let v71 : float = v56 * v4 │
00:00:29 #6415 [Verbose] > │ let v72 : float = v66 + v71 │
00:00:29 #6416 [Verbose] > │ let v73 : float = v4 * v53 │
00:00:29 #6417 [Verbose] > │ let v74 : float = v4 * v54 │
00:00:29 #6418 [Verbose] > │ let v75 : float = v4 * v55 │
00:00:29 #6419 [Verbose] > │ let v76 : float = v63 + v73 │
00:00:29 #6420 [Verbose] > │ let v77 : float = v64 + v74 │
00:00:29 #6421 [Verbose] > │ let v78 : float = v65 + v75 │
00:00:29 #6422 [Verbose] > │ let v79 : float = v4 * v57 │
00:00:29 #6423 [Verbose] > │ let v80 : float = v4 * v58 │
00:00:29 #6424 [Verbose] > │ let v81 : float = v4 * v59 │
00:00:29 #6425 [Verbose] > │ let v82 : float = v67 + v79 │
00:00:29 #6426 [Verbose] > │ let v83 : float = v68 + v80 │
00:00:29 #6427 [Verbose] > │ let v84 : float = v69 + v81 │
00:00:29 #6428 [Verbose] > │ let v85 : (unit -> UH0) = closure3(v4, v70, v60) │
00:00:29 #6429 [Verbose] > │ UH0_0(v61, v62, v76, v77, v78, v72, v82, v83, v84, v85) │
00:00:29 #6430 [Verbose] > │ | UH0_1 -> (* StreamNil *) │
00:00:29 #6431 [Verbose] > │ UH0_1 │
00:00:29 #6432 [Verbose] > │ | UH1_1 -> (* StreamNil *) │
00:00:29 #6433 [Verbose] > │ UH0_1 │
00:00:29 #6434 [Verbose] > │ let v93 : (unit -> UH0) = closure4(v92) │
00:00:29 #6435 [Verbose] > │ let v94 : (unit -> UH0) = method1(v92, v93) │
00:00:29 #6436 [Verbose] > │ let v95 : UH0 = v94 () │
00:00:29 #6437 [Verbose] > │ let v96 : UH1 = v1 v95 │
00:00:29 #6438 [Verbose] > │ let v138 : UH0 = │
00:00:29 #6439 [Verbose] > │ match v96 with │
00:00:29 #6440 [Verbose] > │ | UH1_0(v97, v98, v99, v100, v101, v102, v103, v104, v105, v106) -> │
00:00:29 #6441 [Verbose] > │ (* StreamCons *) │
00:00:29 #6442 [Verbose] > │ match v2 with │
00:00:29 #6443 [Verbose] > │ | UH0_0(v107, v108, v109, v110, v111, v112, v113, v114, v115, │
00:00:29 #6444 [Verbose] > │ v116) -> (* StreamCons *) │
00:00:29 #6445 [Verbose] > │ let v117 : float = v102 * v0 │
00:00:29 #6446 [Verbose] > │ let v118 : float = v112 + v117 │
00:00:29 #6447 [Verbose] > │ let v119 : float = v0 * v99 │
00:00:29 #6448 [Verbose] > │ let v120 : float = v0 * v100 │
00:00:29 #6449 [Verbose] > │ let v121 : float = v0 * v101 │
00:00:29 #6450 [Verbose] > │ let v122 : float = v109 + v119 │
00:00:29 #6451 [Verbose] > │ let v123 : float = v110 + v120 │
00:00:29 #6452 [Verbose] > │ let v124 : float = v111 + v121 │
00:00:29 #6453 [Verbose] > │ let v125 : float = v0 * v103 │
00:00:29 #6454 [Verbose] > │ let v126 : float = v0 * v104 │
00:00:29 #6455 [Verbose] > │ let v127 : float = v0 * v105 │
00:00:29 #6456 [Verbose] > │ let v128 : float = v113 + v125 │
00:00:29 #6457 [Verbose] > │ let v129 : float = v114 + v126 │
00:00:29 #6458 [Verbose] > │ let v130 : float = v115 + v127 │
00:00:29 #6459 [Verbose] > │ let v131 : (unit -> UH0) = closure3(v0, v116, v106) │
00:00:29 #6460 [Verbose] > │ UH0_0(v107, v108, v122, v123, v124, v118, v128, v129, v130, │
00:00:29 #6461 [Verbose] > │ v131) │
00:00:29 #6462 [Verbose] > │ | UH0_1 -> (* StreamNil *) │
00:00:29 #6463 [Verbose] > │ UH0_1 │
00:00:29 #6464 [Verbose] > │ | UH1_1 -> (* StreamNil *) │
00:00:29 #6465 [Verbose] > │ UH0_1 │
00:00:29 #6466 [Verbose] > │ let v139 : (unit -> UH0) = closure4(v138) │
00:00:29 #6467 [Verbose] > │ let v140 : (unit -> UH0) = method1(v138, v139) │
00:00:29 #6468 [Verbose] > │ let v141 : UH0 = v140 () │
00:00:29 #6469 [Verbose] > │ let v142 : UH1 = v1 v141 │
00:00:29 #6470 [Verbose] > │ let v143 : float = v0 / 6.0 │
00:00:29 #6471 [Verbose] > │ let v180 : UH1 = │
00:00:29 #6472 [Verbose] > │ match v3 with │
00:00:29 #6473 [Verbose] > │ | UH1_0(v144, v145, v146, v147, v148, v149, v150, v151, v152, v153) │
00:00:29 #6474 [Verbose] > │ -> (* StreamCons *) │
00:00:29 #6475 [Verbose] > │ match v50 with │
00:00:29 #6476 [Verbose] > │ | UH1_0(v154, v155, v156, v157, v158, v159, v160, v161, v162, │
00:00:29 #6477 [Verbose] > │ v163) -> (* StreamCons *) │
00:00:29 #6478 [Verbose] > │ let v164 : float = v144 + v154 │
00:00:29 #6479 [Verbose] > │ let v165 : float = v145 + v155 │
00:00:29 #6480 [Verbose] > │ let v166 : float = v149 + v159 │
00:00:29 #6481 [Verbose] > │ let v167 : float = v146 + v156 │
00:00:29 #6482 [Verbose] > │ let v168 : float = v147 + v157 │
00:00:29 #6483 [Verbose] > │ let v169 : float = v148 + v158 │
00:00:29 #6484 [Verbose] > │ let v170 : float = v150 + v160 │
00:00:29 #6485 [Verbose] > │ let v171 : float = v151 + v161 │
00:00:29 #6486 [Verbose] > │ let v172 : float = v152 + v162 │
00:00:29 #6487 [Verbose] > │ let v173 : (unit -> UH1) = closure20(v163, v153) │
00:00:29 #6488 [Verbose] > │ UH1_0(v164, v165, v167, v168, v169, v166, v170, v171, v172, │
00:00:29 #6489 [Verbose] > │ v173) │
00:00:29 #6490 [Verbose] > │ | UH1_1 -> (* StreamNil *) │
00:00:29 #6491 [Verbose] > │ UH1_1 │
00:00:29 #6492 [Verbose] > │ | UH1_1 -> (* StreamNil *) │
00:00:29 #6493 [Verbose] > │ UH1_1 │
00:00:29 #6494 [Verbose] > │ let v217 : UH1 = │
00:00:29 #6495 [Verbose] > │ match v180 with │
00:00:29 #6496 [Verbose] > │ | UH1_0(v181, v182, v183, v184, v185, v186, v187, v188, v189, v190) │
00:00:29 #6497 [Verbose] > │ -> (* StreamCons *) │
00:00:29 #6498 [Verbose] > │ match v50 with │
00:00:29 #6499 [Verbose] > │ | UH1_0(v191, v192, v193, v194, v195, v196, v197, v198, v199, │
00:00:29 #6500 [Verbose] > │ v200) -> (* StreamCons *) │
00:00:29 #6501 [Verbose] > │ let v201 : float = v181 + v191 │
00:00:29 #6502 [Verbose] > │ let v202 : float = v182 + v192 │
00:00:29 #6503 [Verbose] > │ let v203 : float = v186 + v196 │
00:00:29 #6504 [Verbose] > │ let v204 : float = v183 + v193 │
00:00:29 #6505 [Verbose] > │ let v205 : float = v184 + v194 │
00:00:29 #6506 [Verbose] > │ let v206 : float = v185 + v195 │
00:00:29 #6507 [Verbose] > │ let v207 : float = v187 + v197 │
00:00:29 #6508 [Verbose] > │ let v208 : float = v188 + v198 │
00:00:29 #6509 [Verbose] > │ let v209 : float = v189 + v199 │
00:00:29 #6510 [Verbose] > │ let v210 : (unit -> UH1) = closure20(v200, v190) │
00:00:29 #6511 [Verbose] > │ UH1_0(v201, v202, v204, v205, v206, v203, v207, v208, v209, │
00:00:29 #6512 [Verbose] > │ v210) │
00:00:29 #6513 [Verbose] > │ | UH1_1 -> (* StreamNil *) │
00:00:29 #6514 [Verbose] > │ UH1_1 │
00:00:29 #6515 [Verbose] > │ | UH1_1 -> (* StreamNil *) │
00:00:29 #6516 [Verbose] > │ UH1_1 │
00:00:29 #6517 [Verbose] > │ let v254 : UH1 = │
00:00:29 #6518 [Verbose] > │ match v217 with │
00:00:29 #6519 [Verbose] > │ | UH1_0(v218, v219, v220, v221, v222, v223, v224, v225, v226, v227) │
00:00:29 #6520 [Verbose] > │ -> (* StreamCons *) │
00:00:29 #6521 [Verbose] > │ match v96 with │
00:00:29 #6522 [Verbose] > │ | UH1_0(v228, v229, v230, v231, v232, v233, v234, v235, v236, │
00:00:29 #6523 [Verbose] > │ v237) -> (* StreamCons *) │
00:00:29 #6524 [Verbose] > │ let v238 : float = v218 + v228 │
00:00:29 #6525 [Verbose] > │ let v239 : float = v219 + v229 │
00:00:29 #6526 [Verbose] > │ let v240 : float = v223 + v233 │
00:00:29 #6527 [Verbose] > │ let v241 : float = v220 + v230 │
00:00:29 #6528 [Verbose] > │ let v242 : float = v221 + v231 │
00:00:29 #6529 [Verbose] > │ let v243 : float = v222 + v232 │
00:00:29 #6530 [Verbose] > │ let v244 : float = v224 + v234 │
00:00:29 #6531 [Verbose] > │ let v245 : float = v225 + v235 │
00:00:29 #6532 [Verbose] > │ let v246 : float = v226 + v236 │
00:00:29 #6533 [Verbose] > │ let v247 : (unit -> UH1) = closure20(v237, v227) │
00:00:29 #6534 [Verbose] > │ UH1_0(v238, v239, v241, v242, v243, v240, v244, v245, v246, │
00:00:29 #6535 [Verbose] > │ v247) │
00:00:29 #6536 [Verbose] > │ | UH1_1 -> (* StreamNil *) │
00:00:29 #6537 [Verbose] > │ UH1_1 │
00:00:29 #6538 [Verbose] > │ | UH1_1 -> (* StreamNil *) │
00:00:29 #6539 [Verbose] > │ UH1_1 │
00:00:29 #6540 [Verbose] > │ let v291 : UH1 = │
00:00:29 #6541 [Verbose] > │ match v254 with │
00:00:29 #6542 [Verbose] > │ | UH1_0(v255, v256, v257, v258, v259, v260, v261, v262, v263, v264) │
00:00:29 #6543 [Verbose] > │ -> (* StreamCons *) │
00:00:29 #6544 [Verbose] > │ match v96 with │
00:00:29 #6545 [Verbose] > │ | UH1_0(v265, v266, v267, v268, v269, v270, v271, v272, v273, │
00:00:29 #6546 [Verbose] > │ v274) -> (* StreamCons *) │
00:00:29 #6547 [Verbose] > │ let v275 : float = v255 + v265 │
00:00:29 #6548 [Verbose] > │ let v276 : float = v256 + v266 │
00:00:29 #6549 [Verbose] > │ let v277 : float = v260 + v270 │
00:00:29 #6550 [Verbose] > │ let v278 : float = v257 + v267 │
00:00:29 #6551 [Verbose] > │ let v279 : float = v258 + v268 │
00:00:29 #6552 [Verbose] > │ let v280 : float = v259 + v269 │
00:00:29 #6553 [Verbose] > │ let v281 : float = v261 + v271 │
00:00:29 #6554 [Verbose] > │ let v282 : float = v262 + v272 │
00:00:29 #6555 [Verbose] > │ let v283 : float = v263 + v273 │
00:00:29 #6556 [Verbose] > │ let v284 : (unit -> UH1) = closure20(v274, v264) │
00:00:29 #6557 [Verbose] > │ UH1_0(v275, v276, v278, v279, v280, v277, v281, v282, v283, │
00:00:29 #6558 [Verbose] > │ v284) │
00:00:29 #6559 [Verbose] > │ | UH1_1 -> (* StreamNil *) │
00:00:29 #6560 [Verbose] > │ UH1_1 │
00:00:29 #6561 [Verbose] > │ | UH1_1 -> (* StreamNil *) │
00:00:29 #6562 [Verbose] > │ UH1_1 │
00:00:29 #6563 [Verbose] > │ let v328 : UH1 = │
00:00:29 #6564 [Verbose] > │ match v291 with │
00:00:29 #6565 [Verbose] > │ | UH1_0(v292, v293, v294, v295, v296, v297, v298, v299, v300, v301) │
00:00:29 #6566 [Verbose] > │ -> (* StreamCons *) │
00:00:29 #6567 [Verbose] > │ match v142 with │
00:00:29 #6568 [Verbose] > │ | UH1_0(v302, v303, v304, v305, v306, v307, v308, v309, v310, │
00:00:29 #6569 [Verbose] > │ v311) -> (* StreamCons *) │
00:00:29 #6570 [Verbose] > │ let v312 : float = v292 + v302 │
00:00:29 #6571 [Verbose] > │ let v313 : float = v293 + v303 │
00:00:29 #6572 [Verbose] > │ let v314 : float = v297 + v307 │
00:00:29 #6573 [Verbose] > │ let v315 : float = v294 + v304 │
00:00:29 #6574 [Verbose] > │ let v316 : float = v295 + v305 │
00:00:29 #6575 [Verbose] > │ let v317 : float = v296 + v306 │
00:00:29 #6576 [Verbose] > │ let v318 : float = v298 + v308 │
00:00:29 #6577 [Verbose] > │ let v319 : float = v299 + v309 │
00:00:29 #6578 [Verbose] > │ let v320 : float = v300 + v310 │
00:00:29 #6579 [Verbose] > │ let v321 : (unit -> UH1) = closure20(v311, v301) │
00:00:29 #6580 [Verbose] > │ UH1_0(v312, v313, v315, v316, v317, v314, v318, v319, v320, │
00:00:29 #6581 [Verbose] > │ v321) │
00:00:29 #6582 [Verbose] > │ | UH1_1 -> (* StreamNil *) │
00:00:29 #6583 [Verbose] > │ UH1_1 │
00:00:29 #6584 [Verbose] > │ | UH1_1 -> (* StreamNil *) │
00:00:29 #6585 [Verbose] > │ UH1_1 │
00:00:29 #6586 [Verbose] > │ let v370 : UH0 = │
00:00:29 #6587 [Verbose] > │ match v328 with │
00:00:29 #6588 [Verbose] > │ | UH1_0(v329, v330, v331, v332, v333, v334, v335, v336, v337, v338) │
00:00:29 #6589 [Verbose] > │ -> (* StreamCons *) │
00:00:29 #6590 [Verbose] > │ match v2 with │
00:00:29 #6591 [Verbose] > │ | UH0_0(v339, v340, v341, v342, v343, v344, v345, v346, v347, │
00:00:29 #6592 [Verbose] > │ v348) -> (* StreamCons *) │
00:00:29 #6593 [Verbose] > │ let v349 : float = v334 * v143 │
00:00:29 #6594 [Verbose] > │ let v350 : float = v344 + v349 │
00:00:29 #6595 [Verbose] > │ let v351 : float = v143 * v331 │
00:00:29 #6596 [Verbose] > │ let v352 : float = v143 * v332 │
00:00:29 #6597 [Verbose] > │ let v353 : float = v143 * v333 │
00:00:29 #6598 [Verbose] > │ let v354 : float = v341 + v351 │
00:00:29 #6599 [Verbose] > │ let v355 : float = v342 + v352 │
00:00:29 #6600 [Verbose] > │ let v356 : float = v343 + v353 │
00:00:29 #6601 [Verbose] > │ let v357 : float = v143 * v335 │
00:00:29 #6602 [Verbose] > │ let v358 : float = v143 * v336 │
00:00:29 #6603 [Verbose] > │ let v359 : float = v143 * v337 │
00:00:29 #6604 [Verbose] > │ let v360 : float = v345 + v357 │
00:00:29 #6605 [Verbose] > │ let v361 : float = v346 + v358 │
00:00:29 #6606 [Verbose] > │ let v362 : float = v347 + v359 │
00:00:29 #6607 [Verbose] > │ let v363 : (unit -> UH0) = closure3(v143, v348, v338) │
00:00:29 #6608 [Verbose] > │ UH0_0(v339, v340, v354, v355, v356, v350, v360, v361, v362, │
00:00:29 #6609 [Verbose] > │ v363) │
00:00:29 #6610 [Verbose] > │ | UH0_1 -> (* StreamNil *) │
00:00:29 #6611 [Verbose] > │ UH0_1 │
00:00:29 #6612 [Verbose] > │ | UH1_1 -> (* StreamNil *) │
00:00:29 #6613 [Verbose] > │ UH0_1 │
00:00:29 #6614 [Verbose] > │ let v371 : (unit -> UH0) = closure4(v370) │
00:00:29 #6615 [Verbose] > │ let v372 : (unit -> UH0) = method1(v370, v371) │
00:00:29 #6616 [Verbose] > │ let v373 : UH0 = v372 () │
00:00:29 #6617 [Verbose] > │ v373 │
00:00:29 #6618 [Verbose] > │ and closure18 (v0 : float) (v1 : (UH0 -> UH1)) : (UH0 -> UH0) = │
00:00:29 #6619 [Verbose] > │ closure19(v0, v1) │
00:00:29 #6620 [Verbose] > │ and closure17 () (v0 : float) : ((UH0 -> UH1) -> (UH0 -> UH0)) = │
00:00:29 #6621 [Verbose] > │ closure18(v0) │
00:00:29 #6622 [Verbose] > │ and method17 (v0 : UH4, v1 : UH6) : UH6 = │
00:00:29 #6623 [Verbose] > │ match v0 with │
00:00:29 #6624 [Verbose] > │ | UH4_0(v2, v3) -> (* Cons *) │
00:00:29 #6625 [Verbose] > │ let v4 : UH6 = method17(v3, v1) │
00:00:29 #6626 [Verbose] > │ let v5 : int32 = 0 │
00:00:29 #6627 [Verbose] > │ let v6 : US2 = method6(v5, v2) │
00:00:29 #6628 [Verbose] > │ let v23 : US3 = │
00:00:29 #6629 [Verbose] > │ match v6 with │
00:00:29 #6630 [Verbose] > │ | US2_0 -> (* None *) │
00:00:29 #6631 [Verbose] > │ US3_0 │
00:00:29 #6632 [Verbose] > │ | US2_1(v7, v8, v9, v10, v11, v12, v13, v14, v15) -> (* Some *) │
00:00:29 #6633 [Verbose] > │ let v16 : UH7 = UH7_1 │
00:00:29 #6634 [Verbose] > │ let v17 : UH7 = method12(v2, v16) │
00:00:29 #6635 [Verbose] > │ let v18 : float = 0.0 │
00:00:29 #6636 [Verbose] > │ let v19 : float = method13(v17, v18) │
00:00:29 #6637 [Verbose] > │ US3_1(v12, v19) │
00:00:29 #6638 [Verbose] > │ UH6_0(v23, v4) │
00:00:29 #6639 [Verbose] > │ | UH4_1 -> (* Nil *) │
00:00:29 #6640 [Verbose] > │ v1 │
00:00:29 #6641 [Verbose] > │ and method19 (v0 : UH9, v1 : int32) : int32 = │
00:00:29 #6642 [Verbose] > │ match v0 with │
00:00:29 #6643 [Verbose] > │ | UH9_0(v2, v3) -> (* Cons *) │
00:00:29 #6644 [Verbose] > │ let v4 : int32 = v1 + 1 │
00:00:29 #6645 [Verbose] > │ method19(v3, v4) │
00:00:29 #6646 [Verbose] > │ | UH9_1 -> (* Nil *) │
00:00:29 #6647 [Verbose] > │ v1 │
00:00:29 #6648 [Verbose] > │ and method20 (v0 : (float []), v1 : UH9, v2 : int32) : int32 = │
00:00:29 #6649 [Verbose] > │ match v1 with │
00:00:29 #6650 [Verbose] > │ | UH9_0(v3, v4) -> (* Cons *) │
00:00:29 #6651 [Verbose] > │ v0.[int v2] <- v3 │
00:00:29 #6652 [Verbose] > │ let v5 : int32 = v2 + 1 │
00:00:29 #6653 [Verbose] > │ method20(v0, v4, v5) │
00:00:29 #6654 [Verbose] > │ | UH9_1 -> (* Nil *) │
00:00:29 #6655 [Verbose] > │ v2 │
00:00:29 #6656 [Verbose] > │ and method18 (v0 : UH9) : (float []) = │
00:00:29 #6657 [Verbose] > │ let v1 : int32 = 0 │
00:00:29 #6658 [Verbose] > │ let v2 : int32 = method19(v0, v1) │
00:00:29 #6659 [Verbose] > │ let v3 : (float []) = Array.zeroCreate<float> (v2) │
00:00:29 #6660 [Verbose] > │ let v4 : int32 = 0 │
00:00:29 #6661 [Verbose] > │ let v5 : int32 = method20(v3, v0, v4) │
00:00:29 #6662 [Verbose] > │ v3 │
00:00:29 #6663 [Verbose] > │ and method21 (v0 : (struct (string * (float []) * (float [])) [])) : (struct │
00:00:29 #6664 [Verbose] > │ (string * (float []) * (float [])) []) = │
00:00:29 #6665 [Verbose] > │ v0 │
00:00:29 #6666 [Verbose] > │ and method0 () : struct (string * string * string * (struct (string * (float │
00:00:29 #6667 [Verbose] > │ []) * (float [])) [])) = │
00:00:29 #6668 [Verbose] > │ let v0 : (float -> ((UH0 -> UH1) -> (UH0 -> UH0))) = closure0() │
00:00:29 #6669 [Verbose] > │ let v1 : ((UH0 -> UH1) -> (UH0 -> UH0)) = v0 0.03 │
00:00:29 #6670 [Verbose] > │ let v2 : (UH0 -> UH1) = closure8() │
00:00:29 #6671 [Verbose] > │ let v3 : (UH0 -> UH0) = v1 v2 │
00:00:29 #6672 [Verbose] > │ let v4 : UH4 = UH4_1 │
00:00:29 #6673 [Verbose] > │ let v5 : int32 = 0 │
00:00:29 #6674 [Verbose] > │ let v6 : UH4 = method7(v3, v4, v5) │
00:00:29 #6675 [Verbose] > │ let v7 : UH6 = UH6_1 │
00:00:29 #6676 [Verbose] > │ let v8 : UH6 = method11(v6, v7) │
00:00:29 #6677 [Verbose] > │ let v9 : UH8 = UH8_1 │
00:00:29 #6678 [Verbose] > │ let v10 : UH8 = method14(v8, v9) │
00:00:29 #6679 [Verbose] > │ let v11 : UH9 = UH9_1 │
00:00:29 #6680 [Verbose] > │ let v12 : UH9 = UH9_1 │
00:00:29 #6681 [Verbose] > │ let struct (v13 : UH9, v14 : UH9) = method15(v10, v11, v12) │
00:00:29 #6682 [Verbose] > │ let v15 : UH9 = UH9_1 │
00:00:29 #6683 [Verbose] > │ let v16 : UH9 = method16(v13, v15) │
00:00:29 #6684 [Verbose] > │ let v17 : UH9 = UH9_1 │
00:00:29 #6685 [Verbose] > │ let v18 : UH9 = method16(v14, v17) │
00:00:29 #6686 [Verbose] > │ let v19 : (float -> ((UH0 -> UH1) -> (UH0 -> UH0))) = closure17() │
00:00:29 #6687 [Verbose] > │ let v20 : ((UH0 -> UH1) -> (UH0 -> UH0)) = v19 0.03 │
00:00:29 #6688 [Verbose] > │ let v21 : (UH0 -> UH0) = v20 v2 │
00:00:29 #6689 [Verbose] > │ let v22 : UH4 = UH4_1 │
00:00:29 #6690 [Verbose] > │ let v23 : int32 = 0 │
00:00:29 #6691 [Verbose] > │ let v24 : UH4 = method7(v21, v22, v23) │
00:00:29 #6692 [Verbose] > │ let v25 : UH6 = UH6_1 │
00:00:29 #6693 [Verbose] > │ let v26 : UH6 = method17(v24, v25) │
00:00:29 #6694 [Verbose] > │ let v27 : UH8 = UH8_1 │
00:00:29 #6695 [Verbose] > │ let v28 : UH8 = method14(v26, v27) │
00:00:29 #6696 [Verbose] > │ let v29 : UH9 = UH9_1 │
00:00:29 #6697 [Verbose] > │ let v30 : UH9 = UH9_1 │
00:00:29 #6698 [Verbose] > │ let struct (v31 : UH9, v32 : UH9) = method15(v28, v29, v30) │
00:00:29 #6699 [Verbose] > │ let v33 : UH9 = UH9_1 │
00:00:29 #6700 [Verbose] > │ let v34 : UH9 = method16(v31, v33) │
00:00:29 #6701 [Verbose] > │ let v35 : UH9 = UH9_1 │
00:00:29 #6702 [Verbose] > │ let v36 : UH9 = method16(v32, v35) │
00:00:29 #6703 [Verbose] > │ let v37 : (float []) = method18(v16) │
00:00:29 #6704 [Verbose] > │ let v38 : (float []) = method18(v18) │
00:00:29 #6705 [Verbose] > │ let v39 : (float []) = method18(v34) │
00:00:29 #6706 [Verbose] > │ let v40 : (float []) = method18(v36) │
00:00:29 #6707 [Verbose] > │ let v41 : string = "euler-cromer" │
00:00:29 #6708 [Verbose] > │ let v42 : string = "runge-kutta 4" │
00:00:29 #6709 [Verbose] > │ let v43 : (struct (string * (float []) * (float [])) []) = [|struct │
00:00:29 #6710 [Verbose] > │ (v41, v37, v38); struct (v42, v39, v40)|] │
00:00:29 #6711 [Verbose] > │ let v44 : (struct (string * (float []) * (float [])) []) = method21(v43) │
00:00:29 #6712 [Verbose] > │ let v45 : string = "system kinetic energy versus time" │
00:00:29 #6713 [Verbose] > │ let v46 : string = "time (s)" │
00:00:29 #6714 [Verbose] > │ let v47 : string = "system kinetic energy (j)" │
00:00:29 #6715 [Verbose] > │ struct (v45, v46, v47, v44) │
00:00:29 #6716 [Verbose] > │ method0() │
00:00:29 #6717 [Verbose] > │ │
00:00:29 #6718 [Verbose] > │ │
00:00:29 #6719 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:29 #6720 [Verbose] >
00:00:29 #6721 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:29 #6722 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:29 #6723 [Verbose] > │ ### wave 2 │
00:00:29 #6724 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:29 #6725 [Verbose] >
00:00:29 #6726 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:29 #6727 [Verbose] > // // test
00:00:29 #6728 [Verbose] >
00:00:29 #6729 [Verbose] > inl linear_spring k re (particle_state st1) (particle_state st2) =
00:00:29 #6730 [Verbose] > inl r1 = st1.pos_vec
00:00:29 #6731 [Verbose] > inl r2 = st2.pos_vec
00:00:29 #6732 [Verbose] > inl r21 = r2 ^-^ r1
00:00:29 #6733 [Verbose] > inl r21mag = magnitude r21
00:00:29 #6734 [Verbose] > -k * (r21mag - re) *^ r21 ^/ r21mag
00:00:29 #6735 [Verbose] >
00:00:29 #6736 [Verbose] > inl fixed_linear_spring k re r1 =
00:00:29 #6737 [Verbose] > inl (particle_state default_particle_state') = default_particle_state ()
00:00:29 #6738 [Verbose] > linear_spring k re (particle_state { default_particle_state' with pos_vec =
00:00:29 #6739 [Verbose] > r1 })
00:00:29 #6740 [Verbose] >
00:00:29 #6741 [Verbose] > inl forces_string () =
00:00:29 #6742 [Verbose] > [[
00:00:29 #6743 [Verbose] > ExternalForce (0i32, fixed_linear_spring 5384 0 (zero_vec ()))
00:00:29 #6744 [Verbose] > ExternalForce (63, fixed_linear_spring 5384 0 (0.65 *^ i_hat ()))
00:00:29 #6745 [Verbose] > ]] /@ (
00:00:29 #6746 [Verbose] > listm'.init_series 0 59 1
00:00:29 #6747 [Verbose] > |> listm.map (fun n => InternalForce (n, n + 1, linear_spring 5384 0))
00:00:29 #6748 [Verbose] > )
00:00:29 #6749 [Verbose] >
00:00:29 #6750 [Verbose] > inl string_update dt =
00:00:29 #6751 [Verbose] > update_mps (join runge_kutta_4 dt) (join forces_string ())
00:00:29 #6752 [Verbose] >
00:00:29 #6753 [Verbose] > inl string_initial_overtone n =
00:00:29 #6754 [Verbose] > inl ball_mass = 0.0008293 * 0.65 / 64
00:00:29 #6755 [Verbose] > inl (particle_state default_particle_state') = default_particle_state ()
00:00:29 #6756 [Verbose] > listm'.init_series 0.01 0.64 0.01
00:00:29 #6757 [Verbose] > |> listm.map (fun x =>
00:00:29 #6758 [Verbose] > inl y = 0.005 * sin (conv n * pi * x / 0.65)
00:00:29 #6759 [Verbose] > particle_state {
00:00:29 #6760 [Verbose] > default_particle_state' with
00:00:29 #6761 [Verbose] > mass = ball_mass
00:00:29 #6762 [Verbose] > pos_vec = x *^ i_hat () ^+^ y *^ j_hat ()
00:00:29 #6763 [Verbose] > velocity = zero_vec ()
00:00:29 #6764 [Verbose] > }
00:00:29 #6765 [Verbose] > )
00:00:29 #6766 [Verbose] > |> stream.from_list
00:00:29 #6767 [Verbose] > |> multi_particle_state
00:00:29 #6768 [Verbose] >
00:00:29 #6769 [Verbose] > let main () =
00:00:29 #6770 [Verbose] > inl ~frames = listm'.init_series 0 65 1f64 |> stream.from_list
00:00:29 #6771 [Verbose] > inl ~initial_state = string_initial_overtone 3i32
00:00:29 #6772 [Verbose] > inl frames =
00:00:29 #6773 [Verbose] > frames
00:00:29 #6774 [Verbose] > |> stream.map (fun n =>
00:00:29 #6775 [Verbose] > inl (multi_particle_state sts) =
00:00:29 #6776 [Verbose] > stream.iterate (string_update 0.000025) initial_state |>
00:00:29 #6777 [Verbose] > stream.item n
00:00:29 #6778 [Verbose] > inl x, y =
00:00:29 #6779 [Verbose] > [[ zero_vec () ]]
00:00:29 #6780 [Verbose] > /@ (sts |> stream.map (fun (particle_state st) => st.pos_vec) |>
00:00:29 #6781 [Verbose] > stream.to_list)
00:00:29 #6782 [Verbose] > /@ [[ 0.65 *^ i_hat () ]]
00:00:29 #6783 [Verbose] > |> listm.map (fun r => r.x, r.y)
00:00:29 #6784 [Verbose] > |> stream.from_list
00:00:29 #6785 [Verbose] > |> stream.unzip
00:00:29 #6786 [Verbose] > inl x : a i32 _ = x |> stream.to_list |> listm.toArray
00:00:29 #6787 [Verbose] > inl y : a i32 _ = y |> stream.to_list |> listm.toArray
00:00:29 #6788 [Verbose] > x, y
00:00:29 #6789 [Verbose] > )
00:00:29 #6790 [Verbose] >
00:00:29 #6791 [Verbose] > inl plots =
00:00:29 #6792 [Verbose] > frames
00:00:29 #6793 [Verbose] > |> stream.indexed
00:00:29 #6794 [Verbose] > |> stream.map (fun ((n : i32), (x, y)) =>
00:00:29 #6795 [Verbose] > "wave",
00:00:29 #6796 [Verbose] > "position (m)",
00:00:29 #6797 [Verbose] > "displacement (m)",
00:00:29 #6798 [Verbose] > ;[[
00:00:29 #6799 [Verbose] > ($"$\"{!n}\"" : string), x, y
00:00:29 #6800 [Verbose] > ]]
00:00:29 #6801 [Verbose] > )
00:00:29 #6802 [Verbose] >
00:00:29 #6803 [Verbose] > plots |> stream.to_list |> listm.toArray : a i32 _
00:00:29 #6804 [Verbose] > Building /tmp/!dotnet-repl/20240325-2026-0547-4793-4fa1d1efb5e2/main.spi
00:00:34 #6805 [Verbose] >
00:00:34 #6806 [Verbose] > ╭─[ 4.49s - return value ]─────────────────────────────────────────────────────╮
00:00:34 #6807 [Verbose] > │ <table><thead><tr><th><i>index</i></th><th>value</th></tr></thead><tbody><tr │
00:00:34 #6808 [Verbose] > │ ><td>0</td><td><svg width="640" height="480" viewBox="0 0 640 480" │
00:00:34 #6809 [Verbose] > │ xmlns="http://www.w3.org/2000/svg"> │
00:00:34 #6810 [Verbose] > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414" │
00:00:34 #6811 [Verbose] > │ stroke="none"/> │
00:00:34 #6812 [Verbose] > │ <text x="320" y="10" dy="0.76em" text-anchor="middle" │
00:00:34 #6813 [Verbose] > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1" │
00:00:34 #6814 [Verbose] > │ fill="#FFFFFF"> │
00:00:34 #6815 [Verbose] > │ wave │
00:00:34 #6816 [Verbose] > │ </text> │
00:00:34 #6817 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="62" y1="424" x2="62" │
00:00:34 #6818 [Verbose] > │ y2="75"/> │
00:00:34 #6819 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:00:34 #6820 [Verbose] > │ y2="75"/> │
00:00:34 #6821 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="77" y1="424" x2="77" │
00:00:34 #6822 [Verbose] > │ y2="75"/> │
00:00:34 #6823 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="85" y1="424" │
00:00:34 #6824 [Verbose] > │ x2="85... │
00:00:34 #6825 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:34 #6826 [Verbose] >
00:00:34 #6827 [Verbose] > ╭─[ 4.52s - stdout ]───────────────────────────────────────────────────────────╮
00:00:34 #6828 [Verbose] > │ type UH0 = │
00:00:34 #6829 [Verbose] > │ | UH0_0 of float * (unit -> UH0) │
00:00:34 #6830 [Verbose] > │ | UH0_1 │
00:00:34 #6831 [Verbose] > │ and UH1 = │
00:00:34 #6832 [Verbose] > │ | UH1_0 of float * float * float * float * float * float * float * float │
00:00:34 #6833 [Verbose] > │ * float * (unit -> UH1) │
00:00:34 #6834 [Verbose] > │ | UH1_1 │
00:00:34 #6835 [Verbose] > │ and UH2 = │
00:00:34 #6836 [Verbose] > │ | UH2_0 of (float []) * (float []) * (unit -> UH2) │
00:00:34 #6837 [Verbose] > │ | UH2_1 │
00:00:34 #6838 [Verbose] > │ and UH3 = │
00:00:34 #6839 [Verbose] > │ | UH3_0 of float * float * float * float * float * float * float * float │
00:00:34 #6840 [Verbose] > │ * float * (unit -> UH3) │
00:00:34 #6841 [Verbose] > │ | UH3_1 │
00:00:34 #6842 [Verbose] > │ and [<Struct>] US0 = │
00:00:34 #6843 [Verbose] > │ | US0_0 of f0_0 : UH1 │
00:00:34 #6844 [Verbose] > │ | US0_1 of f1_0 : (unit -> UH1) │
00:00:34 #6845 [Verbose] > │ and Mut0 = {mutable l0 : US0} │
00:00:34 #6846 [Verbose] > │ and [<Struct>] US1 = │
00:00:34 #6847 [Verbose] > │ | US1_0 of f0_0 : int32 * f0_1 : (struct (float * float * float * float │
00:00:34 #6848 [Verbose] > │ * float * float * float * float * float) -> struct (float * float * float)) │
00:00:34 #6849 [Verbose] > │ | US1_1 of f1_0 : int32 * f1_1 : int32 * f1_2 : (struct (float * float * │
00:00:34 #6850 [Verbose] > │ float * float * float * float * float * float * float) -> (struct (float * │
00:00:34 #6851 [Verbose] > │ float * float * float * float * float * float * float * float) -> struct │
00:00:34 #6852 [Verbose] > │ (float * float * float))) │
00:00:34 #6853 [Verbose] > │ and UH4 = │
00:00:34 #6854 [Verbose] > │ | UH4_0 of US1 * UH4 │
00:00:34 #6855 [Verbose] > │ | UH4_1 │
00:00:34 #6856 [Verbose] > │ and UH5 = │
00:00:34 #6857 [Verbose] > │ | UH5_0 of int32 * float * float * float * float * float * float * float │
00:00:34 #6858 [Verbose] > │ * float * float * (unit -> UH5) │
00:00:34 #6859 [Verbose] > │ | UH5_1 │
00:00:34 #6860 [Verbose] > │ and UH6 = │
00:00:34 #6861 [Verbose] > │ | UH6_0 of (struct (float * float * float * float * float * float * │
00:00:34 #6862 [Verbose] > │ float * float * float) -> struct (float * float * float)) * UH6 │
00:00:34 #6863 [Verbose] > │ | UH6_1 │
00:00:34 #6864 [Verbose] > │ and [<Struct>] US2 = │
00:00:34 #6865 [Verbose] > │ | US2_0 │
00:00:34 #6866 [Verbose] > │ | US2_1 of f1_0 : (struct (float * float * float * float * float * float │
00:00:34 #6867 [Verbose] > │ * float * float * float) -> struct (float * float * float)) │
00:00:34 #6868 [Verbose] > │ and [<Struct>] US3 = │
00:00:34 #6869 [Verbose] > │ | US3_0 │
00:00:34 #6870 [Verbose] > │ | US3_1 of f1_0 : float * f1_1 : float * f1_2 : float * f1_3 : float * │
00:00:34 #6871 [Verbose] > │ f1_4 : float * f1_5 : float * f1_6 : float * f1_7 : float * f1_8 : float │
00:00:34 #6872 [Verbose] > │ and UH7 = │
00:00:34 #6873 [Verbose] > │ | UH7_0 of float * float * float * UH7 │
00:00:34 #6874 [Verbose] > │ | UH7_1 │
00:00:34 #6875 [Verbose] > │ and UH8 = │
00:00:34 #6876 [Verbose] > │ | UH8_0 of UH1 * (unit -> UH8) │
00:00:34 #6877 [Verbose] > │ | UH8_1 │
00:00:34 #6878 [Verbose] > │ and [<Struct>] US4 = │
00:00:34 #6879 [Verbose] > │ | US4_0 │
00:00:34 #6880 [Verbose] > │ | US4_1 of f1_0 : UH1 │
00:00:34 #6881 [Verbose] > │ and UH9 = │
00:00:34 #6882 [Verbose] > │ | UH9_0 of float * float * float * (unit -> UH9) │
00:00:34 #6883 [Verbose] > │ | UH9_1 │
00:00:34 #6884 [Verbose] > │ and UH10 = │
00:00:34 #6885 [Verbose] > │ | UH10_0 of float * float * UH10 │
00:00:34 #6886 [Verbose] > │ | UH10_1 │
00:00:34 #6887 [Verbose] > │ and UH11 = │
00:00:34 #6888 [Verbose] > │ | UH11_0 of float * float * (unit -> UH11) │
00:00:34 #6889 [Verbose] > │ | UH11_1 │
00:00:34 #6890 [Verbose] > │ and UH12 = │
00:00:34 #6891 [Verbose] > │ | UH12_0 of float * UH12 │
00:00:34 #6892 [Verbose] > │ | UH12_1 │
00:00:34 #6893 [Verbose] > │ and UH13 = │
00:00:34 #6894 [Verbose] > │ | UH13_0 of int32 * (float []) * (float []) * (unit -> UH13) │
00:00:34 #6895 [Verbose] > │ | UH13_1 │
00:00:34 #6896 [Verbose] > │ and UH14 = │
00:00:34 #6897 [Verbose] > │ | UH14_0 of string * string * string * (struct (string * (float []) * │
00:00:34 #6898 [Verbose] > │ (float [])) []) * (unit -> UH14) │
00:00:34 #6899 [Verbose] > │ | UH14_1 │
00:00:34 #6900 [Verbose] > │ and UH15 = │
00:00:34 #6901 [Verbose] > │ | UH15_0 of string * string * string * (struct (string * (float []) * │
00:00:34 #6902 [Verbose] > │ (float [])) []) * UH15 │
00:00:34 #6903 [Verbose] > │ | UH15_1 │
00:00:34 #6904 [Verbose] > │ let rec closure65 () () : UH0 = │
00:00:34 #6905 [Verbose] > │ UH0_1 │
00:00:34 #6906 [Verbose] > │ and closure64 () () : UH0 = │
00:00:34 #6907 [Verbose] > │ let v0 : (unit -> UH0) = closure65() │
00:00:34 #6908 [Verbose] > │ UH0_0(65.0, v0) │
00:00:34 #6909 [Verbose] > │ and closure63 () () : UH0 = │
00:00:34 #6910 [Verbose] > │ let v0 : (unit -> UH0) = closure64() │
00:00:34 #6911 [Verbose] > │ UH0_0(64.0, v0) │
00:00:34 #6912 [Verbose] > │ and closure62 () () : UH0 = │
00:00:34 #6913 [Verbose] > │ let v0 : (unit -> UH0) = closure63() │
00:00:34 #6914 [Verbose] > │ UH0_0(63.0, v0) │
00:00:34 #6915 [Verbose] > │ and closure61 () () : UH0 = │
00:00:34 #6916 [Verbose] > │ let v0 : (unit -> UH0) = closure62() │
00:00:34 #6917 [Verbose] > │ UH0_0(62.0, v0) │
00:00:34 #6918 [Verbose] > │ and closure60 () () : UH0 = │
00:00:34 #6919 [Verbose] > │ let v0 : (unit -> UH0) = closure61() │
00:00:34 #6920 [Verbose] > │ UH0_0(61.0, v0) │
00:00:34 #6921 [Verbose] > │ and closure59 () () : UH0 = │
00:00:34 #6922 [Verbose] > │ let v0 : (unit -> UH0) = closure60() │
00:00:34 #6923 [Verbose] > │ UH0_0(60.0, v0) │
00:00:34 #6924 [Verbose] > │ and closure58 () () : UH0 = │
00:00:34 #6925 [Verbose] > │ let v0 : (unit -> UH0) = closure59() │
00:00:34 #6926 [Verbose] > │ UH0_0(59.0, v0) │
00:00:34 #6927 [Verbose] > │ and closure57 () () : UH0 = │
00:00:34 #6928 [Verbose] > │ let v0 : (unit -> UH0) = closure58() │
00:00:34 #6929 [Verbose] > │ UH0_0(58.0, v0) │
00:00:34 #6930 [Verbose] > │ and closure56 () () : UH0 = │
00:00:34 #6931 [Verbose] > │ let v0 : (unit -> UH0) = closure57() │
00:00:34 #6932 [Verbose] > │ UH0_0(57.0, v0) │
00:00:34 #6933 [Verbose] > │ and closure55 () () : UH0 = │
00:00:34 #6934 [Verbose] > │ let v0 : (unit -> UH0) = closure56() │
00:00:34 #6935 [Verbose] > │ UH0_0(56.0, v0) │
00:00:34 #6936 [Verbose] > │ and closure54 () () : UH0 = │
00:00:34 #6937 [Verbose] > │ let v0 : (unit -> UH0) = closure55() │
00:00:34 #6938 [Verbose] > │ UH0_0(55.0, v0) │
00:00:34 #6939 [Verbose] > │ and closure53 () () : UH0 = │
00:00:34 #6940 [Verbose] > │ let v0 : (unit -> UH0) = closure54() │
00:00:34 #6941 [Verbose] > │ UH0_0(54.0, v0) │
00:00:34 #6942 [Verbose] > │ and closure52 () () : UH0 = │
00:00:34 #6943 [Verbose] > │ let v0 : (unit -> UH0) = closure53() │
00:00:34 #6944 [Verbose] > │ UH0_0(53.0, v0) │
00:00:34 #6945 [Verbose] > │ and closure51 () () : UH0 = │
00:00:34 #6946 [Verbose] > │ let v0 : (unit -> UH0) = closure52() │
00:00:34 #6947 [Verbose] > │ UH0_0(52.0, v0) │
00:00:34 #6948 [Verbose] > │ and closure50 () () : UH0 = │
00:00:34 #6949 [Verbose] > │ let v0 : (unit -> UH0) = closure51() │
00:00:34 #6950 [Verbose] > │ UH0_0(51.0, v0) │
00:00:34 #6951 [Verbose] > │ and closure49 () () : UH0 = │
00:00:34 #6952 [Verbose] > │ let v0 : (unit -> UH0) = closure50() │
00:00:34 #6953 [Verbose] > │ UH0_0(50.0, v0) │
00:00:34 #6954 [Verbose] > │ and closure48 () () : UH0 = │
00:00:34 #6955 [Verbose] > │ let v0 : (unit -> UH0) = closure49() │
00:00:34 #6956 [Verbose] > │ UH0_0(49.0, v0) │
00:00:34 #6957 [Verbose] > │ and closure47 () () : UH0 = │
00:00:34 #6958 [Verbose] > │ let v0 : (unit -> UH0) = closure48() │
00:00:34 #6959 [Verbose] > │ UH0_0(48.0, v0) │
00:00:34 #6960 [Verbose] > │ and closure46 () () : UH0 = │
00:00:34 #6961 [Verbose] > │ let v0 : (unit -> UH0) = closure47() │
00:00:34 #6962 [Verbose] > │ UH0_0(47.0, v0) │
00:00:34 #6963 [Verbose] > │ and closure45 () () : UH0 = │
00:00:34 #6964 [Verbose] > │ let v0 : (unit -> UH0) = closure46() │
00:00:34 #6965 [Verbose] > │ UH0_0(46.0, v0) │
00:00:34 #6966 [Verbose] > │ and closure44 () () : UH0 = │
00:00:34 #6967 [Verbose] > │ let v0 : (unit -> UH0) = closure45() │
00:00:34 #6968 [Verbose] > │ UH0_0(45.0, v0) │
00:00:34 #6969 [Verbose] > │ and closure43 () () : UH0 = │
00:00:34 #6970 [Verbose] > │ let v0 : (unit -> UH0) = closure44() │
00:00:34 #6971 [Verbose] > │ UH0_0(44.0, v0) │
00:00:34 #6972 [Verbose] > │ and closure42 () () : UH0 = │
00:00:34 #6973 [Verbose] > │ let v0 : (unit -> UH0) = closure43() │
00:00:34 #6974 [Verbose] > │ UH0_0(43.0, v0) │
00:00:34 #6975 [Verbose] > │ and closure41 () () : UH0 = │
00:00:34 #6976 [Verbose] > │ let v0 : (unit -> UH0) = closure42() │
00:00:34 #6977 [Verbose] > │ UH0_0(42.0, v0) │
00:00:34 #6978 [Verbose] > │ and closure40 () () : UH0 = │
00:00:34 #6979 [Verbose] > │ let v0 : (unit -> UH0) = closure41() │
00:00:34 #6980 [Verbose] > │ UH0_0(41.0, v0) │
00:00:34 #6981 [Verbose] > │ and closure39 () () : UH0 = │
00:00:34 #6982 [Verbose] > │ let v0 : (unit -> UH0) = closure40() │
00:00:34 #6983 [Verbose] > │ UH0_0(40.0, v0) │
00:00:34 #6984 [Verbose] > │ and closure38 () () : UH0 = │
00:00:34 #6985 [Verbose] > │ let v0 : (unit -> UH0) = closure39() │
00:00:34 #6986 [Verbose] > │ UH0_0(39.0, v0) │
00:00:34 #6987 [Verbose] > │ and closure37 () () : UH0 = │
00:00:34 #6988 [Verbose] > │ let v0 : (unit -> UH0) = closure38() │
00:00:34 #6989 [Verbose] > │ UH0_0(38.0, v0) │
00:00:34 #6990 [Verbose] > │ and closure36 () () : UH0 = │
00:00:34 #6991 [Verbose] > │ let v0 : (unit -> UH0) = closure37() │
00:00:34 #6992 [Verbose] > │ UH0_0(37.0, v0) │
00:00:34 #6993 [Verbose] > │ and closure35 () () : UH0 = │
00:00:34 #6994 [Verbose] > │ let v0 : (unit -> UH0) = closure36() │
00:00:34 #6995 [Verbose] > │ UH0_0(36.0, v0) │
00:00:34 #6996 [Verbose] > │ and closure34 () () : UH0 = │
00:00:34 #6997 [Verbose] > │ let v0 : (unit -> UH0) = closure35() │
00:00:34 #6998 [Verbose] > │ UH0_0(35.0, v0) │
00:00:34 #6999 [Verbose] > │ and closure33 () () : UH0 = │
00:00:34 #7000 [Verbose] > │ let v0 : (unit -> UH0) = closure34() │
00:00:34 #7001 [Verbose] > │ UH0_0(34.0, v0) │
00:00:34 #7002 [Verbose] > │ and closure32 () () : UH0 = │
00:00:34 #7003 [Verbose] > │ let v0 : (unit -> UH0) = closure33() │
00:00:34 #7004 [Verbose] > │ UH0_0(33.0, v0) │
00:00:34 #7005 [Verbose] > │ and closure31 () () : UH0 = │
00:00:34 #7006 [Verbose] > │ let v0 : (unit -> UH0) = closure32() │
00:00:34 #7007 [Verbose] > │ UH0_0(32.0, v0) │
00:00:34 #7008 [Verbose] > │ and closure30 () () : UH0 = │
00:00:34 #7009 [Verbose] > │ let v0 : (unit -> UH0) = closure31() │
00:00:34 #7010 [Verbose] > │ UH0_0(31.0, v0) │
00:00:34 #7011 [Verbose] > │ and closure29 () () : UH0 = │
00:00:34 #7012 [Verbose] > │ let v0 : (unit -> UH0) = closure30() │
00:00:34 #7013 [Verbose] > │ UH0_0(30.0, v0) │
00:00:34 #7014 [Verbose] > │ and closure28 () () : UH0 = │
00:00:34 #7015 [Verbose] > │ let v0 : (unit -> UH0) = closure29() │
00:00:34 #7016 [Verbose] > │ UH0_0(29.0, v0) │
00:00:34 #7017 [Verbose] > │ and closure27 () () : UH0 = │
00:00:34 #7018 [Verbose] > │ let v0 : (unit -> UH0) = closure28() │
00:00:34 #7019 [Verbose] > │ UH0_0(28.0, v0) │
00:00:34 #7020 [Verbose] > │ and closure26 () () : UH0 = │
00:00:34 #7021 [Verbose] > │ let v0 : (unit -> UH0) = closure27() │
00:00:34 #7022 [Verbose] > │ UH0_0(27.0, v0) │
00:00:34 #7023 [Verbose] > │ and closure25 () () : UH0 = │
00:00:34 #7024 [Verbose] > │ let v0 : (unit -> UH0) = closure26() │
00:00:34 #7025 [Verbose] > │ UH0_0(26.0, v0) │
00:00:34 #7026 [Verbose] > │ and closure24 () () : UH0 = │
00:00:34 #7027 [Verbose] > │ let v0 : (unit -> UH0) = closure25() │
00:00:34 #7028 [Verbose] > │ UH0_0(25.0, v0) │
00:00:34 #7029 [Verbose] > │ and closure23 () () : UH0 = │
00:00:34 #7030 [Verbose] > │ let v0 : (unit -> UH0) = closure24() │
00:00:34 #7031 [Verbose] > │ UH0_0(24.0, v0) │
00:00:34 #7032 [Verbose] > │ and closure22 () () : UH0 = │
00:00:34 #7033 [Verbose] > │ let v0 : (unit -> UH0) = closure23() │
00:00:34 #7034 [Verbose] > │ UH0_0(23.0, v0) │
00:00:34 #7035 [Verbose] > │ and closure21 () () : UH0 = │
00:00:34 #7036 [Verbose] > │ let v0 : (unit -> UH0) = closure22() │
00:00:34 #7037 [Verbose] > │ UH0_0(22.0, v0) │
00:00:34 #7038 [Verbose] > │ and closure20 () () : UH0 = │
00:00:34 #7039 [Verbose] > │ let v0 : (unit -> UH0) = closure21() │
00:00:34 #7040 [Verbose] > │ UH0_0(21.0, v0) │
00:00:34 #7041 [Verbose] > │ and closure19 () () : UH0 = │
00:00:34 #7042 [Verbose] > │ let v0 : (unit -> UH0) = closure20() │
00:00:34 #7043 [Verbose] > │ UH0_0(20.0, v0) │
00:00:34 #7044 [Verbose] > │ and closure18 () () : UH0 = │
00:00:34 #7045 [Verbose] > │ let v0 : (unit -> UH0) = closure19() │
00:00:34 #7046 [Verbose] > │ UH0_0(19.0, v0) │
00:00:34 #7047 [Verbose] > │ and closure17 () () : UH0 = │
00:00:34 #7048 [Verbose] > │ let v0 : (unit -> UH0) = closure18() │
00:00:34 #7049 [Verbose] > │ UH0_0(18.0, v0) │
00:00:34 #7050 [Verbose] > │ and closure16 () () : UH0 = │
00:00:34 #7051 [Verbose] > │ let v0 : (unit -> UH0) = closure17() │
00:00:34 #7052 [Verbose] > │ UH0_0(17.0, v0) │
00:00:34 #7053 [Verbose] > │ and closure15 () () : UH0 = │
00:00:34 #7054 [Verbose] > │ let v0 : (unit -> UH0) = closure16() │
00:00:34 #7055 [Verbose] > │ UH0_0(16.0, v0) │
00:00:34 #7056 [Verbose] > │ and closure14 () () : UH0 = │
00:00:34 #7057 [Verbose] > │ let v0 : (unit -> UH0) = closure15() │
00:00:34 #7058 [Verbose] > │ UH0_0(15.0, v0) │
00:00:34 #7059 [Verbose] > │ and closure13 () () : UH0 = │
00:00:34 #7060 [Verbose] > │ let v0 : (unit -> UH0) = closure14() │
00:00:34 #7061 [Verbose] > │ UH0_0(14.0, v0) │
00:00:34 #7062 [Verbose] > │ and closure12 () () : UH0 = │
00:00:34 #7063 [Verbose] > │ let v0 : (unit -> UH0) = closure13() │
00:00:34 #7064 [Verbose] > │ UH0_0(13.0, v0) │
00:00:34 #7065 [Verbose] > │ and closure11 () () : UH0 = │
00:00:34 #7066 [Verbose] > │ let v0 : (unit -> UH0) = closure12() │
00:00:34 #7067 [Verbose] > │ UH0_0(12.0, v0) │
00:00:34 #7068 [Verbose] > │ and closure10 () () : UH0 = │
00:00:34 #7069 [Verbose] > │ let v0 : (unit -> UH0) = closure11() │
00:00:34 #7070 [Verbose] > │ UH0_0(11.0, v0) │
00:00:34 #7071 [Verbose] > │ and closure9 () () : UH0 = │
00:00:34 #7072 [Verbose] > │ let v0 : (unit -> UH0) = closure10() │
00:00:34 #7073 [Verbose] > │ UH0_0(10.0, v0) │
00:00:34 #7074 [Verbose] > │ and closure8 () () : UH0 = │
00:00:34 #7075 [Verbose] > │ let v0 : (unit -> UH0) = closure9() │
00:00:34 #7076 [Verbose] > │ UH0_0(9.0, v0) │
00:00:34 #7077 [Verbose] > │ and closure7 () () : UH0 = │
00:00:34 #7078 [Verbose] > │ let v0 : (unit -> UH0) = closure8() │
00:00:34 #7079 [Verbose] > │ UH0_0(8.0, v0) │
00:00:34 #7080 [Verbose] > │ and closure6 () () : UH0 = │
00:00:34 #7081 [Verbose] > │ let v0 : (unit -> UH0) = closure7() │
00:00:34 #7082 [Verbose] > │ UH0_0(7.0, v0) │
00:00:34 #7083 [Verbose] > │ and closure5 () () : UH0 = │
00:00:34 #7084 [Verbose] > │ let v0 : (unit -> UH0) = closure6() │
00:00:34 #7085 [Verbose] > │ UH0_0(6.0, v0) │
00:00:34 #7086 [Verbose] > │ and closure4 () () : UH0 = │
00:00:34 #7087 [Verbose] > │ let v0 : (unit -> UH0) = closure5() │
00:00:34 #7088 [Verbose] > │ UH0_0(5.0, v0) │
00:00:34 #7089 [Verbose] > │ and closure3 () () : UH0 = │
00:00:34 #7090 [Verbose] > │ let v0 : (unit -> UH0) = closure4() │
00:00:34 #7091 [Verbose] > │ UH0_0(4.0, v0) │
00:00:34 #7092 [Verbose] > │ and closure2 () () : UH0 = │
00:00:34 #7093 [Verbose] > │ let v0 : (unit -> UH0) = closure3() │
00:00:34 #7094 [Verbose] > │ UH0_0(3.0, v0) │
00:00:34 #7095 [Verbose] > │ and closure1 () () : UH0 = │
00:00:34 #7096 [Verbose] > │ let v0 : (unit -> UH0) = closure2() │
00:00:34 #7097 [Verbose] > │ UH0_0(2.0, v0) │
00:00:34 #7098 [Verbose] > │ and closure0 () () : UH0 = │
00:00:34 #7099 [Verbose] > │ let v0 : (unit -> UH0) = closure1() │
00:00:34 #7100 [Verbose] > │ UH0_0(1.0, v0) │
00:00:34 #7101 [Verbose] > │ and closure129 () () : UH1 = │
00:00:34 #7102 [Verbose] > │ UH1_1 │
00:00:34 #7103 [Verbose] > │ and closure128 () () : UH1 = │
00:00:34 #7104 [Verbose] > │ let v0 : (unit -> UH1) = closure129() │
00:00:34 #7105 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.64, 0.0007224452478461016, 0.0, 0.0, 0.0, │
00:00:34 #7106 [Verbose] > │ 0.0, 0.0, v0) │
00:00:34 #7107 [Verbose] > │ and closure127 () () : UH1 = │
00:00:34 #7108 [Verbose] > │ let v0 : (unit -> UH1) = closure128() │
00:00:34 #7109 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.63, 0.001429728391993452, 0.0, 0.0, 0.0, │
00:00:34 #7110 [Verbose] > │ 0.0, 0.0, v0) │
00:00:34 #7111 [Verbose] > │ and closure126 () () : UH1 = │
00:00:34 #7112 [Verbose] > │ let v0 : (unit -> UH1) = closure127() │
00:00:34 #7113 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.62, 0.0021070055388626528, 0.0, 0.0, 0.0, │
00:00:34 #7114 [Verbose] > │ 0.0, 0.0, v0) │
00:00:34 #7115 [Verbose] > │ and closure125 () () : UH1 = │
00:00:34 #7116 [Verbose] > │ let v0 : (unit -> UH1) = closure126() │
00:00:34 #7117 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.61, 0.0027400625367733585, 0.0, 0.0, 0.0, │
00:00:34 #7118 [Verbose] > │ 0.0, 0.0, v0) │
00:00:34 #7119 [Verbose] > │ and closure124 () () : UH1 = │
00:00:34 #7120 [Verbose] > │ let v0 : (unit -> UH1) = closure125() │
00:00:34 #7121 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.6, 0.0033156132912039783, 0.0, 0.0, 0.0, │
00:00:34 #7122 [Verbose] > │ 0.0, 0.0, v0) │
00:00:34 #7123 [Verbose] > │ and closure123 () () : UH1 = │
00:00:34 #7124 [Verbose] > │ let v0 : (unit -> UH1) = closure124() │
00:00:34 #7125 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.59, 0.003821578602729245, 0.0, 0.0, 0.0, │
00:00:34 #7126 [Verbose] > │ 0.0, 0.0, v0) │
00:00:34 #7127 [Verbose] > │ and closure122 () () : UH1 = │
00:00:34 #7128 [Verbose] > │ let v0 : (unit -> UH1) = closure123() │
00:00:34 #7129 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.5800000000000001, 0.004247339675607605, │
00:00:34 #7130 [Verbose] > │ 0.0, 0.0, 0.0, 0.0, 0.0, v0) │
00:00:34 #7131 [Verbose] > │ and closure121 () () : UH1 = │
00:00:34 #7132 [Verbose] > │ let v0 : (unit -> UH1) = closure122() │
00:00:34 #7133 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.5700000000000001, 0.004583960976582912, │
00:00:34 #7134 [Verbose] > │ 0.0, 0.0, 0.0, 0.0, 0.0, v0) │
00:00:34 #7135 [Verbose] > │ and closure120 () () : UH1 = │
00:00:34 #7136 [Verbose] > │ let v0 : (unit -> UH1) = closure121() │
00:00:34 #7137 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.56, 0.004824377766717758, 0.0, 0.0, 0.0, │
00:00:34 #7138 [Verbose] > │ 0.0, 0.0, v0) │
00:00:34 #7139 [Verbose] > │ and closure119 () () : UH1 = │
00:00:34 #7140 [Verbose] > │ let v0 : (unit -> UH1) = closure120() │
00:00:34 #7141 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.55, 0.004963544370490271, 0.0, 0.0, 0.0, │
00:00:34 #7142 [Verbose] > │ 0.0, 0.0, v0) │
00:00:34 #7143 [Verbose] > │ and closure118 () () : UH1 = │
00:00:34 #7144 [Verbose] > │ let v0 : (unit -> UH1) = closure119() │
00:00:34 #7145 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.54, 0.004998540070400965, 0.0, 0.0, 0.0, │
00:00:34 #7146 [Verbose] > │ 0.0, 0.0, v0) │
00:00:34 #7147 [Verbose] > │ and closure117 () () : UH1 = │
00:00:34 #7148 [Verbose] > │ let v0 : (unit -> UH1) = closure118() │
00:00:34 #7149 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.53, 0.004928630404658255, 0.0, 0.0, 0.0, │
00:00:34 #7150 [Verbose] > │ 0.0, 0.0, v0) │
00:00:34 #7151 [Verbose] > │ and closure116 () () : UH1 = │
00:00:34 #7152 [Verbose] > │ let v0 : (unit -> UH1) = closure117() │
00:00:34 #7153 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.52, 0.004755282581475766, 0.0, 0.0, 0.0, │
00:00:34 #7154 [Verbose] > │ 0.0, 0.0, v0) │
00:00:34 #7155 [Verbose] > │ and closure115 () () : UH1 = │
00:00:34 #7156 [Verbose] > │ let v0 : (unit -> UH1) = closure116() │
00:00:34 #7157 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.51, 0.0044821346864785195, 0.0, 0.0, 0.0, │
00:00:34 #7158 [Verbose] > │ 0.0, 0.0, v0) │
00:00:34 #7159 [Verbose] > │ and closure114 () () : UH1 = │
00:00:34 #7160 [Verbose] > │ let v0 : (unit -> UH1) = closure115() │
00:00:34 #7161 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.5, 0.0041149193294682815, 0.0, 0.0, 0.0, │
00:00:34 #7162 [Verbose] > │ 0.0, 0.0, v0) │
00:00:34 #7163 [Verbose] > │ and closure113 () () : UH1 = │
00:00:34 #7164 [Verbose] > │ let v0 : (unit -> UH1) = closure114() │
00:00:34 #7165 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.49, 0.0036613433329888622, 0.0, 0.0, 0.0, │
00:00:34 #7166 [Verbose] > │ 0.0, 0.0, v0) │
00:00:34 #7167 [Verbose] > │ and closure112 () () : UH1 = │
00:00:34 #7168 [Verbose] > │ let v0 : (unit -> UH1) = closure113() │
00:00:34 #7169 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.48000000000000004, 0.003130925987691568, │
00:00:34 #7170 [Verbose] > │ 0.0, 0.0, 0.0, 0.0, 0.0, v0) │
00:00:34 #7171 [Verbose] > │ and closure111 () () : UH1 = │
00:00:34 #7172 [Verbose] > │ let v0 : (unit -> UH1) = closure112() │
00:00:34 #7173 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.47000000000000003, 0.002534799269067954, │
00:00:34 #7174 [Verbose] > │ 0.0, 0.0, 0.0, 0.0, 0.0, v0) │
00:00:34 #7175 [Verbose] > │ and closure110 () () : UH1 = │
00:00:34 #7176 [Verbose] > │ let v0 : (unit -> UH1) = closure111() │
00:00:34 #7177 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.46, 0.0018854742084416021, 0.0, 0.0, 0.0, │
00:00:34 #7178 [Verbose] > │ 0.0, 0.0, v0) │
00:00:34 #7179 [Verbose] > │ and closure109 () () : UH1 = │
00:00:34 #7180 [Verbose] > │ let v0 : (unit -> UH1) = closure110() │
00:00:34 #7181 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.45, 0.0011965783214377866, 0.0, 0.0, 0.0, │
00:00:34 #7182 [Verbose] > │ 0.0, 0.0, v0) │
00:00:34 #7183 [Verbose] > │ and closure108 () () : UH1 = │
00:00:34 #7184 [Verbose] > │ let v0 : (unit -> UH1) = closure109() │
00:00:34 #7185 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.44, 0.0004825696045725713, 0.0, 0.0, 0.0, │
00:00:34 #7186 [Verbose] > │ 0.0, 0.0, v0) │
00:00:34 #7187 [Verbose] > │ and closure107 () () : UH1 = │
00:00:34 #7188 [Verbose] > │ let v0 : (unit -> UH1) = closure108() │
00:00:34 #7189 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.43, -0.00024156689762753724, 0.0, 0.0, │
00:00:34 #7190 [Verbose] > │ 0.0, 0.0, 0.0, v0) │
00:00:34 #7191 [Verbose] > │ and closure106 () () : UH1 = │
00:00:34 #7192 [Verbose] > │ let v0 : (unit -> UH1) = closure107() │
00:00:34 #7193 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.42000000000000004, -0.0009606335867685414, │
00:00:34 #7194 [Verbose] > │ 0.0, 0.0, 0.0, 0.0, 0.0, v0) │
00:00:34 #7195 [Verbose] > │ and closure105 () () : UH1 = │
00:00:34 #7196 [Verbose] > │ let v0 : (unit -> UH1) = closure106() │
00:00:34 #7197 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.41000000000000003, -0.0016595392656426435, │
00:00:34 #7198 [Verbose] > │ 0.0, 0.0, 0.0, 0.0, 0.0, v0) │
00:00:34 #7199 [Verbose] > │ and closure104 () () : UH1 = │
00:00:34 #7200 [Verbose] > │ let v0 : (unit -> UH1) = closure105() │
00:00:34 #7201 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.4, -0.002323615860218846, 0.0, 0.0, 0.0, │
00:00:34 #7202 [Verbose] > │ 0.0, 0.0, v0) │
00:00:34 #7203 [Verbose] > │ and closure103 () () : UH1 = │
00:00:34 #7204 [Verbose] > │ let v0 : (unit -> UH1) = closure104() │
00:00:34 #7205 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.39, -0.002938926261462367, 0.0, 0.0, 0.0, │
00:00:34 #7206 [Verbose] > │ 0.0, 0.0, v0) │
00:00:34 #7207 [Verbose] > │ and closure102 () () : UH1 = │
00:00:34 #7208 [Verbose] > │ let v0 : (unit -> UH1) = closure103() │
00:00:34 #7209 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.38, -0.0034925568262446837, 0.0, 0.0, 0.0, │
00:00:34 #7210 [Verbose] > │ 0.0, 0.0, v0) │
00:00:34 #7211 [Verbose] > │ and closure101 () () : UH1 = │
00:00:34 #7212 [Verbose] > │ let v0 : (unit -> UH1) = closure102() │
00:00:34 #7213 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.37, -0.003972888398568774, 0.0, 0.0, 0.0, │
00:00:34 #7214 [Verbose] > │ 0.0, 0.0, v0) │
00:00:34 #7215 [Verbose] > │ and closure100 () () : UH1 = │
00:00:34 #7216 [Verbose] > │ let v0 : (unit -> UH1) = closure101() │
00:00:34 #7217 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.36000000000000004, -0.004369840163132589, │
00:00:34 #7218 [Verbose] > │ 0.0, 0.0, 0.0, 0.0, 0.0, v0) │
00:00:34 #7219 [Verbose] > │ and closure99 () () : UH1 = │
00:00:34 #7220 [Verbose] > │ let v0 : (unit -> UH1) = closure100() │
00:00:34 #7221 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.35000000000000003, -0.004675081213427074, │
00:00:34 #7222 [Verbose] > │ 0.0, 0.0, 0.0, 0.0, 0.0, v0) │
00:00:34 #7223 [Verbose] > │ and closure98 () () : UH1 = │
00:00:34 #7224 [Verbose] > │ let v0 : (unit -> UH1) = closure99() │
00:00:34 #7225 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.34, -0.004882205394146361, 0.0, 0.0, 0.0, │
00:00:34 #7226 [Verbose] > │ 0.0, 0.0, v0) │
00:00:34 #7227 [Verbose] > │ and closure97 () () : UH1 = │
00:00:34 #7228 [Verbose] > │ let v0 : (unit -> UH1) = closure98() │
00:00:34 #7229 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.33, -0.004986865748457456, 0.0, 0.0, 0.0, │
00:00:34 #7230 [Verbose] > │ 0.0, 0.0, v0) │
00:00:34 #7231 [Verbose] > │ and closure96 () () : UH1 = │
00:00:34 #7232 [Verbose] > │ let v0 : (unit -> UH1) = closure97() │
00:00:34 #7233 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.32, -0.004986865748457456, 0.0, 0.0, 0.0, │
00:00:34 #7234 [Verbose] > │ 0.0, 0.0, v0) │
00:00:34 #7235 [Verbose] > │ and closure95 () () : UH1 = │
00:00:34 #7236 [Verbose] > │ let v0 : (unit -> UH1) = closure96() │
00:00:34 #7237 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.31, -0.004882205394146359, 0.0, 0.0, 0.0, │
00:00:34 #7238 [Verbose] > │ 0.0, 0.0, v0) │
00:00:34 #7239 [Verbose] > │ and closure94 () () : UH1 = │
00:00:34 #7240 [Verbose] > │ let v0 : (unit -> UH1) = closure95() │
00:00:34 #7241 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.3, -0.004675081213427074, 0.0, 0.0, 0.0, │
00:00:34 #7242 [Verbose] > │ 0.0, 0.0, v0) │
00:00:34 #7243 [Verbose] > │ and closure93 () () : UH1 = │
00:00:34 #7244 [Verbose] > │ let v0 : (unit -> UH1) = closure94() │
00:00:34 #7245 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.29000000000000004, -0.00436984016313259, │
00:00:34 #7246 [Verbose] > │ 0.0, 0.0, 0.0, 0.0, 0.0, v0) │
00:00:34 #7247 [Verbose] > │ and closure92 () () : UH1 = │
00:00:34 #7248 [Verbose] > │ let v0 : (unit -> UH1) = closure93() │
00:00:34 #7249 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.28, -0.003972888398568771, 0.0, 0.0, 0.0, │
00:00:34 #7250 [Verbose] > │ 0.0, 0.0, v0) │
00:00:34 #7251 [Verbose] > │ and closure91 () () : UH1 = │
00:00:34 #7252 [Verbose] > │ let v0 : (unit -> UH1) = closure92() │
00:00:34 #7253 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.27, -0.003492556826244686, 0.0, 0.0, 0.0, │
00:00:34 #7254 [Verbose] > │ 0.0, 0.0, v0) │
00:00:34 #7255 [Verbose] > │ and closure90 () () : UH1 = │
00:00:34 #7256 [Verbose] > │ let v0 : (unit -> UH1) = closure91() │
00:00:34 #7257 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.26, -0.0029389262614623636, 0.0, 0.0, 0.0, │
00:00:34 #7258 [Verbose] > │ 0.0, 0.0, v0) │
00:00:34 #7259 [Verbose] > │ and closure89 () () : UH1 = │
00:00:34 #7260 [Verbose] > │ let v0 : (unit -> UH1) = closure90() │
00:00:34 #7261 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.25, -0.002323615860218842, 0.0, 0.0, 0.0, │
00:00:34 #7262 [Verbose] > │ 0.0, 0.0, v0) │
00:00:34 #7263 [Verbose] > │ and closure88 () () : UH1 = │
00:00:34 #7264 [Verbose] > │ let v0 : (unit -> UH1) = closure89() │
00:00:34 #7265 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.24000000000000002, -0.001659539265642642, │
00:00:34 #7266 [Verbose] > │ 0.0, 0.0, 0.0, 0.0, 0.0, v0) │
00:00:34 #7267 [Verbose] > │ and closure87 () () : UH1 = │
00:00:34 #7268 [Verbose] > │ let v0 : (unit -> UH1) = closure88() │
00:00:34 #7269 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.23, -0.0009606335867685418, 0.0, 0.0, 0.0, │
00:00:34 #7270 [Verbose] > │ 0.0, 0.0, v0) │
00:00:34 #7271 [Verbose] > │ and closure86 () () : UH1 = │
00:00:34 #7272 [Verbose] > │ let v0 : (unit -> UH1) = closure87() │
00:00:34 #7273 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.22, -0.00024156689762753317, 0.0, 0.0, │
00:00:34 #7274 [Verbose] > │ 0.0, 0.0, 0.0, v0) │
00:00:34 #7275 [Verbose] > │ and closure85 () () : UH1 = │
00:00:34 #7276 [Verbose] > │ let v0 : (unit -> UH1) = closure86() │
00:00:34 #7277 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.21000000000000002, 0.00048256960457257535, │
00:00:34 #7278 [Verbose] > │ 0.0, 0.0, 0.0, 0.0, 0.0, v0) │
00:00:34 #7279 [Verbose] > │ and closure84 () () : UH1 = │
00:00:34 #7280 [Verbose] > │ let v0 : (unit -> UH1) = closure85() │
00:00:34 #7281 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.2, 0.0011965783214377905, 0.0, 0.0, 0.0, │
00:00:34 #7282 [Verbose] > │ 0.0, 0.0, v0) │
00:00:34 #7283 [Verbose] > │ and closure83 () () : UH1 = │
00:00:34 #7284 [Verbose] > │ let v0 : (unit -> UH1) = closure84() │
00:00:34 #7285 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.19, 0.0018854742084416015, 0.0, 0.0, 0.0, │
00:00:34 #7286 [Verbose] > │ 0.0, 0.0, v0) │
00:00:34 #7287 [Verbose] > │ and closure82 () () : UH1 = │
00:00:34 #7288 [Verbose] > │ let v0 : (unit -> UH1) = closure83() │
00:00:34 #7289 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.18000000000000002, 0.002534799269067951, │
00:00:34 #7290 [Verbose] > │ 0.0, 0.0, 0.0, 0.0, 0.0, v0) │
00:00:34 #7291 [Verbose] > │ and closure81 () () : UH1 = │
00:00:34 #7292 [Verbose] > │ let v0 : (unit -> UH1) = closure82() │
00:00:34 #7293 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.17, 0.0031309259876915697, 0.0, 0.0, 0.0, │
00:00:34 #7294 [Verbose] > │ 0.0, 0.0, v0) │
00:00:34 #7295 [Verbose] > │ and closure80 () () : UH1 = │
00:00:34 #7296 [Verbose] > │ let v0 : (unit -> UH1) = closure81() │
00:00:34 #7297 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.16, 0.0036613433329888666, 0.0, 0.0, 0.0, │
00:00:34 #7298 [Verbose] > │ 0.0, 0.0, v0) │
00:00:34 #7299 [Verbose] > │ and closure79 () () : UH1 = │
00:00:34 #7300 [Verbose] > │ let v0 : (unit -> UH1) = closure80() │
00:00:34 #7301 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.15000000000000002, 0.0041149193294682815, │
00:00:34 #7302 [Verbose] > │ 0.0, 0.0, 0.0, 0.0, 0.0, v0) │
00:00:34 #7303 [Verbose] > │ and closure78 () () : UH1 = │
00:00:34 #7304 [Verbose] > │ let v0 : (unit -> UH1) = closure79() │
00:00:34 #7305 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.14, 0.004482134686478519, 0.0, 0.0, 0.0, │
00:00:34 #7306 [Verbose] > │ 0.0, 0.0, v0) │
00:00:34 #7307 [Verbose] > │ and closure77 () () : UH1 = │
00:00:34 #7308 [Verbose] > │ let v0 : (unit -> UH1) = closure78() │
00:00:34 #7309 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.13, 0.004755282581475768, 0.0, 0.0, 0.0, │
00:00:34 #7310 [Verbose] > │ 0.0, 0.0, v0) │
00:00:34 #7311 [Verbose] > │ and closure76 () () : UH1 = │
00:00:34 #7312 [Verbose] > │ let v0 : (unit -> UH1) = closure77() │
00:00:34 #7313 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.12, 0.004928630404658255, 0.0, 0.0, 0.0, │
00:00:34 #7314 [Verbose] > │ 0.0, 0.0, v0) │
00:00:34 #7315 [Verbose] > │ and closure75 () () : UH1 = │
00:00:34 #7316 [Verbose] > │ let v0 : (unit -> UH1) = closure76() │
00:00:34 #7317 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.11, 0.004998540070400965, 0.0, 0.0, 0.0, │
00:00:34 #7318 [Verbose] > │ 0.0, 0.0, v0) │
00:00:34 #7319 [Verbose] > │ and closure74 () () : UH1 = │
00:00:34 #7320 [Verbose] > │ let v0 : (unit -> UH1) = closure75() │
00:00:34 #7321 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.09999999999999999, 0.00496354437049027, │
00:00:34 #7322 [Verbose] > │ 0.0, 0.0, 0.0, 0.0, 0.0, v0) │
00:00:34 #7323 [Verbose] > │ and closure73 () () : UH1 = │
00:00:34 #7324 [Verbose] > │ let v0 : (unit -> UH1) = closure74() │
00:00:34 #7325 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.09, 0.004824377766717757, 0.0, 0.0, 0.0, │
00:00:34 #7326 [Verbose] > │ 0.0, 0.0, v0) │
00:00:34 #7327 [Verbose] > │ and closure72 () () : UH1 = │
00:00:34 #7328 [Verbose] > │ let v0 : (unit -> UH1) = closure73() │
00:00:34 #7329 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.08, 0.004583960976582912, 0.0, 0.0, 0.0, │
00:00:34 #7330 [Verbose] > │ 0.0, 0.0, v0) │
00:00:34 #7331 [Verbose] > │ and closure71 () () : UH1 = │
00:00:34 #7332 [Verbose] > │ let v0 : (unit -> UH1) = closure72() │
00:00:34 #7333 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.06999999999999999, 0.004247339675607605, │
00:00:34 #7334 [Verbose] > │ 0.0, 0.0, 0.0, 0.0, 0.0, v0) │
00:00:34 #7335 [Verbose] > │ and closure70 () () : UH1 = │
00:00:34 #7336 [Verbose] > │ let v0 : (unit -> UH1) = closure71() │
00:00:34 #7337 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.060000000000000005, 0.0038215786027292415, │
00:00:34 #7338 [Verbose] > │ 0.0, 0.0, 0.0, 0.0, 0.0, v0) │
00:00:34 #7339 [Verbose] > │ and closure69 () () : UH1 = │
00:00:34 #7340 [Verbose] > │ let v0 : (unit -> UH1) = closure70() │
00:00:34 #7341 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.05, 0.0033156132912039757, 0.0, 0.0, 0.0, │
00:00:34 #7342 [Verbose] > │ 0.0, 0.0, v0) │
00:00:34 #7343 [Verbose] > │ and closure68 () () : UH1 = │
00:00:34 #7344 [Verbose] > │ let v0 : (unit -> UH1) = closure69() │
00:00:34 #7345 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.04, 0.00274006253677335, 0.0, 0.0, 0.0, │
00:00:34 #7346 [Verbose] > │ 0.0, 0.0, v0) │
00:00:34 #7347 [Verbose] > │ and closure67 () () : UH1 = │
00:00:34 #7348 [Verbose] > │ let v0 : (unit -> UH1) = closure68() │
00:00:34 #7349 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.03, 0.0021070055388626454, 0.0, 0.0, 0.0, │
00:00:34 #7350 [Verbose] > │ 0.0, 0.0, v0) │
00:00:34 #7351 [Verbose] > │ and closure66 () () : UH1 = │
00:00:34 #7352 [Verbose] > │ let v0 : (unit -> UH1) = closure67() │
00:00:34 #7353 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.02, 0.0014297283919934465, 0.0, 0.0, 0.0, │
00:00:34 #7354 [Verbose] > │ 0.0, 0.0, v0) │
00:00:34 #7355 [Verbose] > │ and closure132 (v0 : (unit -> UH1), v1 : (unit -> UH3)) () : UH1 = │
00:00:34 #7356 [Verbose] > │ let v2 : UH3 = v1 () │
00:00:34 #7357 [Verbose] > │ let v3 : UH1 = v0 () │
00:00:34 #7358 [Verbose] > │ match v2 with │
00:00:34 #7359 [Verbose] > │ | UH3_0(v4, v5, v6, v7, v8, v9, v10, v11, v12, v13) -> (* StreamCons *) │
00:00:34 #7360 [Verbose] > │ match v3 with │
00:00:34 #7361 [Verbose] > │ | UH1_0(v14, v15, v16, v17, v18, v19, v20, v21, v22, v23) -> (* │
00:00:34 #7362 [Verbose] > │ StreamCons *) │
00:00:34 #7363 [Verbose] > │ let v24 : float = v9 * 1.25E-05 │
00:00:34 #7364 [Verbose] > │ let v25 : float = v19 + v24 │
00:00:34 #7365 [Verbose] > │ let v26 : float = 1.25E-05 * v6 │
00:00:34 #7366 [Verbose] > │ let v27 : float = 1.25E-05 * v7 │
00:00:34 #7367 [Verbose] > │ let v28 : float = 1.25E-05 * v8 │
00:00:34 #7368 [Verbose] > │ let v29 : float = v16 + v26 │
00:00:34 #7369 [Verbose] > │ let v30 : float = v17 + v27 │
00:00:34 #7370 [Verbose] > │ let v31 : float = v18 + v28 │
00:00:34 #7371 [Verbose] > │ let v32 : float = 1.25E-05 * v10 │
00:00:34 #7372 [Verbose] > │ let v33 : float = 1.25E-05 * v11 │
00:00:34 #7373 [Verbose] > │ let v34 : float = 1.25E-05 * v12 │
00:00:34 #7374 [Verbose] > │ let v35 : float = v20 + v32 │
00:00:34 #7375 [Verbose] > │ let v36 : float = v21 + v33 │
00:00:34 #7376 [Verbose] > │ let v37 : float = v22 + v34 │
00:00:34 #7377 [Verbose] > │ let v38 : (unit -> UH1) = closure132(v23, v13) │
00:00:34 #7378 [Verbose] > │ UH1_0(v14, v15, v29, v30, v31, v25, v35, v36, v37, v38) │
00:00:34 #7379 [Verbose] > │ | UH1_1 -> (* StreamNil *) │
00:00:34 #7380 [Verbose] > │ UH1_1 │
00:00:34 #7381 [Verbose] > │ | UH3_1 -> (* StreamNil *) │
00:00:34 #7382 [Verbose] > │ UH1_1 │
00:00:34 #7383 [Verbose] > │ and closure133 (v0 : UH1) () : UH1 = │
00:00:34 #7384 [Verbose] > │ v0 │
00:00:34 #7385 [Verbose] > │ and closure134 (v0 : UH1, v1 : Mut0) () : UH1 = │
00:00:34 #7386 [Verbose] > │ let v2 : US0 = v1.l0 │
00:00:34 #7387 [Verbose] > │ match v2 with │
00:00:34 #7388 [Verbose] > │ | US0_0(v3) -> (* Computed *) │
00:00:34 #7389 [Verbose] > │ v3 │
00:00:34 #7390 [Verbose] > │ | US0_1(v4) -> (* NotComputed *) │
00:00:34 #7391 [Verbose] > │ let v5 : UH1 = v4 () │
00:00:34 #7392 [Verbose] > │ let v20 : UH1 = │
00:00:34 #7393 [Verbose] > │ match v5 with │
00:00:34 #7394 [Verbose] > │ | UH1_0(v7, v8, v9, v10, v11, v12, v13, v14, v15, v16) -> (* │
00:00:34 #7395 [Verbose] > │ StreamCons *) │
00:00:34 #7396 [Verbose] > │ let v17 : (unit -> UH1) = method3(v0, v16) │
00:00:34 #7397 [Verbose] > │ UH1_0(v7, v8, v9, v10, v11, v12, v13, v14, v15, v17) │
00:00:34 #7398 [Verbose] > │ | UH1_1 -> (* StreamNil *) │
00:00:34 #7399 [Verbose] > │ UH1_1 │
00:00:34 #7400 [Verbose] > │ let v21 : US0 = US0_0(v20) │
00:00:34 #7401 [Verbose] > │ v1.l0 <- v21 │
00:00:34 #7402 [Verbose] > │ v20 │
00:00:34 #7403 [Verbose] > │ and method3 (v0 : UH1, v1 : (unit -> UH1)) : (unit -> UH1) = │
00:00:34 #7404 [Verbose] > │ let v2 : US0 = US0_1(v1) │
00:00:34 #7405 [Verbose] > │ let v3 : Mut0 = {l0 = v2} : Mut0 │
00:00:34 #7406 [Verbose] > │ closure134(v0, v3) │
00:00:34 #7407 [Verbose] > │ and closure135 (v0 : (unit -> UH1), v1 : (unit -> UH3)) () : UH1 = │
00:00:34 #7408 [Verbose] > │ let v2 : UH3 = v1 () │
00:00:34 #7409 [Verbose] > │ let v3 : UH1 = v0 () │
00:00:34 #7410 [Verbose] > │ match v2 with │
00:00:34 #7411 [Verbose] > │ | UH3_0(v4, v5, v6, v7, v8, v9, v10, v11, v12, v13) -> (* StreamCons *) │
00:00:34 #7412 [Verbose] > │ match v3 with │
00:00:34 #7413 [Verbose] > │ | UH1_0(v14, v15, v16, v17, v18, v19, v20, v21, v22, v23) -> (* │
00:00:34 #7414 [Verbose] > │ StreamCons *) │
00:00:34 #7415 [Verbose] > │ let v24 : float = v9 * 2.5E-05 │
00:00:34 #7416 [Verbose] > │ let v25 : float = v19 + v24 │
00:00:34 #7417 [Verbose] > │ let v26 : float = 2.5E-05 * v6 │
00:00:34 #7418 [Verbose] > │ let v27 : float = 2.5E-05 * v7 │
00:00:34 #7419 [Verbose] > │ let v28 : float = 2.5E-05 * v8 │
00:00:34 #7420 [Verbose] > │ let v29 : float = v16 + v26 │
00:00:34 #7421 [Verbose] > │ let v30 : float = v17 + v27 │
00:00:34 #7422 [Verbose] > │ let v31 : float = v18 + v28 │
00:00:34 #7423 [Verbose] > │ let v32 : float = 2.5E-05 * v10 │
00:00:34 #7424 [Verbose] > │ let v33 : float = 2.5E-05 * v11 │
00:00:34 #7425 [Verbose] > │ let v34 : float = 2.5E-05 * v12 │
00:00:34 #7426 [Verbose] > │ let v35 : float = v20 + v32 │
00:00:34 #7427 [Verbose] > │ let v36 : float = v21 + v33 │
00:00:34 #7428 [Verbose] > │ let v37 : float = v22 + v34 │
00:00:34 #7429 [Verbose] > │ let v38 : (unit -> UH1) = closure135(v23, v13) │
00:00:34 #7430 [Verbose] > │ UH1_0(v14, v15, v29, v30, v31, v25, v35, v36, v37, v38) │
00:00:34 #7431 [Verbose] > │ | UH1_1 -> (* StreamNil *) │
00:00:34 #7432 [Verbose] > │ UH1_1 │
00:00:34 #7433 [Verbose] > │ | UH3_1 -> (* StreamNil *) │
00:00:34 #7434 [Verbose] > │ UH1_1 │
00:00:34 #7435 [Verbose] > │ and closure136 (v0 : (unit -> UH3), v1 : (unit -> UH3)) () : UH3 = │
00:00:34 #7436 [Verbose] > │ let v2 : UH3 = v1 () │
00:00:34 #7437 [Verbose] > │ let v3 : UH3 = v0 () │
00:00:34 #7438 [Verbose] > │ match v2 with │
00:00:34 #7439 [Verbose] > │ | UH3_0(v4, v5, v6, v7, v8, v9, v10, v11, v12, v13) -> (* StreamCons *) │
00:00:34 #7440 [Verbose] > │ match v3 with │
00:00:34 #7441 [Verbose] > │ | UH3_0(v14, v15, v16, v17, v18, v19, v20, v21, v22, v23) -> (* │
00:00:34 #7442 [Verbose] > │ StreamCons *) │
00:00:34 #7443 [Verbose] > │ let v24 : float = v4 + v14 │
00:00:34 #7444 [Verbose] > │ let v25 : float = v5 + v15 │
00:00:34 #7445 [Verbose] > │ let v26 : float = v9 + v19 │
00:00:34 #7446 [Verbose] > │ let v27 : float = v6 + v16 │
00:00:34 #7447 [Verbose] > │ let v28 : float = v7 + v17 │
00:00:34 #7448 [Verbose] > │ let v29 : float = v8 + v18 │
00:00:34 #7449 [Verbose] > │ let v30 : float = v10 + v20 │
00:00:34 #7450 [Verbose] > │ let v31 : float = v11 + v21 │
00:00:34 #7451 [Verbose] > │ let v32 : float = v12 + v22 │
00:00:34 #7452 [Verbose] > │ let v33 : (unit -> UH3) = closure136(v23, v13) │
00:00:34 #7453 [Verbose] > │ UH3_0(v24, v25, v27, v28, v29, v26, v30, v31, v32, v33) │
00:00:34 #7454 [Verbose] > │ | UH3_1 -> (* StreamNil *) │
00:00:34 #7455 [Verbose] > │ UH3_1 │
00:00:34 #7456 [Verbose] > │ | UH3_1 -> (* StreamNil *) │
00:00:34 #7457 [Verbose] > │ UH3_1 │
00:00:34 #7458 [Verbose] > │ and closure137 (v0 : (unit -> UH1), v1 : (unit -> UH3)) () : UH1 = │
00:00:34 #7459 [Verbose] > │ let v2 : UH3 = v1 () │
00:00:34 #7460 [Verbose] > │ let v3 : UH1 = v0 () │
00:00:34 #7461 [Verbose] > │ match v2 with │
00:00:34 #7462 [Verbose] > │ | UH3_0(v4, v5, v6, v7, v8, v9, v10, v11, v12, v13) -> (* StreamCons *) │
00:00:34 #7463 [Verbose] > │ match v3 with │
00:00:34 #7464 [Verbose] > │ | UH1_0(v14, v15, v16, v17, v18, v19, v20, v21, v22, v23) -> (* │
00:00:34 #7465 [Verbose] > │ StreamCons *) │
00:00:34 #7466 [Verbose] > │ let v24 : float = v9 * 4.166666666666667E-06 │
00:00:34 #7467 [Verbose] > │ let v25 : float = v19 + v24 │
00:00:34 #7468 [Verbose] > │ let v26 : float = 4.166666666666667E-06 * v6 │
00:00:34 #7469 [Verbose] > │ let v27 : float = 4.166666666666667E-06 * v7 │
00:00:34 #7470 [Verbose] > │ let v28 : float = 4.166666666666667E-06 * v8 │
00:00:34 #7471 [Verbose] > │ let v29 : float = v16 + v26 │
00:00:34 #7472 [Verbose] > │ let v30 : float = v17 + v27 │
00:00:34 #7473 [Verbose] > │ let v31 : float = v18 + v28 │
00:00:34 #7474 [Verbose] > │ let v32 : float = 4.166666666666667E-06 * v10 │
00:00:34 #7475 [Verbose] > │ let v33 : float = 4.166666666666667E-06 * v11 │
00:00:34 #7476 [Verbose] > │ let v34 : float = 4.166666666666667E-06 * v12 │
00:00:34 #7477 [Verbose] > │ let v35 : float = v20 + v32 │
00:00:34 #7478 [Verbose] > │ let v36 : float = v21 + v33 │
00:00:34 #7479 [Verbose] > │ let v37 : float = v22 + v34 │
00:00:34 #7480 [Verbose] > │ let v38 : (unit -> UH1) = closure137(v23, v13) │
00:00:34 #7481 [Verbose] > │ UH1_0(v14, v15, v29, v30, v31, v25, v35, v36, v37, v38) │
00:00:34 #7482 [Verbose] > │ | UH1_1 -> (* StreamNil *) │
00:00:34 #7483 [Verbose] > │ UH1_1 │
00:00:34 #7484 [Verbose] > │ | UH3_1 -> (* StreamNil *) │
00:00:34 #7485 [Verbose] > │ UH1_1 │
00:00:34 #7486 [Verbose] > │ and closure131 (v0 : (UH1 -> UH3)) (v1 : UH1) : UH1 = │
00:00:34 #7487 [Verbose] > │ let v2 : UH3 = v0 v1 │
00:00:34 #7488 [Verbose] > │ let v44 : UH1 = │
00:00:34 #7489 [Verbose] > │ match v2 with │
00:00:34 #7490 [Verbose] > │ | UH3_0(v3, v4, v5, v6, v7, v8, v9, v10, v11, v12) -> (* StreamCons │
00:00:34 #7491 [Verbose] > │ *) │
00:00:34 #7492 [Verbose] > │ match v1 with │
00:00:34 #7493 [Verbose] > │ | UH1_0(v13, v14, v15, v16, v17, v18, v19, v20, v21, v22) -> (* │
00:00:34 #7494 [Verbose] > │ StreamCons *) │
00:00:34 #7495 [Verbose] > │ let v23 : float = v8 * 1.25E-05 │
00:00:34 #7496 [Verbose] > │ let v24 : float = v18 + v23 │
00:00:34 #7497 [Verbose] > │ let v25 : float = 1.25E-05 * v5 │
00:00:34 #7498 [Verbose] > │ let v26 : float = 1.25E-05 * v6 │
00:00:34 #7499 [Verbose] > │ let v27 : float = 1.25E-05 * v7 │
00:00:34 #7500 [Verbose] > │ let v28 : float = v15 + v25 │
00:00:34 #7501 [Verbose] > │ let v29 : float = v16 + v26 │
00:00:34 #7502 [Verbose] > │ let v30 : float = v17 + v27 │
00:00:34 #7503 [Verbose] > │ let v31 : float = 1.25E-05 * v9 │
00:00:34 #7504 [Verbose] > │ let v32 : float = 1.25E-05 * v10 │
00:00:34 #7505 [Verbose] > │ let v33 : float = 1.25E-05 * v11 │
00:00:34 #7506 [Verbose] > │ let v34 : float = v19 + v31 │
00:00:34 #7507 [Verbose] > │ let v35 : float = v20 + v32 │
00:00:34 #7508 [Verbose] > │ let v36 : float = v21 + v33 │
00:00:34 #7509 [Verbose] > │ let v37 : (unit -> UH1) = closure132(v22, v12) │
00:00:34 #7510 [Verbose] > │ UH1_0(v13, v14, v28, v29, v30, v24, v34, v35, v36, v37) │
00:00:34 #7511 [Verbose] > │ | UH1_1 -> (* StreamNil *) │
00:00:34 #7512 [Verbose] > │ UH1_1 │
00:00:34 #7513 [Verbose] > │ | UH3_1 -> (* StreamNil *) │
00:00:34 #7514 [Verbose] > │ UH1_1 │
00:00:34 #7515 [Verbose] > │ let v45 : (unit -> UH1) = closure133(v44) │
00:00:34 #7516 [Verbose] > │ let v46 : (unit -> UH1) = method3(v44, v45) │
00:00:34 #7517 [Verbose] > │ let v47 : UH1 = v46 () │
00:00:34 #7518 [Verbose] > │ let v48 : UH3 = v0 v47 │
00:00:34 #7519 [Verbose] > │ let v90 : UH1 = │
00:00:34 #7520 [Verbose] > │ match v48 with │
00:00:34 #7521 [Verbose] > │ | UH3_0(v49, v50, v51, v52, v53, v54, v55, v56, v57, v58) -> (* │
00:00:34 #7522 [Verbose] > │ StreamCons *) │
00:00:34 #7523 [Verbose] > │ match v1 with │
00:00:34 #7524 [Verbose] > │ | UH1_0(v59, v60, v61, v62, v63, v64, v65, v66, v67, v68) -> (* │
00:00:34 #7525 [Verbose] > │ StreamCons *) │
00:00:34 #7526 [Verbose] > │ let v69 : float = v54 * 1.25E-05 │
00:00:34 #7527 [Verbose] > │ let v70 : float = v64 + v69 │
00:00:34 #7528 [Verbose] > │ let v71 : float = 1.25E-05 * v51 │
00:00:34 #7529 [Verbose] > │ let v72 : float = 1.25E-05 * v52 │
00:00:34 #7530 [Verbose] > │ let v73 : float = 1.25E-05 * v53 │
00:00:34 #7531 [Verbose] > │ let v74 : float = v61 + v71 │
00:00:34 #7532 [Verbose] > │ let v75 : float = v62 + v72 │
00:00:34 #7533 [Verbose] > │ let v76 : float = v63 + v73 │
00:00:34 #7534 [Verbose] > │ let v77 : float = 1.25E-05 * v55 │
00:00:34 #7535 [Verbose] > │ let v78 : float = 1.25E-05 * v56 │
00:00:34 #7536 [Verbose] > │ let v79 : float = 1.25E-05 * v57 │
00:00:34 #7537 [Verbose] > │ let v80 : float = v65 + v77 │
00:00:34 #7538 [Verbose] > │ let v81 : float = v66 + v78 │
00:00:34 #7539 [Verbose] > │ let v82 : float = v67 + v79 │
00:00:34 #7540 [Verbose] > │ let v83 : (unit -> UH1) = closure132(v68, v58) │
00:00:34 #7541 [Verbose] > │ UH1_0(v59, v60, v74, v75, v76, v70, v80, v81, v82, v83) │
00:00:34 #7542 [Verbose] > │ | UH1_1 -> (* StreamNil *) │
00:00:34 #7543 [Verbose] > │ UH1_1 │
00:00:34 #7544 [Verbose] > │ | UH3_1 -> (* StreamNil *) │
00:00:34 #7545 [Verbose] > │ UH1_1 │
00:00:34 #7546 [Verbose] > │ let v91 : (unit -> UH1) = closure133(v90) │
00:00:34 #7547 [Verbose] > │ let v92 : (unit -> UH1) = method3(v90, v91) │
00:00:34 #7548 [Verbose] > │ let v93 : UH1 = v92 () │
00:00:34 #7549 [Verbose] > │ let v94 : UH3 = v0 v93 │
00:00:34 #7550 [Verbose] > │ let v136 : UH1 = │
00:00:34 #7551 [Verbose] > │ match v94 with │
00:00:34 #7552 [Verbose] > │ | UH3_0(v95, v96, v97, v98, v99, v100, v101, v102, v103, v104) -> (* │
00:00:34 #7553 [Verbose] > │ StreamCons *) │
00:00:34 #7554 [Verbose] > │ match v1 with │
00:00:34 #7555 [Verbose] > │ | UH1_0(v105, v106, v107, v108, v109, v110, v111, v112, v113, │
00:00:34 #7556 [Verbose] > │ v114) -> (* StreamCons *) │
00:00:34 #7557 [Verbose] > │ let v115 : float = v100 * 2.5E-05 │
00:00:34 #7558 [Verbose] > │ let v116 : float = v110 + v115 │
00:00:34 #7559 [Verbose] > │ let v117 : float = 2.5E-05 * v97 │
00:00:34 #7560 [Verbose] > │ let v118 : float = 2.5E-05 * v98 │
00:00:34 #7561 [Verbose] > │ let v119 : float = 2.5E-05 * v99 │
00:00:34 #7562 [Verbose] > │ let v120 : float = v107 + v117 │
00:00:34 #7563 [Verbose] > │ let v121 : float = v108 + v118 │
00:00:34 #7564 [Verbose] > │ let v122 : float = v109 + v119 │
00:00:34 #7565 [Verbose] > │ let v123 : float = 2.5E-05 * v101 │
00:00:34 #7566 [Verbose] > │ let v124 : float = 2.5E-05 * v102 │
00:00:34 #7567 [Verbose] > │ let v125 : float = 2.5E-05 * v103 │
00:00:34 #7568 [Verbose] > │ let v126 : float = v111 + v123 │
00:00:34 #7569 [Verbose] > │ let v127 : float = v112 + v124 │
00:00:34 #7570 [Verbose] > │ let v128 : float = v113 + v125 │
00:00:34 #7571 [Verbose] > │ let v129 : (unit -> UH1) = closure135(v114, v104) │
00:00:34 #7572 [Verbose] > │ UH1_0(v105, v106, v120, v121, v122, v116, v126, v127, v128, │
00:00:34 #7573 [Verbose] > │ v129) │
00:00:34 #7574 [Verbose] > │ | UH1_1 -> (* StreamNil *) │
00:00:34 #7575 [Verbose] > │ UH1_1 │
00:00:34 #7576 [Verbose] > │ | UH3_1 -> (* StreamNil *) │
00:00:34 #7577 [Verbose] > │ UH1_1 │
00:00:34 #7578 [Verbose] > │ let v137 : (unit -> UH1) = closure133(v136) │
00:00:34 #7579 [Verbose] > │ let v138 : (unit -> UH1) = method3(v136, v137) │
00:00:34 #7580 [Verbose] > │ let v139 : UH1 = v138 () │
00:00:34 #7581 [Verbose] > │ let v140 : UH3 = v0 v139 │
00:00:34 #7582 [Verbose] > │ let v177 : UH3 = │
00:00:34 #7583 [Verbose] > │ match v2 with │
00:00:34 #7584 [Verbose] > │ | UH3_0(v141, v142, v143, v144, v145, v146, v147, v148, v149, v150) │
00:00:34 #7585 [Verbose] > │ -> (* StreamCons *) │
00:00:34 #7586 [Verbose] > │ match v48 with │
00:00:34 #7587 [Verbose] > │ | UH3_0(v151, v152, v153, v154, v155, v156, v157, v158, v159, │
00:00:34 #7588 [Verbose] > │ v160) -> (* StreamCons *) │
00:00:34 #7589 [Verbose] > │ let v161 : float = v141 + v151 │
00:00:34 #7590 [Verbose] > │ let v162 : float = v142 + v152 │
00:00:34 #7591 [Verbose] > │ let v163 : float = v146 + v156 │
00:00:34 #7592 [Verbose] > │ let v164 : float = v143 + v153 │
00:00:34 #7593 [Verbose] > │ let v165 : float = v144 + v154 │
00:00:34 #7594 [Verbose] > │ let v166 : float = v145 + v155 │
00:00:34 #7595 [Verbose] > │ let v167 : float = v147 + v157 │
00:00:34 #7596 [Verbose] > │ let v168 : float = v148 + v158 │
00:00:34 #7597 [Verbose] > │ let v169 : float = v149 + v159 │
00:00:34 #7598 [Verbose] > │ let v170 : (unit -> UH3) = closure136(v160, v150) │
00:00:34 #7599 [Verbose] > │ UH3_0(v161, v162, v164, v165, v166, v163, v167, v168, v169, │
00:00:34 #7600 [Verbose] > │ v170) │
00:00:34 #7601 [Verbose] > │ | UH3_1 -> (* StreamNil *) │
00:00:34 #7602 [Verbose] > │ UH3_1 │
00:00:34 #7603 [Verbose] > │ | UH3_1 -> (* StreamNil *) │
00:00:34 #7604 [Verbose] > │ UH3_1 │
00:00:34 #7605 [Verbose] > │ let v214 : UH3 = │
00:00:34 #7606 [Verbose] > │ match v177 with │
00:00:34 #7607 [Verbose] > │ | UH3_0(v178, v179, v180, v181, v182, v183, v184, v185, v186, v187) │
00:00:34 #7608 [Verbose] > │ -> (* StreamCons *) │
00:00:34 #7609 [Verbose] > │ match v48 with │
00:00:34 #7610 [Verbose] > │ | UH3_0(v188, v189, v190, v191, v192, v193, v194, v195, v196, │
00:00:34 #7611 [Verbose] > │ v197) -> (* StreamCons *) │
00:00:34 #7612 [Verbose] > │ let v198 : float = v178 + v188 │
00:00:34 #7613 [Verbose] > │ let v199 : float = v179 + v189 │
00:00:34 #7614 [Verbose] > │ let v200 : float = v183 + v193 │
00:00:34 #7615 [Verbose] > │ let v201 : float = v180 + v190 │
00:00:34 #7616 [Verbose] > │ let v202 : float = v181 + v191 │
00:00:34 #7617 [Verbose] > │ let v203 : float = v182 + v192 │
00:00:34 #7618 [Verbose] > │ let v204 : float = v184 + v194 │
00:00:34 #7619 [Verbose] > │ let v205 : float = v185 + v195 │
00:00:34 #7620 [Verbose] > │ let v206 : float = v186 + v196 │
00:00:34 #7621 [Verbose] > │ let v207 : (unit -> UH3) = closure136(v197, v187) │
00:00:34 #7622 [Verbose] > │ UH3_0(v198, v199, v201, v202, v203, v200, v204, v205, v206, │
00:00:34 #7623 [Verbose] > │ v207) │
00:00:34 #7624 [Verbose] > │ | UH3_1 -> (* StreamNil *) │
00:00:34 #7625 [Verbose] > │ UH3_1 │
00:00:34 #7626 [Verbose] > │ | UH3_1 -> (* StreamNil *) │
00:00:34 #7627 [Verbose] > │ UH3_1 │
00:00:34 #7628 [Verbose] > │ let v251 : UH3 = │
00:00:34 #7629 [Verbose] > │ match v214 with │
00:00:34 #7630 [Verbose] > │ | UH3_0(v215, v216, v217, v218, v219, v220, v221, v222, v223, v224) │
00:00:34 #7631 [Verbose] > │ -> (* StreamCons *) │
00:00:34 #7632 [Verbose] > │ match v94 with │
00:00:34 #7633 [Verbose] > │ | UH3_0(v225, v226, v227, v228, v229, v230, v231, v232, v233, │
00:00:34 #7634 [Verbose] > │ v234) -> (* StreamCons *) │
00:00:34 #7635 [Verbose] > │ let v235 : float = v215 + v225 │
00:00:34 #7636 [Verbose] > │ let v236 : float = v216 + v226 │
00:00:34 #7637 [Verbose] > │ let v237 : float = v220 + v230 │
00:00:34 #7638 [Verbose] > │ let v238 : float = v217 + v227 │
00:00:34 #7639 [Verbose] > │ let v239 : float = v218 + v228 │
00:00:34 #7640 [Verbose] > │ let v240 : float = v219 + v229 │
00:00:34 #7641 [Verbose] > │ let v241 : float = v221 + v231 │
00:00:34 #7642 [Verbose] > │ let v242 : float = v222 + v232 │
00:00:34 #7643 [Verbose] > │ let v243 : float = v223 + v233 │
00:00:34 #7644 [Verbose] > │ let v244 : (unit -> UH3) = closure136(v234, v224) │
00:00:34 #7645 [Verbose] > │ UH3_0(v235, v236, v238, v239, v240, v237, v241, v242, v243, │
00:00:34 #7646 [Verbose] > │ v244) │
00:00:34 #7647 [Verbose] > │ | UH3_1 -> (* StreamNil *) │
00:00:34 #7648 [Verbose] > │ UH3_1 │
00:00:34 #7649 [Verbose] > │ | UH3_1 -> (* StreamNil *) │
00:00:34 #7650 [Verbose] > │ UH3_1 │
00:00:34 #7651 [Verbose] > │ let v288 : UH3 = │
00:00:34 #7652 [Verbose] > │ match v251 with │
00:00:34 #7653 [Verbose] > │ | UH3_0(v252, v253, v254, v255, v256, v257, v258, v259, v260, v261) │
00:00:34 #7654 [Verbose] > │ -> (* StreamCons *) │
00:00:34 #7655 [Verbose] > │ match v94 with │
00:00:34 #7656 [Verbose] > │ | UH3_0(v262, v263, v264, v265, v266, v267, v268, v269, v270, │
00:00:34 #7657 [Verbose] > │ v271) -> (* StreamCons *) │
00:00:34 #7658 [Verbose] > │ let v272 : float = v252 + v262 │
00:00:34 #7659 [Verbose] > │ let v273 : float = v253 + v263 │
00:00:34 #7660 [Verbose] > │ let v274 : float = v257 + v267 │
00:00:34 #7661 [Verbose] > │ let v275 : float = v254 + v264 │
00:00:34 #7662 [Verbose] > │ let v276 : float = v255 + v265 │
00:00:34 #7663 [Verbose] > │ let v277 : float = v256 + v266 │
00:00:34 #7664 [Verbose] > │ let v278 : float = v258 + v268 │
00:00:34 #7665 [Verbose] > │ let v279 : float = v259 + v269 │
00:00:34 #7666 [Verbose] > │ let v280 : float = v260 + v270 │
00:00:34 #7667 [Verbose] > │ let v281 : (unit -> UH3) = closure136(v271, v261) │
00:00:34 #7668 [Verbose] > │ UH3_0(v272, v273, v275, v276, v277, v274, v278, v279, v280, │
00:00:34 #7669 [Verbose] > │ v281) │
00:00:34 #7670 [Verbose] > │ | UH3_1 -> (* StreamNil *) │
00:00:34 #7671 [Verbose] > │ UH3_1 │
00:00:34 #7672 [Verbose] > │ | UH3_1 -> (* StreamNil *) │
00:00:34 #7673 [Verbose] > │ UH3_1 │
00:00:34 #7674 [Verbose] > │ let v325 : UH3 = │
00:00:34 #7675 [Verbose] > │ match v288 with │
00:00:34 #7676 [Verbose] > │ | UH3_0(v289, v290, v291, v292, v293, v294, v295, v296, v297, v298) │
00:00:34 #7677 [Verbose] > │ -> (* StreamCons *) │
00:00:34 #7678 [Verbose] > │ match v140 with │
00:00:34 #7679 [Verbose] > │ | UH3_0(v299, v300, v301, v302, v303, v304, v305, v306, v307, │
00:00:34 #7680 [Verbose] > │ v308) -> (* StreamCons *) │
00:00:34 #7681 [Verbose] > │ let v309 : float = v289 + v299 │
00:00:34 #7682 [Verbose] > │ let v310 : float = v290 + v300 │
00:00:34 #7683 [Verbose] > │ let v311 : float = v294 + v304 │
00:00:34 #7684 [Verbose] > │ let v312 : float = v291 + v301 │
00:00:34 #7685 [Verbose] > │ let v313 : float = v292 + v302 │
00:00:34 #7686 [Verbose] > │ let v314 : float = v293 + v303 │
00:00:34 #7687 [Verbose] > │ let v315 : float = v295 + v305 │
00:00:34 #7688 [Verbose] > │ let v316 : float = v296 + v306 │
00:00:34 #7689 [Verbose] > │ let v317 : float = v297 + v307 │
00:00:34 #7690 [Verbose] > │ let v318 : (unit -> UH3) = closure136(v308, v298) │
00:00:34 #7691 [Verbose] > │ UH3_0(v309, v310, v312, v313, v314, v311, v315, v316, v317, │
00:00:34 #7692 [Verbose] > │ v318) │
00:00:34 #7693 [Verbose] > │ | UH3_1 -> (* StreamNil *) │
00:00:34 #7694 [Verbose] > │ UH3_1 │
00:00:34 #7695 [Verbose] > │ | UH3_1 -> (* StreamNil *) │
00:00:34 #7696 [Verbose] > │ UH3_1 │
00:00:34 #7697 [Verbose] > │ let v367 : UH1 = │
00:00:34 #7698 [Verbose] > │ match v325 with │
00:00:34 #7699 [Verbose] > │ | UH3_0(v326, v327, v328, v329, v330, v331, v332, v333, v334, v335) │
00:00:34 #7700 [Verbose] > │ -> (* StreamCons *) │
00:00:34 #7701 [Verbose] > │ match v1 with │
00:00:34 #7702 [Verbose] > │ | UH1_0(v336, v337, v338, v339, v340, v341, v342, v343, v344, │
00:00:34 #7703 [Verbose] > │ v345) -> (* StreamCons *) │
00:00:34 #7704 [Verbose] > │ let v346 : float = v331 * 4.166666666666667E-06 │
00:00:34 #7705 [Verbose] > │ let v347 : float = v341 + v346 │
00:00:34 #7706 [Verbose] > │ let v348 : float = 4.166666666666667E-06 * v328 │
00:00:34 #7707 [Verbose] > │ let v349 : float = 4.166666666666667E-06 * v329 │
00:00:34 #7708 [Verbose] > │ let v350 : float = 4.166666666666667E-06 * v330 │
00:00:34 #7709 [Verbose] > │ let v351 : float = v338 + v348 │
00:00:34 #7710 [Verbose] > │ let v352 : float = v339 + v349 │
00:00:34 #7711 [Verbose] > │ let v353 : float = v340 + v350 │
00:00:34 #7712 [Verbose] > │ let v354 : float = 4.166666666666667E-06 * v332 │
00:00:34 #7713 [Verbose] > │ let v355 : float = 4.166666666666667E-06 * v333 │
00:00:34 #7714 [Verbose] > │ let v356 : float = 4.166666666666667E-06 * v334 │
00:00:34 #7715 [Verbose] > │ let v357 : float = v342 + v354 │
00:00:34 #7716 [Verbose] > │ let v358 : float = v343 + v355 │
00:00:34 #7717 [Verbose] > │ let v359 : float = v344 + v356 │
00:00:34 #7718 [Verbose] > │ let v360 : (unit -> UH1) = closure137(v345, v335) │
00:00:34 #7719 [Verbose] > │ UH1_0(v336, v337, v351, v352, v353, v347, v357, v358, v359, │
00:00:34 #7720 [Verbose] > │ v360) │
00:00:34 #7721 [Verbose] > │ | UH1_1 -> (* StreamNil *) │
00:00:34 #7722 [Verbose] > │ UH1_1 │
00:00:34 #7723 [Verbose] > │ | UH3_1 -> (* StreamNil *) │
00:00:34 #7724 [Verbose] > │ UH1_1 │
00:00:34 #7725 [Verbose] > │ let v368 : (unit -> UH1) = closure133(v367) │
00:00:34 #7726 [Verbose] > │ let v369 : (unit -> UH1) = method3(v367, v368) │
00:00:34 #7727 [Verbose] > │ let v370 : UH1 = v369 () │
00:00:34 #7728 [Verbose] > │ v370 │
00:00:34 #7729 [Verbose] > │ and closure130 () (v0 : (UH1 -> UH3)) : (UH1 -> UH1) = │
00:00:34 #7730 [Verbose] > │ closure131(v0) │
00:00:34 #7731 [Verbose] > │ and method2 () : ((UH1 -> UH3) -> (UH1 -> UH1)) = │
00:00:34 #7732 [Verbose] > │ closure130() │
00:00:34 #7733 [Verbose] > │ and closure138 () struct (v0 : float, v1 : float, v2 : float, v3 : float, v4 │
00:00:34 #7734 [Verbose] > │ : float, v5 : float, v6 : float, v7 : float, v8 : float) : struct (float * │
00:00:34 #7735 [Verbose] > │ float * float) = │
00:00:34 #7736 [Verbose] > │ let v9 : float = v2 * v2 │
00:00:34 #7737 [Verbose] > │ let v10 : float = v3 * v3 │
00:00:34 #7738 [Verbose] > │ let v11 : float = v9 + v10 │
00:00:34 #7739 [Verbose] > │ let v12 : float = v4 * v4 │
00:00:34 #7740 [Verbose] > │ let v13 : float = v11 + v12 │
00:00:34 #7741 [Verbose] > │ let v14 : float = sqrt v13 │
00:00:34 #7742 [Verbose] > │ let v15 : float = -5384.0 * v14 │
00:00:34 #7743 [Verbose] > │ let v16 : float = v15 * v2 │
00:00:34 #7744 [Verbose] > │ let v17 : float = v15 * v3 │
00:00:34 #7745 [Verbose] > │ let v18 : float = v15 * v4 │
00:00:34 #7746 [Verbose] > │ let v19 : float = v16 / v14 │
00:00:34 #7747 [Verbose] > │ let v20 : float = v17 / v14 │
00:00:34 #7748 [Verbose] > │ let v21 : float = v18 / v14 │
00:00:34 #7749 [Verbose] > │ struct (v19, v20, v21) │
00:00:34 #7750 [Verbose] > │ and closure139 () struct (v0 : float, v1 : float, v2 : float, v3 : float, v4 │
00:00:34 #7751 [Verbose] > │ : float, v5 : float, v6 : float, v7 : float, v8 : float) : struct (float * │
00:00:34 #7752 [Verbose] > │ float * float) = │
00:00:34 #7753 [Verbose] > │ let v9 : float = v2 + -0.65 │
00:00:34 #7754 [Verbose] > │ let v10 : float = v9 * v9 │
00:00:34 #7755 [Verbose] > │ let v11 : float = v3 * v3 │
00:00:34 #7756 [Verbose] > │ let v12 : float = v10 + v11 │
00:00:34 #7757 [Verbose] > │ let v13 : float = v4 * v4 │
00:00:34 #7758 [Verbose] > │ let v14 : float = v12 + v13 │
00:00:34 #7759 [Verbose] > │ let v15 : float = sqrt v14 │
00:00:34 #7760 [Verbose] > │ let v16 : float = -5384.0 * v15 │
00:00:34 #7761 [Verbose] > │ let v17 : float = v16 * v9 │
00:00:34 #7762 [Verbose] > │ let v18 : float = v16 * v3 │
00:00:34 #7763 [Verbose] > │ let v19 : float = v16 * v4 │
00:00:34 #7764 [Verbose] > │ let v20 : float = v17 / v15 │
00:00:34 #7765 [Verbose] > │ let v21 : float = v18 / v15 │
00:00:34 #7766 [Verbose] > │ let v22 : float = v19 / v15 │
00:00:34 #7767 [Verbose] > │ struct (v20, v21, v22) │
00:00:34 #7768 [Verbose] > │ and closure141 (v0 : float, v1 : float, v2 : float, v3 : float, v4 : float, │
00:00:34 #7769 [Verbose] > │ v5 : float, v6 : float, v7 : float, v8 : float) struct (v9 : float, v10 : │
00:00:34 #7770 [Verbose] > │ float, v11 : float, v12 : float, v13 : float, v14 : float, v15 : float, v16 │
00:00:34 #7771 [Verbose] > │ : float, v17 : float) : struct (float * float * float) = │
00:00:34 #7772 [Verbose] > │ let v18 : float = -1.0 * v2 │
00:00:34 #7773 [Verbose] > │ let v19 : float = -1.0 * v3 │
00:00:34 #7774 [Verbose] > │ let v20 : float = -1.0 * v4 │
00:00:34 #7775 [Verbose] > │ let v21 : float = v11 + v18 │
00:00:34 #7776 [Verbose] > │ let v22 : float = v12 + v19 │
00:00:34 #7777 [Verbose] > │ let v23 : float = v13 + v20 │
00:00:34 #7778 [Verbose] > │ let v24 : float = v21 * v21 │
00:00:34 #7779 [Verbose] > │ let v25 : float = v22 * v22 │
00:00:34 #7780 [Verbose] > │ let v26 : float = v24 + v25 │
00:00:34 #7781 [Verbose] > │ let v27 : float = v23 * v23 │
00:00:34 #7782 [Verbose] > │ let v28 : float = v26 + v27 │
00:00:34 #7783 [Verbose] > │ let v29 : float = sqrt v28 │
00:00:34 #7784 [Verbose] > │ let v30 : float = -5384.0 * v29 │
00:00:34 #7785 [Verbose] > │ let v31 : float = v30 * v21 │
00:00:34 #7786 [Verbose] > │ let v32 : float = v30 * v22 │
00:00:34 #7787 [Verbose] > │ let v33 : float = v30 * v23 │
00:00:34 #7788 [Verbose] > │ let v34 : float = v31 / v29 │
00:00:34 #7789 [Verbose] > │ let v35 : float = v32 / v29 │
00:00:34 #7790 [Verbose] > │ let v36 : float = v33 / v29 │
00:00:34 #7791 [Verbose] > │ struct (v34, v35, v36) │
00:00:34 #7792 [Verbose] > │ and closure140 () struct (v0 : float, v1 : float, v2 : float, v3 : float, v4 │
00:00:34 #7793 [Verbose] > │ : float, v5 : float, v6 : float, v7 : float, v8 : float) : (struct (float * │
00:00:34 #7794 [Verbose] > │ float * float * float * float * float * float * float * float) -> struct │
00:00:34 #7795 [Verbose] > │ (float * float * float)) = │
00:00:34 #7796 [Verbose] > │ closure141(v0, v1, v2, v3, v4, v5, v6, v7, v8) │
00:00:34 #7797 [Verbose] > │ and method4 () : UH4 = │
00:00:34 #7798 [Verbose] > │ let v0 : (struct (float * float * float * float * float * float * float │
00:00:34 #7799 [Verbose] > │ * float * float) -> struct (float * float * float)) = closure138() │
00:00:34 #7800 [Verbose] > │ let v1 : US1 = US1_0(0, v0) │
00:00:34 #7801 [Verbose] > │ let v2 : (struct (float * float * float * float * float * float * float │
00:00:34 #7802 [Verbose] > │ * float * float) -> struct (float * float * float)) = closure139() │
00:00:34 #7803 [Verbose] > │ let v3 : US1 = US1_0(63, v2) │
00:00:34 #7804 [Verbose] > │ let v4 : (struct (float * float * float * float * float * float * float │
00:00:34 #7805 [Verbose] > │ * float * float) -> (struct (float * float * float * float * float * float * │
00:00:34 #7806 [Verbose] > │ float * float * float) -> struct (float * float * float))) = closure140() │
00:00:34 #7807 [Verbose] > │ let v5 : US1 = US1_1(0, 1, v4) │
00:00:34 #7808 [Verbose] > │ let v6 : US1 = US1_1(1, 2, v4) │
00:00:34 #7809 [Verbose] > │ let v7 : US1 = US1_1(2, 3, v4) │
00:00:34 #7810 [Verbose] > │ let v8 : US1 = US1_1(3, 4, v4) │
00:00:34 #7811 [Verbose] > │ let v9 : US1 = US1_1(4, 5, v4) │
00:00:34 #7812 [Verbose] > │ let v10 : US1 = US1_1(5, 6, v4) │
00:00:34 #7813 [Verbose] > │ let v11 : US1 = US1_1(6, 7, v4) │
00:00:34 #7814 [Verbose] > │ let v12 : US1 = US1_1(7, 8, v4) │
00:00:34 #7815 [Verbose] > │ let v13 : US1 = US1_1(8, 9, v4) │
00:00:34 #7816 [Verbose] > │ let v14 : US1 = US1_1(9, 10, v4) │
00:00:34 #7817 [Verbose] > │ let v15 : US1 = US1_1(10, 11, v4) │
00:00:34 #7818 [Verbose] > │ let v16 : US1 = US1_1(11, 12, v4) │
00:00:34 #7819 [Verbose] > │ let v17 : US1 = US1_1(12, 13, v4) │
00:00:34 #7820 [Verbose] > │ let v18 : US1 = US1_1(13, 14, v4) │
00:00:34 #7821 [Verbose] > │ let v19 : US1 = US1_1(14, 15, v4) │
00:00:34 #7822 [Verbose] > │ let v20 : US1 = US1_1(15, 16, v4) │
00:00:34 #7823 [Verbose] > │ let v21 : US1 = US1_1(16, 17, v4) │
00:00:34 #7824 [Verbose] > │ let v22 : US1 = US1_1(17, 18, v4) │
00:00:34 #7825 [Verbose] > │ let v23 : US1 = US1_1(18, 19, v4) │
00:00:34 #7826 [Verbose] > │ let v24 : US1 = US1_1(19, 20, v4) │
00:00:34 #7827 [Verbose] > │ let v25 : US1 = US1_1(20, 21, v4) │
00:00:34 #7828 [Verbose] > │ let v26 : US1 = US1_1(21, 22, v4) │
00:00:34 #7829 [Verbose] > │ let v27 : US1 = US1_1(22, 23, v4) │
00:00:34 #7830 [Verbose] > │ let v28 : US1 = US1_1(23, 24, v4) │
00:00:34 #7831 [Verbose] > │ let v29 : US1 = US1_1(24, 25, v4) │
00:00:34 #7832 [Verbose] > │ let v30 : US1 = US1_1(25, 26, v4) │
00:00:34 #7833 [Verbose] > │ let v31 : US1 = US1_1(26, 27, v4) │
00:00:34 #7834 [Verbose] > │ let v32 : US1 = US1_1(27, 28, v4) │
00:00:34 #7835 [Verbose] > │ let v33 : US1 = US1_1(28, 29, v4) │
00:00:34 #7836 [Verbose] > │ let v34 : US1 = US1_1(29, 30, v4) │
00:00:34 #7837 [Verbose] > │ let v35 : US1 = US1_1(30, 31, v4) │
00:00:34 #7838 [Verbose] > │ let v36 : US1 = US1_1(31, 32, v4) │
00:00:34 #7839 [Verbose] > │ let v37 : US1 = US1_1(32, 33, v4) │
00:00:34 #7840 [Verbose] > │ let v38 : US1 = US1_1(33, 34, v4) │
00:00:34 #7841 [Verbose] > │ let v39 : US1 = US1_1(34, 35, v4) │
00:00:34 #7842 [Verbose] > │ let v40 : US1 = US1_1(35, 36, v4) │
00:00:34 #7843 [Verbose] > │ let v41 : US1 = US1_1(36, 37, v4) │
00:00:34 #7844 [Verbose] > │ let v42 : US1 = US1_1(37, 38, v4) │
00:00:34 #7845 [Verbose] > │ let v43 : US1 = US1_1(38, 39, v4) │
00:00:34 #7846 [Verbose] > │ let v44 : US1 = US1_1(39, 40, v4) │
00:00:34 #7847 [Verbose] > │ let v45 : US1 = US1_1(40, 41, v4) │
00:00:34 #7848 [Verbose] > │ let v46 : US1 = US1_1(41, 42, v4) │
00:00:34 #7849 [Verbose] > │ let v47 : US1 = US1_1(42, 43, v4) │
00:00:34 #7850 [Verbose] > │ let v48 : US1 = US1_1(43, 44, v4) │
00:00:34 #7851 [Verbose] > │ let v49 : US1 = US1_1(44, 45, v4) │
00:00:34 #7852 [Verbose] > │ let v50 : US1 = US1_1(45, 46, v4) │
00:00:34 #7853 [Verbose] > │ let v51 : US1 = US1_1(46, 47, v4) │
00:00:34 #7854 [Verbose] > │ let v52 : US1 = US1_1(47, 48, v4) │
00:00:34 #7855 [Verbose] > │ let v53 : US1 = US1_1(48, 49, v4) │
00:00:34 #7856 [Verbose] > │ let v54 : US1 = US1_1(49, 50, v4) │
00:00:34 #7857 [Verbose] > │ let v55 : US1 = US1_1(50, 51, v4) │
00:00:34 #7858 [Verbose] > │ let v56 : US1 = US1_1(51, 52, v4) │
00:00:34 #7859 [Verbose] > │ let v57 : US1 = US1_1(52, 53, v4) │
00:00:34 #7860 [Verbose] > │ let v58 : US1 = US1_1(53, 54, v4) │
00:00:34 #7861 [Verbose] > │ let v59 : US1 = US1_1(54, 55, v4) │
00:00:34 #7862 [Verbose] > │ let v60 : US1 = US1_1(55, 56, v4) │
00:00:34 #7863 [Verbose] > │ let v61 : US1 = US1_1(56, 57, v4) │
00:00:34 #7864 [Verbose] > │ let v62 : US1 = US1_1(57, 58, v4) │
00:00:34 #7865 [Verbose] > │ let v63 : US1 = US1_1(58, 59, v4) │
00:00:34 #7866 [Verbose] > │ let v64 : US1 = US1_1(59, 60, v4) │
00:00:34 #7867 [Verbose] > │ let v65 : UH4 = UH4_1 │
00:00:34 #7868 [Verbose] > │ let v66 : UH4 = UH4_0(v64, v65) │
00:00:34 #7869 [Verbose] > │ let v67 : UH4 = UH4_0(v63, v66) │
00:00:34 #7870 [Verbose] > │ let v68 : UH4 = UH4_0(v62, v67) │
00:00:34 #7871 [Verbose] > │ let v69 : UH4 = UH4_0(v61, v68) │
00:00:34 #7872 [Verbose] > │ let v70 : UH4 = UH4_0(v60, v69) │
00:00:34 #7873 [Verbose] > │ let v71 : UH4 = UH4_0(v59, v70) │
00:00:34 #7874 [Verbose] > │ let v72 : UH4 = UH4_0(v58, v71) │
00:00:34 #7875 [Verbose] > │ let v73 : UH4 = UH4_0(v57, v72) │
00:00:34 #7876 [Verbose] > │ let v74 : UH4 = UH4_0(v56, v73) │
00:00:34 #7877 [Verbose] > │ let v75 : UH4 = UH4_0(v55, v74) │
00:00:34 #7878 [Verbose] > │ let v76 : UH4 = UH4_0(v54, v75) │
00:00:34 #7879 [Verbose] > │ let v77 : UH4 = UH4_0(v53, v76) │
00:00:34 #7880 [Verbose] > │ let v78 : UH4 = UH4_0(v52, v77) │
00:00:34 #7881 [Verbose] > │ let v79 : UH4 = UH4_0(v51, v78) │
00:00:34 #7882 [Verbose] > │ let v80 : UH4 = UH4_0(v50, v79) │
00:00:34 #7883 [Verbose] > │ let v81 : UH4 = UH4_0(v49, v80) │
00:00:34 #7884 [Verbose] > │ let v82 : UH4 = UH4_0(v48, v81) │
00:00:34 #7885 [Verbose] > │ let v83 : UH4 = UH4_0(v47, v82) │
00:00:34 #7886 [Verbose] > │ let v84 : UH4 = UH4_0(v46, v83) │
00:00:34 #7887 [Verbose] > │ let v85 : UH4 = UH4_0(v45, v84) │
00:00:34 #7888 [Verbose] > │ let v86 : UH4 = UH4_0(v44, v85) │
00:00:34 #7889 [Verbose] > │ let v87 : UH4 = UH4_0(v43, v86) │
00:00:34 #7890 [Verbose] > │ let v88 : UH4 = UH4_0(v42, v87) │
00:00:34 #7891 [Verbose] > │ let v89 : UH4 = UH4_0(v41, v88) │
00:00:34 #7892 [Verbose] > │ let v90 : UH4 = UH4_0(v40, v89) │
00:00:34 #7893 [Verbose] > │ let v91 : UH4 = UH4_0(v39, v90) │
00:00:34 #7894 [Verbose] > │ let v92 : UH4 = UH4_0(v38, v91) │
00:00:34 #7895 [Verbose] > │ let v93 : UH4 = UH4_0(v37, v92) │
00:00:34 #7896 [Verbose] > │ let v94 : UH4 = UH4_0(v36, v93) │
00:00:34 #7897 [Verbose] > │ let v95 : UH4 = UH4_0(v35, v94) │
00:00:34 #7898 [Verbose] > │ let v96 : UH4 = UH4_0(v34, v95) │
00:00:34 #7899 [Verbose] > │ let v97 : UH4 = UH4_0(v33, v96) │
00:00:34 #7900 [Verbose] > │ let v98 : UH4 = UH4_0(v32, v97) │
00:00:34 #7901 [Verbose] > │ let v99 : UH4 = UH4_0(v31, v98) │
00:00:34 #7902 [Verbose] > │ let v100 : UH4 = UH4_0(v30, v99) │
00:00:34 #7903 [Verbose] > │ let v101 : UH4 = UH4_0(v29, v100) │
00:00:34 #7904 [Verbose] > │ let v102 : UH4 = UH4_0(v28, v101) │
00:00:34 #7905 [Verbose] > │ let v103 : UH4 = UH4_0(v27, v102) │
00:00:34 #7906 [Verbose] > │ let v104 : UH4 = UH4_0(v26, v103) │
00:00:34 #7907 [Verbose] > │ let v105 : UH4 = UH4_0(v25, v104) │
00:00:34 #7908 [Verbose] > │ let v106 : UH4 = UH4_0(v24, v105) │
00:00:34 #7909 [Verbose] > │ let v107 : UH4 = UH4_0(v23, v106) │
00:00:34 #7910 [Verbose] > │ let v108 : UH4 = UH4_0(v22, v107) │
00:00:34 #7911 [Verbose] > │ let v109 : UH4 = UH4_0(v21, v108) │
00:00:34 #7912 [Verbose] > │ let v110 : UH4 = UH4_0(v20, v109) │
00:00:34 #7913 [Verbose] > │ let v111 : UH4 = UH4_0(v19, v110) │
00:00:34 #7914 [Verbose] > │ let v112 : UH4 = UH4_0(v18, v111) │
00:00:34 #7915 [Verbose] > │ let v113 : UH4 = UH4_0(v17, v112) │
00:00:34 #7916 [Verbose] > │ let v114 : UH4 = UH4_0(v16, v113) │
00:00:34 #7917 [Verbose] > │ let v115 : UH4 = UH4_0(v15, v114) │
00:00:34 #7918 [Verbose] > │ let v116 : UH4 = UH4_0(v14, v115) │
00:00:34 #7919 [Verbose] > │ let v117 : UH4 = UH4_0(v13, v116) │
00:00:34 #7920 [Verbose] > │ let v118 : UH4 = UH4_0(v12, v117) │
00:00:34 #7921 [Verbose] > │ let v119 : UH4 = UH4_0(v11, v118) │
00:00:34 #7922 [Verbose] > │ let v120 : UH4 = UH4_0(v10, v119) │
00:00:34 #7923 [Verbose] > │ let v121 : UH4 = UH4_0(v9, v120) │
00:00:34 #7924 [Verbose] > │ let v122 : UH4 = UH4_0(v8, v121) │
00:00:34 #7925 [Verbose] > │ let v123 : UH4 = UH4_0(v7, v122) │
00:00:34 #7926 [Verbose] > │ let v124 : UH4 = UH4_0(v6, v123) │
00:00:34 #7927 [Verbose] > │ let v125 : UH4 = UH4_0(v5, v124) │
00:00:34 #7928 [Verbose] > │ let v126 : UH4 = UH4_0(v3, v125) │
00:00:34 #7929 [Verbose] > │ UH4_0(v1, v126) │
00:00:34 #7930 [Verbose] > │ and closure143 (v0 : UH5) () : UH5 = │
00:00:34 #7931 [Verbose] > │ v0 │
00:00:34 #7932 [Verbose] > │ and method5 (v0 : UH1, v1 : UH5, v2 : int32) : struct (UH5 * int32) = │
00:00:34 #7933 [Verbose] > │ match v0 with │
00:00:34 #7934 [Verbose] > │ | UH1_0(v3, v4, v5, v6, v7, v8, v9, v10, v11, v12) -> (* StreamCons *) │
00:00:34 #7935 [Verbose] > │ let v13 : int32 = v2 + 1 │
00:00:34 #7936 [Verbose] > │ let v14 : UH1 = v12 () │
00:00:34 #7937 [Verbose] > │ let v15 : (unit -> UH5) = closure143(v1) │
00:00:34 #7938 [Verbose] > │ let v16 : UH5 = UH5_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v15) │
00:00:34 #7939 [Verbose] > │ method5(v14, v16, v13) │
00:00:34 #7940 [Verbose] > │ | UH1_1 -> (* StreamNil *) │
00:00:34 #7941 [Verbose] > │ struct (v1, v2) │
00:00:34 #7942 [Verbose] > │ and closure144 (v0 : UH5) () : UH5 = │
00:00:34 #7943 [Verbose] > │ v0 │
00:00:34 #7944 [Verbose] > │ and method6 (v0 : UH5, v1 : UH5) : UH5 = │
00:00:34 #7945 [Verbose] > │ match v0 with │
00:00:34 #7946 [Verbose] > │ | UH5_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12) -> (* StreamCons │
00:00:34 #7947 [Verbose] > │ *) │
00:00:34 #7948 [Verbose] > │ let v13 : UH5 = v12 () │
00:00:34 #7949 [Verbose] > │ let v14 : (unit -> UH5) = closure144(v1) │
00:00:34 #7950 [Verbose] > │ let v15 : UH5 = UH5_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v14) │
00:00:34 #7951 [Verbose] > │ method6(v13, v15) │
00:00:34 #7952 [Verbose] > │ | UH5_1 -> (* StreamNil *) │
00:00:34 #7953 [Verbose] > │ v1 │
00:00:34 #7954 [Verbose] > │ and closure145 () struct (v0 : float, v1 : float, v2 : float, v3 : float, v4 │
00:00:34 #7955 [Verbose] > │ : float, v5 : float, v6 : float, v7 : float, v8 : float) : struct (float * │
00:00:34 #7956 [Verbose] > │ float * float) = │
00:00:34 #7957 [Verbose] > │ struct (0.0, 0.0, 0.0) │
00:00:34 #7958 [Verbose] > │ and method9 (v0 : int32, v1 : UH1) : US3 = │
00:00:34 #7959 [Verbose] > │ match v1 with │
00:00:34 #7960 [Verbose] > │ | UH1_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11) -> (* StreamCons *) │
00:00:34 #7961 [Verbose] > │ let v12 : bool = v0 <= 0 │
00:00:34 #7962 [Verbose] > │ if v12 then │
00:00:34 #7963 [Verbose] > │ US3_1(v2, v3, v4, v5, v6, v7, v8, v9, v10) │
00:00:34 #7964 [Verbose] > │ else │
00:00:34 #7965 [Verbose] > │ let v14 : int32 = v0 - 1 │
00:00:34 #7966 [Verbose] > │ let v15 : UH1 = v11 () │
00:00:34 #7967 [Verbose] > │ method9(v14, v15) │
00:00:34 #7968 [Verbose] > │ | UH1_1 -> (* StreamNil *) │
00:00:34 #7969 [Verbose] > │ US3_0 │
00:00:34 #7970 [Verbose] > │ and closure146 () struct (v0 : float, v1 : float, v2 : float, v3 : float, v4 │
00:00:34 #7971 [Verbose] > │ : float, v5 : float, v6 : float, v7 : float, v8 : float) : struct (float * │
00:00:34 #7972 [Verbose] > │ float * float) = │
00:00:34 #7973 [Verbose] > │ struct (0.0, 0.0, 0.0) │
00:00:34 #7974 [Verbose] > │ and method8 (v0 : int32, v1 : UH1, v2 : UH4, v3 : UH6) : UH6 = │
00:00:34 #7975 [Verbose] > │ match v2 with │
00:00:34 #7976 [Verbose] > │ | UH4_0(v4, v5) -> (* Cons *) │
00:00:34 #7977 [Verbose] > │ let v6 : UH6 = method8(v0, v1, v5, v3) │
00:00:34 #7978 [Verbose] > │ let v55 : (struct (float * float * float * float * float * float * │
00:00:34 #7979 [Verbose] > │ float * float * float) -> struct (float * float * float)) = │
00:00:34 #7980 [Verbose] > │ match v4 with │
00:00:34 #7981 [Verbose] > │ | US1_0(v7, v8) -> (* ExternalForce *) │
00:00:34 #7982 [Verbose] > │ let v9 : bool = v0 = v7 │
00:00:34 #7983 [Verbose] > │ if v9 then │
00:00:34 #7984 [Verbose] > │ v8 │
00:00:34 #7985 [Verbose] > │ else │
00:00:34 #7986 [Verbose] > │ closure145() │
00:00:34 #7987 [Verbose] > │ | US1_1(v12, v13, v14) -> (* InternalForce *) │
00:00:34 #7988 [Verbose] > │ let v15 : bool = v0 = v12 │
00:00:34 #7989 [Verbose] > │ let v49 : US2 = │
00:00:34 #7990 [Verbose] > │ if v15 then │
00:00:34 #7991 [Verbose] > │ let v16 : US3 = method9(v13, v1) │
00:00:34 #7992 [Verbose] > │ match v16 with │
00:00:34 #7993 [Verbose] > │ | US3_0 -> (* None *) │
00:00:34 #7994 [Verbose] > │ US2_0 │
00:00:34 #7995 [Verbose] > │ | US3_1(v17, v18, v19, v20, v21, v22, v23, v24, v25) │
00:00:34 #7996 [Verbose] > │ -> (* Some *) │
00:00:34 #7997 [Verbose] > │ let v26 : (struct (float * float * float * float │
00:00:34 #7998 [Verbose] > │ * float * float * float * float * float) -> struct (float * float * float)) │
00:00:34 #7999 [Verbose] > │ = v14 struct (v17, v18, v19, v20, v21, v22, v23, v24, v25) │
00:00:34 #8000 [Verbose] > │ US2_1(v26) │
00:00:34 #8001 [Verbose] > │ else │
00:00:34 #8002 [Verbose] > │ let v31 : bool = v0 = v13 │
00:00:34 #8003 [Verbose] > │ if v31 then │
00:00:34 #8004 [Verbose] > │ let v32 : US3 = method9(v12, v1) │
00:00:34 #8005 [Verbose] > │ match v32 with │
00:00:34 #8006 [Verbose] > │ | US3_0 -> (* None *) │
00:00:34 #8007 [Verbose] > │ US2_0 │
00:00:34 #8008 [Verbose] > │ | US3_1(v33, v34, v35, v36, v37, v38, v39, v40, │
00:00:34 #8009 [Verbose] > │ v41) -> (* Some *) │
00:00:34 #8010 [Verbose] > │ let v42 : (struct (float * float * float * │
00:00:34 #8011 [Verbose] > │ float * float * float * float * float * float) -> struct (float * float * │
00:00:34 #8012 [Verbose] > │ float)) = v14 struct (v33, v34, v35, v36, v37, v38, v39, v40, v41) │
00:00:34 #8013 [Verbose] > │ US2_1(v42) │
00:00:34 #8014 [Verbose] > │ else │
00:00:34 #8015 [Verbose] > │ US2_0 │
00:00:34 #8016 [Verbose] > │ match v49 with │
00:00:34 #8017 [Verbose] > │ | US2_0 -> (* None *) │
00:00:34 #8018 [Verbose] > │ closure146() │
00:00:34 #8019 [Verbose] > │ | US2_1(v50) -> (* Some *) │
00:00:34 #8020 [Verbose] > │ v50 │
00:00:34 #8021 [Verbose] > │ UH6_0(v55, v6) │
00:00:34 #8022 [Verbose] > │ | UH4_1 -> (* Nil *) │
00:00:34 #8023 [Verbose] > │ v3 │
00:00:34 #8024 [Verbose] > │ and method10 (v0 : float, v1 : float, v2 : float, v3 : float, v4 : float, v5 │
00:00:34 #8025 [Verbose] > │ : float, v6 : float, v7 : float, v8 : float, v9 : UH6, v10 : UH7) : UH7 = │
00:00:34 #8026 [Verbose] > │ match v9 with │
00:00:34 #8027 [Verbose] > │ | UH6_0(v11, v12) -> (* Cons *) │
00:00:34 #8028 [Verbose] > │ let v13 : UH7 = method10(v0, v1, v2, v3, v4, v5, v6, v7, v8, v12, │
00:00:34 #8029 [Verbose] > │ v10) │
00:00:34 #8030 [Verbose] > │ let struct (v14 : float, v15 : float, v16 : float) = v11 struct (v0, │
00:00:34 #8031 [Verbose] > │ v1, v2, v3, v4, v5, v6, v7, v8) │
00:00:34 #8032 [Verbose] > │ UH7_0(v14, v15, v16, v13) │
00:00:34 #8033 [Verbose] > │ | UH6_1 -> (* Nil *) │
00:00:34 #8034 [Verbose] > │ v10 │
00:00:34 #8035 [Verbose] > │ and method11 (v0 : UH7, v1 : float, v2 : float, v3 : float) : struct (float │
00:00:34 #8036 [Verbose] > │ * float * float) = │
00:00:34 #8037 [Verbose] > │ match v0 with │
00:00:34 #8038 [Verbose] > │ | UH7_0(v4, v5, v6, v7) -> (* Cons *) │
00:00:34 #8039 [Verbose] > │ let v8 : float = v1 + v4 │
00:00:34 #8040 [Verbose] > │ let v9 : float = v2 + v5 │
00:00:34 #8041 [Verbose] > │ let v10 : float = v3 + v6 │
00:00:34 #8042 [Verbose] > │ method11(v7, v8, v9, v10) │
00:00:34 #8043 [Verbose] > │ | UH7_1 -> (* Nil *) │
00:00:34 #8044 [Verbose] > │ struct (v1, v2, v3) │
00:00:34 #8045 [Verbose] > │ and closure147 (v0 : UH3) () : UH3 = │
00:00:34 #8046 [Verbose] > │ v0 │
00:00:34 #8047 [Verbose] > │ and method7 (v0 : UH4, v1 : UH1, v2 : UH5, v3 : UH3) : UH3 = │
00:00:34 #8048 [Verbose] > │ match v2 with │
00:00:34 #8049 [Verbose] > │ | UH5_0(v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14) -> (* │
00:00:34 #8050 [Verbose] > │ StreamCons *) │
00:00:34 #8051 [Verbose] > │ let v15 : UH5 = v14 () │
00:00:34 #8052 [Verbose] > │ let v16 : UH3 = method7(v0, v1, v15, v3) │
00:00:34 #8053 [Verbose] > │ let v17 : UH6 = UH6_1 │
00:00:34 #8054 [Verbose] > │ let v18 : UH6 = method8(v4, v1, v0, v17) │
00:00:34 #8055 [Verbose] > │ let v19 : UH7 = UH7_1 │
00:00:34 #8056 [Verbose] > │ let v20 : UH7 = method10(v5, v6, v7, v8, v9, v10, v11, v12, v13, │
00:00:34 #8057 [Verbose] > │ v18, v19) │
00:00:34 #8058 [Verbose] > │ let v21 : float = 0.0 │
00:00:34 #8059 [Verbose] > │ let v22 : float = 0.0 │
00:00:34 #8060 [Verbose] > │ let v23 : float = 0.0 │
00:00:34 #8061 [Verbose] > │ let struct (v24 : float, v25 : float, v26 : float) = method11(v20, │
00:00:34 #8062 [Verbose] > │ v21, v22, v23) │
00:00:34 #8063 [Verbose] > │ let v27 : float = v24 / v6 │
00:00:34 #8064 [Verbose] > │ let v28 : float = v25 / v6 │
00:00:34 #8065 [Verbose] > │ let v29 : float = v26 / v6 │
00:00:34 #8066 [Verbose] > │ let v30 : (unit -> UH3) = closure147(v16) │
00:00:34 #8067 [Verbose] > │ UH3_0(0.0, 0.0, v11, v12, v13, 1.0, v27, v28, v29, v30) │
00:00:34 #8068 [Verbose] > │ | UH5_1 -> (* StreamNil *) │
00:00:34 #8069 [Verbose] > │ v3 │
00:00:34 #8070 [Verbose] > │ and closure142 (v0 : UH4) (v1 : UH1) : UH3 = │
00:00:34 #8071 [Verbose] > │ let v2 : UH5 = UH5_1 │
00:00:34 #8072 [Verbose] > │ let v3 : int32 = 0 │
00:00:34 #8073 [Verbose] > │ let struct (v4 : UH5, v5 : int32) = method5(v1, v2, v3) │
00:00:34 #8074 [Verbose] > │ let v6 : UH5 = UH5_1 │
00:00:34 #8075 [Verbose] > │ let v7 : UH5 = method6(v4, v6) │
00:00:34 #8076 [Verbose] > │ let v8 : UH3 = UH3_1 │
00:00:34 #8077 [Verbose] > │ let v9 : UH3 = method7(v0, v1, v7, v8) │
00:00:34 #8078 [Verbose] > │ v9 │
00:00:34 #8079 [Verbose] > │ and closure148 (v0 : (UH1 -> UH1), v1 : UH1, v2 : UH1) () : UH8 = │
00:00:34 #8080 [Verbose] > │ let v3 : UH1 = v0 v2 │
00:00:34 #8081 [Verbose] > │ let v4 : (unit -> UH8) = closure148(v0, v1, v3) │
00:00:34 #8082 [Verbose] > │ UH8_0(v2, v4) │
00:00:34 #8083 [Verbose] > │ and method12 (v0 : float, v1 : UH8) : US4 = │
00:00:34 #8084 [Verbose] > │ match v1 with │
00:00:34 #8085 [Verbose] > │ | UH8_0(v2, v3) -> (* StreamCons *) │
00:00:34 #8086 [Verbose] > │ let v4 : bool = v0 <= 0.0 │
00:00:34 #8087 [Verbose] > │ if v4 then │
00:00:34 #8088 [Verbose] > │ US4_1(v2) │
00:00:34 #8089 [Verbose] > │ else │
00:00:34 #8090 [Verbose] > │ let v6 : float = v0 - 1.0 │
00:00:34 #8091 [Verbose] > │ let v7 : UH8 = v3 () │
00:00:34 #8092 [Verbose] > │ method12(v6, v7) │
00:00:34 #8093 [Verbose] > │ | UH8_1 -> (* StreamNil *) │
00:00:34 #8094 [Verbose] > │ US4_0 │
00:00:34 #8095 [Verbose] > │ and closure149 (v0 : UH9) () : UH9 = │
00:00:34 #8096 [Verbose] > │ v0 │
00:00:34 #8097 [Verbose] > │ and method13 (v0 : UH1, v1 : UH9) : UH9 = │
00:00:34 #8098 [Verbose] > │ match v0 with │
00:00:34 #8099 [Verbose] > │ | UH1_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11) -> (* StreamCons *) │
00:00:34 #8100 [Verbose] > │ let v12 : UH1 = v11 () │
00:00:34 #8101 [Verbose] > │ let v13 : UH9 = method13(v12, v1) │
00:00:34 #8102 [Verbose] > │ let v14 : (unit -> UH9) = closure149(v13) │
00:00:34 #8103 [Verbose] > │ UH9_0(v4, v5, v6, v14) │
00:00:34 #8104 [Verbose] > │ | UH1_1 -> (* StreamNil *) │
00:00:34 #8105 [Verbose] > │ v1 │
00:00:34 #8106 [Verbose] > │ and method14 (v0 : UH9, v1 : UH7) : UH7 = │
00:00:34 #8107 [Verbose] > │ match v0 with │
00:00:34 #8108 [Verbose] > │ | UH9_0(v2, v3, v4, v5) -> (* StreamCons *) │
00:00:34 #8109 [Verbose] > │ let v6 : UH9 = v5 () │
00:00:34 #8110 [Verbose] > │ let v7 : UH7 = method14(v6, v1) │
00:00:34 #8111 [Verbose] > │ UH7_0(v2, v3, v4, v7) │
00:00:34 #8112 [Verbose] > │ | UH9_1 -> (* StreamNil *) │
00:00:34 #8113 [Verbose] > │ v1 │
00:00:34 #8114 [Verbose] > │ and method15 (v0 : UH7, v1 : UH7) : UH7 = │
00:00:34 #8115 [Verbose] > │ match v0 with │
00:00:34 #8116 [Verbose] > │ | UH7_0(v2, v3, v4, v5) -> (* Cons *) │
00:00:34 #8117 [Verbose] > │ let v6 : UH7 = method15(v5, v1) │
00:00:34 #8118 [Verbose] > │ UH7_0(v2, v3, v4, v6) │
00:00:34 #8119 [Verbose] > │ | UH7_1 -> (* Nil *) │
00:00:34 #8120 [Verbose] > │ v1 │
00:00:34 #8121 [Verbose] > │ and method16 (v0 : UH7, v1 : UH10) : UH10 = │
00:00:34 #8122 [Verbose] > │ match v0 with │
00:00:34 #8123 [Verbose] > │ | UH7_0(v2, v3, v4, v5) -> (* Cons *) │
00:00:34 #8124 [Verbose] > │ let v6 : UH10 = method16(v5, v1) │
00:00:34 #8125 [Verbose] > │ UH10_0(v2, v3, v6) │
00:00:34 #8126 [Verbose] > │ | UH7_1 -> (* Nil *) │
00:00:34 #8127 [Verbose] > │ v1 │
00:00:34 #8128 [Verbose] > │ and closure150 (v0 : UH11) () : UH11 = │
00:00:34 #8129 [Verbose] > │ v0 │
00:00:34 #8130 [Verbose] > │ and method17 (v0 : UH10, v1 : UH11) : UH11 = │
00:00:34 #8131 [Verbose] > │ match v0 with │
00:00:34 #8132 [Verbose] > │ | UH10_0(v2, v3, v4) -> (* Cons *) │
00:00:34 #8133 [Verbose] > │ let v5 : UH11 = method17(v4, v1) │
00:00:34 #8134 [Verbose] > │ let v6 : (unit -> UH11) = closure150(v5) │
00:00:34 #8135 [Verbose] > │ UH11_0(v2, v3, v6) │
00:00:34 #8136 [Verbose] > │ | UH10_1 -> (* Nil *) │
00:00:34 #8137 [Verbose] > │ v1 │
00:00:34 #8138 [Verbose] > │ and closure151 (v0 : UH0) () : UH0 = │
00:00:34 #8139 [Verbose] > │ v0 │
00:00:34 #8140 [Verbose] > │ and closure152 (v0 : UH0) () : UH0 = │
00:00:34 #8141 [Verbose] > │ v0 │
00:00:34 #8142 [Verbose] > │ and method18 (v0 : UH11) : struct (UH0 * UH0) = │
00:00:34 #8143 [Verbose] > │ match v0 with │
00:00:34 #8144 [Verbose] > │ | UH11_0(v1, v2, v3) -> (* StreamCons *) │
00:00:34 #8145 [Verbose] > │ let v4 : UH11 = v3 () │
00:00:34 #8146 [Verbose] > │ let struct (v5 : UH0, v6 : UH0) = method18(v4) │
00:00:34 #8147 [Verbose] > │ let v7 : (unit -> UH0) = closure151(v5) │
00:00:34 #8148 [Verbose] > │ let v8 : UH0 = UH0_0(v1, v7) │
00:00:34 #8149 [Verbose] > │ let v9 : (unit -> UH0) = closure152(v6) │
00:00:34 #8150 [Verbose] > │ let v10 : UH0 = UH0_0(v2, v9) │
00:00:34 #8151 [Verbose] > │ struct (v8, v10) │
00:00:34 #8152 [Verbose] > │ | UH11_1 -> (* StreamNil *) │
00:00:34 #8153 [Verbose] > │ let v11 : UH0 = UH0_1 │
00:00:34 #8154 [Verbose] > │ let v12 : UH0 = UH0_1 │
00:00:34 #8155 [Verbose] > │ struct (v11, v12) │
00:00:34 #8156 [Verbose] > │ and method19 (v0 : UH0, v1 : UH12) : UH12 = │
00:00:34 #8157 [Verbose] > │ match v0 with │
00:00:34 #8158 [Verbose] > │ | UH0_0(v2, v3) -> (* StreamCons *) │
00:00:34 #8159 [Verbose] > │ let v4 : UH0 = v3 () │
00:00:34 #8160 [Verbose] > │ let v5 : UH12 = method19(v4, v1) │
00:00:34 #8161 [Verbose] > │ UH12_0(v2, v5) │
00:00:34 #8162 [Verbose] > │ | UH0_1 -> (* StreamNil *) │
00:00:34 #8163 [Verbose] > │ v1 │
00:00:34 #8164 [Verbose] > │ and method21 (v0 : UH12, v1 : int32) : int32 = │
00:00:34 #8165 [Verbose] > │ match v0 with │
00:00:34 #8166 [Verbose] > │ | UH12_0(v2, v3) -> (* Cons *) │
00:00:34 #8167 [Verbose] > │ let v4 : int32 = v1 + 1 │
00:00:34 #8168 [Verbose] > │ method21(v3, v4) │
00:00:34 #8169 [Verbose] > │ | UH12_1 -> (* Nil *) │
00:00:34 #8170 [Verbose] > │ v1 │
00:00:34 #8171 [Verbose] > │ and method22 (v0 : (float []), v1 : UH12, v2 : int32) : int32 = │
00:00:34 #8172 [Verbose] > │ match v1 with │
00:00:34 #8173 [Verbose] > │ | UH12_0(v3, v4) -> (* Cons *) │
00:00:34 #8174 [Verbose] > │ v0.[int v2] <- v3 │
00:00:34 #8175 [Verbose] > │ let v5 : int32 = v2 + 1 │
00:00:34 #8176 [Verbose] > │ method22(v0, v4, v5) │
00:00:34 #8177 [Verbose] > │ | UH12_1 -> (* Nil *) │
00:00:34 #8178 [Verbose] > │ v2 │
00:00:34 #8179 [Verbose] > │ and method20 (v0 : UH12) : (float []) = │
00:00:34 #8180 [Verbose] > │ let v1 : int32 = 0 │
00:00:34 #8181 [Verbose] > │ let v2 : int32 = method21(v0, v1) │
00:00:34 #8182 [Verbose] > │ let v3 : (float []) = Array.zeroCreate<float> (v2) │
00:00:34 #8183 [Verbose] > │ let v4 : int32 = 0 │
00:00:34 #8184 [Verbose] > │ let v5 : int32 = method22(v3, v0, v4) │
00:00:34 #8185 [Verbose] > │ v3 │
00:00:34 #8186 [Verbose] > │ and closure153 (v0 : UH2) () : UH2 = │
00:00:34 #8187 [Verbose] > │ v0 │
00:00:34 #8188 [Verbose] > │ and method1 (v0 : UH1, v1 : UH0, v2 : UH2) : UH2 = │
00:00:34 #8189 [Verbose] > │ match v1 with │
00:00:34 #8190 [Verbose] > │ | UH0_0(v3, v4) -> (* StreamCons *) │
00:00:34 #8191 [Verbose] > │ let v5 : UH0 = v4 () │
00:00:34 #8192 [Verbose] > │ let v6 : UH2 = method1(v0, v5, v2) │
00:00:34 #8193 [Verbose] > │ let v7 : ((UH1 -> UH3) -> (UH1 -> UH1)) = method2() │
00:00:34 #8194 [Verbose] > │ let v8 : UH4 = method4() │
00:00:34 #8195 [Verbose] > │ let v9 : (UH1 -> UH3) = closure142(v8) │
00:00:34 #8196 [Verbose] > │ let v10 : (UH1 -> UH1) = v7 v9 │
00:00:34 #8197 [Verbose] > │ let v11 : UH1 = v10 v0 │
00:00:34 #8198 [Verbose] > │ let v12 : (unit -> UH8) = closure148(v10, v0, v11) │
00:00:34 #8199 [Verbose] > │ let v13 : UH8 = UH8_0(v0, v12) │
00:00:34 #8200 [Verbose] > │ let v14 : US4 = method12(v3, v13) │
00:00:34 #8201 [Verbose] > │ let v18 : UH1 = │
00:00:34 #8202 [Verbose] > │ match v14 with │
00:00:34 #8203 [Verbose] > │ | US4_0 -> (* None *) │
00:00:34 #8204 [Verbose] > │ failwith<UH1> "Option does not have a value." │
00:00:34 #8205 [Verbose] > │ | US4_1(v15) -> (* Some *) │
00:00:34 #8206 [Verbose] > │ v15 │
00:00:34 #8207 [Verbose] > │ let v19 : UH9 = UH9_1 │
00:00:34 #8208 [Verbose] > │ let v20 : UH9 = method13(v18, v19) │
00:00:34 #8209 [Verbose] > │ let v21 : UH7 = UH7_1 │
00:00:34 #8210 [Verbose] > │ let v22 : UH7 = method14(v20, v21) │
00:00:34 #8211 [Verbose] > │ let v23 : float = 0.65 │
00:00:34 #8212 [Verbose] > │ let v24 : float = 0.0 │
00:00:34 #8213 [Verbose] > │ let v25 : float = 0.0 │
00:00:34 #8214 [Verbose] > │ let v26 : UH7 = UH7_1 │
00:00:34 #8215 [Verbose] > │ let v27 : UH7 = UH7_0(v23, v24, v25, v26) │
00:00:34 #8216 [Verbose] > │ let v28 : UH7 = method15(v22, v27) │
00:00:34 #8217 [Verbose] > │ let v29 : UH10 = UH10_1 │
00:00:34 #8218 [Verbose] > │ let v30 : UH10 = method16(v28, v29) │
00:00:34 #8219 [Verbose] > │ let v31 : UH11 = UH11_1 │
00:00:34 #8220 [Verbose] > │ let v32 : UH11 = method17(v30, v31) │
00:00:34 #8221 [Verbose] > │ let struct (v33 : UH0, v34 : UH0) = method18(v32) │
00:00:34 #8222 [Verbose] > │ let v35 : UH12 = UH12_1 │
00:00:34 #8223 [Verbose] > │ let v36 : UH12 = method19(v33, v35) │
00:00:34 #8224 [Verbose] > │ let v37 : float = 0.0 │
00:00:34 #8225 [Verbose] > │ let v38 : UH12 = UH12_0(v37, v36) │
00:00:34 #8226 [Verbose] > │ let v39 : (float []) = method20(v38) │
00:00:34 #8227 [Verbose] > │ let v40 : UH12 = UH12_1 │
00:00:34 #8228 [Verbose] > │ let v41 : UH12 = method19(v34, v40) │
00:00:34 #8229 [Verbose] > │ let v42 : float = 0.0 │
00:00:34 #8230 [Verbose] > │ let v43 : UH12 = UH12_0(v42, v41) │
00:00:34 #8231 [Verbose] > │ let v44 : (float []) = method20(v43) │
00:00:34 #8232 [Verbose] > │ let v45 : (unit -> UH2) = closure153(v6) │
00:00:34 #8233 [Verbose] > │ UH2_0(v39, v44, v45) │
00:00:34 #8234 [Verbose] > │ | UH0_1 -> (* StreamNil *) │
00:00:34 #8235 [Verbose] > │ v2 │
00:00:34 #8236 [Verbose] > │ and closure154 (v0 : UH13) () : UH13 = │
00:00:34 #8237 [Verbose] > │ v0 │
00:00:34 #8238 [Verbose] > │ and method23 (v0 : UH2, v1 : UH13, v2 : int32) : struct (UH13 * int32) = │
00:00:34 #8239 [Verbose] > │ match v0 with │
00:00:34 #8240 [Verbose] > │ | UH2_0(v3, v4, v5) -> (* StreamCons *) │
00:00:34 #8241 [Verbose] > │ let v6 : int32 = v2 + 1 │
00:00:34 #8242 [Verbose] > │ let v7 : UH2 = v5 () │
00:00:34 #8243 [Verbose] > │ let v8 : (unit -> UH13) = closure154(v1) │
00:00:34 #8244 [Verbose] > │ let v9 : UH13 = UH13_0(v2, v3, v4, v8) │
00:00:34 #8245 [Verbose] > │ method23(v7, v9, v6) │
00:00:34 #8246 [Verbose] > │ | UH2_1 -> (* StreamNil *) │
00:00:34 #8247 [Verbose] > │ struct (v1, v2) │
00:00:34 #8248 [Verbose] > │ and closure155 (v0 : UH13) () : UH13 = │
00:00:34 #8249 [Verbose] > │ v0 │
00:00:34 #8250 [Verbose] > │ and method24 (v0 : UH13, v1 : UH13) : UH13 = │
00:00:34 #8251 [Verbose] > │ match v0 with │
00:00:34 #8252 [Verbose] > │ | UH13_0(v2, v3, v4, v5) -> (* StreamCons *) │
00:00:34 #8253 [Verbose] > │ let v6 : UH13 = v5 () │
00:00:34 #8254 [Verbose] > │ let v7 : (unit -> UH13) = closure155(v1) │
00:00:34 #8255 [Verbose] > │ let v8 : UH13 = UH13_0(v2, v3, v4, v7) │
00:00:34 #8256 [Verbose] > │ method24(v6, v8) │
00:00:34 #8257 [Verbose] > │ | UH13_1 -> (* StreamNil *) │
00:00:34 #8258 [Verbose] > │ v1 │
00:00:34 #8259 [Verbose] > │ and method26 (v0 : (struct (string * (float []) * (float [])) [])) : (struct │
00:00:34 #8260 [Verbose] > │ (string * (float []) * (float [])) []) = │
00:00:34 #8261 [Verbose] > │ v0 │
00:00:34 #8262 [Verbose] > │ and closure156 (v0 : UH14) () : UH14 = │
00:00:34 #8263 [Verbose] > │ v0 │
00:00:34 #8264 [Verbose] > │ and method25 (v0 : UH13, v1 : UH14) : UH14 = │
00:00:34 #8265 [Verbose] > │ match v0 with │
00:00:34 #8266 [Verbose] > │ | UH13_0(v2, v3, v4, v5) -> (* StreamCons *) │
00:00:34 #8267 [Verbose] > │ let v6 : UH13 = v5 () │
00:00:34 #8268 [Verbose] > │ let v7 : UH14 = method25(v6, v1) │
00:00:34 #8269 [Verbose] > │ let v8 : string = $"{v2}" │
00:00:34 #8270 [Verbose] > │ let v9 : (struct (string * (float []) * (float [])) []) = [|struct │
00:00:34 #8271 [Verbose] > │ (v8, v3, v4)|] │
00:00:34 #8272 [Verbose] > │ let v10 : (struct (string * (float []) * (float [])) []) = │
00:00:34 #8273 [Verbose] > │ method26(v9) │
00:00:34 #8274 [Verbose] > │ let v11 : string = "wave" │
00:00:34 #8275 [Verbose] > │ let v12 : string = "position (m)" │
00:00:34 #8276 [Verbose] > │ let v13 : string = "displacement (m)" │
00:00:34 #8277 [Verbose] > │ let v14 : (unit -> UH14) = closure156(v7) │
00:00:34 #8278 [Verbose] > │ UH14_0(v11, v12, v13, v10, v14) │
00:00:34 #8279 [Verbose] > │ | UH13_1 -> (* StreamNil *) │
00:00:34 #8280 [Verbose] > │ v1 │
00:00:34 #8281 [Verbose] > │ and method27 (v0 : UH14, v1 : UH15) : UH15 = │
00:00:34 #8282 [Verbose] > │ match v0 with │
00:00:34 #8283 [Verbose] > │ | UH14_0(v2, v3, v4, v5, v6) -> (* StreamCons *) │
00:00:34 #8284 [Verbose] > │ let v7 : UH14 = v6 () │
00:00:34 #8285 [Verbose] > │ let v8 : UH15 = method27(v7, v1) │
00:00:34 #8286 [Verbose] > │ UH15_0(v2, v3, v4, v5, v8) │
00:00:34 #8287 [Verbose] > │ | UH14_1 -> (* StreamNil *) │
00:00:34 #8288 [Verbose] > │ v1 │
00:00:34 #8289 [Verbose] > │ and method29 (v0 : UH15, v1 : int32) : int32 = │
00:00:34 #8290 [Verbose] > │ match v0 with │
00:00:34 #8291 [Verbose] > │ | UH15_0(v2, v3, v4, v5, v6) -> (* Cons *) │
00:00:34 #8292 [Verbose] > │ let v7 : int32 = v1 + 1 │
00:00:34 #8293 [Verbose] > │ method29(v6, v7) │
00:00:34 #8294 [Verbose] > │ | UH15_1 -> (* Nil *) │
00:00:34 #8295 [Verbose] > │ v1 │
00:00:34 #8296 [Verbose] > │ and method30 (v0 : (struct (string * string * string * (struct (string * │
00:00:34 #8297 [Verbose] > │ (float []) * (float [])) [])) []), v1 : UH15, v2 : int32) : int32 = │
00:00:34 #8298 [Verbose] > │ match v1 with │
00:00:34 #8299 [Verbose] > │ | UH15_0(v3, v4, v5, v6, v7) -> (* Cons *) │
00:00:34 #8300 [Verbose] > │ v0.[int v2] <- struct (v3, v4, v5, v6) │
00:00:34 #8301 [Verbose] > │ let v8 : int32 = v2 + 1 │
00:00:34 #8302 [Verbose] > │ method30(v0, v7, v8) │
00:00:34 #8303 [Verbose] > │ | UH15_1 -> (* Nil *) │
00:00:34 #8304 [Verbose] > │ v2 │
00:00:34 #8305 [Verbose] > │ and method28 (v0 : UH15) : (struct (string * string * string * (struct │
00:00:34 #8306 [Verbose] > │ (string * (float []) * (float [])) [])) []) = │
00:00:34 #8307 [Verbose] > │ let v1 : int32 = 0 │
00:00:34 #8308 [Verbose] > │ let v2 : int32 = method29(v0, v1) │
00:00:34 #8309 [Verbose] > │ let v3 : (struct (string * string * string * (struct (string * (float [ │
00:00:34 #8310 [Verbose] > │ ]) * (float [])) [])) []) = Array.zeroCreate<struct (string * string * │
00:00:34 #8311 [Verbose] > │ string * (struct (string * (float []) * (float [])) []))> (v2) │
00:00:34 #8312 [Verbose] > │ let v4 : int32 = 0 │
00:00:34 #8313 [Verbose] > │ let v5 : int32 = method30(v3, v0, v4) │
00:00:34 #8314 [Verbose] > │ v3 │
00:00:34 #8315 [Verbose] > │ and method0 () : (struct (string * string * string * (struct (string * │
00:00:34 #8316 [Verbose] > │ (float []) * (float [])) [])) []) = │
00:00:34 #8317 [Verbose] > │ let v0 : float = 0.0 │
00:00:34 #8318 [Verbose] > │ let v1 : (unit -> UH0) = closure0() │
00:00:34 #8319 [Verbose] > │ let v2 : UH0 = UH0_0(v0, v1) │
00:00:34 #8320 [Verbose] > │ let v3 : float = 0.0 │
00:00:34 #8321 [Verbose] > │ let v4 : float = 8.422578125E-06 │
00:00:34 #8322 [Verbose] > │ let v5 : float = 0.01 │
00:00:34 #8323 [Verbose] > │ let v6 : float = 0.0007224452478461068 │
00:00:34 #8324 [Verbose] > │ let v7 : float = 0.0 │
00:00:34 #8325 [Verbose] > │ let v8 : float = 0.0 │
00:00:34 #8326 [Verbose] > │ let v9 : float = 0.0 │
00:00:34 #8327 [Verbose] > │ let v10 : float = 0.0 │
00:00:34 #8328 [Verbose] > │ let v11 : float = 0.0 │
00:00:34 #8329 [Verbose] > │ let v12 : (unit -> UH1) = closure66() │
00:00:34 #8330 [Verbose] > │ let v13 : UH1 = UH1_0(v3, v4, v5, v6, v7, v8, v9, v10, v11, v12) │
00:00:34 #8331 [Verbose] > │ let v14 : UH2 = UH2_1 │
00:00:34 #8332 [Verbose] > │ let v15 : UH2 = method1(v13, v2, v14) │
00:00:34 #8333 [Verbose] > │ let v16 : UH13 = UH13_1 │
00:00:34 #8334 [Verbose] > │ let v17 : int32 = 0 │
00:00:34 #8335 [Verbose] > │ let struct (v18 : UH13, v19 : int32) = method23(v15, v16, v17) │
00:00:34 #8336 [Verbose] > │ let v20 : UH13 = UH13_1 │
00:00:34 #8337 [Verbose] > │ let v21 : UH13 = method24(v18, v20) │
00:00:34 #8338 [Verbose] > │ let v22 : UH14 = UH14_1 │
00:00:34 #8339 [Verbose] > │ let v23 : UH14 = method25(v21, v22) │
00:00:34 #8340 [Verbose] > │ let v24 : UH15 = UH15_1 │
00:00:34 #8341 [Verbose] > │ let v25 : UH15 = method27(v23, v24) │
00:00:34 #8342 [Verbose] > │ method28(v25) │
00:00:34 #8343 [Verbose] > │ method0() │
00:00:34 #8344 [Verbose] > │ │
00:00:34 #8345 [Verbose] > │ │
00:00:34 #8346 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:34 #8347 [Verbose] >
00:00:34 #8348 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:34 #8349 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:34 #8350 [Verbose] > │ ## end │
00:00:34 #8351 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:35 #8352 [Verbose] > [NbConvertApp] Converting notebook physics.dib.ipynb to html
00:00:35 #8353 [Verbose] > /opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/nbformat/__init__.py:96: MissingIDFieldWarning: Cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:00:35 #8354 [Verbose] > validate(nb)
00:00:35 #8355 [Verbose] > /opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/nbconvert/filters/highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:00:35 #8356 [Verbose] > return _pygments_highlight(
00:00:38 #8357 [Verbose] > [NbConvertApp] Writing 2732681 bytes to physics.dib.html
00:00:39 #8358 [Debug] executeAsync / exitCode: 0 / output.Length: 734350
00:00:39 #8359 [Debug] main / executeCommand / exitCode: 0
00:00:00 #1 [Debug] writeDibCode / output: Spi / path: common.dib
00:00:00 #1 [Debug] writeDibCode / output: Spi / path: testing.dib
00:00:00 #1 [Debug] writeDibCode / output: Spi / path: math.dib
00:00:00 #1 [Debug] writeDibCode / output: Spi / path: console.dib
00:00:00 #3 [Debug] parseDibCode / output: Spi / file: testing.dib
00:00:00 #5 [Debug] parseDibCode / output: Spi / file: common.dib
00:00:00 #3 [Debug] parseDibCode / output: Spi / file: console.dib
00:00:00 #5 [Debug] parseDibCode / output: Spi / file: math.dib
00:00:00 #8 [Debug] writeDibCode / output: Spi / path: sm'.dib
00:00:00 #6 [Debug] writeDibCode / output: Spi / path: optionm'.dib
00:00:00 #9 [Debug] writeDibCode / output: Spi / path: listm'.dib
00:00:00 #7 [Debug] writeDibCode / output: Spi / path: am'.dib
00:00:00 #10 [Debug] parseDibCode / output: Spi / file: sm'.dib
00:00:00 #13 [Debug] parseDibCode / output: Spi / file: am'.dib
00:00:00 #12 [Debug] parseDibCode / output: Spi / file: listm'.dib
00:00:00 #13 [Debug] parseDibCode / output: Spi / file: optionm'.dib
00:00:00 #14 [Debug] writeDibCode / output: Spi / path: benchmark.dib
00:00:00 #15 [Debug] parseDibCode / output: Spi / file: benchmark.dib
00:00:00 #16 [Debug] writeDibCode / output: Spi / path: stream.dib
00:00:00 #17 [Debug] parseDibCode / output: Spi / file: stream.dib
00:00:00 #18 [Debug] writeDibCode / output: Spi / path: seq.dib
00:00:00 #19 [Debug] writeDibCode / output: Spi / path: util.dib
00:00:00 #21 [Debug] parseDibCode / output: Spi / file: seq.dib
00:00:00 #21 [Debug] parseDibCode / output: Spi / file: util.dib
00:00:00 #22 [Debug] writeDibCode / output: Spi / path: rust.dib
00:00:00 #23 [Debug] parseDibCode / output: Spi / file: rust.dib
00:00:00 #24 [Debug] writeDibCode / output: Spi / path: physics.dib
00:00:00 #25 [Debug] parseDibCode / output: Spi / file: physics.dib
In [ ]:
{ . "$ScriptDir/../lib/math/build.ps1" } | Invoke-Block
00:00:00 #1 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #2 [Debug] executeAsync / options: { Command =
"dotnet "/home/runner/work/polyglot/polyglot/deps/The-Spiral-Language/The Spiral Language 2/artifacts/bin/The Spiral Language 2/release/Spiral.dll" --port 13805 --default-int i32 --default-float f64"
WorkingDirectory = None
CancellationToken = Some System.Threading.CancellationToken
OnLine = Some <fun:main@464-1020> }
00:00:00 #3 [Verbose] > pwd: /home/runner/work/polyglot/polyglot/lib/math
00:00:00 #4 [Verbose] > dll_path: /home/runner/work/polyglot/polyglot/deps/The-Spiral-Language/The Spiral Language 2/artifacts/bin/The Spiral Language 2/release
00:00:00 #5 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #6 [Verbose] waitForPortAccess / port: 13805 / retry: 0
00:00:00 #7 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #8 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #9 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #10 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #11 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #12 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #13 [Verbose] > Starting the Spiral Server. It is bound to: http://localhost:13805
00:00:00 #14 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #15 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #16 [Debug] sendJson / port: 13805 / json: {"Ping":true} / result.Length:
00:00:00 #17 [Verbose] awaitCompiler / Ping / result: Some(null) / port: 13805 / retry: 0
00:00:00 #18 [Verbose] > Server bound to: http://localhost:13805
00:00:00 #19 [Debug] executeAsync / options: { Command = "pwsh -c "../../scripts/invoke-dib.ps1 math.dib""
WorkingDirectory = None
CancellationToken = Some System.Threading.CancellationToken
OnLine = None }
00:00:02 #20 [Verbose] >
00:00:02 #21 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:02 #22 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:02 #23 [Verbose] > │ # math │
00:00:02 #24 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:02 #25 [Verbose] >
00:00:02 #26 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:02 #27 [Verbose] > open testing
00:00:02 #28 [Verbose] > open rust_operators
00:00:04 #29 [Verbose] > Building /tmp/!dotnet-repl/20240325-2026-2114-1403-1e43c0bb84d3/main.spi
00:00:06 #30 [Verbose] >
00:00:06 #31 [Verbose] > ╭─[ 3.79s - stdout ]───────────────────────────────────────────────────────────╮
00:00:06 #32 [Verbose] > │ () │
00:00:06 #33 [Verbose] > │ │
00:00:06 #34 [Verbose] > │ │
00:00:06 #35 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:06 #36 [Verbose] >
00:00:06 #37 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:06 #38 [Verbose] > inl types () =
00:00:06 #39 [Verbose] > global "[[<Fable.Core.Erase;
00:00:06 #40 [Verbose] > Fable.Core.Emit(\"num_complex::Complex<$0>\")>]] type num_complex_Complex<'T> =
00:00:06 #41 [Verbose] > class end"
00:00:06 #42 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"pyo3::types::PyModule\")>]]
00:00:06 #43 [Verbose] > type pyo3_types_PyModule = class end"
00:00:06 #44 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"pyo3::Bound<$0>\")>]] type
00:00:06 #45 [Verbose] > pyo3_Bound<'T> = class end"
00:00:06 #46 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"pyo3::Python\")>]] type
00:00:06 #47 [Verbose] > pyo3_Python = class end"
00:00:06 #48 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"pyo3::PyAny\")>]] type
00:00:06 #49 [Verbose] > pyo3_PyAny = class end"
00:00:06 #50 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"pyo3::PyErr\")>]] type
00:00:06 #51 [Verbose] > pyo3_PyErr = class end"
00:00:06 #52 [Verbose] > Building /tmp/!dotnet-repl/20240325-2026-2359-5905-5a9abfdb7ca5/main.spi
00:00:06 #53 [Verbose] >
00:00:06 #54 [Verbose] > ╭─[ 167.25ms - stdout ]────────────────────────────────────────────────────────╮
00:00:06 #55 [Verbose] > │ () │
00:00:06 #56 [Verbose] > │ │
00:00:06 #57 [Verbose] > │ │
00:00:06 #58 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:06 #59 [Verbose] >
00:00:06 #60 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:06 #61 [Verbose] > inl types () =
00:00:06 #62 [Verbose] > rust.types ()
00:00:06 #63 [Verbose] > sm'.types ()
00:00:06 #64 [Verbose] > types ()
00:00:06 #65 [Verbose] > Building /tmp/!dotnet-repl/20240325-2026-2375-7525-73627772ab4b/main.spi
00:00:06 #66 [Verbose] >
00:00:06 #67 [Verbose] > ╭─[ 165.20ms - stdout ]────────────────────────────────────────────────────────╮
00:00:06 #68 [Verbose] > │ () │
00:00:06 #69 [Verbose] > │ │
00:00:06 #70 [Verbose] > │ │
00:00:06 #71 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:06 #72 [Verbose] >
00:00:06 #73 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:06 #74 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:06 #75 [Verbose] > │ ## complex │
00:00:06 #76 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:06 #77 [Verbose] >
00:00:06 #78 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:06 #79 [Verbose] > nominal complex t = $"num_complex_Complex<`t>"
00:00:06 #80 [Verbose] > nominal bound t = $"pyo3_Bound<`t>"
00:00:06 #81 [Verbose] > nominal python = $"pyo3_Python"
00:00:06 #82 [Verbose] > nominal pymodule = $"pyo3_types_PyModule"
00:00:06 #83 [Verbose] > nominal pyany = $"pyo3_PyAny"
00:00:06 #84 [Verbose] > nominal pyerr = $"pyo3_PyErr"
00:00:06 #85 [Verbose] >
00:00:06 #86 [Verbose] > inl complex forall t. ((re : t), (im : t)) : complex t =
00:00:06 #87 [Verbose] > inl re = join re
00:00:06 #88 [Verbose] > inl re = join re
00:00:06 #89 [Verbose] > inl im = join im
00:00:06 #90 [Verbose] > !\($'"num_complex::Complex::new(!re, !im)"')
00:00:06 #91 [Verbose] > Building /tmp/!dotnet-repl/20240325-2026-2391-9191-974948938dc7/main.spi
00:00:06 #92 [Verbose] >
00:00:06 #93 [Verbose] > ╭─[ 180.79ms - stdout ]────────────────────────────────────────────────────────╮
00:00:06 #94 [Verbose] > │ () │
00:00:06 #95 [Verbose] > │ │
00:00:06 #96 [Verbose] > │ │
00:00:06 #97 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:06 #98 [Verbose] >
00:00:06 #99 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:06 #100 [Verbose] > // // test
00:00:06 #101 [Verbose] > // // rust=
00:00:06 #102 [Verbose] >
00:00:06 #103 [Verbose] > types ()
00:00:06 #104 [Verbose] >
00:00:06 #105 [Verbose] > complex (0f64, 0f64)
00:00:06 #106 [Verbose] > |> sm'.format'
00:00:06 #107 [Verbose] > |> sm'.from_std_string
00:00:06 #108 [Verbose] > |> _assert_eq "0+0i"
00:00:06 #109 [Verbose] > Building /tmp/!dotnet-repl/20240325-2026-2410-1017-15d6853d4662/main.spi
00:00:09 #110 [Verbose] >
00:00:09 #111 [Verbose] > ╭─[ 3.12s - return value ]─────────────────────────────────────────────────────╮
00:00:09 #112 [Verbose] > │ .rs output: │
00:00:09 #113 [Verbose] > │ │
00:00:09 #114 [Verbose] > │ │
00:00:09 #115 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #116 [Verbose] >
00:00:09 #117 [Verbose] > ╭─[ 3.12s - stdout ]───────────────────────────────────────────────────────────╮
00:00:09 #118 [Verbose] > │ │
00:00:09 #119 [Verbose] > │ .fsx: │
00:00:09 #120 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("Func0<$0>")>] type Func0<'T> = class │
00:00:09 #121 [Verbose] > │ end │
00:00:09 #122 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("Func1<$0, $1>")>] type Func0<'T, 'U> = │
00:00:09 #123 [Verbose] > │ class end │
00:00:09 #124 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("Box<$0>")>] type Box<'T> = class end │
00:00:09 #125 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("dyn $0")>] type Dyn<'T> = class end │
00:00:09 #126 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("Fn() -> $0")>] type Fn<'T> = class end │
00:00:09 #127 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("Fn()")>] type FnUnit = class end │
00:00:09 #128 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("FnOnce() -> $0")>] type FnOnce<'T> = │
00:00:09 #129 [Verbose] > │ class end │
00:00:09 #130 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("Fn($0, $1)")>] type ActionFn2<'T, 'U> = │
00:00:09 #131 [Verbose] > │ class end │
00:00:09 #132 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("impl $0")>] type Impl<'T> = class end │
00:00:09 #133 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("mut $0")>] type Mut<'T> = class end │
00:00:09 #134 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("&$0")>] type Ref<'T> = class end │
00:00:09 #135 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("&'static $0")>] type StaticRef<'T> = │
00:00:09 #136 [Verbose] > │ class end │
00:00:09 #137 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("MutCell<$0>")>] type MutCell<'T> = │
00:00:09 #138 [Verbose] > │ class end │
00:00:09 #139 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::any::Any")>] type std_any_Any = │
00:00:09 #140 [Verbose] > │ class end │
00:00:09 #141 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::cell::RefCell<$0>")>] type │
00:00:09 #142 [Verbose] > │ std_cell_RefCell<'T> = class end │
00:00:09 #143 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::pin::Pin<$0>")>] type │
00:00:09 #144 [Verbose] > │ std_pin_Pin<'T> = class end │
00:00:09 #145 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::rc::Rc<$0>")>] type std_rc_Rc<'T> │
00:00:09 #146 [Verbose] > │ = class end │
00:00:09 #147 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::rc::Weak<$0>")>] type │
00:00:09 #148 [Verbose] > │ std_rc_Weak<'T> = class end │
00:00:09 #149 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::sync::Arc<$0>")>] type │
00:00:09 #150 [Verbose] > │ std_sync_Arc<'T> = class end │
00:00:09 #151 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("str")>] type Str = class end │
00:00:09 #152 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("base64::DecodeError")>] type │
00:00:09 #153 [Verbose] > │ base64_DecodeError = class end │
00:00:09 #154 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("borsh::io::Error")>] type │
00:00:09 #155 [Verbose] > │ borsh_io_Error = class end │
00:00:09 #156 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("js_sys::JsString")>] type │
00:00:09 #157 [Verbose] > │ js_sys_JsString = class end │
00:00:09 #158 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("serde_json::Error")>] type │
00:00:09 #159 [Verbose] > │ serde_json_Error = class end │
00:00:09 #160 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("serde_json::Value")>] type │
00:00:09 #161 [Verbose] > │ serde_json_Value = class end │
00:00:09 #162 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("serde_wasm_bindgen::Error")>] type │
00:00:09 #163 [Verbose] > │ serde_wasm_bindgen_Error = class end │
00:00:09 #164 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::str::Utf8Error")>] type │
00:00:09 #165 [Verbose] > │ std_str_Utf8Error = class end │
00:00:09 #166 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::string::String")>] type │
00:00:09 #167 [Verbose] > │ std_string_String = class end │
00:00:09 #168 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("num_complex::Complex<$0>")>] type │
00:00:09 #169 [Verbose] > │ num_complex_Complex<'T> = class end │
00:00:09 #170 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("pyo3::types::PyModule")>] type │
00:00:09 #171 [Verbose] > │ pyo3_types_PyModule = class end │
00:00:09 #172 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("pyo3::Bound<$0>")>] type pyo3_Bound<'T> │
00:00:09 #173 [Verbose] > │ = class end │
00:00:09 #174 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("pyo3::Python")>] type pyo3_Python = │
00:00:09 #175 [Verbose] > │ class end │
00:00:09 #176 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("pyo3::PyAny")>] type pyo3_PyAny = class │
00:00:09 #177 [Verbose] > │ end │
00:00:09 #178 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("pyo3::PyErr")>] type pyo3_PyErr = class │
00:00:09 #179 [Verbose] > │ end │
00:00:09 #180 [Verbose] > │ let rec method1 () : float = │
00:00:09 #181 [Verbose] > │ 0.0 │
00:00:09 #182 [Verbose] > │ and method2 (v0 : float) : float = │
00:00:09 #183 [Verbose] > │ v0 │
00:00:09 #184 [Verbose] > │ and method3 () : float = │
00:00:09 #185 [Verbose] > │ 0.0 │
00:00:09 #186 [Verbose] > │ and method4 (v0 : std_string_String) : std_string_String = │
00:00:09 #187 [Verbose] > │ v0 │
00:00:09 #188 [Verbose] > │ and method5 (v0 : bool) : bool = │
00:00:09 #189 [Verbose] > │ v0 │
00:00:09 #190 [Verbose] > │ and method0 () : unit = │
00:00:09 #191 [Verbose] > │ let v0 : float = method1() │
00:00:09 #192 [Verbose] > │ let v1 : float = method2(v0) │
00:00:09 #193 [Verbose] > │ let v2 : float = method3() │
00:00:09 #194 [Verbose] > │ let v3 : string = "num_complex::Complex::new(v1, v2)" │
00:00:09 #195 [Verbose] > │ let v4 : num_complex_Complex<float> = │
00:00:09 #196 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v3 │
00:00:09 #197 [Verbose] > │ let v5 : string = @$"format!(""{{}}"", $0)" │
00:00:09 #198 [Verbose] > │ let v6 : std_string_String = Fable.Core.RustInterop.emitRustExpr v4 v5 │
00:00:09 #199 [Verbose] > │ let v7 : std_string_String = method4(v6) │
00:00:09 #200 [Verbose] > │ let v8 : string = "fable_library_rust::String_::fromString(v7)" │
00:00:09 #201 [Verbose] > │ let v9 : string = Fable.Core.RustInterop.emitRustExpr () v8 │
00:00:09 #202 [Verbose] > │ let v11 : bool = v9 = "0+0i" │
00:00:09 #203 [Verbose] > │ let v13 : bool = │
00:00:09 #204 [Verbose] > │ if v11 then │
00:00:09 #205 [Verbose] > │ true │
00:00:09 #206 [Verbose] > │ else │
00:00:09 #207 [Verbose] > │ method5(v11) │
00:00:09 #208 [Verbose] > │ let v14 : string = "0+0i" │
00:00:09 #209 [Verbose] > │ let v15 : string = $"__expect / actual: %A{v9} / expected: %A{v14}" │
00:00:09 #210 [Verbose] > │ let v16 : bool = v13 = false │
00:00:09 #211 [Verbose] > │ if v16 then │
00:00:09 #212 [Verbose] > │ failwith<unit> v15 │
00:00:09 #213 [Verbose] > │ method0() │
00:00:09 #214 [Verbose] > │ │
00:00:09 #215 [Verbose] > │ │
00:00:09 #216 [Verbose] > │ .rs: │
00:00:09 #217 [Verbose] > │ #![allow(dead_code,)] │
00:00:09 #218 [Verbose] > │ #![allow(non_camel_case_types,)] │
00:00:09 #219 [Verbose] > │ #![allow(non_snake_case,)] │
00:00:09 #220 [Verbose] > │ #![allow(non_upper_case_globals,)] │
00:00:09 #221 [Verbose] > │ #![allow(unreachable_code,)] │
00:00:09 #222 [Verbose] > │ #![allow(unused_attributes,)] │
00:00:09 #223 [Verbose] > │ #![allow(unused_imports,)] │
00:00:09 #224 [Verbose] > │ #![allow(unused_macros,)] │
00:00:09 #225 [Verbose] > │ #![allow(unused_parens,)] │
00:00:09 #226 [Verbose] > │ #![allow(unused_variables,)] │
00:00:09 #227 [Verbose] > │ mod module_ccfa04bf { │
00:00:09 #228 [Verbose] > │ pub mod Spiral_eval { │
00:00:09 #229 [Verbose] > │ use super::*; │
00:00:09 #230 [Verbose] > │ use fable_library_rust::Native_::on_startup; │
00:00:09 #231 [Verbose] > │ use fable_library_rust::String_::sprintf; │
00:00:09 #232 [Verbose] > │ use fable_library_rust::String_::string; │
00:00:09 #233 [Verbose] > │ pub fn method1() -> f64 { 0.0_f64 } │
00:00:09 #234 [Verbose] > │ pub fn method2(v0: f64) -> f64 { v0 } │
00:00:09 #235 [Verbose] > │ pub fn method3() -> f64 { 0.0_f64 } │
00:00:09 #236 [Verbose] > │ pub fn method4(v0: std::string::String) -> std::string::String { v0 │
00:00:09 #237 [Verbose] > │ } │
00:00:09 #238 [Verbose] > │ pub fn method5(v0: bool) -> bool { v0 } │
00:00:09 #239 [Verbose] > │ pub fn method0() { │
00:00:09 #240 [Verbose] > │ let v1: f64 = Spiral_eval::method2(Spiral_eval::method1()); │
00:00:09 #241 [Verbose] > │ let v2: f64 = Spiral_eval::method3(); │
00:00:09 #242 [Verbose] > │ let v4: num_complex::Complex<f64> = │
00:00:09 #243 [Verbose] > │ num_complex::Complex::new(v1, v2); │
00:00:09 #244 [Verbose] > │ let v7: std::string::String = │
00:00:09 #245 [Verbose] > │ Spiral_eval::method4(format!("{}", v4)); │
00:00:09 #246 [Verbose] > │ let v9: string = fable_library_rust::String_::fromString(v7); │
00:00:09 #247 [Verbose] > │ let v11: bool = v9.clone() == string("0+0i"); │
00:00:09 #248 [Verbose] > │ if (if v11 { true } else { Spiral_eval::method5(v11) }) == false │
00:00:09 #249 [Verbose] > │ { │
00:00:09 #250 [Verbose] > │ panic!("{}", │
00:00:09 #251 [Verbose] > │ sprintf!("__expect / actual: {:?} / expected: {:?}", │
00:00:09 #252 [Verbose] > │ v9, string("0+0i"))); │
00:00:09 #253 [Verbose] > │ } │
00:00:09 #254 [Verbose] > │ } │
00:00:09 #255 [Verbose] > │ on_startup!(Spiral_eval::method0()); │
00:00:09 #256 [Verbose] > │ } │
00:00:09 #257 [Verbose] > │ } │
00:00:09 #258 [Verbose] > │ pub use module_ccfa04bf::*; │
00:00:09 #259 [Verbose] > │ │
00:00:09 #260 [Verbose] > │ │
00:00:09 #261 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #262 [Verbose] >
00:00:09 #263 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:09 #264 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:09 #265 [Verbose] > │ ## complex_sin │
00:00:09 #266 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #267 [Verbose] >
00:00:09 #268 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:09 #269 [Verbose] > inl re forall t. (c : complex t) : t =
00:00:09 #270 [Verbose] > inl c = join c
00:00:09 #271 [Verbose] > !\($'"!c.re"')
00:00:09 #272 [Verbose] >
00:00:09 #273 [Verbose] > inl im forall t. (c : complex t) : t =
00:00:09 #274 [Verbose] > inl c = join c
00:00:09 #275 [Verbose] > !\($'"!c.im"')
00:00:09 #276 [Verbose] >
00:00:09 #277 [Verbose] > inl complex_unbox forall t. (c : complex t) =
00:00:09 #278 [Verbose] > re c, im c
00:00:09 #279 [Verbose] >
00:00:09 #280 [Verbose] > inl (~.^) c = complex c
00:00:09 #281 [Verbose] >
00:00:09 #282 [Verbose] > inl complex_eq forall t. (a : complex t) (b : complex t) : bool =
00:00:09 #283 [Verbose] > !\($'"!a == !b"')
00:00:09 #284 [Verbose] >
00:00:09 #285 [Verbose] > inl (.=) a b = complex_eq a b
00:00:09 #286 [Verbose] >
00:00:09 #287 [Verbose] > instance equable complex t = complex_eq
00:00:09 #288 [Verbose] >
00:00:09 #289 [Verbose] > inl complex_add forall t. (a : complex t) (b : complex t) : complex t =
00:00:09 #290 [Verbose] > !\($'"!a + !b"')
00:00:09 #291 [Verbose] >
00:00:09 #292 [Verbose] > inl (.+) a b = complex_add a b
00:00:09 #293 [Verbose] >
00:00:09 #294 [Verbose] > inl complex_sub forall t. (a : complex t) (b : complex t) : complex t =
00:00:09 #295 [Verbose] > !\($'"!a - !b"')
00:00:09 #296 [Verbose] >
00:00:09 #297 [Verbose] > inl (.-) a b = complex_sub a b
00:00:09 #298 [Verbose] >
00:00:09 #299 [Verbose] > inl complex_mult forall t. (a : complex t) (b : complex t) : complex t =
00:00:09 #300 [Verbose] > !\($'"!a * !b"')
00:00:09 #301 [Verbose] >
00:00:09 #302 [Verbose] > inl (.*) a b = complex_mult a b
00:00:09 #303 [Verbose] >
00:00:09 #304 [Verbose] > inl complex_div forall t. (a : complex t) (b : complex t) : complex t =
00:00:09 #305 [Verbose] > !\($'"!a / !b"')
00:00:09 #306 [Verbose] >
00:00:09 #307 [Verbose] > inl (./) a b = complex_div a b
00:00:09 #308 [Verbose] >
00:00:09 #309 [Verbose] > inl powc forall t. (s : complex t) (c : complex t) : complex t =
00:00:09 #310 [Verbose] > inl c = join c
00:00:09 #311 [Verbose] > inl s = join s
00:00:09 #312 [Verbose] > !\($'"num_complex::Complex::powc(!c, !s)"')
00:00:09 #313 [Verbose] >
00:00:09 #314 [Verbose] > inl (.**) a b = powc b a
00:00:09 #315 [Verbose] >
00:00:09 #316 [Verbose] > inl complex_sin forall t. (c : complex t) : complex t =
00:00:09 #317 [Verbose] > !\($'"!c.sin()"')
00:00:09 #318 [Verbose] >
00:00:09 #319 [Verbose] > inl conj forall t. (c : complex t) : complex t =
00:00:09 #320 [Verbose] > !\($'"!c.conj()"')
00:00:10 #321 [Verbose] > Building /tmp/!dotnet-repl/20240325-2026-2723-2351-2facc77d2cb4/main.spi
00:00:10 #322 [Verbose] >
00:00:10 #323 [Verbose] > ╭─[ 168.41ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #324 [Verbose] > │ () │
00:00:10 #325 [Verbose] > │ │
00:00:10 #326 [Verbose] > │ │
00:00:10 #327 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #328 [Verbose] >
00:00:10 #329 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:10 #330 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:10 #331 [Verbose] > │ ## zeta │
00:00:10 #332 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #333 [Verbose] >
00:00:10 #334 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #335 [Verbose] > inl zeta log (gamma : complex f64 -> complex f64) (s : complex f64) : complex
00:00:10 #336 [Verbose] > f64 =
00:00:10 #337 [Verbose] > inl rec zeta count gamma s =
00:00:10 #338 [Verbose] > inl s = join s
00:00:10 #339 [Verbose] > if log then
00:00:10 #340 [Verbose] > !\($'"println\!(\\\"zeta / count: {:?} / s: {:?}\\\", !count, !s)"')
00:00:10 #341 [Verbose] > if re s > 1 then
00:00:10 #342 [Verbose] > (.^(0, 0), (am.init 10000i32 id : a i32 _))
00:00:10 #343 [Verbose] > ||> am.fold fun acc n =>
00:00:10 #344 [Verbose] > acc .+ (.^(1, 0) ./ (.^(f64 n, 0) .** s))
00:00:10 #345 [Verbose] > else
00:00:10 #346 [Verbose] > inl gamma_term = gamma (.^(1, 0) .- s)
00:00:10 #347 [Verbose] > inl sin_term = .^(pi, 0) .* s ./ .^(2, 0) |> complex_sin
00:00:10 #348 [Verbose] > inl one_minus_s = .^(1 - re s, -(im s))
00:00:10 #349 [Verbose] > inl mirror_term =
00:00:10 #350 [Verbose] > if re one_minus_s <= 1
00:00:10 #351 [Verbose] > then .^(0, 0)
00:00:10 #352 [Verbose] > else
00:00:10 #353 [Verbose] > if count <= 3
00:00:10 #354 [Verbose] > then zeta (count + 1) gamma one_minus_s
00:00:10 #355 [Verbose] > else one_minus_s
00:00:10 #356 [Verbose] > inl reflection_formula =
00:00:10 #357 [Verbose] > .^(2, 0) .* (.^(pi, 0) .** s) .* sin_term .* gamma_term .*
00:00:10 #358 [Verbose] > mirror_term
00:00:10 #359 [Verbose] > reflection_formula
00:00:10 #360 [Verbose] > join zeta 0i32 gamma s
00:00:10 #361 [Verbose] > Building /tmp/!dotnet-repl/20240325-2026-2740-4055-4a981dd048c2/main.spi
00:00:10 #362 [Verbose] >
00:00:10 #363 [Verbose] > ╭─[ 154.77ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #364 [Verbose] > │ () │
00:00:10 #365 [Verbose] > │ │
00:00:10 #366 [Verbose] > │ │
00:00:10 #367 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #368 [Verbose] >
00:00:10 #369 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:10 #370 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:10 #371 [Verbose] > │ ## eval │
00:00:10 #372 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #373 [Verbose] >
00:00:10 #374 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #375 [Verbose] > inl module_from_code (py : python) (code : string) : _ (bound pymodule) _ =
00:00:10 #376 [Verbose] > inl py = join py
00:00:10 #377 [Verbose] > inl code = code |> sm'.as_str
00:00:10 #378 [Verbose] > !\($'"pyo3::types::PyModule::from_code_bound(!py, !code, \\"\\", \\"\\")"')
00:00:10 #379 [Verbose] > |> resultm.map_error' fun (x : pyerr) => x |> sm'.format'
00:00:10 #380 [Verbose] >
00:00:10 #381 [Verbose] > inl use_pyanymethods () =
00:00:10 #382 [Verbose] > global "Fable.Core.RustInterop.emitRustExpr () \");\nuse
00:00:10 #383 [Verbose] > pyo3::prelude::PyAnyMethods;\n//\""
00:00:10 #384 [Verbose] >
00:00:10 #385 [Verbose] > inl getattr (attr : string) (module : bound pymodule) : _ (bound pyany) _ =
00:00:10 #386 [Verbose] > inl attr = attr |> sm'.as_str
00:00:10 #387 [Verbose] > inl module = join module
00:00:10 #388 [Verbose] > use_pyanymethods ()
00:00:10 #389 [Verbose] > !\($'"!module.getattr(!attr)"')
00:00:10 #390 [Verbose] > |> resultm.map_error' fun (x : pyerr) => x |> sm'.format'
00:00:10 #391 [Verbose] >
00:00:10 #392 [Verbose] > inl call forall t. (args : t) (module : bound pyany) : _ (bound pyany) _ =
00:00:10 #393 [Verbose] > inl args = join args
00:00:10 #394 [Verbose] > inl module = join module
00:00:10 #395 [Verbose] > !\($'"pyo3::prelude::PyAnyMethods::call(&!module, ((*!args).0, *(*!args).1),
00:00:10 #396 [Verbose] > None)"')
00:00:10 #397 [Verbose] > |> resultm.map_error' fun (x : pyerr) => x |> sm'.format'
00:00:10 #398 [Verbose] >
00:00:10 #399 [Verbose] > inl extract forall t. (result : bound pyany) : _ t _ =
00:00:10 #400 [Verbose] > inl result = join result
00:00:10 #401 [Verbose] > use_pyanymethods ()
00:00:10 #402 [Verbose] > !\($'"!result.extract()"')
00:00:10 #403 [Verbose] > |> resultm.map_error' fun (x : pyerr) => x |> sm'.format'
00:00:10 #404 [Verbose] >
00:00:10 #405 [Verbose] > inl eval py code (args : pair bool (pair f64 f64)) : _ (_ f64) sm'.std_string =
00:00:10 #406 [Verbose] > inl code =
00:00:10 #407 [Verbose] > code
00:00:10 #408 [Verbose] > |> module_from_code py
00:00:10 #409 [Verbose] > |> resultm.unwrap'
00:00:10 #410 [Verbose] > inl fn =
00:00:10 #411 [Verbose] > code
00:00:10 #412 [Verbose] > |> getattr "fn"
00:00:10 #413 [Verbose] > |> resultm.unwrap'
00:00:10 #414 [Verbose] >
00:00:10 #415 [Verbose] > fn
00:00:10 #416 [Verbose] > |> call args
00:00:10 #417 [Verbose] > |> resultm.try'
00:00:10 #418 [Verbose] > |> extract
00:00:10 #419 [Verbose] > |> resultm.try'
00:00:10 #420 [Verbose] > |> complex
00:00:10 #421 [Verbose] > |> Ok
00:00:10 #422 [Verbose] > |> resultm.box
00:00:10 #423 [Verbose] >
00:00:10 #424 [Verbose] > inl call1_ log py s code =
00:00:10 #425 [Verbose] > inl code = join (a code : _ i32 _) |> sm'.concat_array_trailing "\n"
00:00:10 #426 [Verbose] >
00:00:10 #427 [Verbose] > inl s = new_pair (re s) (im s)
00:00:10 #428 [Verbose] > inl args = new_pair log s
00:00:10 #429 [Verbose] >
00:00:10 #430 [Verbose] > eval py code args
00:00:10 #431 [Verbose] >
00:00:10 #432 [Verbose] > inl call1_ log name py s line =
00:00:10 #433 [Verbose] > inl s = join s
00:00:10 #434 [Verbose] > join
00:00:10 #435 [Verbose] > ;[[
00:00:10 #436 [Verbose] > $'$"import sys"'
00:00:10 #437 [Verbose] > $'$"import traceback"'
00:00:10 #438 [Verbose] > $'$"import re"'
00:00:10 #439 [Verbose] > $'$"count = 0"'
00:00:10 #440 [Verbose] > $'$"memory_address_pattern = re.compile(r\' at 0x[[0-9a-fA-F]]+\')"'
00:00:10 #441 [Verbose] > $'$"def trace_calls(frame, event, arg):"'
00:00:10 #442 [Verbose] > $'$" global count"'
00:00:10 #443 [Verbose] > $'$" count += 1"'
00:00:10 #444 [Verbose] > $'$" if count < 200:"'
00:00:10 #445 [Verbose] > $'$" try:"'
00:00:10 #446 [Verbose] > $'$" args = {{ k: v for k, v in frame.f_locals.items() if
00:00:10 #447 [Verbose] > frame.f_code.co_name \!= \'make_mpc\' and k not in [[\'ctx\']] and not
00:00:10 #448 [Verbose] > callable(v) }}"'
00:00:10 #449 [Verbose] > $'$" args_str = \', \'.join([[
00:00:10 #450 [Verbose] > f\\\"{{k}}={{re.sub(memory_address_pattern, \' at 0x<?>\', repr(v))}}\\\" for k,
00:00:10 #451 [Verbose] > v in args.items() ]])"'
00:00:10 #452 [Verbose] > $'$" print(f\\\"{{event}}({!name}) / f_code.co_name:
00:00:10 #453 [Verbose] > {{frame.f_code.co_name}} / f_locals: {{args_str}} / f_lineno: {{frame.f_lineno}}
00:00:10 #454 [Verbose] > / f_code.co_filename:
00:00:10 #455 [Verbose] > {{frame.f_code.co_filename.split(\'site-packages\')[[-1]]}} / f_back.f_lineno:
00:00:10 #456 [Verbose] > {{ \'\' if frame.f_back is None else frame.f_back.f_lineno }}
00:00:10 #457 [Verbose] > f_back.f_code.co_filename: {{ \'\' if frame.f_back is None else
00:00:10 #458 [Verbose] > frame.f_back.f_code.co_filename.split(\'site-packages\')[[-1]] }} / arg:
00:00:10 #459 [Verbose] > {{arg}}\\\", flush=True)"'
00:00:10 #460 [Verbose] > $'$" except ValueError as e:"'
00:00:10 #461 [Verbose] > $'$" print(f\'{!name} / e: {{e}}\', flush=True)"'
00:00:10 #462 [Verbose] > $'$" return trace_calls"'
00:00:10 #463 [Verbose] > $'$"import mpmath"'
00:00:10 #464 [Verbose] > $'$"def fn(log, s):"'
00:00:10 #465 [Verbose] > $'$" global count"'
00:00:10 #466 [Verbose] > $'$" if log:"'
00:00:10 #467 [Verbose] > $'$" print(f\'{!name} / s: {{s}} / count: {{count}}\',
00:00:10 #468 [Verbose] > flush=True)"'
00:00:10 #469 [Verbose] > $'$" s = complex(*s)"'
00:00:10 #470 [Verbose] > $'$" try:"'
00:00:10 #471 [Verbose] > $'$" if log: sys.settrace(trace_calls)"'
00:00:10 #472 [Verbose] > line
00:00:10 #473 [Verbose] > $'$" if log:"'
00:00:10 #474 [Verbose] > $'$" sys.settrace(None)"'
00:00:10 #475 [Verbose] > $'$" print(f\'{!name} / result: {{s}} / count:
00:00:10 #476 [Verbose] > {{count}}\', flush=True)"'
00:00:10 #477 [Verbose] > $'$" except ValueError as e:"'
00:00:10 #478 [Verbose] > $'$" if s.real == 1:"'
00:00:10 #479 [Verbose] > $'$" s = complex(float(\'inf\'), 0)"'
00:00:10 #480 [Verbose] > $'$" return (s.real, s.imag)"'
00:00:10 #481 [Verbose] > ]]
00:00:10 #482 [Verbose] > |> call1_ log py s
00:00:10 #483 [Verbose] >
00:00:10 #484 [Verbose] > inl gamma_ log py s =
00:00:10 #485 [Verbose] > call1_ log "gamma_" py s $'$" s = mpmath.gamma(s)"'
00:00:10 #486 [Verbose] >
00:00:10 #487 [Verbose] > inl zeta_ log py s =
00:00:10 #488 [Verbose] > call1_ log "zeta_" py s $'$" s = mpmath.zeta(s)"'
00:00:10 #489 [Verbose] > Building /tmp/!dotnet-repl/20240325-2026-2756-5655-551a84c9b248/main.spi
00:00:10 #490 [Verbose] >
00:00:10 #491 [Verbose] > ╭─[ 161.97ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #492 [Verbose] > │ () │
00:00:10 #493 [Verbose] > │ │
00:00:10 #494 [Verbose] > │ │
00:00:10 #495 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #496 [Verbose] >
00:00:10 #497 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:10 #498 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:10 #499 [Verbose] > │ ## run_test │
00:00:10 #500 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #501 [Verbose] >
00:00:10 #502 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #503 [Verbose] > inl run_test log closure_fix (fn : (complex f64 -> complex f64) * (complex f64
00:00:10 #504 [Verbose] > -> complex f64) -> ()) =
00:00:10 #505 [Verbose] > inl fn_ (py : python) : resultm.result' () pyerr =
00:00:10 #506 [Verbose] > inl nan () =
00:00:10 #507 [Verbose] > !\($'"f64::NAN"')
00:00:10 #508 [Verbose] > inl gamma__ = fun (s : complex f64) =>
00:00:10 #509 [Verbose] > inl result = gamma_ log py s
00:00:10 #510 [Verbose] > if log then
00:00:10 #511 [Verbose] > inl s = join s
00:00:10 #512 [Verbose] > !\($'"println\!(\\\"gamma__ / s: {:?} / result: {:?}\\\", !s,
00:00:10 #513 [Verbose] > !result)"')
00:00:10 #514 [Verbose] > result |> resultm.ok' |> optionm'.unbox |> optionm'.default_value
00:00:10 #515 [Verbose] > .^(nan (), nan ())
00:00:10 #516 [Verbose] > inl zeta__ = fun (s : complex f64) =>
00:00:10 #517 [Verbose] > inl result = zeta_ log py s
00:00:10 #518 [Verbose] >
00:00:10 #519 [Verbose] > inl z = zeta true gamma__ s
00:00:10 #520 [Verbose] >
00:00:10 #521 [Verbose] > if log then
00:00:10 #522 [Verbose] > inl s = join s
00:00:10 #523 [Verbose] > !\($'"println\!(\\\"zeta__ / s: {:?} / result: {:?} / z:
00:00:10 #524 [Verbose] > {:?}\\\", !s, !result, !z)"')
00:00:10 #525 [Verbose] >
00:00:10 #526 [Verbose] > // re result - re x |> abs
00:00:10 #527 [Verbose] > // |> _assert_lt 0.001
00:00:10 #528 [Verbose] >
00:00:10 #529 [Verbose] > // im result - im x |> abs
00:00:10 #530 [Verbose] > // |> _assert_lt 0.001
00:00:10 #531 [Verbose] >
00:00:10 #532 [Verbose] > result |> resultm.ok' |> optionm'.unbox |> optionm'.default_value
00:00:10 #533 [Verbose] > .^(nan (), nan ())
00:00:10 #534 [Verbose] > join fn (zeta__, gamma__)
00:00:10 #535 [Verbose] >
00:00:10 #536 [Verbose] > Ok ()
00:00:10 #537 [Verbose] > |> resultm.box
00:00:10 #538 [Verbose] >
00:00:10 #539 [Verbose] > join
00:00:10 #540 [Verbose] > !\($'"pyo3::prepare_freethreaded_python()"') : ()
00:00:10 #541 [Verbose] >
00:00:10 #542 [Verbose] > !\($'"let __result = pyo3::Python::with_gil(|py| -> pyo3::PyResult<()> {
00:00:10 #543 [Verbose] > //"')
00:00:10 #544 [Verbose] >
00:00:10 #545 [Verbose] > let x' = fn_ (!\($'"py"') : python)
00:00:10 #546 [Verbose] > inl x' = join x'
00:00:10 #547 [Verbose] >
00:00:10 #548 [Verbose] > inl closure_fix = 2u8, 1u8
00:00:10 #549 [Verbose] > x' |> rust.fix_closure closure_fix
00:00:10 #550 [Verbose] >
00:00:10 #551 [Verbose] > (!\($'"__result"') : _ () pyerr)
00:00:10 #552 [Verbose] > |> resultm.unwrap'
00:00:10 #553 [Verbose] > Building /tmp/!dotnet-repl/20240325-2026-2772-7245-74fffc1bb71e/main.spi
00:00:10 #554 [Verbose] >
00:00:10 #555 [Verbose] > ╭─[ 175.38ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #556 [Verbose] > │ () │
00:00:10 #557 [Verbose] > │ │
00:00:10 #558 [Verbose] > │ │
00:00:10 #559 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #560 [Verbose] >
00:00:10 #561 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:10 #562 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:10 #563 [Verbose] > │ ## test_zeta_at_known_values_ │
00:00:10 #564 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #565 [Verbose] >
00:00:10 #566 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #567 [Verbose] > inl test_zeta_at_known_values_ log = run_test log (3u8, 2u8) fun zeta, gamma =>
00:00:10 #568 [Verbose] > ;[[
00:00:10 #569 [Verbose] > .^(2, 0), pi ** 2 / 6
00:00:10 #570 [Verbose] > .^(-1, 0), -1 / 12
00:00:10 #571 [Verbose] > ]]
00:00:10 #572 [Verbose] > |> fun x => a x : _ i32 _
00:00:10 #573 [Verbose] > |> am.iter fun s, e =>
00:00:10 #574 [Verbose] > inl result = zeta s
00:00:10 #575 [Verbose] >
00:00:10 #576 [Verbose] > result |> im |> _assert_eq 0
00:00:10 #577 [Verbose] > re result - e |> abs |> _assert_lt 0.0001
00:00:10 #578 [Verbose] > Building /tmp/!dotnet-repl/20240325-2026-2790-9004-993c113a3b6d/main.spi
00:00:10 #579 [Verbose] >
00:00:10 #580 [Verbose] > ╭─[ 158.05ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #581 [Verbose] > │ () │
00:00:10 #582 [Verbose] > │ │
00:00:10 #583 [Verbose] > │ │
00:00:10 #584 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #585 [Verbose] >
00:00:10 #586 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #587 [Verbose] > // // test
00:00:10 #588 [Verbose] > // // rust=
00:00:10 #589 [Verbose] > // // print_code=false
00:00:10 #590 [Verbose] >
00:00:10 #591 [Verbose] > types ()
00:00:10 #592 [Verbose] > test_zeta_at_known_values_ true
00:00:10 #593 [Verbose] > Building /tmp/!dotnet-repl/20240325-2026-2805-0591-006dc2306d1d/main.spi
00:00:16 #594 [Verbose] >
00:00:16 #595 [Verbose] > ╭─[ 5.38s - return value ]─────────────────────────────────────────────────────╮
00:00:16 #596 [Verbose] > │ zeta_ / s: (2.0, 0.0) / count: 0 │
00:00:16 #597 [Verbose] > │ call(zeta_) / f_code.co_name: zeta / f_locals: s=(2+0j), a=1, derivative=0, │
00:00:16 #598 [Verbose] > │ method=None, kwargs={} / f_lineno: 528 / f_code.co_filename: │
00:00:16 #599 [Verbose] > │ /mpmath/functions/zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:00:16 #600 [Verbose] > │ / arg: None │
00:00:16 #601 [Verbose] > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2+0j), a=1, derivative=0, │
00:00:16 #602 [Verbose] > │ method=None, kwargs={} / f_lineno: 530 / f_code.co_filename: │
00:00:16 #603 [Verbose] > │ /mpmath/functions/zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:00:16 #604 [Verbose] > │ / arg: None │
00:00:16 #605 [Verbose] > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2+0j), a=1, derivative=0, │
00:00:16 #606 [Verbose] > │ method=None, kwargs={}, d=0 / f_lineno: 531 / f_code.co_filename: │
00:00:16 #607 [Verbose] > │ /mpmath/functions/zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:00:16 #608 [Verbose] > │ / arg: None │
00:00:16 #609 [Verbose] > │ line(zeta_) / f_code.co_name: z... │
00:00:16 #610 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 #611 [Verbose] >
00:00:16 #612 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:16 #613 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:16 #614 [Verbose] > │ ## test_zeta_at_2_minus2 │
00:00:16 #615 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 #616 [Verbose] >
00:00:16 #617 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:16 #618 [Verbose] > inl test_zeta_at_2_minus2 log = run_test log (6u8, 5u8) fun zeta, gamma =>
00:00:16 #619 [Verbose] > inl s = .^(2, -2)
00:00:16 #620 [Verbose] > inl result = zeta s
00:00:16 #621 [Verbose] >
00:00:16 #622 [Verbose] > (re result - 0.8673) |> abs |> _assert_lt 0.001
00:00:16 #623 [Verbose] > (im result - 0.2750) |> abs |> _assert_lt 0.001
00:00:16 #624 [Verbose] > Building /tmp/!dotnet-repl/20240325-2026-3343-4398-48dca49f351c/main.spi
00:00:16 #625 [Verbose] >
00:00:16 #626 [Verbose] > ╭─[ 135.34ms - stdout ]────────────────────────────────────────────────────────╮
00:00:16 #627 [Verbose] > │ () │
00:00:16 #628 [Verbose] > │ │
00:00:16 #629 [Verbose] > │ │
00:00:16 #630 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 #631 [Verbose] >
00:00:16 #632 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:16 #633 [Verbose] > // // test
00:00:16 #634 [Verbose] > // // rust=
00:00:16 #635 [Verbose] > // // print_code=false
00:00:16 #636 [Verbose] >
00:00:16 #637 [Verbose] > types ()
00:00:16 #638 [Verbose] > test_zeta_at_2_minus2 true
00:00:16 #639 [Verbose] > Building /tmp/!dotnet-repl/20240325-2026-3357-5748-502809d8c498/main.spi
00:00:21 #640 [Verbose] >
00:00:21 #641 [Verbose] > ╭─[ 4.73s - return value ]─────────────────────────────────────────────────────╮
00:00:21 #642 [Verbose] > │ zeta_ / s: (2.0, -2.0) / count: 0 │
00:00:21 #643 [Verbose] > │ call(zeta_) / f_code.co_name: zeta / f_locals: s=(2-2j), a=1, derivative=0, │
00:00:21 #644 [Verbose] > │ method=None, kwargs={} / f_lineno: 528 / f_code.co_filename: │
00:00:21 #645 [Verbose] > │ /mpmath/functions/zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:00:21 #646 [Verbose] > │ / arg: None │
00:00:21 #647 [Verbose] > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2-2j), a=1, derivative=0, │
00:00:21 #648 [Verbose] > │ method=None, kwargs={} / f_lineno: 530 / f_code.co_filename: │
00:00:21 #649 [Verbose] > │ /mpmath/functions/zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:00:21 #650 [Verbose] > │ / arg: None │
00:00:21 #651 [Verbose] > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2-2j), a=1, derivative=0, │
00:00:21 #652 [Verbose] > │ method=None, kwargs={}, d=0 / f_lineno: 531 / f_code.co_filename: │
00:00:21 #653 [Verbose] > │ /mpmath/functions/zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:00:21 #654 [Verbose] > │ / arg: None │
00:00:21 #655 [Verbose] > │ line(zeta_) / f_code.co_name: ... │
00:00:21 #656 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:21 #657 [Verbose] >
00:00:21 #658 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:21 #659 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:21 #660 [Verbose] > │ ## test_trivial_zero_at_negative_even___ │
00:00:21 #661 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:21 #662 [Verbose] >
00:00:21 #663 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:21 #664 [Verbose] > inl test_trivial_zero_at_negative_even___ log = run_test log (2u8, 1u8) fun
00:00:21 #665 [Verbose] > zeta, gamma =>
00:00:21 #666 [Verbose] > (join listm'.init_series -2f64 -40 -2)
00:00:21 #667 [Verbose] > |> listm.iter fun n =>
00:00:21 #668 [Verbose] > inl s = .^(n, 0)
00:00:21 #669 [Verbose] > inl result = zeta s
00:00:21 #670 [Verbose] >
00:00:21 #671 [Verbose] > result |> re |> _assert_eq 0
00:00:21 #672 [Verbose] > result |> im |> _assert_eq 0
00:00:21 #673 [Verbose] > Building /tmp/!dotnet-repl/20240325-2026-3831-3131-327d49e4c466/main.spi
00:00:21 #674 [Verbose] >
00:00:21 #675 [Verbose] > ╭─[ 130.52ms - stdout ]────────────────────────────────────────────────────────╮
00:00:21 #676 [Verbose] > │ () │
00:00:21 #677 [Verbose] > │ │
00:00:21 #678 [Verbose] > │ │
00:00:21 #679 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:21 #680 [Verbose] >
00:00:21 #681 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:21 #682 [Verbose] > // // test
00:00:21 #683 [Verbose] > // // rust=
00:00:21 #684 [Verbose] > // // print_code=false
00:00:21 #685 [Verbose] >
00:00:21 #686 [Verbose] > types ()
00:00:21 #687 [Verbose] > test_trivial_zero_at_negative_even___ true
00:00:21 #688 [Verbose] > Building /tmp/!dotnet-repl/20240325-2026-3844-4428-48d08daf2f4a/main.spi
00:00:26 #689 [Verbose] >
00:00:26 #690 [Verbose] > ╭─[ 5.21s - return value ]─────────────────────────────────────────────────────╮
00:00:26 #691 [Verbose] > │ zeta_ / s: (-2.0, 0.0) / count: 0 │
00:00:26 #692 [Verbose] > │ call(zeta_) / f_code.co_name: zeta / f_locals: s=(-2+0j), a=1, derivative=0, │
00:00:26 #693 [Verbose] > │ method=None, kwargs={} / f_lineno: 528 / f_code.co_filename: │
00:00:26 #694 [Verbose] > │ /mpmath/functions/zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:00:26 #695 [Verbose] > │ / arg: None │
00:00:26 #696 [Verbose] > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(-2+0j), a=1, derivative=0, │
00:00:26 #697 [Verbose] > │ method=None, kwargs={} / f_lineno: 530 / f_code.co_filename: │
00:00:26 #698 [Verbose] > │ /mpmath/functions/zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:00:26 #699 [Verbose] > │ / arg: None │
00:00:26 #700 [Verbose] > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(-2+0j), a=1, derivative=0, │
00:00:26 #701 [Verbose] > │ method=None, kwargs={}, d=0 / f_lineno: 531 / f_code.co_filename: │
00:00:26 #702 [Verbose] > │ /mpmath/functions/zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:00:26 #703 [Verbose] > │ / arg: None │
00:00:26 #704 [Verbose] > │ line(zeta_) / f_code.co_nam... │
00:00:26 #705 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:26 #706 [Verbose] >
00:00:26 #707 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:26 #708 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:26 #709 [Verbose] > │ ## test_non_trivial_zero___ │
00:00:26 #710 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:26 #711 [Verbose] >
00:00:26 #712 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:26 #713 [Verbose] > inl test_non_trivial_zero___ log = run_test log (3u8, 2u8) fun zeta, gamma =>
00:00:26 #714 [Verbose] > ;[[
00:00:26 #715 [Verbose] > .^(0.5, 14.134725)
00:00:26 #716 [Verbose] > .^(0.5, 21.022040)
00:00:26 #717 [Verbose] > .^(0.5, 25.010857)
00:00:26 #718 [Verbose] > .^(0.5, 30.424876)
00:00:26 #719 [Verbose] > .^(0.5, 32.935062)
00:00:26 #720 [Verbose] > .^(0.5, 37.586178)
00:00:26 #721 [Verbose] > ]]
00:00:26 #722 [Verbose] > |> fun x => a x : _ i32 _
00:00:26 #723 [Verbose] > |> am.iter fun x =>
00:00:26 #724 [Verbose] > inl result = zeta x
00:00:26 #725 [Verbose] > result |> re |> abs |> _assert_lt 0.0001
00:00:26 #726 [Verbose] > result |> im |> abs |> _assert_lt 0.0001
00:00:26 #727 [Verbose] > Building /tmp/!dotnet-repl/20240325-2026-4367-6740-6cb84b6c9111/main.spi
00:00:26 #728 [Verbose] >
00:00:26 #729 [Verbose] > ╭─[ 141.42ms - stdout ]────────────────────────────────────────────────────────╮
00:00:26 #730 [Verbose] > │ () │
00:00:26 #731 [Verbose] > │ │
00:00:26 #732 [Verbose] > │ │
00:00:26 #733 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:26 #734 [Verbose] >
00:00:26 #735 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:26 #736 [Verbose] > // // test
00:00:26 #737 [Verbose] > // // rust=
00:00:26 #738 [Verbose] > // // print_code=false
00:00:26 #739 [Verbose] >
00:00:26 #740 [Verbose] > types ()
00:00:26 #741 [Verbose] > test_non_trivial_zero___ true
00:00:26 #742 [Verbose] > Building /tmp/!dotnet-repl/20240325-2026-4381-8145-8bb7657cdaae/main.spi
00:00:31 #743 [Verbose] >
00:00:31 #744 [Verbose] > ╭─[ 5.00s - return value ]─────────────────────────────────────────────────────╮
00:00:31 #745 [Verbose] > │ zeta_ / s: (0.5, 14.134725) / count: 0 │
00:00:31 #746 [Verbose] > │ call(zeta_) / f_code.co_name: zeta / f_locals: s=(0.5+14.134725j), a=1, │
00:00:31 #747 [Verbose] > │ derivative=0, method=None, kwargs={} / f_lineno: 528 / f_code.co_filename: │
00:00:31 #748 [Verbose] > │ /mpmath/functions/zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:00:31 #749 [Verbose] > │ / arg: None │
00:00:31 #750 [Verbose] > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(0.5+14.134725j), a=1, │
00:00:31 #751 [Verbose] > │ derivative=0, method=None, kwargs={} / f_lineno: 530 / f_code.co_filename: │
00:00:31 #752 [Verbose] > │ /mpmath/functions/zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:00:31 #753 [Verbose] > │ / arg: None │
00:00:31 #754 [Verbose] > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(0.5+14.134725j), a=1, │
00:00:31 #755 [Verbose] > │ derivative=0, method=None, kwargs={}, d=0 / f_lineno: 531 / │
00:00:31 #756 [Verbose] > │ f_code.co_filename: /mpmath/functions/zeta.py / f_back.f_lineno: 25 / │
00:00:31 #757 [Verbose] > │ f_back.f_code.co_filename: / arg: ... │
00:00:31 #758 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:31 #759 [Verbose] >
00:00:31 #760 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:31 #761 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:31 #762 [Verbose] > │ ## test_real_part_greater_than_one___ │
00:00:31 #763 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:31 #764 [Verbose] >
00:00:31 #765 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:31 #766 [Verbose] > inl test_real_part_greater_than_one___ log = run_test log (3u8, 2u8) fun zeta,
00:00:31 #767 [Verbose] > gamma =>
00:00:31 #768 [Verbose] > inl points = ;[[2; 3; 4; 5; 10; 20; 50]]
00:00:31 #769 [Verbose] > (a points : _ i32 _)
00:00:31 #770 [Verbose] > |> am.iter fun point =>
00:00:31 #771 [Verbose] > inl s = .^(point, 0)
00:00:31 #772 [Verbose] > inl result = zeta s
00:00:31 #773 [Verbose] > result |> re |> _assert_gt 0
00:00:31 #774 [Verbose] > result |> im |> _assert_eq 0
00:00:31 #775 [Verbose] > Building /tmp/!dotnet-repl/20240325-2026-4882-8219-8b669024c0bb/main.spi
00:00:31 #776 [Verbose] >
00:00:31 #777 [Verbose] > ╭─[ 135.87ms - stdout ]────────────────────────────────────────────────────────╮
00:00:31 #778 [Verbose] > │ () │
00:00:31 #779 [Verbose] > │ │
00:00:31 #780 [Verbose] > │ │
00:00:31 #781 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:31 #782 [Verbose] >
00:00:31 #783 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:31 #784 [Verbose] > // // test
00:00:31 #785 [Verbose] > // // rust=
00:00:31 #786 [Verbose] > // // print_code=false
00:00:31 #787 [Verbose] >
00:00:31 #788 [Verbose] > types ()
00:00:31 #789 [Verbose] > test_real_part_greater_than_one___ true
00:00:31 #790 [Verbose] > Building /tmp/!dotnet-repl/20240325-2026-4895-9581-9fe227b5ba56/main.spi
00:00:36 #791 [Verbose] >
00:00:36 #792 [Verbose] > ╭─[ 4.79s - return value ]─────────────────────────────────────────────────────╮
00:00:36 #793 [Verbose] > │ zeta_ / s: (2.0, 0.0) / count: 0 │
00:00:36 #794 [Verbose] > │ call(zeta_) / f_code.co_name: zeta / f_locals: s=(2+0j), a=1, derivative=0, │
00:00:36 #795 [Verbose] > │ method=None, kwargs={} / f_lineno: 528 / f_code.co_filename: │
00:00:36 #796 [Verbose] > │ /mpmath/functions/zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:00:36 #797 [Verbose] > │ / arg: None │
00:00:36 #798 [Verbose] > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2+0j), a=1, derivative=0, │
00:00:36 #799 [Verbose] > │ method=None, kwargs={} / f_lineno: 530 / f_code.co_filename: │
00:00:36 #800 [Verbose] > │ /mpmath/functions/zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:00:36 #801 [Verbose] > │ / arg: None │
00:00:36 #802 [Verbose] > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2+0j), a=1, derivative=0, │
00:00:36 #803 [Verbose] > │ method=None, kwargs={}, d=0 / f_lineno: 531 / f_code.co_filename: │
00:00:36 #804 [Verbose] > │ /mpmath/functions/zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:00:36 #805 [Verbose] > │ / arg: None │
00:00:36 #806 [Verbose] > │ line(zeta_) / f_code.co_name: z... │
00:00:36 #807 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:36 #808 [Verbose] >
00:00:36 #809 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:36 #810 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:36 #811 [Verbose] > │ ## test_zeta_at_1___ │
00:00:36 #812 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:36 #813 [Verbose] >
00:00:36 #814 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:36 #815 [Verbose] > inl test_zeta_at_1___ log = run_test log (6u8, 5u8) fun zeta, gamma =>
00:00:36 #816 [Verbose] > inl s = .^(1, 0)
00:00:36 #817 [Verbose] > inl result = zeta s
00:00:36 #818 [Verbose] > result |> re |> _assert_eq limit.max
00:00:36 #819 [Verbose] > result |> im |> _assert_eq 0
00:00:36 #820 [Verbose] > Building /tmp/!dotnet-repl/20240325-2026-5380-8003-806d7e4ef8e4/main.spi
00:00:36 #821 [Verbose] >
00:00:36 #822 [Verbose] > ╭─[ 138.59ms - stdout ]────────────────────────────────────────────────────────╮
00:00:36 #823 [Verbose] > │ () │
00:00:36 #824 [Verbose] > │ │
00:00:36 #825 [Verbose] > │ │
00:00:36 #826 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:36 #827 [Verbose] >
00:00:36 #828 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:36 #829 [Verbose] > // // test
00:00:36 #830 [Verbose] > // // rust=
00:00:36 #831 [Verbose] > // // print_code=false
00:00:36 #832 [Verbose] >
00:00:36 #833 [Verbose] > types ()
00:00:36 #834 [Verbose] > test_zeta_at_1___ true
00:00:36 #835 [Verbose] > Building /tmp/!dotnet-repl/20240325-2026-5393-9390-9ec3c6592620/main.spi
00:00:41 #836 [Verbose] >
00:00:41 #837 [Verbose] > ╭─[ 4.71s - return value ]─────────────────────────────────────────────────────╮
00:00:41 #838 [Verbose] > │ zeta_ / s: (1.0, 0.0) / count: 0 │
00:00:41 #839 [Verbose] > │ call(zeta_) / f_code.co_name: zeta / f_locals: s=(1+0j), a=1, derivative=0, │
00:00:41 #840 [Verbose] > │ method=None, kwargs={} / f_lineno: 528 / f_code.co_filename: │
00:00:41 #841 [Verbose] > │ /mpmath/functions/zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:00:41 #842 [Verbose] > │ / arg: None │
00:00:41 #843 [Verbose] > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(1+0j), a=1, derivative=0, │
00:00:41 #844 [Verbose] > │ method=None, kwargs={} / f_lineno: 530 / f_code.co_filename: │
00:00:41 #845 [Verbose] > │ /mpmath/functions/zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:00:41 #846 [Verbose] > │ / arg: None │
00:00:41 #847 [Verbose] > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(1+0j), a=1, derivative=0, │
00:00:41 #848 [Verbose] > │ method=None, kwargs={}, d=0 / f_lineno: 531 / f_code.co_filename: │
00:00:41 #849 [Verbose] > │ /mpmath/functions/zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:00:41 #850 [Verbose] > │ / arg: None │
00:00:41 #851 [Verbose] > │ line(zeta_) / f_code.co_name: z... │
00:00:41 #852 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:41 #853 [Verbose] >
00:00:41 #854 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:41 #855 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:41 #856 [Verbose] > │ ## test_symmetry_across_real_axis___ │
00:00:41 #857 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:41 #858 [Verbose] >
00:00:41 #859 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:41 #860 [Verbose] > inl test_symmetry_across_real_axis___ log = run_test log (8u8, 7u8) fun zeta,
00:00:41 #861 [Verbose] > gamma =>
00:00:41 #862 [Verbose] > inl s = .^(2, 10)
00:00:41 #863 [Verbose] > inl result_positive_im = zeta s
00:00:41 #864 [Verbose] > inl result_negative_im = zeta .^(re s, -(im s))
00:00:41 #865 [Verbose] > inl conj = result_negative_im |> conj
00:00:41 #866 [Verbose] > result_positive_im |> re |> _assert_eq (conj |> re)
00:00:41 #867 [Verbose] > result_positive_im |> im |> _assert_eq (conj |> im)
00:00:41 #868 [Verbose] > Building /tmp/!dotnet-repl/20240325-2026-5865-6500-6f0d8af3bbf3/main.spi
00:00:41 #869 [Verbose] >
00:00:41 #870 [Verbose] > ╭─[ 135.35ms - stdout ]────────────────────────────────────────────────────────╮
00:00:41 #871 [Verbose] > │ () │
00:00:41 #872 [Verbose] > │ │
00:00:41 #873 [Verbose] > │ │
00:00:41 #874 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:41 #875 [Verbose] >
00:00:41 #876 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:41 #877 [Verbose] > // // test
00:00:41 #878 [Verbose] > // // rust=
00:00:41 #879 [Verbose] > // // print_code=false
00:00:41 #880 [Verbose] >
00:00:41 #881 [Verbose] > types ()
00:00:41 #882 [Verbose] > test_symmetry_across_real_axis___ true
00:00:41 #883 [Verbose] > Building /tmp/!dotnet-repl/20240325-2026-5878-7856-791c21b24862/main.spi
00:00:46 #884 [Verbose] >
00:00:46 #885 [Verbose] > ╭─[ 4.66s - return value ]─────────────────────────────────────────────────────╮
00:00:46 #886 [Verbose] > │ zeta_ / s: (2.0, 10.0) / count: 0 │
00:00:46 #887 [Verbose] > │ call(zeta_) / f_code.co_name: zeta / f_locals: s=(2+10j), a=1, derivative=0, │
00:00:46 #888 [Verbose] > │ method=None, kwargs={} / f_lineno: 528 / f_code.co_filename: │
00:00:46 #889 [Verbose] > │ /mpmath/functions/zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:00:46 #890 [Verbose] > │ / arg: None │
00:00:46 #891 [Verbose] > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2+10j), a=1, derivative=0, │
00:00:46 #892 [Verbose] > │ method=None, kwargs={} / f_lineno: 530 / f_code.co_filename: │
00:00:46 #893 [Verbose] > │ /mpmath/functions/zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:00:46 #894 [Verbose] > │ / arg: None │
00:00:46 #895 [Verbose] > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2+10j), a=1, derivative=0, │
00:00:46 #896 [Verbose] > │ method=None, kwargs={}, d=0 / f_lineno: 531 / f_code.co_filename: │
00:00:46 #897 [Verbose] > │ /mpmath/functions/zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:00:46 #898 [Verbose] > │ / arg: None │
00:00:46 #899 [Verbose] > │ line(zeta_) / f_code.co_nam... │
00:00:46 #900 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:46 #901 [Verbose] >
00:00:46 #902 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:46 #903 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:46 #904 [Verbose] > │ ## test_behavior_near_origin___ │
00:00:46 #905 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:46 #906 [Verbose] >
00:00:46 #907 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:46 #908 [Verbose] > inl test_behavior_near_origin___ log = run_test log (6u8, 5u8) fun zeta, gamma
00:00:46 #909 [Verbose] > =>
00:00:46 #910 [Verbose] > inl s = .^(0.01, 0.01)
00:00:46 #911 [Verbose] > inl result = zeta s
00:00:46 #912 [Verbose] > result |> re |> _assert_lt limit.max
00:00:46 #913 [Verbose] > result |> im |> _assert_lt limit.max
00:00:46 #914 [Verbose] > Building /tmp/!dotnet-repl/20240325-2027-0344-4456-47855c45823b/main.spi
00:00:46 #915 [Verbose] >
00:00:46 #916 [Verbose] > ╭─[ 129.60ms - stdout ]────────────────────────────────────────────────────────╮
00:00:46 #917 [Verbose] > │ () │
00:00:46 #918 [Verbose] > │ │
00:00:46 #919 [Verbose] > │ │
00:00:46 #920 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:46 #921 [Verbose] >
00:00:46 #922 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:46 #923 [Verbose] > // // test
00:00:46 #924 [Verbose] > // // rust=
00:00:46 #925 [Verbose] > // // print_code=false
00:00:46 #926 [Verbose] >
00:00:46 #927 [Verbose] > types ()
00:00:46 #928 [Verbose] > test_behavior_near_origin___ true
00:00:46 #929 [Verbose] > Building /tmp/!dotnet-repl/20240325-2027-0357-5748-50fc4d8df87e/main.spi
00:00:50 #930 [Verbose] >
00:00:50 #931 [Verbose] > ╭─[ 4.65s - return value ]─────────────────────────────────────────────────────╮
00:00:50 #932 [Verbose] > │ zeta_ / s: (0.01, 0.01) / count: 0 │
00:00:50 #933 [Verbose] > │ call(zeta_) / f_code.co_name: zeta / f_locals: s=(0.01+0.01j), a=1, │
00:00:50 #934 [Verbose] > │ derivative=0, method=None, kwargs={} / f_lineno: 528 / f_code.co_filename: │
00:00:50 #935 [Verbose] > │ /mpmath/functions/zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:00:50 #936 [Verbose] > │ / arg: None │
00:00:50 #937 [Verbose] > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(0.01+0.01j), a=1, │
00:00:50 #938 [Verbose] > │ derivative=0, method=None, kwargs={} / f_lineno: 530 / f_code.co_filename: │
00:00:50 #939 [Verbose] > │ /mpmath/functions/zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:00:50 #940 [Verbose] > │ / arg: None │
00:00:50 #941 [Verbose] > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(0.01+0.01j), a=1, │
00:00:50 #942 [Verbose] > │ derivative=0, method=None, kwargs={}, d=0 / f_lineno: 531 / │
00:00:50 #943 [Verbose] > │ f_code.co_filename: /mpmath/functions/zeta.py / f_back.f_lineno: 25 / │
00:00:50 #944 [Verbose] > │ f_back.f_code.co_filename: / arg: None │
00:00:50 #945 [Verbose] > │ line(zeta_)... │
00:00:50 #946 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:50 #947 [Verbose] >
00:00:50 #948 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:50 #949 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:50 #950 [Verbose] > │ ## test_imaginary_axis │
00:00:50 #951 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:50 #952 [Verbose] >
00:00:50 #953 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:50 #954 [Verbose] > inl test_imaginary_axis log = run_test log (3u8, 2u8) fun zeta, gamma =>
00:00:50 #955 [Verbose] > (join a ;[[10; 20; 30; 40; 50; 60; 70; 80; 90; 100]] : _ i32 _)
00:00:50 #956 [Verbose] > |> am.iter fun s =>
00:00:50 #957 [Verbose] > inl s = .^(0, s)
00:00:50 #958 [Verbose] > inl result = zeta s
00:00:50 #959 [Verbose] > result |> re |> _assert_ne 0
00:00:50 #960 [Verbose] > result |> im |> _assert_ne 0
00:00:51 #961 [Verbose] > Building /tmp/!dotnet-repl/20240325-2027-0822-2296-2e24909a1a3d/main.spi
00:00:51 #962 [Verbose] >
00:00:51 #963 [Verbose] > ╭─[ 144.55ms - stdout ]────────────────────────────────────────────────────────╮
00:00:51 #964 [Verbose] > │ () │
00:00:51 #965 [Verbose] > │ │
00:00:51 #966 [Verbose] > │ │
00:00:51 #967 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:51 #968 [Verbose] >
00:00:51 #969 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:51 #970 [Verbose] > // // test
00:00:51 #971 [Verbose] > // // rust=
00:00:51 #972 [Verbose] > // // print_code=false
00:00:51 #973 [Verbose] >
00:00:51 #974 [Verbose] > types ()
00:00:51 #975 [Verbose] > test_imaginary_axis true
00:00:51 #976 [Verbose] > Building /tmp/!dotnet-repl/20240325-2027-0837-3744-30cd58ffe3a8/main.spi
00:00:56 #977 [Verbose] >
00:00:56 #978 [Verbose] > ╭─[ 5.03s - return value ]─────────────────────────────────────────────────────╮
00:00:56 #979 [Verbose] > │ zeta_ / s: (0.0, 10.0) / count: 0 │
00:00:56 #980 [Verbose] > │ call(zeta_) / f_code.co_name: zeta / f_locals: s=10j, a=1, derivative=0, │
00:00:56 #981 [Verbose] > │ method=None, kwargs={} / f_lineno: 528 / f_code.co_filename: │
00:00:56 #982 [Verbose] > │ /mpmath/functions/zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:00:56 #983 [Verbose] > │ / arg: None │
00:00:56 #984 [Verbose] > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=10j, a=1, derivative=0, │
00:00:56 #985 [Verbose] > │ method=None, kwargs={} / f_lineno: 530 / f_code.co_filename: │
00:00:56 #986 [Verbose] > │ /mpmath/functions/zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:00:56 #987 [Verbose] > │ / arg: None │
00:00:56 #988 [Verbose] > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=10j, a=1, derivative=0, │
00:00:56 #989 [Verbose] > │ method=None, kwargs={}, d=0 / f_lineno: 531 / f_code.co_filename: │
00:00:56 #990 [Verbose] > │ /mpmath/functions/zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:00:56 #991 [Verbose] > │ / arg: None │
00:00:56 #992 [Verbose] > │ line(zeta_) / f_code.co_name: zeta / f_... │
00:00:56 #993 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:56 #994 [Verbose] >
00:00:56 #995 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:56 #996 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:56 #997 [Verbose] > │ ## test_critical_strip │
00:00:56 #998 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:56 #999 [Verbose] >
00:00:56 #1000 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:56 #1001 [Verbose] > inl test_critical_strip log = run_test log (3u8, 2u8) fun zeta, gamma =>
00:00:56 #1002 [Verbose] > ;[[
00:00:56 #1003 [Verbose] > .^(0.5, 14.134725)
00:00:56 #1004 [Verbose] > .^(0.75, 20.5)
00:00:56 #1005 [Verbose] > .^(1.25, 30.1)
00:00:56 #1006 [Verbose] > .^(0.25, 40.0)
00:00:56 #1007 [Verbose] > .^(1.0, 50.0)
00:00:56 #1008 [Verbose] > ]]
00:00:56 #1009 [Verbose] > |> fun x => a x : _ i32 _
00:00:56 #1010 [Verbose] > |> am.iter fun s =>
00:00:56 #1011 [Verbose] > inl result = zeta s
00:00:56 #1012 [Verbose] > result |> re |> _assert_ne 0
00:00:56 #1013 [Verbose] > result |> im |> _assert_ne 0
00:00:56 #1014 [Verbose] > Building /tmp/!dotnet-repl/20240325-2027-1341-4174-4e438a37575d/main.spi
00:00:56 #1015 [Verbose] >
00:00:56 #1016 [Verbose] > ╭─[ 143.77ms - stdout ]────────────────────────────────────────────────────────╮
00:00:56 #1017 [Verbose] > │ () │
00:00:56 #1018 [Verbose] > │ │
00:00:56 #1019 [Verbose] > │ │
00:00:56 #1020 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:56 #1021 [Verbose] >
00:00:56 #1022 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:56 #1023 [Verbose] > // // test
00:00:56 #1024 [Verbose] > // // rust=
00:00:56 #1025 [Verbose] > // // print_code=false
00:00:56 #1026 [Verbose] >
00:00:56 #1027 [Verbose] > types ()
00:00:56 #1028 [Verbose] > test_critical_strip true
00:00:56 #1029 [Verbose] > Building /tmp/!dotnet-repl/20240325-2027-1356-5604-5b89b571f6be/main.spi
00:01:01 #1030 [Verbose] >
00:01:01 #1031 [Verbose] > ╭─[ 4.81s - return value ]─────────────────────────────────────────────────────╮
00:01:01 #1032 [Verbose] > │ zeta_ / s: (0.5, 14.134725) / count: 0 │
00:01:01 #1033 [Verbose] > │ call(zeta_) / f_code.co_name: zeta / f_locals: s=(0.5+14.134725j), a=1, │
00:01:01 #1034 [Verbose] > │ derivative=0, method=None, kwargs={} / f_lineno: 528 / f_code.co_filename: │
00:01:01 #1035 [Verbose] > │ /mpmath/functions/zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:01:01 #1036 [Verbose] > │ / arg: None │
00:01:01 #1037 [Verbose] > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(0.5+14.134725j), a=1, │
00:01:01 #1038 [Verbose] > │ derivative=0, method=None, kwargs={} / f_lineno: 530 / f_code.co_filename: │
00:01:01 #1039 [Verbose] > │ /mpmath/functions/zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:01:01 #1040 [Verbose] > │ / arg: None │
00:01:01 #1041 [Verbose] > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(0.5+14.134725j), a=1, │
00:01:01 #1042 [Verbose] > │ derivative=0, method=None, kwargs={}, d=0 / f_lineno: 531 / │
00:01:01 #1043 [Verbose] > │ f_code.co_filename: /mpmath/functions/zeta.py / f_back.f_lineno: 25 / │
00:01:01 #1044 [Verbose] > │ f_back.f_code.co_filename: / arg: ... │
00:01:01 #1045 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:01 #1046 [Verbose] >
00:01:01 #1047 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:01:01 #1048 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:01 #1049 [Verbose] > │ ## test_reflection_formula_for_specific_value │
00:01:01 #1050 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:01 #1051 [Verbose] >
00:01:01 #1052 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:01 #1053 [Verbose] > inl test_reflection_formula_for_specific_value log = run_test log (3u8, 2u8) fun
00:01:01 #1054 [Verbose] > zeta, gamma =>
00:01:01 #1055 [Verbose] > ;[[
00:01:01 #1056 [Verbose] > .^(3, 4)
00:01:01 #1057 [Verbose] > .^(2.5, -3.5)
00:01:01 #1058 [Verbose] > .^(1.5, 2.5)
00:01:01 #1059 [Verbose] > .^(0.5, 14.134725)
00:01:01 #1060 [Verbose] > ]]
00:01:01 #1061 [Verbose] > |> fun x => a x : _ i32 _
00:01:01 #1062 [Verbose] > |> am.iter fun s =>
00:01:01 #1063 [Verbose] > inl lhs = zeta s
00:01:01 #1064 [Verbose] > inl reflection_coefficient =
00:01:01 #1065 [Verbose] > (.^(2, 0) .** s)
00:01:01 #1066 [Verbose] > .* (.^(pi, 0) .** (s .- .^(1, 0)))
00:01:01 #1067 [Verbose] > .* (.^(pi, 0) .* s ./ .^(2, 0) |> complex_sin)
00:01:01 #1068 [Verbose] > .* gamma (.^(1, 0) .- s)
00:01:01 #1069 [Verbose] >
00:01:01 #1070 [Verbose] > inl one_minus_s = .^(1 - re s, -(im s))
00:01:01 #1071 [Verbose] > inl rhs = reflection_coefficient .* zeta one_minus_s
00:01:01 #1072 [Verbose] >
00:01:01 #1073 [Verbose] > re lhs - re rhs |> abs |> _assert_lt 0.0001
00:01:01 #1074 [Verbose] > im lhs - im rhs |> abs |> _assert_lt 0.0001
00:01:01 #1075 [Verbose] > Building /tmp/!dotnet-repl/20240325-2027-1837-3756-3fd392783b15/main.spi
00:01:01 #1076 [Verbose] >
00:01:01 #1077 [Verbose] > ╭─[ 141.34ms - stdout ]────────────────────────────────────────────────────────╮
00:01:01 #1078 [Verbose] > │ () │
00:01:01 #1079 [Verbose] > │ │
00:01:01 #1080 [Verbose] > │ │
00:01:01 #1081 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:01 #1082 [Verbose] >
00:01:01 #1083 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:01 #1084 [Verbose] > // // test
00:01:01 #1085 [Verbose] > // // rust=
00:01:01 #1086 [Verbose] > // // print_code=false
00:01:01 #1087 [Verbose] >
00:01:01 #1088 [Verbose] > types ()
00:01:01 #1089 [Verbose] > test_reflection_formula_for_specific_value true
00:01:01 #1090 [Verbose] > Building /tmp/!dotnet-repl/20240325-2027-1851-5169-5bbf20e906fc/main.spi
00:01:06 #1091 [Verbose] >
00:01:06 #1092 [Verbose] > ╭─[ 4.97s - return value ]─────────────────────────────────────────────────────╮
00:01:06 #1093 [Verbose] > │ zeta_ / s: (3.0, 4.0) / count: 0 │
00:01:06 #1094 [Verbose] > │ call(zeta_) / f_code.co_name: zeta / f_locals: s=(3+4j), a=1, derivative=0, │
00:01:06 #1095 [Verbose] > │ method=None, kwargs={} / f_lineno: 528 / f_code.co_filename: │
00:01:06 #1096 [Verbose] > │ /mpmath/functions/zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:01:06 #1097 [Verbose] > │ / arg: None │
00:01:06 #1098 [Verbose] > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(3+4j), a=1, derivative=0, │
00:01:06 #1099 [Verbose] > │ method=None, kwargs={} / f_lineno: 530 / f_code.co_filename: │
00:01:06 #1100 [Verbose] > │ /mpmath/functions/zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:01:06 #1101 [Verbose] > │ / arg: None │
00:01:06 #1102 [Verbose] > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(3+4j), a=1, derivative=0, │
00:01:06 #1103 [Verbose] > │ method=None, kwargs={}, d=0 / f_lineno: 531 / f_code.co_filename: │
00:01:06 #1104 [Verbose] > │ /mpmath/functions/zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:01:06 #1105 [Verbose] > │ / arg: None │
00:01:06 #1106 [Verbose] > │ line(zeta_) / f_code.co_name: z... │
00:01:06 #1107 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:06 #1108 [Verbose] >
00:01:06 #1109 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:01:06 #1110 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:06 #1111 [Verbose] > │ ## test_euler_product_formula │
00:01:06 #1112 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:06 #1113 [Verbose] >
00:01:06 #1114 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:06 #1115 [Verbose] > inl test_euler_product_formula log = run_test log (3u8, 2u8) fun zeta, gamma =>
00:01:06 #1116 [Verbose] > inl s_values = ;[[2; 2.5; 3; 3.5; 4; 4.5; 5]]
00:01:06 #1117 [Verbose] > inl primes = ;[[2; 3; 5; 7; 11; 13; 17; 19; 23; 29; 31; 37; 41; 43; 47; 53;
00:01:06 #1118 [Verbose] > 59; 61; 67; 71]]
00:01:06 #1119 [Verbose] > (a s_values : _ i32 _)
00:01:06 #1120 [Verbose] > |> am.iter fun s_re =>
00:01:06 #1121 [Verbose] > inl s = .^(s_re, 0)
00:01:06 #1122 [Verbose] > inl product =
00:01:06 #1123 [Verbose] > (1, (a primes : _ i32 _))
00:01:06 #1124 [Verbose] > ||> am.fold fun acc x =>
00:01:06 #1125 [Verbose] > acc * 1 / (1 - x ** -s_re)
00:01:06 #1126 [Verbose] >
00:01:06 #1127 [Verbose] > inl result = zeta s
00:01:06 #1128 [Verbose] > re result - product |> abs |> _assert_lt 0.01
00:01:06 #1129 [Verbose] > result |> im |> _assert_lt 0.01
00:01:06 #1130 [Verbose] > Building /tmp/!dotnet-repl/20240325-2027-2348-4898-486f42a2e9d0/main.spi
00:01:06 #1131 [Verbose] >
00:01:06 #1132 [Verbose] > ╭─[ 143.33ms - stdout ]────────────────────────────────────────────────────────╮
00:01:06 #1133 [Verbose] > │ () │
00:01:06 #1134 [Verbose] > │ │
00:01:06 #1135 [Verbose] > │ │
00:01:06 #1136 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:06 #1137 [Verbose] >
00:01:06 #1138 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:06 #1139 [Verbose] > // // test
00:01:06 #1140 [Verbose] > // // rust=
00:01:06 #1141 [Verbose] > // // print_code=false
00:01:06 #1142 [Verbose] >
00:01:06 #1143 [Verbose] > types ()
00:01:06 #1144 [Verbose] > test_euler_product_formula true
00:01:06 #1145 [Verbose] > Building /tmp/!dotnet-repl/20240325-2027-2363-6334-650c13580f7a/main.spi
00:01:11 #1146 [Verbose] >
00:01:11 #1147 [Verbose] > ╭─[ 4.83s - return value ]─────────────────────────────────────────────────────╮
00:01:11 #1148 [Verbose] > │ zeta_ / s: (2.0, 0.0) / count: 0 │
00:01:11 #1149 [Verbose] > │ call(zeta_) / f_code.co_name: zeta / f_locals: s=(2+0j), a=1, derivative=0, │
00:01:11 #1150 [Verbose] > │ method=None, kwargs={} / f_lineno: 528 / f_code.co_filename: │
00:01:11 #1151 [Verbose] > │ /mpmath/functions/zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:01:11 #1152 [Verbose] > │ / arg: None │
00:01:11 #1153 [Verbose] > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2+0j), a=1, derivative=0, │
00:01:11 #1154 [Verbose] > │ method=None, kwargs={} / f_lineno: 530 / f_code.co_filename: │
00:01:11 #1155 [Verbose] > │ /mpmath/functions/zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:01:11 #1156 [Verbose] > │ / arg: None │
00:01:11 #1157 [Verbose] > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2+0j), a=1, derivative=0, │
00:01:11 #1158 [Verbose] > │ method=None, kwargs={}, d=0 / f_lineno: 531 / f_code.co_filename: │
00:01:11 #1159 [Verbose] > │ /mpmath/functions/zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:01:11 #1160 [Verbose] > │ / arg: None │
00:01:11 #1161 [Verbose] > │ line(zeta_) / f_code.co_name: z... │
00:01:11 #1162 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:11 #1163 [Verbose] >
00:01:11 #1164 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:01:11 #1165 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:11 #1166 [Verbose] > │ ## graph │
00:01:11 #1167 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:11 #1168 [Verbose] >
00:01:11 #1169 [Verbose] > ── mermaid ─────────────────────────────────────────────────────────────────────
00:01:11 #1170 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:11 #1171 [Verbose] > │ <div class="mermaidMarkdownContainer" style="background-color:white"> │
00:01:11 #1172 [Verbose] > │ <link rel="stylesheet" │
00:01:11 #1173 [Verbose] > │ href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.0/css/all.min. │
00:01:11 #1174 [Verbose] > │ css"> │
00:01:11 #1175 [Verbose] > │ <div id="4abe421e2cbd4bad88ba944758d40a8d"></div> │
00:01:11 #1176 [Verbose] > │ <script type="module"> │
00:01:11 #1177 [Verbose] > │ │
00:01:11 #1178 [Verbose] > │ import mermaid from │
00:01:11 #1179 [Verbose] > │ 'https://cdn.jsdelivr.net/npm/mermaid@10.6.1/dist/mermaid.esm.min.mjs'; │
00:01:11 #1180 [Verbose] > │ let renderTarget = │
00:01:11 #1181 [Verbose] > │ document.getElementById('4abe421e2cbd4bad88ba944758d40a8d'); │
00:01:11 #1182 [Verbose] > │ try { │
00:01:11 #1183 [Verbose] > │ const {svg, bindFunctions} = await │
00:01:11 #1184 [Verbose] > │ mermaid.mermaidAPI.render( │
00:01:11 #1185 [Verbose] > │ 'mermaid_4abe421e2cbd4bad88ba944758d40a8d', │
00:01:11 #1186 [Verbose] > │ `graph TD │
00:01:11 #1187 [Verbose] > │ zeta("zeta()") --> convert │
00:01:11 #1188 [Verbose] > │ zeta --> f["f()"] │
00:01:11 #1189 [Verbose] > │ f --> mpc_f["mpc_zeta()"] │
00:01:11 #1190 [Verbose] > │ f --> mpf_f["mpf_zeta()"] │
00:01:11 #1191 [Verbose] > │ convert --> from_float │
00:01:11 #1192 [Verbose] > │ from_float --> from_man_exp │
00:01:11 #1193 [Verbose] > │ from_man_exp --> python_bitcount │
00:01:11 #1194 [Verbose] > │ python_bitcount --> _normalize │
00:01:11 #1195 [Verbose] > │ _normalize --> make_mpc │
00:01:11 #1196 [Verbose] > │ make_mpc --> mpc_zeta["mpc_zeta()"] │
00:01:11 #1197 [Verbose] > │ mpc_zeta --> mpf_zeta["mpf_zeta()"] │
00:01:11 #1198 [Verbose] > │ mpf_zeta --> to_int │
00:01:11 #1199 [Verbose] > │ to_int --> mpf_zeta_int["mpf_zeta_int()"] │
00:01:11 #1200 [Verbose] > │ mpf_zeta_int --> borwein_coefficients │
00:01:11 #1201 [Verbose] > │ borwein_coefficients --> from_man_exp_2("from_man_exp()") │
00:01:11 #1202 [Verbose] > │ from_man_exp_2 --> python_bitcount_2("python_bitcount()") │
00:01:11 #1203 [Verbose] > │ python_bitcount_2 --> _normalize_2("_normalize()") │
00:01:11 #1204 [Verbose] > │ _normalize_2 --> make_mpc_2("make_mpc()") │
00:01:11 #1205 [Verbose] > │ make_mpc_2 --> stop_trace │
00:01:11 #1206 [Verbose] > │ mpf_zeta_int --> mpf_bernoulli │
00:01:11 #1207 [Verbose] > │ mpf_bernoulli --> bernoulli_size │
00:01:11 #1208 [Verbose] > │ bernoulli_size --> mpf_rdiv_int │
00:01:11 #1209 [Verbose] > │ mpf_rdiv_int --> python_bitcount_3("python_bitcount()") │
00:01:11 #1210 [Verbose] > │ python_bitcount_3 --> _normalize1 │
00:01:11 #1211 [Verbose] > │ _normalize1 --> from_man_exp_3("from_man_exp()") │
00:01:11 #1212 [Verbose] > │ from_man_exp_3 --> _normalize_3("_normalize()") │
00:01:11 #1213 [Verbose] > │ _normalize_3 --> mpf_sub │
00:01:11 #1214 [Verbose] > │ mpf_sub --> mpf_add │
00:01:11 #1215 [Verbose] > │ mpf_add --> mpf_neg │
00:01:11 #1216 [Verbose] > │ mpf_neg --> _normalize1_2("_normalize1()") │
00:01:11 #1217 [Verbose] > │ _normalize1_2 --> from_int │
00:01:11 #1218 [Verbose] > │ from_int --> mpf_div │
00:01:11 #1219 [Verbose] > │ mpf_div --> python_bitcount_4("python_bitcount()") │
00:01:11 #1220 [Verbose] > │ python_bitcount_4 --> _normalize1_3("_normalize1()") │
00:01:11 #1221 [Verbose] > │ _normalize1_3 --> make_mpc_3("make_mpc()") │
00:01:11 #1222 [Verbose] > │ make_mpc_3 --> final_stop["stop_trace()"]`); │
00:01:11 #1223 [Verbose] > │ renderTarget.innerHTML = svg; │
00:01:11 #1224 [Verbose] > │ bindFunctions?.(renderTarget); │
00:01:11 #1225 [Verbose] > │ } │
00:01:11 #1226 [Verbose] > │ catch (error) { │
00:01:11 #1227 [Verbose] > │ console.log(error); │
00:01:11 #1228 [Verbose] > │ } │
00:01:11 #1229 [Verbose] > │ </script> │
00:01:11 #1230 [Verbose] > │ </div> │
00:01:11 #1231 [Verbose] > │ │
00:01:11 #1232 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:11 #1233 [Verbose] >
00:01:11 #1234 [Verbose] > ── mermaid ─────────────────────────────────────────────────────────────────────
00:01:11 #1235 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:11 #1236 [Verbose] > │ <div class="mermaidMarkdownContainer" style="background-color:white"> │
00:01:11 #1237 [Verbose] > │ <link rel="stylesheet" │
00:01:11 #1238 [Verbose] > │ href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.0/css/all.min. │
00:01:11 #1239 [Verbose] > │ css"> │
00:01:11 #1240 [Verbose] > │ <div id="021cec33273b4a42993030e0f832c860"></div> │
00:01:11 #1241 [Verbose] > │ <script type="module"> │
00:01:11 #1242 [Verbose] > │ │
00:01:11 #1243 [Verbose] > │ import mermaid from │
00:01:11 #1244 [Verbose] > │ 'https://cdn.jsdelivr.net/npm/mermaid@10.6.1/dist/mermaid.esm.min.mjs'; │
00:01:11 #1245 [Verbose] > │ let renderTarget = │
00:01:11 #1246 [Verbose] > │ document.getElementById('021cec33273b4a42993030e0f832c860'); │
00:01:11 #1247 [Verbose] > │ try { │
00:01:11 #1248 [Verbose] > │ const {svg, bindFunctions} = await │
00:01:11 #1249 [Verbose] > │ mermaid.mermaidAPI.render( │
00:01:11 #1250 [Verbose] > │ 'mermaid_021cec33273b4a42993030e0f832c860', │
00:01:11 #1251 [Verbose] > │ `graph TD │
00:01:11 #1252 [Verbose] > │ zeta_rust("zeta() - Rust") --> num_traits("num-traits") │
00:01:11 #1253 [Verbose] > │ zeta_rust --> num_bigint("num-bigint") │
00:01:11 #1254 [Verbose] > │ zeta_rust --> rust_decimal("rust_decimal for precision") │
00:01:11 #1255 [Verbose] > │ zeta_rust --> error_handling("Rust Error Handling") │
00:01:11 #1256 [Verbose] > │ │
00:01:11 #1257 [Verbose] > │ num_traits --> num_traits_usage("Use for common traits") │
00:01:11 #1258 [Verbose] > │ num_bigint --> bigint_operations("Arbitrary-precision arithmetic │
00:01:11 #1259 [Verbose] > │ operations") │
00:01:11 #1260 [Verbose] > │ rust_decimal --> decimal_operations("High-precision decimal operations") │
00:01:11 #1261 [Verbose] > │ error_handling --> result_type("Use Result<T, E> for error handling") │
00:01:11 #1262 [Verbose] > │ │
00:01:11 #1263 [Verbose] > │ bigint_operations --> convert_rust("convert() - Rust") │
00:01:11 #1264 [Verbose] > │ bigint_operations --> normalize_rust("_normalize() - Rust") │
00:01:11 #1265 [Verbose] > │ │
00:01:11 #1266 [Verbose] > │ convert_rust --> from_float_rust("from_float() - Rust") │
00:01:11 #1267 [Verbose] > │ from_float_rust --> from_man_exp_rust("from_man_exp() - Rust") │
00:01:11 #1268 [Verbose] > │ from_man_exp_rust --> bitcount_rust("bitcount() - Rust") │
00:01:11 #1269 [Verbose] > │ bitcount_rust --> normalize_rust │
00:01:11 #1270 [Verbose] > │ normalize_rust --> mpc_zeta_rust("mpc_zeta() - Rust") │
00:01:11 #1271 [Verbose] > │ mpc_zeta_rust --> mpf_zeta_rust("mpf_zeta() - Rust") │
00:01:11 #1272 [Verbose] > │ mpf_zeta_rust --> to_int_rust("to_int() - Rust") │
00:01:11 #1273 [Verbose] > │ to_int_rust --> mpf_zeta_int_rust("mpf_zeta_int() - Rust") │
00:01:11 #1274 [Verbose] > │ │
00:01:11 #1275 [Verbose] > │ mpf_zeta_int_rust --> borwein_coefficients_rust("borwein_coefficients() │
00:01:11 #1276 [Verbose] > │ - Rust") │
00:01:11 #1277 [Verbose] > │ borwein_coefficients_rust --> from_man_exp_rust_2("from_man_exp() - │
00:01:11 #1278 [Verbose] > │ Rust") │
00:01:11 #1279 [Verbose] > │ from_man_exp_rust_2 --> bitcount_rust_2("bitcount() - Rust") │
00:01:11 #1280 [Verbose] > │ bitcount_rust_2 --> normalize_rust_2("_normalize() - Rust") │
00:01:11 #1281 [Verbose] > │ normalize_rust_2 --> make_mpc_rust("make_mpc() - Rust") │
00:01:11 #1282 [Verbose] > │ │
00:01:11 #1283 [Verbose] > │ mpf_zeta_int_rust --> mpf_bernoulli_rust("mpf_bernoulli() - Rust") │
00:01:11 #1284 [Verbose] > │ mpf_bernoulli_rust --> bernoulli_size_rust("bernoulli_size() - Rust") │
00:01:11 #1285 [Verbose] > │ bernoulli_size_rust --> mpf_rdiv_int_rust("mpf_rdiv_int() - Rust") │
00:01:11 #1286 [Verbose] > │ mpf_rdiv_int_rust --> bitcount_rust_3("bitcount() - Rust") │
00:01:11 #1287 [Verbose] > │ bitcount_rust_3 --> normalize1_rust("_normalize1() - Rust") │
00:01:11 #1288 [Verbose] > │ normalize1_rust --> from_man_exp_rust_3("from_man_exp() - Rust") │
00:01:11 #1289 [Verbose] > │ from_man_exp_rust_3 --> normalize_rust_3("_normalize() - Rust") │
00:01:11 #1290 [Verbose] > │ normalize_rust_3 --> mpf_sub_rust("mpf_sub() - Rust") │
00:01:11 #1291 [Verbose] > │ mpf_sub_rust --> mpf_add_rust("mpf_add() - Rust") │
00:01:11 #1292 [Verbose] > │ mpf_add_rust --> mpf_neg_rust("mpf_neg() - Rust") │
00:01:11 #1293 [Verbose] > │ mpf_neg_rust --> normalize1_rust_2("_normalize1() - Rust") │
00:01:11 #1294 [Verbose] > │ normalize1_rust_2 --> from_int_rust("from_int() - Rust") │
00:01:11 #1295 [Verbose] > │ from_int_rust --> mpf_div_rust("mpf_div() - Rust") │
00:01:11 #1296 [Verbose] > │ mpf_div_rust --> bitcount_rust_4("bitcount() - Rust") │
00:01:11 #1297 [Verbose] > │ bitcount_rust_4 --> normalize1_rust_3("_normalize1() - Rust") │
00:01:11 #1298 [Verbose] > │ │
00:01:11 #1299 [Verbose] > │ style zeta_rust fill:#f9f,stroke:#333,stroke-width:4px │
00:01:11 #1300 [Verbose] > │ style num_traits fill:#bbf,stroke:#333,stroke-width:2px │
00:01:11 #1301 [Verbose] > │ style num_bigint fill:#bbf,stroke:#333,stroke-width:2px │
00:01:11 #1302 [Verbose] > │ style rust_decimal fill:#bbf,stroke:#333,stroke-width:2px │
00:01:11 #1303 [Verbose] > │ style error_handling fill:#bbf,stroke:#333,stroke-width:2px │
00:01:11 #1304 [Verbose] > │ style bigint_operations fill:#bfb,stroke:#333,stroke-width:2px │
00:01:11 #1305 [Verbose] > │ style decimal_operations fill:#bfb,stroke:#333,stroke-width:2px │
00:01:11 #1306 [Verbose] > │ style result_type fill:#bfb,stroke:#333,stroke-width:2px`); │
00:01:11 #1307 [Verbose] > │ renderTarget.innerHTML = svg; │
00:01:11 #1308 [Verbose] > │ bindFunctions?.(renderTarget); │
00:01:11 #1309 [Verbose] > │ } │
00:01:11 #1310 [Verbose] > │ catch (error) { │
00:01:11 #1311 [Verbose] > │ console.log(error); │
00:01:11 #1312 [Verbose] > │ } │
00:01:11 #1313 [Verbose] > │ </script> │
00:01:11 #1314 [Verbose] > │ </div> │
00:01:11 #1315 [Verbose] > │ │
00:01:11 #1316 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:11 #1317 [Verbose] >
00:01:11 #1318 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:01:11 #1319 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:11 #1320 [Verbose] > │ ## tests │
00:01:11 #1321 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:11 #1322 [Verbose] >
00:01:11 #1323 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:11 #1324 [Verbose] > inl tests () =
00:01:11 #1325 [Verbose] > !\($'"}//"') : ()
00:01:11 #1326 [Verbose] >
00:01:11 #1327 [Verbose] > !\($'"#[[test]] fn test_zeta_at_known_values_() { //"') : ()
00:01:11 #1328 [Verbose] > test_zeta_at_known_values_ false
00:01:11 #1329 [Verbose] > !\($'"} #[[test]] fn test_zeta_at_2_minus2() { //"') : ()
00:01:11 #1330 [Verbose] > test_zeta_at_2_minus2 false
00:01:11 #1331 [Verbose] > !\($'"} #[[test]] fn test_trivial_zero_at_negative_even___() { //"') : ()
00:01:11 #1332 [Verbose] > test_trivial_zero_at_negative_even___ false
00:01:11 #1333 [Verbose] > !\($'"} #[[test]] fn test_non_trivial_zero___() { //"') : ()
00:01:11 #1334 [Verbose] > test_non_trivial_zero___ false
00:01:11 #1335 [Verbose] > !\($'"} #[[test]] fn test_real_part_greater_than_one___() { //"') : ()
00:01:11 #1336 [Verbose] > test_real_part_greater_than_one___ false
00:01:11 #1337 [Verbose] > !\($'"} #[[test]] fn test_zeta_at_1___() { //"') : ()
00:01:11 #1338 [Verbose] > test_zeta_at_1___ false
00:01:11 #1339 [Verbose] > !\($'"} #[[test]] fn test_symmetry_across_real_axis___() { //"') : ()
00:01:11 #1340 [Verbose] > test_symmetry_across_real_axis___ false
00:01:11 #1341 [Verbose] > !\($'"} #[[test]] fn test_behavior_near_origin___() { //"') : ()
00:01:11 #1342 [Verbose] > test_behavior_near_origin___ false
00:01:11 #1343 [Verbose] > !\($'"} #[[test]] fn test_imaginary_axis() { //"') : ()
00:01:11 #1344 [Verbose] > test_imaginary_axis false
00:01:11 #1345 [Verbose] > !\($'"} #[[test]] fn test_critical_strip() { //"') : ()
00:01:11 #1346 [Verbose] > test_critical_strip false
00:01:11 #1347 [Verbose] > !\($'"} #[[test]] fn test_reflection_formula_for_specific_value() { //"') :
00:01:11 #1348 [Verbose] > ()
00:01:11 #1349 [Verbose] > test_reflection_formula_for_specific_value false
00:01:11 #1350 [Verbose] > !\($'"} #[[test]] fn test_euler_product_formula() { //"') : ()
00:01:11 #1351 [Verbose] > test_euler_product_formula false
00:01:11 #1352 [Verbose] > Building /tmp/!dotnet-repl/20240325-2027-2848-4869-4b35eb1cbc60/main.spi
00:01:11 #1353 [Verbose] >
00:01:11 #1354 [Verbose] > ╭─[ 149.15ms - stdout ]────────────────────────────────────────────────────────╮
00:01:11 #1355 [Verbose] > │ () │
00:01:11 #1356 [Verbose] > │ │
00:01:11 #1357 [Verbose] > │ │
00:01:11 #1358 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:11 #1359 [Verbose] >
00:01:11 #1360 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:11 #1361 [Verbose] > // // rust=
00:01:11 #1362 [Verbose] >
00:01:11 #1363 [Verbose] > inl main (_args : array_base string) =
00:01:11 #1364 [Verbose] > inl value = 1i32
00:01:11 #1365 [Verbose] > console.write_line ($"$\"value: {!value}\"" : string)
00:01:11 #1366 [Verbose] > 0i32
00:01:11 #1367 [Verbose] >
00:01:11 #1368 [Verbose] > inl main () =
00:01:11 #1369 [Verbose] > types ()
00:01:11 #1370 [Verbose] > $"let tests () = !tests ()" : ()
00:01:11 #1371 [Verbose] > $"let main args = !main args" : ()
00:01:11 #1372 [Verbose] > Building /tmp/!dotnet-repl/20240325-2027-2863-6359-658c1e18d0bc/main.spi
00:01:11 #1373 [Verbose] >
00:01:11 #1374 [Verbose] > ╭─[ 210.28ms - stdout ]────────────────────────────────────────────────────────╮
00:01:11 #1375 [Verbose] > │ │
00:01:11 #1376 [Verbose] > │ .fsx: │
00:01:11 #1377 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("Func0<$0>")>] type Func0<'T> = class │
00:01:11 #1378 [Verbose] > │ end │
00:01:11 #1379 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("Func1<$0, $1>")>] type Func0<'T, 'U> = │
00:01:11 #1380 [Verbose] > │ class end │
00:01:11 #1381 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("Box<$0>")>] type Box<'T> = class end │
00:01:11 #1382 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("dyn $0")>] type Dyn<'T> = class end │
00:01:11 #1383 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("Fn() -> $0")>] type Fn<'T> = class end │
00:01:11 #1384 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("Fn()")>] type FnUnit = class end │
00:01:11 #1385 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("FnOnce() -> $0")>] type FnOnce<'T> = │
00:01:11 #1386 [Verbose] > │ class end │
00:01:11 #1387 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("Fn($0, $1)")>] type ActionFn2<'T, 'U> = │
00:01:11 #1388 [Verbose] > │ class end │
00:01:11 #1389 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("impl $0")>] type Impl<'T> = class end │
00:01:11 #1390 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("mut $0")>] type Mut<'T> = class end │
00:01:11 #1391 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("&$0")>] type Ref<'T> = class end │
00:01:11 #1392 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("&'static $0")>] type StaticRef<'T> = │
00:01:11 #1393 [Verbose] > │ class end │
00:01:11 #1394 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("MutCell<$0>")>] type MutCell<'T> = │
00:01:11 #1395 [Verbose] > │ class end │
00:01:11 #1396 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::any::Any")>] type std_any_Any = │
00:01:11 #1397 [Verbose] > │ class end │
00:01:11 #1398 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::cell::RefCell<$0>")>] type │
00:01:11 #1399 [Verbose] > │ std_cell_RefCell<'T> = class end │
00:01:11 #1400 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::pin::Pin<$0>")>] type │
00:01:11 #1401 [Verbose] > │ std_pin_Pin<'T> = class end │
00:01:11 #1402 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::rc::Rc<$0>")>] type std_rc_Rc<'T> │
00:01:11 #1403 [Verbose] > │ = class end │
00:01:11 #1404 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::rc::Weak<$0>")>] type │
00:01:11 #1405 [Verbose] > │ std_rc_Weak<'T> = class end │
00:01:11 #1406 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::sync::Arc<$0>")>] type │
00:01:11 #1407 [Verbose] > │ std_sync_Arc<'T> = class end │
00:01:11 #1408 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("str")>] type Str = class end │
00:01:11 #1409 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("base64::DecodeError")>] type │
00:01:11 #1410 [Verbose] > │ base64_DecodeError = class end │
00:01:11 #1411 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("borsh::io::Error")>] type │
00:01:11 #1412 [Verbose] > │ borsh_io_Error = class end │
00:01:11 #1413 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("js_sys::JsString")>] type │
00:01:11 #1414 [Verbose] > │ js_sys_JsString = class end │
00:01:11 #1415 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("serde_json::Error")>] type │
00:01:11 #1416 [Verbose] > │ serde_json_Error = class end │
00:01:11 #1417 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("serde_json::Value")>] type │
00:01:11 #1418 [Verbose] > │ serde_json_Value = class end │
00:01:11 #1419 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("serde_wasm_bindgen::Error")>] type │
00:01:11 #1420 [Verbose] > │ serde_wasm_bindgen_Error = class end │
00:01:11 #1421 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::str::Utf8Error")>] type │
00:01:11 #1422 [Verbose] > │ std_str_Utf8Error = class end │
00:01:11 #1423 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::string::String")>] type │
00:01:11 #1424 [Verbose] > │ std_string_String = class end │
00:01:11 #1425 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("num_complex::Complex<$0>")>] type │
00:01:11 #1426 [Verbose] > │ num_complex_Complex<'T> = class end │
00:01:11 #1427 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("pyo3::types::PyModule")>] type │
00:01:11 #1428 [Verbose] > │ pyo3_types_PyModule = class end │
00:01:11 #1429 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("pyo3::Bound<$0>")>] type pyo3_Bound<'T> │
00:01:11 #1430 [Verbose] > │ = class end │
00:01:11 #1431 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("pyo3::Python")>] type pyo3_Python = │
00:01:11 #1432 [Verbose] > │ class end │
00:01:11 #1433 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("pyo3::PyAny")>] type pyo3_PyAny = class │
00:01:11 #1434 [Verbose] > │ end │
00:01:11 #1435 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("pyo3::PyErr")>] type pyo3_PyErr = class │
00:01:11 #1436 [Verbose] > │ end │
00:01:11 #1437 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () "); │
00:01:11 #1438 [Verbose] > │ use pyo3::prelude::PyAnyMethods; │
00:01:11 #1439 [Verbose] > │ //" │
00:01:11 #1440 [Verbose] > │ type Mut0 = {mutable l0 : int32} │
00:01:11 #1441 [Verbose] > │ and Mut1 = {mutable l0 : int32; mutable l1 : string} │
00:01:11 #1442 [Verbose] > │ and Mut2 = {mutable l0 : int32; mutable l1 : num_complex_Complex<float>} │
00:01:11 #1443 [Verbose] > │ and [<Struct>] US0 = │
00:01:11 #1444 [Verbose] > │ | US0_0 │
00:01:11 #1445 [Verbose] > │ | US0_1 of f1_0 : num_complex_Complex<float> │
00:01:11 #1446 [Verbose] > │ and UH0 = │
00:01:11 #1447 [Verbose] > │ | UH0_0 of float * UH0 │
00:01:11 #1448 [Verbose] > │ | UH0_1 │
00:01:11 #1449 [Verbose] > │ and Mut3 = {mutable l0 : int32; mutable l1 : float} │
00:01:11 #1450 [Verbose] > │ let rec method2 () : float = │
00:01:11 #1451 [Verbose] > │ 2.0 │
00:01:11 #1452 [Verbose] > │ and method3 (v0 : float) : float = │
00:01:11 #1453 [Verbose] > │ v0 │
00:01:11 #1454 [Verbose] > │ and method4 () : float = │
00:01:11 #1455 [Verbose] > │ 0.0 │
00:01:11 #1456 [Verbose] > │ and method5 () : float = │
00:01:11 #1457 [Verbose] > │ -1.0 │
00:01:11 #1458 [Verbose] > │ and method6 (v0 : (struct (num_complex_Complex<float> * float) [])) : │
00:01:11 #1459 [Verbose] > │ (struct (num_complex_Complex<float> * float) []) = │
00:01:11 #1460 [Verbose] > │ v0 │
00:01:11 #1461 [Verbose] > │ and method7 (v0 : int32, v1 : Mut0) : bool = │
00:01:11 #1462 [Verbose] > │ let v2 : int32 = v1.l0 │
00:01:11 #1463 [Verbose] > │ let v3 : bool = v2 < v0 │
00:01:11 #1464 [Verbose] > │ v3 │
00:01:11 #1465 [Verbose] > │ and method8 (v0 : num_complex_Complex<float>) : num_complex_Complex<float> = │
00:01:11 #1466 [Verbose] > │ v0 │
00:01:11 #1467 [Verbose] > │ and method10 (v0 : (string [])) : (string []) = │
00:01:11 #1468 [Verbose] > │ v0 │
00:01:11 #1469 [Verbose] > │ and method12 (v0 : int32, v1 : Mut1) : bool = │
00:01:11 #1470 [Verbose] > │ let v2 : int32 = v1.l0 │
00:01:11 #1471 [Verbose] > │ let v3 : bool = v2 < v0 │
00:01:11 #1472 [Verbose] > │ v3 │
00:01:11 #1473 [Verbose] > │ and method11 (v0 : (string [])) : string = │
00:01:11 #1474 [Verbose] > │ let v1 : int32 = v0.Length │
00:01:11 #1475 [Verbose] > │ let v2 : string = "" │
00:01:11 #1476 [Verbose] > │ let v3 : Mut1 = {l0 = 0; l1 = v2} : Mut1 │
00:01:11 #1477 [Verbose] > │ while method12(v1, v3) do │
00:01:11 #1478 [Verbose] > │ let v5 : int32 = v3.l0 │
00:01:11 #1479 [Verbose] > │ let v6 : string = v3.l1 │
00:01:11 #1480 [Verbose] > │ let v7 : string = v0.[int v5] │
00:01:11 #1481 [Verbose] > │ let v8 : string = "\n" │
00:01:11 #1482 [Verbose] > │ let v9 : string = v6 + v7 + v8 + "" │
00:01:11 #1483 [Verbose] > │ let v10 : int32 = v5 + 1 │
00:01:11 #1484 [Verbose] > │ v3.l0 <- v10 │
00:01:11 #1485 [Verbose] > │ v3.l1 <- v9 │
00:01:11 #1486 [Verbose] > │ () │
00:01:11 #1487 [Verbose] > │ let v11 : string = v3.l1 │
00:01:11 #1488 [Verbose] > │ v11 │
00:01:11 #1489 [Verbose] > │ and method13 (v0 : num_complex_Complex<float>) : num_complex_Complex<float> │
00:01:11 #1490 [Verbose] > │ = │
00:01:11 #1491 [Verbose] > │ v0 │
00:01:11 #1492 [Verbose] > │ and method14 (v0 : num_complex_Complex<float>) : num_complex_Complex<float> │
00:01:11 #1493 [Verbose] > │ = │
00:01:11 #1494 [Verbose] > │ v0 │
00:01:11 #1495 [Verbose] > │ and method15 (v0 : pyo3_Python) : pyo3_Python = │
00:01:11 #1496 [Verbose] > │ v0 │
00:01:11 #1497 [Verbose] > │ and method16 (v0 : string) : string = │
00:01:11 #1498 [Verbose] > │ v0 │
00:01:11 #1499 [Verbose] > │ and closure1 () (v0 : pyo3_PyErr) : std_string_String = │
00:01:11 #1500 [Verbose] > │ let v1 : string = @$"format!(""{{}}"", $0)" │
00:01:11 #1501 [Verbose] > │ let v2 : std_string_String = Fable.Core.RustInterop.emitRustExpr v0 v1 │
00:01:11 #1502 [Verbose] > │ v2 │
00:01:11 #1503 [Verbose] > │ and method17 () : (pyo3_PyErr -> std_string_String) = │
00:01:11 #1504 [Verbose] > │ closure1() │
00:01:11 #1505 [Verbose] > │ and method18 (v0 : Result<pyo3_Bound<pyo3_types_PyModule>, pyo3_PyErr>) : │
00:01:11 #1506 [Verbose] > │ Result<pyo3_Bound<pyo3_types_PyModule>, pyo3_PyErr> = │
00:01:11 #1507 [Verbose] > │ v0 │
00:01:11 #1508 [Verbose] > │ and method19 (v0 : Result<pyo3_Bound<pyo3_types_PyModule>, │
00:01:11 #1509 [Verbose] > │ std_string_String>) : Result<pyo3_Bound<pyo3_types_PyModule>, │
00:01:11 #1510 [Verbose] > │ std_string_String> = │
00:01:11 #1511 [Verbose] > │ v0 │
00:01:11 #1512 [Verbose] > │ and method20 () : string = │
00:01:11 #1513 [Verbose] > │ let v0 : string = "fn" │
00:01:11 #1514 [Verbose] > │ v0 │
00:01:11 #1515 [Verbose] > │ and method21 (v0 : pyo3_Bound<pyo3_types_PyModule>) : │
00:01:11 #1516 [Verbose] > │ pyo3_Bound<pyo3_types_PyModule> = │
00:01:11 #1517 [Verbose] > │ v0 │
00:01:11 #1518 [Verbose] > │ and closure2 () (v0 : pyo3_PyErr) : std_string_String = │
00:01:11 #1519 [Verbose] > │ let v1 : string = @$"format!(""{{}}"", $0)" │
00:01:11 #1520 [Verbose] > │ let v2 : std_string_String = Fable.Core.RustInterop.emitRustExpr v0 v1 │
00:01:11 #1521 [Verbose] > │ v2 │
00:01:11 #1522 [Verbose] > │ and method22 () : (pyo3_PyErr -> std_string_String) = │
00:01:11 #1523 [Verbose] > │ closure2() │
00:01:11 #1524 [Verbose] > │ and method23 (v0 : Result<pyo3_Bound<pyo3_PyAny>, pyo3_PyErr>) : │
00:01:11 #1525 [Verbose] > │ Result<pyo3_Bound<pyo3_PyAny>, pyo3_PyErr> = │
00:01:11 #1526 [Verbose] > │ v0 │
00:01:11 #1527 [Verbose] > │ and method24 (v0 : Result<pyo3_Bound<pyo3_PyAny>, std_string_String>) : │
00:01:11 #1528 [Verbose] > │ Result<pyo3_Bound<pyo3_PyAny>, std_string_String> = │
00:01:11 #1529 [Verbose] > │ v0 │
00:01:11 #1530 [Verbose] > │ and method25 (v0 : (bool * (float * float))) : (bool * (float * float)) = │
00:01:11 #1531 [Verbose] > │ v0 │
00:01:11 #1532 [Verbose] > │ and method26 (v0 : pyo3_Bound<pyo3_PyAny>) : pyo3_Bound<pyo3_PyAny> = │
00:01:11 #1533 [Verbose] > │ v0 │
00:01:11 #1534 [Verbose] > │ and closure3 () (v0 : pyo3_PyErr) : std_string_String = │
00:01:11 #1535 [Verbose] > │ let v1 : string = @$"format!(""{{}}"", $0)" │
00:01:11 #1536 [Verbose] > │ let v2 : std_string_String = Fable.Core.RustInterop.emitRustExpr v0 v1 │
00:01:11 #1537 [Verbose] > │ v2 │
00:01:11 #1538 [Verbose] > │ and method27 () : (pyo3_PyErr -> std_string_String) = │
00:01:11 #1539 [Verbose] > │ closure3() │
00:01:11 #1540 [Verbose] > │ and method28 (v0 : pyo3_Bound<pyo3_PyAny>) : pyo3_Bound<pyo3_PyAny> = │
00:01:11 #1541 [Verbose] > │ v0 │
00:01:11 #1542 [Verbose] > │ and closure4 () (v0 : pyo3_PyErr) : std_string_String = │
00:01:11 #1543 [Verbose] > │ let v1 : string = @$"format!(""{{}}"", $0)" │
00:01:11 #1544 [Verbose] > │ let v2 : std_string_String = Fable.Core.RustInterop.emitRustExpr v0 v1 │
00:01:11 #1545 [Verbose] > │ v2 │
00:01:11 #1546 [Verbose] > │ and method29 () : (pyo3_PyErr -> std_string_String) = │
00:01:11 #1547 [Verbose] > │ closure4() │
00:01:11 #1548 [Verbose] > │ and method30 (v0 : Result<struct (float * float), pyo3_PyErr>) : │
00:01:11 #1549 [Verbose] > │ Result<struct (float * float), pyo3_PyErr> = │
00:01:11 #1550 [Verbose] > │ v0 │
00:01:11 #1551 [Verbose] > │ and method31 (v0 : float) : float = │
00:01:11 #1552 [Verbose] > │ v0 │
00:01:11 #1553 [Verbose] > │ and method32 (v0 : float) : float = │
00:01:11 #1554 [Verbose] > │ v0 │
00:01:11 #1555 [Verbose] > │ and method9 (v0 : pyo3_Python, v1 : string, v2 : num_complex_Complex<float>) │
00:01:11 #1556 [Verbose] > │ : Result<num_complex_Complex<float>, std_string_String> = │
00:01:11 #1557 [Verbose] > │ let v3 : string = $"import sys" │
00:01:11 #1558 [Verbose] > │ let v4 : string = $"import traceback" │
00:01:11 #1559 [Verbose] > │ let v5 : string = $"import re" │
00:01:11 #1560 [Verbose] > │ let v6 : string = $"count = 0" │
00:01:11 #1561 [Verbose] > │ let v7 : string = $"memory_address_pattern = re.compile(r' at 0x[ │
00:01:11 #1562 [Verbose] > │ 0-9a-fA-F]+')" │
00:01:11 #1563 [Verbose] > │ let v8 : string = $"def trace_calls(frame, event, arg):" │
00:01:11 #1564 [Verbose] > │ let v9 : string = $" global count" │
00:01:11 #1565 [Verbose] > │ let v10 : string = $" count += 1" │
00:01:11 #1566 [Verbose] > │ let v11 : string = $" if count < 200:" │
00:01:11 #1567 [Verbose] > │ let v12 : string = $" try:" │
00:01:11 #1568 [Verbose] > │ let v13 : string = $" args = {{ k: v for k, v in │
00:01:11 #1569 [Verbose] > │ frame.f_locals.items() if frame.f_code.co_name != 'make_mpc' and k not in [ │
00:01:11 #1570 [Verbose] > │ 'ctx'] and not callable(v) }}" │
00:01:11 #1571 [Verbose] > │ let v14 : string = $" args_str = ', '.join([ │
00:01:11 #1572 [Verbose] > │ f\"{{k}}={{re.sub(memory_address_pattern, ' at 0x<?>', repr(v))}}\" for k, v │
00:01:11 #1573 [Verbose] > │ in args.items() ])" │
00:01:11 #1574 [Verbose] > │ let v15 : string = "zeta_" │
00:01:11 #1575 [Verbose] > │ let v16 : string = $" print(f\"{{event}}({v15}) / │
00:01:11 #1576 [Verbose] > │ f_code.co_name: {{frame.f_code.co_name}} / f_locals: {{args_str}} / │
00:01:11 #1577 [Verbose] > │ f_lineno: {{frame.f_lineno}} / f_code.co_filename: │
00:01:11 #1578 [Verbose] > │ {{frame.f_code.co_filename.split('site-packages')[-1]}} / f_back.f_lineno: │
00:01:11 #1579 [Verbose] > │ {{ '' if frame.f_back is None else frame.f_back.f_lineno }} / │
00:01:11 #1580 [Verbose] > │ f_back.f_code.co_filename: {{ '' if frame.f_back is None else │
00:01:11 #1581 [Verbose] > │ frame.f_back.f_code.co_filename.split('site-packages')[-1] }} / arg: │
00:01:11 #1582 [Verbose] > │ {{arg}}\", flush=True)" │
00:01:11 #1583 [Verbose] > │ let v17 : string = $" except ValueError as e:" │
00:01:11 #1584 [Verbose] > │ let v18 : string = $" print(f'{v15} / e: {{e}}', flush=True)" │
00:01:11 #1585 [Verbose] > │ let v19 : string = $" return trace_calls" │
00:01:11 #1586 [Verbose] > │ let v20 : string = $"import mpmath" │
00:01:11 #1587 [Verbose] > │ let v21 : string = $"def fn(log, s):" │
00:01:11 #1588 [Verbose] > │ let v22 : string = $" global count" │
00:01:11 #1589 [Verbose] > │ let v23 : string = $" if log:" │
00:01:11 #1590 [Verbose] > │ let v24 : string = $" print(f'{v15} / s: {{s}} / count: │
00:01:11 #1591 [Verbose] > │ {{count}}', flush=True)" │
00:01:11 #1592 [Verbose] > │ let v25 : string = $" s = complex(*s)" │
00:01:11 #1593 [Verbose] > │ let v26 : string = $" try:" │
00:01:11 #1594 [Verbose] > │ let v27 : string = $" if log: sys.settrace(trace_calls)" │
00:01:11 #1595 [Verbose] > │ let v28 : string = $" if log:" │
00:01:11 #1596 [Verbose] > │ let v29 : string = $" sys.settrace(None)" │
00:01:11 #1597 [Verbose] > │ let v30 : string = $" print(f'{v15} / result: {{s}} / count: │
00:01:11 #1598 [Verbose] > │ {{count}}', flush=True)" │
00:01:11 #1599 [Verbose] > │ let v31 : string = $" except ValueError as e:" │
00:01:11 #1600 [Verbose] > │ let v32 : string = $" if s.real == 1:" │
00:01:11 #1601 [Verbose] > │ let v33 : string = $" s = complex(float('inf'), 0)" │
00:01:11 #1602 [Verbose] > │ let v34 : string = $" return (s.real, s.imag)" │
00:01:11 #1603 [Verbose] > │ let v35 : (string []) = [|v3; v4; v5; v6; v7; v8; v9; v10; v11; v12; │
00:01:11 #1604 [Verbose] > │ v13; v14; v16; v17; v18; v19; v20; v21; v22; v23; v24; v25; v26; v27; v1; │
00:01:11 #1605 [Verbose] > │ v28; v29; v30; v31; v32; v33; v34|] │
00:01:11 #1606 [Verbose] > │ let v36 : (string []) = method10(v35) │
00:01:11 #1607 [Verbose] > │ let v37 : string = method11(v36) │
00:01:11 #1608 [Verbose] > │ let v38 : num_complex_Complex<float> = method13(v2) │
00:01:11 #1609 [Verbose] > │ let v39 : string = "v38.re" │
00:01:11 #1610 [Verbose] > │ let v40 : float = Fable.Core.RustInterop.emitRustExpr () v39 │
00:01:11 #1611 [Verbose] > │ let v41 : num_complex_Complex<float> = method14(v2) │
00:01:11 #1612 [Verbose] > │ let v42 : string = "v41.im" │
00:01:11 #1613 [Verbose] > │ let v43 : float = Fable.Core.RustInterop.emitRustExpr () v42 │
00:01:11 #1614 [Verbose] > │ let v44 : (float * float) = v40, v43 │
00:01:11 #1615 [Verbose] > │ let v45 : (bool * (float * float)) = false, v44 │
00:01:11 #1616 [Verbose] > │ let v46 : pyo3_Python = method15(v0) │
00:01:11 #1617 [Verbose] > │ let v47 : string = method16(v37) │
00:01:11 #1618 [Verbose] > │ let v48 : string = $"fable_library_rust::String_::LrcStr::as_str(&v47)" │
00:01:11 #1619 [Verbose] > │ let v49 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v48 │
00:01:11 #1620 [Verbose] > │ let v50 : string = "pyo3::types::PyModule::from_code_bound(v46, v49, │
00:01:11 #1621 [Verbose] > │ \"\", \"\")" │
00:01:11 #1622 [Verbose] > │ let v51 : Result<pyo3_Bound<pyo3_types_PyModule>, pyo3_PyErr> = │
00:01:11 #1623 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v50 │
00:01:11 #1624 [Verbose] > │ let v52 : (pyo3_PyErr -> std_string_String) = method17() │
00:01:11 #1625 [Verbose] > │ let v53 : Result<pyo3_Bound<pyo3_types_PyModule>, pyo3_PyErr> = │
00:01:11 #1626 [Verbose] > │ method18(v51) │
00:01:11 #1627 [Verbose] > │ let v54 : string = "v53.map_err(|x| v52(x))" │
00:01:11 #1628 [Verbose] > │ let v55 : Result<pyo3_Bound<pyo3_types_PyModule>, std_string_String> = │
00:01:11 #1629 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v54 │
00:01:11 #1630 [Verbose] > │ let v56 : Result<pyo3_Bound<pyo3_types_PyModule>, std_string_String> = │
00:01:11 #1631 [Verbose] > │ method19(v55) │
00:01:11 #1632 [Verbose] > │ let v57 : string = "v56.unwrap()" │
00:01:11 #1633 [Verbose] > │ let v58 : pyo3_Bound<pyo3_types_PyModule> = │
00:01:11 #1634 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v57 │
00:01:11 #1635 [Verbose] > │ let v59 : string = method20() │
00:01:11 #1636 [Verbose] > │ let v60 : string = $"fable_library_rust::String_::LrcStr::as_str(&v59)" │
00:01:11 #1637 [Verbose] > │ let v61 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v60 │
00:01:11 #1638 [Verbose] > │ let v62 : pyo3_Bound<pyo3_types_PyModule> = method21(v58) │
00:01:11 #1639 [Verbose] > │ let v63 : string = "v62.getattr(v61)" │
00:01:11 #1640 [Verbose] > │ let v64 : Result<pyo3_Bound<pyo3_PyAny>, pyo3_PyErr> = │
00:01:11 #1641 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v63 │
00:01:11 #1642 [Verbose] > │ let v65 : (pyo3_PyErr -> std_string_String) = method22() │
00:01:11 #1643 [Verbose] > │ let v66 : Result<pyo3_Bound<pyo3_PyAny>, pyo3_PyErr> = method23(v64) │
00:01:11 #1644 [Verbose] > │ let v67 : string = "v66.map_err(|x| v65(x))" │
00:01:11 #1645 [Verbose] > │ let v68 : Result<pyo3_Bound<pyo3_PyAny>, std_string_String> = │
00:01:11 #1646 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v67 │
00:01:11 #1647 [Verbose] > │ let v69 : Result<pyo3_Bound<pyo3_PyAny>, std_string_String> = │
00:01:11 #1648 [Verbose] > │ method24(v68) │
00:01:11 #1649 [Verbose] > │ let v70 : string = "v69.unwrap()" │
00:01:11 #1650 [Verbose] > │ let v71 : pyo3_Bound<pyo3_PyAny> = Fable.Core.RustInterop.emitRustExpr │
00:01:11 #1651 [Verbose] > │ () v70 │
00:01:11 #1652 [Verbose] > │ let v72 : (bool * (float * float)) = method25(v45) │
00:01:11 #1653 [Verbose] > │ let v73 : pyo3_Bound<pyo3_PyAny> = method26(v71) │
00:01:11 #1654 [Verbose] > │ let v74 : string = "pyo3::prelude::PyAnyMethods::call(&v73, ((*v72).0, │
00:01:11 #1655 [Verbose] > │ *(*v72).1), None)" │
00:01:11 #1656 [Verbose] > │ let v75 : Result<pyo3_Bound<pyo3_PyAny>, pyo3_PyErr> = │
00:01:11 #1657 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v74 │
00:01:11 #1658 [Verbose] > │ let v76 : (pyo3_PyErr -> std_string_String) = method27() │
00:01:11 #1659 [Verbose] > │ let v77 : Result<pyo3_Bound<pyo3_PyAny>, pyo3_PyErr> = method23(v75) │
00:01:11 #1660 [Verbose] > │ let v78 : string = "v77.map_err(|x| v76(x))" │
00:01:11 #1661 [Verbose] > │ let v79 : Result<pyo3_Bound<pyo3_PyAny>, std_string_String> = │
00:01:11 #1662 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v78 │
00:01:11 #1663 [Verbose] > │ let v80 : string = "v79?" │
00:01:11 #1664 [Verbose] > │ let v81 : pyo3_Bound<pyo3_PyAny> = Fable.Core.RustInterop.emitRustExpr │
00:01:11 #1665 [Verbose] > │ () v80 │
00:01:11 #1666 [Verbose] > │ let v82 : pyo3_Bound<pyo3_PyAny> = method28(v81) │
00:01:11 #1667 [Verbose] > │ let v83 : string = "v82.extract()" │
00:01:11 #1668 [Verbose] > │ let v84 : Result<struct (float * float), pyo3_PyErr> = │
00:01:11 #1669 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v83 │
00:01:11 #1670 [Verbose] > │ let v85 : (pyo3_PyErr -> std_string_String) = method29() │
00:01:11 #1671 [Verbose] > │ let v86 : Result<struct (float * float), pyo3_PyErr> = method30(v84) │
00:01:11 #1672 [Verbose] > │ let v87 : string = "v86.map_err(|x| v85(x))" │
00:01:11 #1673 [Verbose] > │ let v88 : Result<struct (float * float), std_string_String> = │
00:01:11 #1674 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v87 │
00:01:11 #1675 [Verbose] > │ let v89 : string = "v88?" │
00:01:11 #1676 [Verbose] > │ let struct (v90 : float, v91 : float) = │
00:01:11 #1677 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v89 │
00:01:11 #1678 [Verbose] > │ let v92 : float = method31(v90) │
00:01:11 #1679 [Verbose] > │ let v93 : float = method3(v92) │
00:01:11 #1680 [Verbose] > │ let v94 : float = method32(v91) │
00:01:11 #1681 [Verbose] > │ let v95 : string = "num_complex::Complex::new(v93, v94)" │
00:01:11 #1682 [Verbose] > │ let v96 : num_complex_Complex<float> = │
00:01:11 #1683 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v95 │
00:01:11 #1684 [Verbose] > │ let v97 : Result<num_complex_Complex<float>, std_string_String> = Ok v96 │
00:01:11 #1685 [Verbose] > │ v97 │
00:01:11 #1686 [Verbose] > │ and method34 (v0 : num_complex_Complex<float>) : num_complex_Complex<float> │
00:01:11 #1687 [Verbose] > │ = │
00:01:11 #1688 [Verbose] > │ v0 │
00:01:11 #1689 [Verbose] > │ and method35 () : float = │
00:01:11 #1690 [Verbose] > │ 0.0 │
00:01:11 #1691 [Verbose] > │ and method36 (v0 : Mut0) : bool = │
00:01:11 #1692 [Verbose] > │ let v1 : int32 = v0.l0 │
00:01:11 #1693 [Verbose] > │ let v2 : bool = v1 < 10000 │
00:01:11 #1694 [Verbose] > │ v2 │
00:01:11 #1695 [Verbose] > │ and method37 (v0 : int32, v1 : Mut2) : bool = │
00:01:11 #1696 [Verbose] > │ let v2 : int32 = v1.l0 │
00:01:11 #1697 [Verbose] > │ let v3 : bool = v2 < v0 │
00:01:11 #1698 [Verbose] > │ v3 │
00:01:11 #1699 [Verbose] > │ and method38 () : float = │
00:01:11 #1700 [Verbose] > │ 1.0 │
00:01:11 #1701 [Verbose] > │ and method39 (v0 : num_complex_Complex<float>) : num_complex_Complex<float> │
00:01:11 #1702 [Verbose] > │ = │
00:01:11 #1703 [Verbose] > │ v0 │
00:01:11 #1704 [Verbose] > │ and method40 (v0 : num_complex_Complex<float>) : num_complex_Complex<float> │
00:01:11 #1705 [Verbose] > │ = │
00:01:11 #1706 [Verbose] > │ v0 │
00:01:11 #1707 [Verbose] > │ and method41 (v0 : pyo3_Python, v1 : string, v2 : │
00:01:11 #1708 [Verbose] > │ num_complex_Complex<float>) : Result<num_complex_Complex<float>, │
00:01:11 #1709 [Verbose] > │ std_string_String> = │
00:01:11 #1710 [Verbose] > │ let v3 : string = $"import sys" │
00:01:11 #1711 [Verbose] > │ let v4 : string = $"import traceback" │
00:01:11 #1712 [Verbose] > │ let v5 : string = $"import re" │
00:01:11 #1713 [Verbose] > │ let v6 : string = $"count = 0" │
00:01:11 #1714 [Verbose] > │ let v7 : string = $"memory_address_pattern = re.compile(r' at 0x[ │
00:01:11 #1715 [Verbose] > │ 0-9a-fA-F]+')" │
00:01:11 #1716 [Verbose] > │ let v8 : string = $"def trace_calls(frame, event, arg):" │
00:01:11 #1717 [Verbose] > │ let v9 : string = $" global count" │
00:01:11 #1718 [Verbose] > │ let v10 : string = $" count += 1" │
00:01:11 #1719 [Verbose] > │ let v11 : string = $" if count < 200:" │
00:01:11 #1720 [Verbose] > │ let v12 : string = $" try:" │
00:01:11 #1721 [Verbose] > │ let v13 : string = $" args = {{ k: v for k, v in │
00:01:11 #1722 [Verbose] > │ frame.f_locals.items() if frame.f_code.co_name != 'make_mpc' and k not in [ │
00:01:11 #1723 [Verbose] > │ 'ctx'] and not callable(v) }}" │
00:01:11 #1724 [Verbose] > │ let v14 : string = $" args_str = ', '.join([ │
00:01:11 #1725 [Verbose] > │ f\"{{k}}={{re.sub(memory_address_pattern, ' at 0x<?>', repr(v))}}\" for k, v │
00:01:11 #1726 [Verbose] > │ in args.items() ])" │
00:01:11 #1727 [Verbose] > │ let v15 : string = "gamma_" │
00:01:11 #1728 [Verbose] > │ let v16 : string = $" print(f\"{{event}}({v15}) / │
00:01:11 #1729 [Verbose] > │ f_code.co_name: {{frame.f_code.co_name}} / f_locals: {{args_str}} / │
00:01:11 #1730 [Verbose] > │ f_lineno: {{frame.f_lineno}} / f_code.co_filename: │
00:01:11 #1731 [Verbose] > │ {{frame.f_code.co_filename.split('site-packages')[-1]}} / f_back.f_lineno: │
00:01:11 #1732 [Verbose] > │ {{ '' if frame.f_back is None else frame.f_back.f_lineno }} / │
00:01:11 #1733 [Verbose] > │ f_back.f_code.co_filename: {{ '' if frame.f_back is None else │
00:01:11 #1734 [Verbose] > │ frame.f_back.f_code.co_filename.split('site-packages')[-1] }} / arg: │
00:01:11 #1735 [Verbose] > │ {{arg}}\", flush=True)" │
00:01:11 #1736 [Verbose] > │ let v17 : string = $" except ValueError as e:" │
00:01:11 #1737 [Verbose] > │ let v18 : string = $" print(f'{v15} / e: {{e}}', flush=True)" │
00:01:11 #1738 [Verbose] > │ let v19 : string = $" return trace_calls" │
00:01:11 #1739 [Verbose] > │ let v20 : string = $"import mpmath" │
00:01:11 #1740 [Verbose] > │ let v21 : string = $"def fn(log, s):" │
00:01:11 #1741 [Verbose] > │ let v22 : string = $" global count" │
00:01:11 #1742 [Verbose] > │ let v23 : string = $" if log:" │
00:01:11 #1743 [Verbose] > │ let v24 : string = $" print(f'{v15} / s: {{s}} / count: │
00:01:11 #1744 [Verbose] > │ {{count}}', flush=True)" │
00:01:11 #1745 [Verbose] > │ let v25 : string = $" s = complex(*s)" │
00:01:11 #1746 [Verbose] > │ let v26 : string = $" try:" │
00:01:11 #1747 [Verbose] > │ let v27 : string = $" if log: sys.settrace(trace_calls)" │
00:01:11 #1748 [Verbose] > │ let v28 : string = $" if log:" │
00:01:11 #1749 [Verbose] > │ let v29 : string = $" sys.settrace(None)" │
00:01:11 #1750 [Verbose] > │ let v30 : string = $" print(f'{v15} / result: {{s}} / count: │
00:01:11 #1751 [Verbose] > │ {{count}}', flush=True)" │
00:01:11 #1752 [Verbose] > │ let v31 : string = $" except ValueError as e:" │
00:01:11 #1753 [Verbose] > │ let v32 : string = $" if s.real == 1:" │
00:01:11 #1754 [Verbose] > │ let v33 : string = $" s = complex(float('inf'), 0)" │
00:01:11 #1755 [Verbose] > │ let v34 : string = $" return (s.real, s.imag)" │
00:01:11 #1756 [Verbose] > │ let v35 : (string []) = [|v3; v4; v5; v6; v7; v8; v9; v10; v11; v12; │
00:01:11 #1757 [Verbose] > │ v13; v14; v16; v17; v18; v19; v20; v21; v22; v23; v24; v25; v26; v27; v1; │
00:01:11 #1758 [Verbose] > │ v28; v29; v30; v31; v32; v33; v34|] │
00:01:11 #1759 [Verbose] > │ let v36 : (string []) = method10(v35) │
00:01:11 #1760 [Verbose] > │ let v37 : string = method11(v36) │
00:01:11 #1761 [Verbose] > │ let v38 : num_complex_Complex<float> = method13(v2) │
00:01:11 #1762 [Verbose] > │ let v39 : string = "v38.re" │
00:01:11 #1763 [Verbose] > │ let v40 : float = Fable.Core.RustInterop.emitRustExpr () v39 │
00:01:11 #1764 [Verbose] > │ let v41 : num_complex_Complex<float> = method14(v2) │
00:01:11 #1765 [Verbose] > │ let v42 : string = "v41.im" │
00:01:11 #1766 [Verbose] > │ let v43 : float = Fable.Core.RustInterop.emitRustExpr () v42 │
00:01:11 #1767 [Verbose] > │ let v44 : (float * float) = v40, v43 │
00:01:11 #1768 [Verbose] > │ let v45 : (bool * (float * float)) = false, v44 │
00:01:11 #1769 [Verbose] > │ let v46 : pyo3_Python = method15(v0) │
00:01:11 #1770 [Verbose] > │ let v47 : string = method16(v37) │
00:01:11 #1771 [Verbose] > │ let v48 : string = $"fable_library_rust::String_::LrcStr::as_str(&v47)" │
00:01:11 #1772 [Verbose] > │ let v49 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v48 │
00:01:11 #1773 [Verbose] > │ let v50 : string = "pyo3::types::PyModule::from_code_bound(v46, v49, │
00:01:11 #1774 [Verbose] > │ \"\", \"\")" │
00:01:11 #1775 [Verbose] > │ let v51 : Result<pyo3_Bound<pyo3_types_PyModule>, pyo3_PyErr> = │
00:01:11 #1776 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v50 │
00:01:11 #1777 [Verbose] > │ let v52 : (pyo3_PyErr -> std_string_String) = method17() │
00:01:11 #1778 [Verbose] > │ let v53 : Result<pyo3_Bound<pyo3_types_PyModule>, pyo3_PyErr> = │
00:01:11 #1779 [Verbose] > │ method18(v51) │
00:01:11 #1780 [Verbose] > │ let v54 : string = "v53.map_err(|x| v52(x))" │
00:01:11 #1781 [Verbose] > │ let v55 : Result<pyo3_Bound<pyo3_types_PyModule>, std_string_String> = │
00:01:11 #1782 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v54 │
00:01:11 #1783 [Verbose] > │ let v56 : Result<pyo3_Bound<pyo3_types_PyModule>, std_string_String> = │
00:01:11 #1784 [Verbose] > │ method19(v55) │
00:01:11 #1785 [Verbose] > │ let v57 : string = "v56.unwrap()" │
00:01:11 #1786 [Verbose] > │ let v58 : pyo3_Bound<pyo3_types_PyModule> = │
00:01:11 #1787 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v57 │
00:01:11 #1788 [Verbose] > │ let v59 : string = method20() │
00:01:11 #1789 [Verbose] > │ let v60 : string = $"fable_library_rust::String_::LrcStr::as_str(&v59)" │
00:01:11 #1790 [Verbose] > │ let v61 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v60 │
00:01:11 #1791 [Verbose] > │ let v62 : pyo3_Bound<pyo3_types_PyModule> = method21(v58) │
00:01:11 #1792 [Verbose] > │ let v63 : string = "v62.getattr(v61)" │
00:01:11 #1793 [Verbose] > │ let v64 : Result<pyo3_Bound<pyo3_PyAny>, pyo3_PyErr> = │
00:01:11 #1794 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v63 │
00:01:11 #1795 [Verbose] > │ let v65 : (pyo3_PyErr -> std_string_String) = method22() │
00:01:11 #1796 [Verbose] > │ let v66 : Result<pyo3_Bound<pyo3_PyAny>, pyo3_PyErr> = method23(v64) │
00:01:11 #1797 [Verbose] > │ let v67 : string = "v66.map_err(|x| v65(x))" │
00:01:11 #1798 [Verbose] > │ let v68 : Result<pyo3_Bound<pyo3_PyAny>, std_string_String> = │
00:01:11 #1799 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v67 │
00:01:11 #1800 [Verbose] > │ let v69 : Result<pyo3_Bound<pyo3_PyAny>, std_string_String> = │
00:01:11 #1801 [Verbose] > │ method24(v68) │
00:01:11 #1802 [Verbose] > │ let v70 : string = "v69.unwrap()" │
00:01:11 #1803 [Verbose] > │ let v71 : pyo3_Bound<pyo3_PyAny> = Fable.Core.RustInterop.emitRustExpr │
00:01:11 #1804 [Verbose] > │ () v70 │
00:01:11 #1805 [Verbose] > │ let v72 : (bool * (float * float)) = method25(v45) │
00:01:11 #1806 [Verbose] > │ let v73 : pyo3_Bound<pyo3_PyAny> = method26(v71) │
00:01:11 #1807 [Verbose] > │ let v74 : string = "pyo3::prelude::PyAnyMethods::call(&v73, ((*v72).0, │
00:01:11 #1808 [Verbose] > │ *(*v72).1), None)" │
00:01:11 #1809 [Verbose] > │ let v75 : Result<pyo3_Bound<pyo3_PyAny>, pyo3_PyErr> = │
00:01:11 #1810 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v74 │
00:01:11 #1811 [Verbose] > │ let v76 : (pyo3_PyErr -> std_string_String) = method27() │
00:01:11 #1812 [Verbose] > │ let v77 : Result<pyo3_Bound<pyo3_PyAny>, pyo3_PyErr> = method23(v75) │
00:01:11 #1813 [Verbose] > │ let v78 : string = "v77.map_err(|x| v76(x))" │
00:01:11 #1814 [Verbose] > │ let v79 : Result<pyo3_Bound<pyo3_PyAny>, std_string_String> = │
00:01:11 #1815 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v78 │
00:01:11 #1816 [Verbose] > │ let v80 : string = "v79?" │
00:01:11 #1817 [Verbose] > │ let v81 : pyo3_Bound<pyo3_PyAny> = Fable.Core.RustInterop.emitRustExpr │
00:01:11 #1818 [Verbose] > │ () v80 │
00:01:11 #1819 [Verbose] > │ let v82 : pyo3_Bound<pyo3_PyAny> = method28(v81) │
00:01:11 #1820 [Verbose] > │ let v83 : string = "v82.extract()" │
00:01:11 #1821 [Verbose] > │ let v84 : Result<struct (float * float), pyo3_PyErr> = │
00:01:11 #1822 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v83 │
00:01:11 #1823 [Verbose] > │ let v85 : (pyo3_PyErr -> std_string_String) = method29() │
00:01:11 #1824 [Verbose] > │ let v86 : Result<struct (float * float), pyo3_PyErr> = method30(v84) │
00:01:11 #1825 [Verbose] > │ let v87 : string = "v86.map_err(|x| v85(x))" │
00:01:11 #1826 [Verbose] > │ let v88 : Result<struct (float * float), std_string_String> = │
00:01:11 #1827 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v87 │
00:01:11 #1828 [Verbose] > │ let v89 : string = "v88?" │
00:01:11 #1829 [Verbose] > │ let struct (v90 : float, v91 : float) = │
00:01:11 #1830 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v89 │
00:01:11 #1831 [Verbose] > │ let v92 : float = method31(v90) │
00:01:11 #1832 [Verbose] > │ let v93 : float = method3(v92) │
00:01:11 #1833 [Verbose] > │ let v94 : float = method32(v91) │
00:01:11 #1834 [Verbose] > │ let v95 : string = "num_complex::Complex::new(v93, v94)" │
00:01:11 #1835 [Verbose] > │ let v96 : num_complex_Complex<float> = │
00:01:11 #1836 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v95 │
00:01:11 #1837 [Verbose] > │ let v97 : Result<num_complex_Complex<float>, std_string_String> = Ok v96 │
00:01:11 #1838 [Verbose] > │ v97 │
00:01:11 #1839 [Verbose] > │ and closure5 () (v0 : num_complex_Complex<float>) : US0 = │
00:01:11 #1840 [Verbose] > │ US0_1(v0) │
00:01:11 #1841 [Verbose] > │ and method42 () : float = │
00:01:11 #1842 [Verbose] > │ 3.141592653589793 │
00:01:11 #1843 [Verbose] > │ and method33 (v0 : pyo3_Python, v1 : num_complex_Complex<float>) : │
00:01:11 #1844 [Verbose] > │ num_complex_Complex<float> = │
00:01:11 #1845 [Verbose] > │ let v2 : num_complex_Complex<float> = method34(v1) │
00:01:11 #1846 [Verbose] > │ let v3 : string = "println!(\"zeta / count: {:?} / s: {:?}\", 0, v2)" │
00:01:11 #1847 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v3 │
00:01:11 #1848 [Verbose] > │ let v4 : num_complex_Complex<float> = method13(v2) │
00:01:11 #1849 [Verbose] > │ let v5 : string = "v4.re" │
00:01:11 #1850 [Verbose] > │ let v6 : float = Fable.Core.RustInterop.emitRustExpr () v5 │
00:01:11 #1851 [Verbose] > │ let v7 : bool = v6 > 1.0 │
00:01:11 #1852 [Verbose] > │ if v7 then │
00:01:11 #1853 [Verbose] > │ let v8 : float = method35() │
00:01:11 #1854 [Verbose] > │ let v9 : float = method3(v8) │
00:01:11 #1855 [Verbose] > │ let v10 : float = method4() │
00:01:11 #1856 [Verbose] > │ let v11 : string = "num_complex::Complex::new(v9, v10)" │
00:01:11 #1857 [Verbose] > │ let v12 : num_complex_Complex<float> = │
00:01:11 #1858 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v11 │
00:01:11 #1859 [Verbose] > │ let v13 : (int32 []) = Array.zeroCreate<int32> (10000) │
00:01:11 #1860 [Verbose] > │ let v14 : Mut0 = {l0 = 0} : Mut0 │
00:01:11 #1861 [Verbose] > │ while method36(v14) do │
00:01:11 #1862 [Verbose] > │ let v16 : int32 = v14.l0 │
00:01:11 #1863 [Verbose] > │ v13.[int v16] <- v16 │
00:01:11 #1864 [Verbose] > │ let v17 : int32 = v16 + 1 │
00:01:11 #1865 [Verbose] > │ v14.l0 <- v17 │
00:01:11 #1866 [Verbose] > │ () │
00:01:11 #1867 [Verbose] > │ let v18 : int32 = v13.Length │
00:01:11 #1868 [Verbose] > │ let v19 : Mut2 = {l0 = 0; l1 = v12} : Mut2 │
00:01:11 #1869 [Verbose] > │ while method37(v18, v19) do │
00:01:11 #1870 [Verbose] > │ let v21 : int32 = v19.l0 │
00:01:11 #1871 [Verbose] > │ let v22 : num_complex_Complex<float> = v19.l1 │
00:01:11 #1872 [Verbose] > │ let v23 : int32 = v13.[int v21] │
00:01:11 #1873 [Verbose] > │ let v24 : float = method38() │
00:01:11 #1874 [Verbose] > │ let v25 : float = method3(v24) │
00:01:11 #1875 [Verbose] > │ let v26 : float = method4() │
00:01:11 #1876 [Verbose] > │ let v27 : string = "num_complex::Complex::new(v25, v26)" │
00:01:11 #1877 [Verbose] > │ let v28 : num_complex_Complex<float> = │
00:01:11 #1878 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v27 │
00:01:11 #1879 [Verbose] > │ let v29 : float = float v23 │
00:01:11 #1880 [Verbose] > │ let v30 : float = method31(v29) │
00:01:11 #1881 [Verbose] > │ let v31 : float = method3(v30) │
00:01:11 #1882 [Verbose] > │ let v32 : float = method4() │
00:01:11 #1883 [Verbose] > │ let v33 : string = "num_complex::Complex::new(v31, v32)" │
00:01:11 #1884 [Verbose] > │ let v34 : num_complex_Complex<float> = │
00:01:11 #1885 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v33 │
00:01:11 #1886 [Verbose] > │ let v35 : num_complex_Complex<float> = method39(v34) │
00:01:11 #1887 [Verbose] > │ let v36 : num_complex_Complex<float> = method40(v2) │
00:01:11 #1888 [Verbose] > │ let v37 : string = "num_complex::Complex::powc(v35, v36)" │
00:01:11 #1889 [Verbose] > │ let v38 : num_complex_Complex<float> = │
00:01:11 #1890 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v37 │
00:01:11 #1891 [Verbose] > │ let v39 : string = "v28 / v38" │
00:01:11 #1892 [Verbose] > │ let v40 : num_complex_Complex<float> = │
00:01:11 #1893 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v39 │
00:01:11 #1894 [Verbose] > │ let v41 : string = "v22 + v40" │
00:01:11 #1895 [Verbose] > │ let v42 : num_complex_Complex<float> = │
00:01:11 #1896 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v41 │
00:01:11 #1897 [Verbose] > │ let v43 : int32 = v21 + 1 │
00:01:11 #1898 [Verbose] > │ v19.l0 <- v43 │
00:01:11 #1899 [Verbose] > │ v19.l1 <- v42 │
00:01:11 #1900 [Verbose] > │ () │
00:01:11 #1901 [Verbose] > │ let v44 : num_complex_Complex<float> = v19.l1 │
00:01:11 #1902 [Verbose] > │ v44 │
00:01:11 #1903 [Verbose] > │ else │
00:01:11 #1904 [Verbose] > │ let v45 : float = method38() │
00:01:11 #1905 [Verbose] > │ let v46 : float = method3(v45) │
00:01:11 #1906 [Verbose] > │ let v47 : float = method4() │
00:01:11 #1907 [Verbose] > │ let v48 : string = "num_complex::Complex::new(v46, v47)" │
00:01:11 #1908 [Verbose] > │ let v49 : num_complex_Complex<float> = │
00:01:11 #1909 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v48 │
00:01:11 #1910 [Verbose] > │ let v50 : string = "v49 - v2" │
00:01:11 #1911 [Verbose] > │ let v51 : num_complex_Complex<float> = │
00:01:11 #1912 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v50 │
00:01:11 #1913 [Verbose] > │ let v52 : string = $" s = mpmath.gamma(s)" │
00:01:11 #1914 [Verbose] > │ let v53 : num_complex_Complex<float> = method8(v51) │
00:01:11 #1915 [Verbose] > │ let v54 : Result<num_complex_Complex<float>, std_string_String> = │
00:01:11 #1916 [Verbose] > │ method41(v0, v52, v53) │
00:01:11 #1917 [Verbose] > │ let v55 : string = "v54.ok()" │
00:01:11 #1918 [Verbose] > │ let v56 : num_complex_Complex<float> option = │
00:01:11 #1919 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v55 │
00:01:11 #1920 [Verbose] > │ let v57 : (num_complex_Complex<float> -> US0) = closure5() │
00:01:11 #1921 [Verbose] > │ let v58 : US0 = US0_0 │
00:01:11 #1922 [Verbose] > │ let v59 : US0 = v56 |> Option.map v57 |> Option.defaultValue v58 │
00:01:11 #1923 [Verbose] > │ let v60 : string = "f64::NAN" │
00:01:11 #1924 [Verbose] > │ let v61 : float = Fable.Core.RustInterop.emitRustExpr () v60 │
00:01:11 #1925 [Verbose] > │ let v62 : string = "f64::NAN" │
00:01:11 #1926 [Verbose] > │ let v63 : float = Fable.Core.RustInterop.emitRustExpr () v62 │
00:01:11 #1927 [Verbose] > │ let v64 : float = method31(v61) │
00:01:11 #1928 [Verbose] > │ let v65 : float = method3(v64) │
00:01:11 #1929 [Verbose] > │ let v66 : float = method32(v63) │
00:01:11 #1930 [Verbose] > │ let v67 : string = "num_complex::Complex::new(v65, v66)" │
00:01:11 #1931 [Verbose] > │ let v68 : num_complex_Complex<float> = │
00:01:11 #1932 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v67 │
00:01:11 #1933 [Verbose] > │ let v71 : num_complex_Complex<float> = │
00:01:11 #1934 [Verbose] > │ match v59 with │
00:01:11 #1935 [Verbose] > │ | US0_0 -> (* None *) │
00:01:11 #1936 [Verbose] > │ v68 │
00:01:11 #1937 [Verbose] > │ | US0_1(v69) -> (* Some *) │
00:01:11 #1938 [Verbose] > │ v69 │
00:01:11 #1939 [Verbose] > │ let v72 : float = method42() │
00:01:11 #1940 [Verbose] > │ let v73 : float = method3(v72) │
00:01:11 #1941 [Verbose] > │ let v74 : float = method4() │
00:01:11 #1942 [Verbose] > │ let v75 : string = "num_complex::Complex::new(v73, v74)" │
00:01:11 #1943 [Verbose] > │ let v76 : num_complex_Complex<float> = │
00:01:11 #1944 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v75 │
00:01:11 #1945 [Verbose] > │ let v77 : string = "v76 * v2" │
00:01:11 #1946 [Verbose] > │ let v78 : num_complex_Complex<float> = │
00:01:11 #1947 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v77 │
00:01:11 #1948 [Verbose] > │ let v79 : float = method2() │
00:01:11 #1949 [Verbose] > │ let v80 : float = method3(v79) │
00:01:11 #1950 [Verbose] > │ let v81 : float = method4() │
00:01:11 #1951 [Verbose] > │ let v82 : string = "num_complex::Complex::new(v80, v81)" │
00:01:11 #1952 [Verbose] > │ let v83 : num_complex_Complex<float> = │
00:01:11 #1953 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v82 │
00:01:11 #1954 [Verbose] > │ let v84 : string = "v78 / v83" │
00:01:11 #1955 [Verbose] > │ let v85 : num_complex_Complex<float> = │
00:01:11 #1956 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v84 │
00:01:11 #1957 [Verbose] > │ let v86 : string = "v85.sin()" │
00:01:11 #1958 [Verbose] > │ let v87 : num_complex_Complex<float> = │
00:01:11 #1959 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v86 │
00:01:11 #1960 [Verbose] > │ let v88 : num_complex_Complex<float> = method13(v2) │
00:01:11 #1961 [Verbose] > │ let v89 : string = "v88.re" │
00:01:11 #1962 [Verbose] > │ let v90 : float = Fable.Core.RustInterop.emitRustExpr () v89 │
00:01:11 #1963 [Verbose] > │ let v91 : float = 1.0 - v90 │
00:01:11 #1964 [Verbose] > │ let v92 : num_complex_Complex<float> = method14(v2) │
00:01:11 #1965 [Verbose] > │ let v93 : string = "v92.im" │
00:01:11 #1966 [Verbose] > │ let v94 : float = Fable.Core.RustInterop.emitRustExpr () v93 │
00:01:11 #1967 [Verbose] > │ let v95 : float = -v94 │
00:01:11 #1968 [Verbose] > │ let v96 : float = method31(v91) │
00:01:11 #1969 [Verbose] > │ let v97 : float = method3(v96) │
00:01:11 #1970 [Verbose] > │ let v98 : float = method32(v95) │
00:01:11 #1971 [Verbose] > │ let v99 : string = "num_complex::Complex::new(v97, v98)" │
00:01:11 #1972 [Verbose] > │ let v100 : num_complex_Complex<float> = │
00:01:11 #1973 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v99 │
00:01:11 #1974 [Verbose] > │ let v101 : num_complex_Complex<float> = method13(v100) │
00:01:11 #1975 [Verbose] > │ let v102 : string = "v101.re" │
00:01:11 #1976 [Verbose] > │ let v103 : float = Fable.Core.RustInterop.emitRustExpr () v102 │
00:01:11 #1977 [Verbose] > │ let v104 : bool = v103 <= 1.0 │
00:01:11 #1978 [Verbose] > │ let v634 : num_complex_Complex<float> = │
00:01:11 #1979 [Verbose] > │ if v104 then │
00:01:11 #1980 [Verbose] > │ let v105 : float = method35() │
00:01:11 #1981 [Verbose] > │ let v106 : float = method3(v105) │
00:01:11 #1982 [Verbose] > │ let v107 : float = method4() │
00:01:11 #1983 [Verbose] > │ let v108 : string = "num_complex::Complex::new(v106, v107)" │
00:01:11 #1984 [Verbose] > │ let v109 : num_complex_Complex<float> = │
00:01:11 #1985 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v108 │
00:01:11 #1986 [Verbose] > │ v109 │
00:01:11 #1987 [Verbose] > │ else │
00:01:11 #1988 [Verbose] > │ let v110 : num_complex_Complex<float> = method34(v100) │
00:01:11 #1989 [Verbose] > │ let v111 : string = "println!(\"zeta / count: {:?} / s: │
00:01:11 #1990 [Verbose] > │ {:?}\", 1, v110)" │
00:01:11 #1991 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v111 │
00:01:11 #1992 [Verbose] > │ let v112 : num_complex_Complex<float> = method13(v110) │
00:01:11 #1993 [Verbose] > │ let v113 : string = "v112.re" │
00:01:11 #1994 [Verbose] > │ let v114 : float = Fable.Core.RustInterop.emitRustExpr () │
00:01:11 #1995 [Verbose] > │ v113 │
00:01:11 #1996 [Verbose] > │ let v115 : bool = v114 > 1.0 │
00:01:11 #1997 [Verbose] > │ if v115 then │
00:01:11 #1998 [Verbose] > │ let v116 : float = method35() │
00:01:11 #1999 [Verbose] > │ let v117 : float = method3(v116) │
00:01:11 #2000 [Verbose] > │ let v118 : float = method4() │
00:01:11 #2001 [Verbose] > │ let v119 : string = "num_complex::Complex::new(v117, │
00:01:11 #2002 [Verbose] > │ v118)" │
00:01:11 #2003 [Verbose] > │ let v120 : num_complex_Complex<float> = │
00:01:11 #2004 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v119 │
00:01:11 #2005 [Verbose] > │ let v121 : (int32 []) = Array.zeroCreate<int32> (10000) │
00:01:11 #2006 [Verbose] > │ let v122 : Mut0 = {l0 = 0} : Mut0 │
00:01:11 #2007 [Verbose] > │ while method36(v122) do │
00:01:11 #2008 [Verbose] > │ let v124 : int32 = v122.l0 │
00:01:11 #2009 [Verbose] > │ v121.[int v124] <- v124 │
00:01:11 #2010 [Verbose] > │ let v125 : int32 = v124 + 1 │
00:01:11 #2011 [Verbose] > │ v122.l0 <- v125 │
00:01:11 #2012 [Verbose] > │ () │
00:01:11 #2013 [Verbose] > │ let v126 : int32 = v121.Length │
00:01:11 #2014 [Verbose] > │ let v127 : Mut2 = {l0 = 0; l1 = v120} : Mut2 │
00:01:11 #2015 [Verbose] > │ while method37(v126, v127) do │
00:01:11 #2016 [Verbose] > │ let v129 : int32 = v127.l0 │
00:01:11 #2017 [Verbose] > │ let v130 : num_complex_Complex<float> = v127.l1 │
00:01:11 #2018 [Verbose] > │ let v131 : int32 = v121.[int v129] │
00:01:11 #2019 [Verbose] > │ let v132 : float = method38() │
00:01:11 #2020 [Verbose] > │ let v133 : float = method3(v132) │
00:01:11 #2021 [Verbose] > │ let v134 : float = method4() │
00:01:11 #2022 [Verbose] > │ let v135 : string = "num_complex::Complex::new(v133, │
00:01:11 #2023 [Verbose] > │ v134)" │
00:01:11 #2024 [Verbose] > │ let v136 : num_complex_Complex<float> = │
00:01:11 #2025 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v135 │
00:01:11 #2026 [Verbose] > │ let v137 : float = float v131 │
00:01:11 #2027 [Verbose] > │ let v138 : float = method31(v137) │
00:01:11 #2028 [Verbose] > │ let v139 : float = method3(v138) │
00:01:11 #2029 [Verbose] > │ let v140 : float = method4() │
00:01:11 #2030 [Verbose] > │ let v141 : string = "num_complex::Complex::new(v139, │
00:01:11 #2031 [Verbose] > │ v140)" │
00:01:11 #2032 [Verbose] > │ let v142 : num_complex_Complex<float> = │
00:01:11 #2033 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v141 │
00:01:11 #2034 [Verbose] > │ let v143 : num_complex_Complex<float> = │
00:01:11 #2035 [Verbose] > │ method39(v142) │
00:01:11 #2036 [Verbose] > │ let v144 : num_complex_Complex<float> = │
00:01:11 #2037 [Verbose] > │ method40(v110) │
00:01:11 #2038 [Verbose] > │ let v145 : string = │
00:01:11 #2039 [Verbose] > │ "num_complex::Complex::powc(v143, v144)" │
00:01:11 #2040 [Verbose] > │ let v146 : num_complex_Complex<float> = │
00:01:11 #2041 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v145 │
00:01:11 #2042 [Verbose] > │ let v147 : string = "v136 / v146" │
00:01:11 #2043 [Verbose] > │ let v148 : num_complex_Complex<float> = │
00:01:11 #2044 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v147 │
00:01:11 #2045 [Verbose] > │ let v149 : string = "v130 + v148" │
00:01:11 #2046 [Verbose] > │ let v150 : num_complex_Complex<float> = │
00:01:11 #2047 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v149 │
00:01:11 #2048 [Verbose] > │ let v151 : int32 = v129 + 1 │
00:01:11 #2049 [Verbose] > │ v127.l0 <- v151 │
00:01:11 #2050 [Verbose] > │ v127.l1 <- v150 │
00:01:11 #2051 [Verbose] > │ () │
00:01:11 #2052 [Verbose] > │ let v152 : num_complex_Complex<float> = v127.l1 │
00:01:11 #2053 [Verbose] > │ v152 │
00:01:11 #2054 [Verbose] > │ else │
00:01:11 #2055 [Verbose] > │ let v153 : float = method38() │
00:01:11 #2056 [Verbose] > │ let v154 : float = method3(v153) │
00:01:11 #2057 [Verbose] > │ let v155 : float = method4() │
00:01:11 #2058 [Verbose] > │ let v156 : string = "num_complex::Complex::new(v154, │
00:01:11 #2059 [Verbose] > │ v155)" │
00:01:11 #2060 [Verbose] > │ let v157 : num_complex_Complex<float> = │
00:01:11 #2061 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v156 │
00:01:11 #2062 [Verbose] > │ let v158 : string = "v157 - v110" │
00:01:11 #2063 [Verbose] > │ let v159 : num_complex_Complex<float> = │
00:01:11 #2064 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v158 │
00:01:11 #2065 [Verbose] > │ let v160 : string = $" s = mpmath.gamma(s)" │
00:01:11 #2066 [Verbose] > │ let v161 : num_complex_Complex<float> = method8(v159) │
00:01:11 #2067 [Verbose] > │ let v162 : Result<num_complex_Complex<float>, │
00:01:11 #2068 [Verbose] > │ std_string_String> = method41(v0, v160, v161) │
00:01:11 #2069 [Verbose] > │ let v163 : string = "v162.ok()" │
00:01:11 #2070 [Verbose] > │ let v164 : num_complex_Complex<float> option = │
00:01:11 #2071 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v163 │
00:01:11 #2072 [Verbose] > │ let v165 : US0 = US0_0 │
00:01:11 #2073 [Verbose] > │ let v166 : US0 = v164 |> Option.map v57 |> │
00:01:11 #2074 [Verbose] > │ Option.defaultValue v165 │
00:01:11 #2075 [Verbose] > │ let v167 : string = "f64::NAN" │
00:01:11 #2076 [Verbose] > │ let v168 : float = Fable.Core.RustInterop.emitRustExpr │
00:01:11 #2077 [Verbose] > │ () v167 │
00:01:11 #2078 [Verbose] > │ let v169 : string = "f64::NAN" │
00:01:11 #2079 [Verbose] > │ let v170 : float = Fable.Core.RustInterop.emitRustExpr │
00:01:11 #2080 [Verbose] > │ () v169 │
00:01:11 #2081 [Verbose] > │ let v171 : float = method31(v168) │
00:01:11 #2082 [Verbose] > │ let v172 : float = method3(v171) │
00:01:11 #2083 [Verbose] > │ let v173 : float = method32(v170) │
00:01:11 #2084 [Verbose] > │ let v174 : string = "num_complex::Complex::new(v172, │
00:01:11 #2085 [Verbose] > │ v173)" │
00:01:11 #2086 [Verbose] > │ let v175 : num_complex_Complex<float> = │
00:01:11 #2087 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v174 │
00:01:11 #2088 [Verbose] > │ let v178 : num_complex_Complex<float> = │
00:01:11 #2089 [Verbose] > │ match v166 with │
00:01:11 #2090 [Verbose] > │ | US0_0 -> (* None *) │
00:01:11 #2091 [Verbose] > │ v175 │
00:01:11 #2092 [Verbose] > │ | US0_1(v176) -> (* Some *) │
00:01:11 #2093 [Verbose] > │ v176 │
00:01:11 #2094 [Verbose] > │ let v179 : float = method42() │
00:01:11 #2095 [Verbose] > │ let v180 : float = method3(v179) │
00:01:11 #2096 [Verbose] > │ let v181 : float = method4() │
00:01:11 #2097 [Verbose] > │ let v182 : string = "num_complex::Complex::new(v180, │
00:01:11 #2098 [Verbose] > │ v181)" │
00:01:11 #2099 [Verbose] > │ let v183 : num_complex_Complex<float> = │
00:01:11 #2100 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v182 │
00:01:11 #2101 [Verbose] > │ let v184 : string = "v183 * v110" │
00:01:11 #2102 [Verbose] > │ let v185 : num_complex_Complex<float> = │
00:01:11 #2103 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v184 │
00:01:11 #2104 [Verbose] > │ let v186 : float = method2() │
00:01:11 #2105 [Verbose] > │ let v187 : float = method3(v186) │
00:01:11 #2106 [Verbose] > │ let v188 : float = method4() │
00:01:11 #2107 [Verbose] > │ let v189 : string = "num_complex::Complex::new(v187, │
00:01:11 #2108 [Verbose] > │ v188)" │
00:01:11 #2109 [Verbose] > │ let v190 : num_complex_Complex<float> = │
00:01:11 #2110 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v189 │
00:01:11 #2111 [Verbose] > │ let v191 : string = "v185 / v190" │
00:01:11 #2112 [Verbose] > │ let v192 : num_complex_Complex<float> = │
00:01:11 #2113 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v191 │
00:01:11 #2114 [Verbose] > │ let v193 : string = "v192.sin()" │
00:01:11 #2115 [Verbose] > │ let v194 : num_complex_Complex<float> = │
00:01:11 #2116 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v193 │
00:01:11 #2117 [Verbose] > │ let v195 : num_complex_Complex<float> = method13(v110) │
00:01:11 #2118 [Verbose] > │ let v196 : string = "v195.re" │
00:01:11 #2119 [Verbose] > │ let v197 : float = Fable.Core.RustInterop.emitRustExpr │
00:01:11 #2120 [Verbose] > │ () v196 │
00:01:11 #2121 [Verbose] > │ let v198 : float = 1.0 - v197 │
00:01:11 #2122 [Verbose] > │ let v199 : num_complex_Complex<float> = method14(v110) │
00:01:11 #2123 [Verbose] > │ let v200 : string = "v199.im" │
00:01:11 #2124 [Verbose] > │ let v201 : float = Fable.Core.RustInterop.emitRustExpr │
00:01:11 #2125 [Verbose] > │ () v200 │
00:01:11 #2126 [Verbose] > │ let v202 : float = -v201 │
00:01:11 #2127 [Verbose] > │ let v203 : float = method31(v198) │
00:01:11 #2128 [Verbose] > │ let v204 : float = method3(v203) │
00:01:11 #2129 [Verbose] > │ let v205 : float = method32(v202) │
00:01:11 #2130 [Verbose] > │ let v206 : string = "num_complex::Complex::new(v204, │
00:01:11 #2131 [Verbose] > │ v205)" │
00:01:11 #2132 [Verbose] > │ let v207 : num_complex_Complex<float> = │
00:01:11 #2133 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v206 │
00:01:11 #2134 [Verbose] > │ let v208 : num_complex_Complex<float> = method13(v207) │
00:01:11 #2135 [Verbose] > │ let v209 : string = "v208.re" │
00:01:11 #2136 [Verbose] > │ let v210 : float = Fable.Core.RustInterop.emitRustExpr │
00:01:11 #2137 [Verbose] > │ () v209 │
00:01:11 #2138 [Verbose] > │ let v211 : bool = v210 <= 1.0 │
00:01:11 #2139 [Verbose] > │ let v610 : num_complex_Complex<float> = │
00:01:11 #2140 [Verbose] > │ if v211 then │
00:01:11 #2141 [Verbose] > │ let v212 : float = method35() │
00:01:11 #2142 [Verbose] > │ let v213 : float = method3(v212) │
00:01:11 #2143 [Verbose] > │ let v214 : float = method4() │
00:01:11 #2144 [Verbose] > │ let v215 : string = │
00:01:11 #2145 [Verbose] > │ "num_complex::Complex::new(v213, v214)" │
00:01:11 #2146 [Verbose] > │ let v216 : num_complex_Complex<float> = │
00:01:11 #2147 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v215 │
00:01:11 #2148 [Verbose] > │ v216 │
00:01:11 #2149 [Verbose] > │ else │
00:01:11 #2150 [Verbose] > │ let v217 : num_complex_Complex<float> = │
00:01:11 #2151 [Verbose] > │ method34(v207) │
00:01:11 #2152 [Verbose] > │ let v218 : string = "println!(\"zeta / count: │
00:01:11 #2153 [Verbose] > │ {:?} / s: {:?}\", 2, v217)" │
00:01:11 #2154 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v218 │
00:01:11 #2155 [Verbose] > │ let v219 : num_complex_Complex<float> = │
00:01:11 #2156 [Verbose] > │ method13(v217) │
00:01:11 #2157 [Verbose] > │ let v220 : string = "v219.re" │
00:01:11 #2158 [Verbose] > │ let v221 : float = │
00:01:11 #2159 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v220 │
00:01:11 #2160 [Verbose] > │ let v222 : bool = v221 > 1.0 │
00:01:11 #2161 [Verbose] > │ if v222 then │
00:01:11 #2162 [Verbose] > │ let v223 : float = method35() │
00:01:11 #2163 [Verbose] > │ let v224 : float = method3(v223) │
00:01:11 #2164 [Verbose] > │ let v225 : float = method4() │
00:01:11 #2165 [Verbose] > │ let v226 : string = │
00:01:11 #2166 [Verbose] > │ "num_complex::Complex::new(v224, v225)" │
00:01:11 #2167 [Verbose] > │ let v227 : num_complex_Complex<float> = │
00:01:11 #2168 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v226 │
00:01:11 #2169 [Verbose] > │ let v228 : (int32 []) = │
00:01:11 #2170 [Verbose] > │ Array.zeroCreate<int32> (10000) │
00:01:11 #2171 [Verbose] > │ let v229 : Mut0 = {l0 = 0} : Mut0 │
00:01:11 #2172 [Verbose] > │ while method36(v229) do │
00:01:11 #2173 [Verbose] > │ let v231 : int32 = v229.l0 │
00:01:11 #2174 [Verbose] > │ v228.[int v231] <- v231 │
00:01:11 #2175 [Verbose] > │ let v232 : int32 = v231 + 1 │
00:01:11 #2176 [Verbose] > │ v229.l0 <- v232 │
00:01:11 #2177 [Verbose] > │ () │
00:01:11 #2178 [Verbose] > │ let v233 : int32 = v228.Length │
00:01:11 #2179 [Verbose] > │ let v234 : Mut2 = {l0 = 0; l1 = v227} : Mut2 │
00:01:11 #2180 [Verbose] > │ while method37(v233, v234) do │
00:01:11 #2181 [Verbose] > │ let v236 : int32 = v234.l0 │
00:01:11 #2182 [Verbose] > │ let v237 : num_complex_Complex<float> = │
00:01:11 #2183 [Verbose] > │ v234.l1 │
00:01:11 #2184 [Verbose] > │ let v238 : int32 = v228.[int v236] │
00:01:11 #2185 [Verbose] > │ let v239 : float = method38() │
00:01:11 #2186 [Verbose] > │ let v240 : float = method3(v239) │
00:01:11 #2187 [Verbose] > │ let v241 : float = method4() │
00:01:11 #2188 [Verbose] > │ let v242 : string = │
00:01:11 #2189 [Verbose] > │ "num_complex::Complex::new(v240, v241)" │
00:01:11 #2190 [Verbose] > │ let v243 : num_complex_Complex<float> = │
00:01:11 #2191 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v242 │
00:01:11 #2192 [Verbose] > │ let v244 : float = float v238 │
00:01:11 #2193 [Verbose] > │ let v245 : float = method31(v244) │
00:01:11 #2194 [Verbose] > │ let v246 : float = method3(v245) │
00:01:11 #2195 [Verbose] > │ let v247 : float = method4() │
00:01:11 #2196 [Verbose] > │ let v248 : string = │
00:01:11 #2197 [Verbose] > │ "num_complex::Complex::new(v246, v247)" │
00:01:11 #2198 [Verbose] > │ let v249 : num_complex_Complex<float> = │
00:01:11 #2199 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v248 │
00:01:11 #2200 [Verbose] > │ let v250 : num_complex_Complex<float> = │
00:01:11 #2201 [Verbose] > │ method39(v249) │
00:01:11 #2202 [Verbose] > │ let v251 : num_complex_Complex<float> = │
00:01:11 #2203 [Verbose] > │ method40(v217) │
00:01:11 #2204 [Verbose] > │ let v252 : string = │
00:01:11 #2205 [Verbose] > │ "num_complex::Complex::powc(v250, v251)" │
00:01:11 #2206 [Verbose] > │ let v253 : num_complex_Complex<float> = │
00:01:11 #2207 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v252 │
00:01:11 #2208 [Verbose] > │ let v254 : string = "v243 / v253" │
00:01:11 #2209 [Verbose] > │ let v255 : num_complex_Complex<float> = │
00:01:11 #2210 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v254 │
00:01:11 #2211 [Verbose] > │ let v256 : string = "v237 + v255" │
00:01:11 #2212 [Verbose] > │ let v257 : num_complex_Complex<float> = │
00:01:11 #2213 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v256 │
00:01:11 #2214 [Verbose] > │ let v258 : int32 = v236 + 1 │
00:01:11 #2215 [Verbose] > │ v234.l0 <- v258 │
00:01:11 #2216 [Verbose] > │ v234.l1 <- v257 │
00:01:11 #2217 [Verbose] > │ () │
00:01:11 #2218 [Verbose] > │ let v259 : num_complex_Complex<float> = │
00:01:11 #2219 [Verbose] > │ v234.l1 │
00:01:11 #2220 [Verbose] > │ v259 │
00:01:11 #2221 [Verbose] > │ else │
00:01:11 #2222 [Verbose] > │ let v260 : float = method38() │
00:01:11 #2223 [Verbose] > │ let v261 : float = method3(v260) │
00:01:11 #2224 [Verbose] > │ let v262 : float = method4() │
00:01:11 #2225 [Verbose] > │ let v263 : string = │
00:01:11 #2226 [Verbose] > │ "num_complex::Complex::new(v261, v262)" │
00:01:11 #2227 [Verbose] > │ let v264 : num_complex_Complex<float> = │
00:01:11 #2228 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v263 │
00:01:11 #2229 [Verbose] > │ let v265 : string = "v264 - v217" │
00:01:11 #2230 [Verbose] > │ let v266 : num_complex_Complex<float> = │
00:01:11 #2231 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v265 │
00:01:11 #2232 [Verbose] > │ let v267 : string = $" s = │
00:01:11 #2233 [Verbose] > │ mpmath.gamma(s)" │
00:01:11 #2234 [Verbose] > │ let v268 : num_complex_Complex<float> = │
00:01:11 #2235 [Verbose] > │ method8(v266) │
00:01:11 #2236 [Verbose] > │ let v269 : │
00:01:11 #2237 [Verbose] > │ Result<num_complex_Complex<float>, std_string_String> = method41(v0, v267, │
00:01:11 #2238 [Verbose] > │ v268) │
00:01:11 #2239 [Verbose] > │ let v270 : string = "v269.ok()" │
00:01:11 #2240 [Verbose] > │ let v271 : num_complex_Complex<float> option │
00:01:11 #2241 [Verbose] > │ = Fable.Core.RustInterop.emitRustExpr () v270 │
00:01:11 #2242 [Verbose] > │ let v272 : US0 = US0_0 │
00:01:11 #2243 [Verbose] > │ let v273 : US0 = v271 |> Option.map v57 |> │
00:01:11 #2244 [Verbose] > │ Option.defaultValue v272 │
00:01:11 #2245 [Verbose] > │ let v274 : string = "f64::NAN" │
00:01:11 #2246 [Verbose] > │ let v275 : float = │
00:01:11 #2247 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v274 │
00:01:11 #2248 [Verbose] > │ let v276 : string = "f64::NAN" │
00:01:11 #2249 [Verbose] > │ let v277 : float = │
00:01:11 #2250 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v276 │
00:01:11 #2251 [Verbose] > │ let v278 : float = method31(v275) │
00:01:11 #2252 [Verbose] > │ let v279 : float = method3(v278) │
00:01:11 #2253 [Verbose] > │ let v280 : float = method32(v277) │
00:01:11 #2254 [Verbose] > │ let v281 : string = │
00:01:11 #2255 [Verbose] > │ "num_complex::Complex::new(v279, v280)" │
00:01:11 #2256 [Verbose] > │ let v282 : num_complex_Complex<float> = │
00:01:11 #2257 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v281 │
00:01:11 #2258 [Verbose] > │ let v285 : num_complex_Complex<float> = │
00:01:11 #2259 [Verbose] > │ match v273 with │
00:01:11 #2260 [Verbose] > │ | US0_0 -> (* None *) │
00:01:11 #2261 [Verbose] > │ v282 │
00:01:11 #2262 [Verbose] > │ | US0_1(v283) -> (* Some *) │
00:01:11 #2263 [Verbose] > │ v283 │
00:01:11 #2264 [Verbose] > │ let v286 : float = method42() │
00:01:11 #2265 [Verbose] > │ let v287 : float = method3(v286) │
00:01:11 #2266 [Verbose] > │ let v288 : float = method4() │
00:01:11 #2267 [Verbose] > │ let v289 : string = │
00:01:11 #2268 [Verbose] > │ "num_complex::Complex::new(v287, v288)" │
00:01:11 #2269 [Verbose] > │ let v290 : num_complex_Complex<float> = │
00:01:11 #2270 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v289 │
00:01:11 #2271 [Verbose] > │ let v291 : string = "v290 * v217" │
00:01:11 #2272 [Verbose] > │ let v292 : num_complex_Complex<float> = │
00:01:11 #2273 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v291 │
00:01:11 #2274 [Verbose] > │ let v293 : float = method2() │
00:01:11 #2275 [Verbose] > │ let v294 : float = method3(v293) │
00:01:11 #2276 [Verbose] > │ let v295 : float = method4() │
00:01:11 #2277 [Verbose] > │ let v296 : string = │
00:01:11 #2278 [Verbose] > │ "num_complex::Complex::new(v294, v295)" │
00:01:11 #2279 [Verbose] > │ let v297 : num_complex_Complex<float> = │
00:01:11 #2280 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v296 │
00:01:11 #2281 [Verbose] > │ let v298 : string = "v292 / v297" │
00:01:11 #2282 [Verbose] > │ let v299 : num_complex_Complex<float> = │
00:01:11 #2283 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v298 │
00:01:11 #2284 [Verbose] > │ let v300 : string = "v299.sin()" │
00:01:11 #2285 [Verbose] > │ let v301 : num_complex_Complex<float> = │
00:01:11 #2286 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v300 │
00:01:11 #2287 [Verbose] > │ let v302 : num_complex_Complex<float> = │
00:01:11 #2288 [Verbose] > │ method13(v217) │
00:01:11 #2289 [Verbose] > │ let v303 : string = "v302.re" │
00:01:11 #2290 [Verbose] > │ let v304 : float = │
00:01:11 #2291 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v303 │
00:01:11 #2292 [Verbose] > │ let v305 : float = 1.0 - v304 │
00:01:11 #2293 [Verbose] > │ let v306 : num_complex_Complex<float> = │
00:01:11 #2294 [Verbose] > │ method14(v217) │
00:01:11 #2295 [Verbose] > │ let v307 : string = "v306.im" │
00:01:11 #2296 [Verbose] > │ let v308 : float = │
00:01:11 #2297 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v307 │
00:01:11 #2298 [Verbose] > │ let v309 : float = -v308 │
00:01:11 #2299 [Verbose] > │ let v310 : float = method31(v305) │
00:01:11 #2300 [Verbose] > │ let v311 : float = method3(v310) │
00:01:11 #2301 [Verbose] > │ let v312 : float = method32(v309) │
00:01:11 #2302 [Verbose] > │ let v313 : string = │
00:01:11 #2303 [Verbose] > │ "num_complex::Complex::new(v311, v312)" │
00:01:11 #2304 [Verbose] > │ let v314 : num_complex_Complex<float> = │
00:01:11 #2305 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v313 │
00:01:11 #2306 [Verbose] > │ let v315 : num_complex_Complex<float> = │
00:01:11 #2307 [Verbose] > │ method13(v314) │
00:01:11 #2308 [Verbose] > │ let v316 : string = "v315.re" │
00:01:11 #2309 [Verbose] > │ let v317 : float = │
00:01:11 #2310 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v316 │
00:01:11 #2311 [Verbose] > │ let v318 : bool = v317 <= 1.0 │
00:01:11 #2312 [Verbose] > │ let v586 : num_complex_Complex<float> = │
00:01:11 #2313 [Verbose] > │ if v318 then │
00:01:11 #2314 [Verbose] > │ let v319 : float = method35() │
00:01:11 #2315 [Verbose] > │ let v320 : float = method3(v319) │
00:01:11 #2316 [Verbose] > │ let v321 : float = method4() │
00:01:11 #2317 [Verbose] > │ let v322 : string = │
00:01:11 #2318 [Verbose] > │ "num_complex::Complex::new(v320, v321)" │
00:01:11 #2319 [Verbose] > │ let v323 : │
00:01:11 #2320 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v322 │
00:01:11 #2321 [Verbose] > │ v323 │
00:01:11 #2322 [Verbose] > │ else │
00:01:11 #2323 [Verbose] > │ let v324 : │
00:01:11 #2324 [Verbose] > │ num_complex_Complex<float> = method34(v314) │
00:01:11 #2325 [Verbose] > │ let v325 : string = "println!(\"zeta │
00:01:11 #2326 [Verbose] > │ / count: {:?} / s: {:?}\", 3, v324)" │
00:01:11 #2327 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr │
00:01:11 #2328 [Verbose] > │ () v325 │
00:01:11 #2329 [Verbose] > │ let v326 : │
00:01:11 #2330 [Verbose] > │ num_complex_Complex<float> = method13(v324) │
00:01:11 #2331 [Verbose] > │ let v327 : string = "v326.re" │
00:01:11 #2332 [Verbose] > │ let v328 : float = │
00:01:11 #2333 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v327 │
00:01:11 #2334 [Verbose] > │ let v329 : bool = v328 > 1.0 │
00:01:11 #2335 [Verbose] > │ if v329 then │
00:01:11 #2336 [Verbose] > │ let v330 : float = method35() │
00:01:11 #2337 [Verbose] > │ let v331 : float = method3(v330) │
00:01:11 #2338 [Verbose] > │ let v332 : float = method4() │
00:01:11 #2339 [Verbose] > │ let v333 : string = │
00:01:11 #2340 [Verbose] > │ "num_complex::Complex::new(v331, v332)" │
00:01:11 #2341 [Verbose] > │ let v334 : │
00:01:11 #2342 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v333 │
00:01:11 #2343 [Verbose] > │ let v335 : (int32 []) = │
00:01:11 #2344 [Verbose] > │ Array.zeroCreate<int32> (10000) │
00:01:11 #2345 [Verbose] > │ let v336 : Mut0 = {l0 = 0} : │
00:01:11 #2346 [Verbose] > │ Mut0 │
00:01:11 #2347 [Verbose] > │ while method36(v336) do │
00:01:11 #2348 [Verbose] > │ let v338 : int32 = v336.l0 │
00:01:11 #2349 [Verbose] > │ v335.[int v338] <- v338 │
00:01:11 #2350 [Verbose] > │ let v339 : int32 = v338 + 1 │
00:01:11 #2351 [Verbose] > │ v336.l0 <- v339 │
00:01:11 #2352 [Verbose] > │ () │
00:01:11 #2353 [Verbose] > │ let v340 : int32 = v335.Length │
00:01:11 #2354 [Verbose] > │ let v341 : Mut2 = {l0 = 0; l1 = │
00:01:11 #2355 [Verbose] > │ v334} : Mut2 │
00:01:11 #2356 [Verbose] > │ while method37(v340, v341) do │
00:01:11 #2357 [Verbose] > │ let v343 : int32 = v341.l0 │
00:01:11 #2358 [Verbose] > │ let v344 : │
00:01:11 #2359 [Verbose] > │ num_complex_Complex<float> = v341.l1 │
00:01:11 #2360 [Verbose] > │ let v345 : int32 = v335.[int │
00:01:11 #2361 [Verbose] > │ v343] │
00:01:11 #2362 [Verbose] > │ let v346 : float = │
00:01:11 #2363 [Verbose] > │ method38() │
00:01:11 #2364 [Verbose] > │ let v347 : float = │
00:01:11 #2365 [Verbose] > │ method3(v346) │
00:01:11 #2366 [Verbose] > │ let v348 : float = method4() │
00:01:11 #2367 [Verbose] > │ let v349 : string = │
00:01:11 #2368 [Verbose] > │ "num_complex::Complex::new(v347, v348)" │
00:01:11 #2369 [Verbose] > │ let v350 : │
00:01:11 #2370 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v349 │
00:01:11 #2371 [Verbose] > │ let v351 : float = float │
00:01:11 #2372 [Verbose] > │ v345 │
00:01:11 #2373 [Verbose] > │ let v352 : float = │
00:01:11 #2374 [Verbose] > │ method31(v351) │
00:01:11 #2375 [Verbose] > │ let v353 : float = │
00:01:11 #2376 [Verbose] > │ method3(v352) │
00:01:11 #2377 [Verbose] > │ let v354 : float = method4() │
00:01:11 #2378 [Verbose] > │ let v355 : string = │
00:01:11 #2379 [Verbose] > │ "num_complex::Complex::new(v353, v354)" │
00:01:11 #2380 [Verbose] > │ let v356 : │
00:01:11 #2381 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v355 │
00:01:11 #2382 [Verbose] > │ let v357 : │
00:01:11 #2383 [Verbose] > │ num_complex_Complex<float> = method39(v356) │
00:01:11 #2384 [Verbose] > │ let v358 : │
00:01:11 #2385 [Verbose] > │ num_complex_Complex<float> = method40(v324) │
00:01:11 #2386 [Verbose] > │ let v359 : string = │
00:01:11 #2387 [Verbose] > │ "num_complex::Complex::powc(v357, v358)" │
00:01:11 #2388 [Verbose] > │ let v360 : │
00:01:11 #2389 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v359 │
00:01:11 #2390 [Verbose] > │ let v361 : string = "v350 / │
00:01:11 #2391 [Verbose] > │ v360" │
00:01:11 #2392 [Verbose] > │ let v362 : │
00:01:11 #2393 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v361 │
00:01:11 #2394 [Verbose] > │ let v363 : string = "v344 + │
00:01:11 #2395 [Verbose] > │ v362" │
00:01:11 #2396 [Verbose] > │ let v364 : │
00:01:11 #2397 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v363 │
00:01:11 #2398 [Verbose] > │ let v365 : int32 = v343 + 1 │
00:01:11 #2399 [Verbose] > │ v341.l0 <- v365 │
00:01:11 #2400 [Verbose] > │ v341.l1 <- v364 │
00:01:11 #2401 [Verbose] > │ () │
00:01:11 #2402 [Verbose] > │ let v366 : │
00:01:11 #2403 [Verbose] > │ num_complex_Complex<float> = v341.l1 │
00:01:11 #2404 [Verbose] > │ v366 │
00:01:11 #2405 [Verbose] > │ else │
00:01:11 #2406 [Verbose] > │ let v367 : float = method38() │
00:01:11 #2407 [Verbose] > │ let v368 : float = method3(v367) │
00:01:11 #2408 [Verbose] > │ let v369 : float = method4() │
00:01:11 #2409 [Verbose] > │ let v370 : string = │
00:01:11 #2410 [Verbose] > │ "num_complex::Complex::new(v368, v369)" │
00:01:11 #2411 [Verbose] > │ let v371 : │
00:01:11 #2412 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v370 │
00:01:11 #2413 [Verbose] > │ let v372 : string = "v371 - │
00:01:11 #2414 [Verbose] > │ v324" │
00:01:11 #2415 [Verbose] > │ let v373 : │
00:01:11 #2416 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v372 │
00:01:11 #2417 [Verbose] > │ let v374 : string = $" s │
00:01:11 #2418 [Verbose] > │ = mpmath.gamma(s)" │
00:01:11 #2419 [Verbose] > │ let v375 : │
00:01:11 #2420 [Verbose] > │ num_complex_Complex<float> = method8(v373) │
00:01:11 #2421 [Verbose] > │ let v376 : │
00:01:11 #2422 [Verbose] > │ Result<num_complex_Complex<float>, std_string_String> = method41(v0, v374, │
00:01:11 #2423 [Verbose] > │ v375) │
00:01:11 #2424 [Verbose] > │ let v377 : string = "v376.ok()" │
00:01:11 #2425 [Verbose] > │ let v378 : │
00:01:11 #2426 [Verbose] > │ num_complex_Complex<float> option = Fable.Core.RustInterop.emitRustExpr () │
00:01:11 #2427 [Verbose] > │ v377 │
00:01:11 #2428 [Verbose] > │ let v379 : US0 = US0_0 │
00:01:11 #2429 [Verbose] > │ let v380 : US0 = v378 |> │
00:01:11 #2430 [Verbose] > │ Option.map v57 |> Option.defaultValue v379 │
00:01:11 #2431 [Verbose] > │ let v381 : string = "f64::NAN" │
00:01:11 #2432 [Verbose] > │ let v382 : float = │
00:01:11 #2433 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v381 │
00:01:11 #2434 [Verbose] > │ let v383 : string = "f64::NAN" │
00:01:11 #2435 [Verbose] > │ let v384 : float = │
00:01:11 #2436 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v383 │
00:01:11 #2437 [Verbose] > │ let v385 : float = │
00:01:11 #2438 [Verbose] > │ method31(v382) │
00:01:11 #2439 [Verbose] > │ let v386 : float = method3(v385) │
00:01:11 #2440 [Verbose] > │ let v387 : float = │
00:01:11 #2441 [Verbose] > │ method32(v384) │
00:01:11 #2442 [Verbose] > │ let v388 : string = │
00:01:11 #2443 [Verbose] > │ "num_complex::Complex::new(v386, v387)" │
00:01:11 #2444 [Verbose] > │ let v389 : │
00:01:11 #2445 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v388 │
00:01:11 #2446 [Verbose] > │ let v392 : │
00:01:11 #2447 [Verbose] > │ num_complex_Complex<float> = │
00:01:11 #2448 [Verbose] > │ match v380 with │
00:01:11 #2449 [Verbose] > │ | US0_0 -> (* None *) │
00:01:11 #2450 [Verbose] > │ v389 │
00:01:11 #2451 [Verbose] > │ | US0_1(v390) -> (* Some *) │
00:01:11 #2452 [Verbose] > │ v390 │
00:01:11 #2453 [Verbose] > │ let v393 : float = method42() │
00:01:11 #2454 [Verbose] > │ let v394 : float = method3(v393) │
00:01:11 #2455 [Verbose] > │ let v395 : float = method4() │
00:01:11 #2456 [Verbose] > │ let v396 : string = │
00:01:11 #2457 [Verbose] > │ "num_complex::Complex::new(v394, v395)" │
00:01:11 #2458 [Verbose] > │ let v397 : │
00:01:11 #2459 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v396 │
00:01:11 #2460 [Verbose] > │ let v398 : string = "v397 * │
00:01:11 #2461 [Verbose] > │ v324" │
00:01:11 #2462 [Verbose] > │ let v399 : │
00:01:11 #2463 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v398 │
00:01:11 #2464 [Verbose] > │ let v400 : float = method2() │
00:01:11 #2465 [Verbose] > │ let v401 : float = method3(v400) │
00:01:11 #2466 [Verbose] > │ let v402 : float = method4() │
00:01:11 #2467 [Verbose] > │ let v403 : string = │
00:01:11 #2468 [Verbose] > │ "num_complex::Complex::new(v401, v402)" │
00:01:11 #2469 [Verbose] > │ let v404 : │
00:01:11 #2470 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v403 │
00:01:11 #2471 [Verbose] > │ let v405 : string = "v399 / │
00:01:11 #2472 [Verbose] > │ v404" │
00:01:11 #2473 [Verbose] > │ let v406 : │
00:01:11 #2474 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v405 │
00:01:11 #2475 [Verbose] > │ let v407 : string = "v406.sin()" │
00:01:11 #2476 [Verbose] > │ let v408 : │
00:01:11 #2477 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v407 │
00:01:11 #2478 [Verbose] > │ let v409 : │
00:01:11 #2479 [Verbose] > │ num_complex_Complex<float> = method13(v324) │
00:01:11 #2480 [Verbose] > │ let v410 : string = "v409.re" │
00:01:11 #2481 [Verbose] > │ let v411 : float = │
00:01:11 #2482 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v410 │
00:01:11 #2483 [Verbose] > │ let v412 : float = 1.0 - v411 │
00:01:11 #2484 [Verbose] > │ let v413 : │
00:01:11 #2485 [Verbose] > │ num_complex_Complex<float> = method14(v324) │
00:01:11 #2486 [Verbose] > │ let v414 : string = "v413.im" │
00:01:11 #2487 [Verbose] > │ let v415 : float = │
00:01:11 #2488 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v414 │
00:01:11 #2489 [Verbose] > │ let v416 : float = -v415 │
00:01:11 #2490 [Verbose] > │ let v417 : float = │
00:01:11 #2491 [Verbose] > │ method31(v412) │
00:01:11 #2492 [Verbose] > │ let v418 : float = method3(v417) │
00:01:11 #2493 [Verbose] > │ let v419 : float = │
00:01:11 #2494 [Verbose] > │ method32(v416) │
00:01:11 #2495 [Verbose] > │ let v420 : string = │
00:01:11 #2496 [Verbose] > │ "num_complex::Complex::new(v418, v419)" │
00:01:11 #2497 [Verbose] > │ let v421 : │
00:01:11 #2498 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v420 │
00:01:11 #2499 [Verbose] > │ let v422 : │
00:01:11 #2500 [Verbose] > │ num_complex_Complex<float> = method13(v421) │
00:01:11 #2501 [Verbose] > │ let v423 : string = "v422.re" │
00:01:11 #2502 [Verbose] > │ let v424 : float = │
00:01:11 #2503 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v423 │
00:01:11 #2504 [Verbose] > │ let v425 : bool = v424 <= 1.0 │
00:01:11 #2505 [Verbose] > │ let v562 : │
00:01:11 #2506 [Verbose] > │ num_complex_Complex<float> = │
00:01:11 #2507 [Verbose] > │ if v425 then │
00:01:11 #2508 [Verbose] > │ let v426 : float = │
00:01:11 #2509 [Verbose] > │ method35() │
00:01:11 #2510 [Verbose] > │ let v427 : float = │
00:01:11 #2511 [Verbose] > │ method3(v426) │
00:01:11 #2512 [Verbose] > │ let v428 : float = │
00:01:11 #2513 [Verbose] > │ method4() │
00:01:11 #2514 [Verbose] > │ let v429 : string = │
00:01:11 #2515 [Verbose] > │ "num_complex::Complex::new(v427, v428)" │
00:01:11 #2516 [Verbose] > │ let v430 : │
00:01:11 #2517 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v429 │
00:01:11 #2518 [Verbose] > │ v430 │
00:01:11 #2519 [Verbose] > │ else │
00:01:11 #2520 [Verbose] > │ let v431 : │
00:01:11 #2521 [Verbose] > │ num_complex_Complex<float> = method34(v421) │
00:01:11 #2522 [Verbose] > │ let v432 : string = │
00:01:11 #2523 [Verbose] > │ "println!(\"zeta / count: {:?} / s: {:?}\", 4, v431)" │
00:01:11 #2524 [Verbose] > │ │
00:01:11 #2525 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v432 │
00:01:11 #2526 [Verbose] > │ let v433 : │
00:01:11 #2527 [Verbose] > │ num_complex_Complex<float> = method13(v431) │
00:01:11 #2528 [Verbose] > │ let v434 : string = │
00:01:11 #2529 [Verbose] > │ "v433.re" │
00:01:11 #2530 [Verbose] > │ let v435 : float = │
00:01:11 #2531 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v434 │
00:01:11 #2532 [Verbose] > │ let v436 : bool = v435 > │
00:01:11 #2533 [Verbose] > │ 1.0 │
00:01:11 #2534 [Verbose] > │ if v436 then │
00:01:11 #2535 [Verbose] > │ let v437 : float = │
00:01:11 #2536 [Verbose] > │ method35() │
00:01:11 #2537 [Verbose] > │ let v438 : float = │
00:01:11 #2538 [Verbose] > │ method3(v437) │
00:01:11 #2539 [Verbose] > │ let v439 : float = │
00:01:11 #2540 [Verbose] > │ method4() │
00:01:11 #2541 [Verbose] > │ let v440 : string = │
00:01:11 #2542 [Verbose] > │ "num_complex::Complex::new(v438, v439)" │
00:01:11 #2543 [Verbose] > │ let v441 : │
00:01:11 #2544 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v440 │
00:01:11 #2545 [Verbose] > │ let v442 : (int32 [ │
00:01:11 #2546 [Verbose] > │ ]) = Array.zeroCreate<int32> (10000) │
00:01:11 #2547 [Verbose] > │ let v443 : Mut0 = │
00:01:11 #2548 [Verbose] > │ {l0 = 0} : Mut0 │
00:01:11 #2549 [Verbose] > │ while method36(v443) │
00:01:11 #2550 [Verbose] > │ do │
00:01:11 #2551 [Verbose] > │ let v445 : int32 │
00:01:11 #2552 [Verbose] > │ = v443.l0 │
00:01:11 #2553 [Verbose] > │ v442.[int v445] │
00:01:11 #2554 [Verbose] > │ <- v445 │
00:01:11 #2555 [Verbose] > │ let v446 : int32 │
00:01:11 #2556 [Verbose] > │ = v445 + 1 │
00:01:11 #2557 [Verbose] > │ v443.l0 <- v446 │
00:01:11 #2558 [Verbose] > │ () │
00:01:11 #2559 [Verbose] > │ let v447 : int32 = │
00:01:11 #2560 [Verbose] > │ v442.Length │
00:01:11 #2561 [Verbose] > │ let v448 : Mut2 = │
00:01:11 #2562 [Verbose] > │ {l0 = 0; l1 = v441} : Mut2 │
00:01:11 #2563 [Verbose] > │ while method37(v447, │
00:01:11 #2564 [Verbose] > │ v448) do │
00:01:11 #2565 [Verbose] > │ let v450 : int32 │
00:01:11 #2566 [Verbose] > │ = v448.l0 │
00:01:11 #2567 [Verbose] > │ let v451 : │
00:01:11 #2568 [Verbose] > │ num_complex_Complex<float> = v448.l1 │
00:01:11 #2569 [Verbose] > │ let v452 : int32 │
00:01:11 #2570 [Verbose] > │ = v442.[int v450] │
00:01:11 #2571 [Verbose] > │ let v453 : float │
00:01:11 #2572 [Verbose] > │ = method38() │
00:01:11 #2573 [Verbose] > │ let v454 : float │
00:01:11 #2574 [Verbose] > │ = method3(v453) │
00:01:11 #2575 [Verbose] > │ let v455 : float │
00:01:11 #2576 [Verbose] > │ = method4() │
00:01:11 #2577 [Verbose] > │ let v456 : │
00:01:11 #2578 [Verbose] > │ string = "num_complex::Complex::new(v454, v455)" │
00:01:11 #2579 [Verbose] > │ let v457 : │
00:01:11 #2580 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v456 │
00:01:11 #2581 [Verbose] > │ let v458 : float │
00:01:11 #2582 [Verbose] > │ = float v452 │
00:01:11 #2583 [Verbose] > │ let v459 : float │
00:01:11 #2584 [Verbose] > │ = method31(v458) │
00:01:11 #2585 [Verbose] > │ let v460 : float │
00:01:11 #2586 [Verbose] > │ = method3(v459) │
00:01:11 #2587 [Verbose] > │ let v461 : float │
00:01:11 #2588 [Verbose] > │ = method4() │
00:01:11 #2589 [Verbose] > │ let v462 : │
00:01:11 #2590 [Verbose] > │ string = "num_complex::Complex::new(v460, v461)" │
00:01:11 #2591 [Verbose] > │ let v463 : │
00:01:11 #2592 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v462 │
00:01:11 #2593 [Verbose] > │ let v464 : │
00:01:11 #2594 [Verbose] > │ num_complex_Complex<float> = method39(v463) │
00:01:11 #2595 [Verbose] > │ let v465 : │
00:01:11 #2596 [Verbose] > │ num_complex_Complex<float> = method40(v431) │
00:01:11 #2597 [Verbose] > │ let v466 : │
00:01:11 #2598 [Verbose] > │ string = "num_complex::Complex::powc(v464, v465)" │
00:01:11 #2599 [Verbose] > │ let v467 : │
00:01:11 #2600 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v466 │
00:01:11 #2601 [Verbose] > │ let v468 : │
00:01:11 #2602 [Verbose] > │ string = "v457 / v467" │
00:01:11 #2603 [Verbose] > │ let v469 : │
00:01:11 #2604 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v468 │
00:01:11 #2605 [Verbose] > │ let v470 : │
00:01:11 #2606 [Verbose] > │ string = "v451 + v469" │
00:01:11 #2607 [Verbose] > │ let v471 : │
00:01:11 #2608 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v470 │
00:01:11 #2609 [Verbose] > │ let v472 : int32 │
00:01:11 #2610 [Verbose] > │ = v450 + 1 │
00:01:11 #2611 [Verbose] > │ v448.l0 <- v472 │
00:01:11 #2612 [Verbose] > │ v448.l1 <- v471 │
00:01:11 #2613 [Verbose] > │ () │
00:01:11 #2614 [Verbose] > │ let v473 : │
00:01:11 #2615 [Verbose] > │ num_complex_Complex<float> = v448.l1 │
00:01:11 #2616 [Verbose] > │ v473 │
00:01:11 #2617 [Verbose] > │ else │
00:01:11 #2618 [Verbose] > │ let v474 : float = │
00:01:11 #2619 [Verbose] > │ method38() │
00:01:11 #2620 [Verbose] > │ let v475 : float = │
00:01:11 #2621 [Verbose] > │ method3(v474) │
00:01:11 #2622 [Verbose] > │ let v476 : float = │
00:01:11 #2623 [Verbose] > │ method4() │
00:01:11 #2624 [Verbose] > │ let v477 : string = │
00:01:11 #2625 [Verbose] > │ "num_complex::Complex::new(v475, v476)" │
00:01:11 #2626 [Verbose] > │ let v478 : │
00:01:11 #2627 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v477 │
00:01:11 #2628 [Verbose] > │ let v479 : string = │
00:01:11 #2629 [Verbose] > │ "v478 - v431" │
00:01:11 #2630 [Verbose] > │ let v480 : │
00:01:11 #2631 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v479 │
00:01:11 #2632 [Verbose] > │ let v481 : string = │
00:01:11 #2633 [Verbose] > │ $" s = mpmath.gamma(s)" │
00:01:11 #2634 [Verbose] > │ let v482 : │
00:01:11 #2635 [Verbose] > │ num_complex_Complex<float> = method8(v480) │
00:01:11 #2636 [Verbose] > │ let v483 : │
00:01:11 #2637 [Verbose] > │ Result<num_complex_Complex<float>, std_string_String> = method41(v0, v481, │
00:01:11 #2638 [Verbose] > │ v482) │
00:01:11 #2639 [Verbose] > │ let v484 : string = │
00:01:11 #2640 [Verbose] > │ "v483.ok()" │
00:01:11 #2641 [Verbose] > │ let v485 : │
00:01:11 #2642 [Verbose] > │ num_complex_Complex<float> option = Fable.Core.RustInterop.emitRustExpr () │
00:01:11 #2643 [Verbose] > │ v484 │
00:01:11 #2644 [Verbose] > │ let v486 : US0 = │
00:01:11 #2645 [Verbose] > │ US0_0 │
00:01:11 #2646 [Verbose] > │ let v487 : US0 = │
00:01:11 #2647 [Verbose] > │ v485 |> Option.map v57 |> Option.defaultValue v486 │
00:01:11 #2648 [Verbose] > │ let v488 : string = │
00:01:11 #2649 [Verbose] > │ "f64::NAN" │
00:01:11 #2650 [Verbose] > │ let v489 : float = │
00:01:11 #2651 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v488 │
00:01:11 #2652 [Verbose] > │ let v490 : string = │
00:01:11 #2653 [Verbose] > │ "f64::NAN" │
00:01:11 #2654 [Verbose] > │ let v491 : float = │
00:01:11 #2655 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v490 │
00:01:11 #2656 [Verbose] > │ let v492 : float = │
00:01:11 #2657 [Verbose] > │ method31(v489) │
00:01:11 #2658 [Verbose] > │ let v493 : float = │
00:01:11 #2659 [Verbose] > │ method3(v492) │
00:01:11 #2660 [Verbose] > │ let v494 : float = │
00:01:11 #2661 [Verbose] > │ method32(v491) │
00:01:11 #2662 [Verbose] > │ let v495 : string = │
00:01:11 #2663 [Verbose] > │ "num_complex::Complex::new(v493, v494)" │
00:01:11 #2664 [Verbose] > │ let v496 : │
00:01:11 #2665 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v495 │
00:01:11 #2666 [Verbose] > │ let v499 : │
00:01:11 #2667 [Verbose] > │ num_complex_Complex<float> = │
00:01:11 #2668 [Verbose] > │ match v487 with │
00:01:11 #2669 [Verbose] > │ | US0_0 -> (* │
00:01:11 #2670 [Verbose] > │ None *) │
00:01:11 #2671 [Verbose] > │ v496 │
00:01:11 #2672 [Verbose] > │ | US0_1(v497) -> │
00:01:11 #2673 [Verbose] > │ (* Some *) │
00:01:11 #2674 [Verbose] > │ v497 │
00:01:11 #2675 [Verbose] > │ let v500 : float = │
00:01:11 #2676 [Verbose] > │ method42() │
00:01:11 #2677 [Verbose] > │ let v501 : float = │
00:01:11 #2678 [Verbose] > │ method3(v500) │
00:01:11 #2679 [Verbose] > │ let v502 : float = │
00:01:11 #2680 [Verbose] > │ method4() │
00:01:11 #2681 [Verbose] > │ let v503 : string = │
00:01:11 #2682 [Verbose] > │ "num_complex::Complex::new(v501, v502)" │
00:01:11 #2683 [Verbose] > │ let v504 : │
00:01:11 #2684 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v503 │
00:01:11 #2685 [Verbose] > │ let v505 : string = │
00:01:11 #2686 [Verbose] > │ "v504 * v431" │
00:01:11 #2687 [Verbose] > │ let v506 : │
00:01:11 #2688 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v505 │
00:01:11 #2689 [Verbose] > │ let v507 : float = │
00:01:11 #2690 [Verbose] > │ method2() │
00:01:11 #2691 [Verbose] > │ let v508 : float = │
00:01:11 #2692 [Verbose] > │ method3(v507) │
00:01:11 #2693 [Verbose] > │ let v509 : float = │
00:01:11 #2694 [Verbose] > │ method4() │
00:01:11 #2695 [Verbose] > │ let v510 : string = │
00:01:11 #2696 [Verbose] > │ "num_complex::Complex::new(v508, v509)" │
00:01:11 #2697 [Verbose] > │ let v511 : │
00:01:11 #2698 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v510 │
00:01:11 #2699 [Verbose] > │ let v512 : string = │
00:01:11 #2700 [Verbose] > │ "v506 / v511" │
00:01:11 #2701 [Verbose] > │ let v513 : │
00:01:11 #2702 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v512 │
00:01:11 #2703 [Verbose] > │ let v514 : string = │
00:01:11 #2704 [Verbose] > │ "v513.sin()" │
00:01:11 #2705 [Verbose] > │ let v515 : │
00:01:11 #2706 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v514 │
00:01:11 #2707 [Verbose] > │ let v516 : │
00:01:11 #2708 [Verbose] > │ num_complex_Complex<float> = method13(v431) │
00:01:11 #2709 [Verbose] > │ let v517 : string = │
00:01:11 #2710 [Verbose] > │ "v516.re" │
00:01:11 #2711 [Verbose] > │ let v518 : float = │
00:01:11 #2712 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v517 │
00:01:11 #2713 [Verbose] > │ let v519 : float = │
00:01:11 #2714 [Verbose] > │ 1.0 - v518 │
00:01:11 #2715 [Verbose] > │ let v520 : │
00:01:11 #2716 [Verbose] > │ num_complex_Complex<float> = method14(v431) │
00:01:11 #2717 [Verbose] > │ let v521 : string = │
00:01:11 #2718 [Verbose] > │ "v520.im" │
00:01:11 #2719 [Verbose] > │ let v522 : float = │
00:01:11 #2720 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v521 │
00:01:11 #2721 [Verbose] > │ let v523 : float = │
00:01:11 #2722 [Verbose] > │ -v522 │
00:01:11 #2723 [Verbose] > │ let v524 : float = │
00:01:11 #2724 [Verbose] > │ method31(v519) │
00:01:11 #2725 [Verbose] > │ let v525 : float = │
00:01:11 #2726 [Verbose] > │ method3(v524) │
00:01:11 #2727 [Verbose] > │ let v526 : float = │
00:01:11 #2728 [Verbose] > │ method32(v523) │
00:01:11 #2729 [Verbose] > │ let v527 : string = │
00:01:11 #2730 [Verbose] > │ "num_complex::Complex::new(v525, v526)" │
00:01:11 #2731 [Verbose] > │ let v528 : │
00:01:11 #2732 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v527 │
00:01:11 #2733 [Verbose] > │ let v529 : │
00:01:11 #2734 [Verbose] > │ num_complex_Complex<float> = method13(v528) │
00:01:11 #2735 [Verbose] > │ let v530 : string = │
00:01:11 #2736 [Verbose] > │ "v529.re" │
00:01:11 #2737 [Verbose] > │ let v531 : float = │
00:01:11 #2738 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v530 │
00:01:11 #2739 [Verbose] > │ let v532 : bool = │
00:01:11 #2740 [Verbose] > │ v531 <= 1.0 │
00:01:11 #2741 [Verbose] > │ let v538 : │
00:01:11 #2742 [Verbose] > │ num_complex_Complex<float> = │
00:01:11 #2743 [Verbose] > │ if v532 then │
00:01:11 #2744 [Verbose] > │ let v533 : │
00:01:11 #2745 [Verbose] > │ float = method35() │
00:01:11 #2746 [Verbose] > │ let v534 : │
00:01:11 #2747 [Verbose] > │ float = method3(v533) │
00:01:11 #2748 [Verbose] > │ let v535 : │
00:01:11 #2749 [Verbose] > │ float = method4() │
00:01:11 #2750 [Verbose] > │ let v536 : │
00:01:11 #2751 [Verbose] > │ string = "num_complex::Complex::new(v534, v535)" │
00:01:11 #2752 [Verbose] > │ let v537 : │
00:01:11 #2753 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v536 │
00:01:11 #2754 [Verbose] > │ v537 │
00:01:11 #2755 [Verbose] > │ else │
00:01:11 #2756 [Verbose] > │ v528 │
00:01:11 #2757 [Verbose] > │ let v539 : float = │
00:01:11 #2758 [Verbose] > │ method2() │
00:01:11 #2759 [Verbose] > │ let v540 : float = │
00:01:11 #2760 [Verbose] > │ method3(v539) │
00:01:11 #2761 [Verbose] > │ let v541 : float = │
00:01:11 #2762 [Verbose] > │ method4() │
00:01:11 #2763 [Verbose] > │ let v542 : string = │
00:01:11 #2764 [Verbose] > │ "num_complex::Complex::new(v540, v541)" │
00:01:11 #2765 [Verbose] > │ let v543 : │
00:01:11 #2766 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v542 │
00:01:11 #2767 [Verbose] > │ let v544 : float = │
00:01:11 #2768 [Verbose] > │ method42() │
00:01:11 #2769 [Verbose] > │ let v545 : float = │
00:01:11 #2770 [Verbose] > │ method3(v544) │
00:01:11 #2771 [Verbose] > │ let v546 : float = │
00:01:11 #2772 [Verbose] > │ method4() │
00:01:11 #2773 [Verbose] > │ let v547 : string = │
00:01:11 #2774 [Verbose] > │ "num_complex::Complex::new(v545, v546)" │
00:01:11 #2775 [Verbose] > │ let v548 : │
00:01:11 #2776 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v547 │
00:01:11 #2777 [Verbose] > │ let v549 : │
00:01:11 #2778 [Verbose] > │ num_complex_Complex<float> = method39(v548) │
00:01:11 #2779 [Verbose] > │ let v550 : │
00:01:11 #2780 [Verbose] > │ num_complex_Complex<float> = method40(v431) │
00:01:11 #2781 [Verbose] > │ let v551 : string = │
00:01:11 #2782 [Verbose] > │ "num_complex::Complex::powc(v549, v550)" │
00:01:11 #2783 [Verbose] > │ let v552 : │
00:01:11 #2784 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v551 │
00:01:11 #2785 [Verbose] > │ let v553 : string = │
00:01:11 #2786 [Verbose] > │ "v543 * v552" │
00:01:11 #2787 [Verbose] > │ let v554 : │
00:01:11 #2788 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v553 │
00:01:11 #2789 [Verbose] > │ let v555 : string = │
00:01:11 #2790 [Verbose] > │ "v554 * v515" │
00:01:11 #2791 [Verbose] > │ let v556 : │
00:01:11 #2792 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v555 │
00:01:11 #2793 [Verbose] > │ let v557 : string = │
00:01:11 #2794 [Verbose] > │ "v556 * v499" │
00:01:11 #2795 [Verbose] > │ let v558 : │
00:01:11 #2796 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v557 │
00:01:11 #2797 [Verbose] > │ let v559 : string = │
00:01:11 #2798 [Verbose] > │ "v558 * v538" │
00:01:11 #2799 [Verbose] > │ let v560 : │
00:01:11 #2800 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v559 │
00:01:11 #2801 [Verbose] > │ v560 │
00:01:11 #2802 [Verbose] > │ let v563 : float = method2() │
00:01:11 #2803 [Verbose] > │ let v564 : float = method3(v563) │
00:01:11 #2804 [Verbose] > │ let v565 : float = method4() │
00:01:11 #2805 [Verbose] > │ let v566 : string = │
00:01:11 #2806 [Verbose] > │ "num_complex::Complex::new(v564, v565)" │
00:01:11 #2807 [Verbose] > │ let v567 : │
00:01:11 #2808 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v566 │
00:01:11 #2809 [Verbose] > │ let v568 : float = method42() │
00:01:11 #2810 [Verbose] > │ let v569 : float = method3(v568) │
00:01:11 #2811 [Verbose] > │ let v570 : float = method4() │
00:01:11 #2812 [Verbose] > │ let v571 : string = │
00:01:11 #2813 [Verbose] > │ "num_complex::Complex::new(v569, v570)" │
00:01:11 #2814 [Verbose] > │ let v572 : │
00:01:11 #2815 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v571 │
00:01:11 #2816 [Verbose] > │ let v573 : │
00:01:11 #2817 [Verbose] > │ num_complex_Complex<float> = method39(v572) │
00:01:11 #2818 [Verbose] > │ let v574 : │
00:01:11 #2819 [Verbose] > │ num_complex_Complex<float> = method40(v324) │
00:01:11 #2820 [Verbose] > │ let v575 : string = │
00:01:11 #2821 [Verbose] > │ "num_complex::Complex::powc(v573, v574)" │
00:01:11 #2822 [Verbose] > │ let v576 : │
00:01:11 #2823 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v575 │
00:01:11 #2824 [Verbose] > │ let v577 : string = "v567 * │
00:01:11 #2825 [Verbose] > │ v576" │
00:01:11 #2826 [Verbose] > │ let v578 : │
00:01:11 #2827 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v577 │
00:01:11 #2828 [Verbose] > │ let v579 : string = "v578 * │
00:01:11 #2829 [Verbose] > │ v408" │
00:01:11 #2830 [Verbose] > │ let v580 : │
00:01:11 #2831 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v579 │
00:01:11 #2832 [Verbose] > │ let v581 : string = "v580 * │
00:01:11 #2833 [Verbose] > │ v392" │
00:01:11 #2834 [Verbose] > │ let v582 : │
00:01:11 #2835 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v581 │
00:01:11 #2836 [Verbose] > │ let v583 : string = "v582 * │
00:01:11 #2837 [Verbose] > │ v562" │
00:01:11 #2838 [Verbose] > │ let v584 : │
00:01:11 #2839 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v583 │
00:01:11 #2840 [Verbose] > │ v584 │
00:01:11 #2841 [Verbose] > │ let v587 : float = method2() │
00:01:11 #2842 [Verbose] > │ let v588 : float = method3(v587) │
00:01:11 #2843 [Verbose] > │ let v589 : float = method4() │
00:01:11 #2844 [Verbose] > │ let v590 : string = │
00:01:11 #2845 [Verbose] > │ "num_complex::Complex::new(v588, v589)" │
00:01:11 #2846 [Verbose] > │ let v591 : num_complex_Complex<float> = │
00:01:11 #2847 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v590 │
00:01:11 #2848 [Verbose] > │ let v592 : float = method42() │
00:01:11 #2849 [Verbose] > │ let v593 : float = method3(v592) │
00:01:11 #2850 [Verbose] > │ let v594 : float = method4() │
00:01:11 #2851 [Verbose] > │ let v595 : string = │
00:01:11 #2852 [Verbose] > │ "num_complex::Complex::new(v593, v594)" │
00:01:11 #2853 [Verbose] > │ let v596 : num_complex_Complex<float> = │
00:01:11 #2854 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v595 │
00:01:11 #2855 [Verbose] > │ let v597 : num_complex_Complex<float> = │
00:01:11 #2856 [Verbose] > │ method39(v596) │
00:01:11 #2857 [Verbose] > │ let v598 : num_complex_Complex<float> = │
00:01:11 #2858 [Verbose] > │ method40(v217) │
00:01:11 #2859 [Verbose] > │ let v599 : string = │
00:01:11 #2860 [Verbose] > │ "num_complex::Complex::powc(v597, v598)" │
00:01:11 #2861 [Verbose] > │ let v600 : num_complex_Complex<float> = │
00:01:11 #2862 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v599 │
00:01:11 #2863 [Verbose] > │ let v601 : string = "v591 * v600" │
00:01:11 #2864 [Verbose] > │ let v602 : num_complex_Complex<float> = │
00:01:11 #2865 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v601 │
00:01:11 #2866 [Verbose] > │ let v603 : string = "v602 * v301" │
00:01:11 #2867 [Verbose] > │ let v604 : num_complex_Complex<float> = │
00:01:11 #2868 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v603 │
00:01:11 #2869 [Verbose] > │ let v605 : string = "v604 * v285" │
00:01:11 #2870 [Verbose] > │ let v606 : num_complex_Complex<float> = │
00:01:11 #2871 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v605 │
00:01:11 #2872 [Verbose] > │ let v607 : string = "v606 * v586" │
00:01:11 #2873 [Verbose] > │ let v608 : num_complex_Complex<float> = │
00:01:11 #2874 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v607 │
00:01:11 #2875 [Verbose] > │ v608 │
00:01:11 #2876 [Verbose] > │ let v611 : float = method2() │
00:01:11 #2877 [Verbose] > │ let v612 : float = method3(v611) │
00:01:11 #2878 [Verbose] > │ let v613 : float = method4() │
00:01:11 #2879 [Verbose] > │ let v614 : string = "num_complex::Complex::new(v612, │
00:01:11 #2880 [Verbose] > │ v613)" │
00:01:11 #2881 [Verbose] > │ let v615 : num_complex_Complex<float> = │
00:01:11 #2882 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v614 │
00:01:11 #2883 [Verbose] > │ let v616 : float = method42() │
00:01:11 #2884 [Verbose] > │ let v617 : float = method3(v616) │
00:01:11 #2885 [Verbose] > │ let v618 : float = method4() │
00:01:11 #2886 [Verbose] > │ let v619 : string = "num_complex::Complex::new(v617, │
00:01:11 #2887 [Verbose] > │ v618)" │
00:01:11 #2888 [Verbose] > │ let v620 : num_complex_Complex<float> = │
00:01:11 #2889 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v619 │
00:01:11 #2890 [Verbose] > │ let v621 : num_complex_Complex<float> = method39(v620) │
00:01:11 #2891 [Verbose] > │ let v622 : num_complex_Complex<float> = method40(v110) │
00:01:11 #2892 [Verbose] > │ let v623 : string = "num_complex::Complex::powc(v621, │
00:01:11 #2893 [Verbose] > │ v622)" │
00:01:11 #2894 [Verbose] > │ let v624 : num_complex_Complex<float> = │
00:01:11 #2895 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v623 │
00:01:11 #2896 [Verbose] > │ let v625 : string = "v615 * v624" │
00:01:11 #2897 [Verbose] > │ let v626 : num_complex_Complex<float> = │
00:01:11 #2898 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v625 │
00:01:11 #2899 [Verbose] > │ let v627 : string = "v626 * v194" │
00:01:11 #2900 [Verbose] > │ let v628 : num_complex_Complex<float> = │
00:01:11 #2901 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v627 │
00:01:11 #2902 [Verbose] > │ let v629 : string = "v628 * v178" │
00:01:11 #2903 [Verbose] > │ let v630 : num_complex_Complex<float> = │
00:01:11 #2904 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v629 │
00:01:11 #2905 [Verbose] > │ let v631 : string = "v630 * v610" │
00:01:11 #2906 [Verbose] > │ let v632 : num_complex_Complex<float> = │
00:01:11 #2907 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v631 │
00:01:11 #2908 [Verbose] > │ v632 │
00:01:11 #2909 [Verbose] > │ let v635 : float = method2() │
00:01:11 #2910 [Verbose] > │ let v636 : float = method3(v635) │
00:01:11 #2911 [Verbose] > │ let v637 : float = method4() │
00:01:11 #2912 [Verbose] > │ let v638 : string = "num_complex::Complex::new(v636, v637)" │
00:01:11 #2913 [Verbose] > │ let v639 : num_complex_Complex<float> = │
00:01:11 #2914 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v638 │
00:01:11 #2915 [Verbose] > │ let v640 : float = method42() │
00:01:11 #2916 [Verbose] > │ let v641 : float = method3(v640) │
00:01:11 #2917 [Verbose] > │ let v642 : float = method4() │
00:01:11 #2918 [Verbose] > │ let v643 : string = "num_complex::Complex::new(v641, v642)" │
00:01:11 #2919 [Verbose] > │ let v644 : num_complex_Complex<float> = │
00:01:11 #2920 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v643 │
00:01:11 #2921 [Verbose] > │ let v645 : num_complex_Complex<float> = method39(v644) │
00:01:11 #2922 [Verbose] > │ let v646 : num_complex_Complex<float> = method40(v2) │
00:01:11 #2923 [Verbose] > │ let v647 : string = "num_complex::Complex::powc(v645, v646)" │
00:01:11 #2924 [Verbose] > │ let v648 : num_complex_Complex<float> = │
00:01:11 #2925 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v647 │
00:01:11 #2926 [Verbose] > │ let v649 : string = "v639 * v648" │
00:01:11 #2927 [Verbose] > │ let v650 : num_complex_Complex<float> = │
00:01:11 #2928 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v649 │
00:01:11 #2929 [Verbose] > │ let v651 : string = "v650 * v87" │
00:01:11 #2930 [Verbose] > │ let v652 : num_complex_Complex<float> = │
00:01:11 #2931 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v651 │
00:01:11 #2932 [Verbose] > │ let v653 : string = "v652 * v71" │
00:01:11 #2933 [Verbose] > │ let v654 : num_complex_Complex<float> = │
00:01:11 #2934 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v653 │
00:01:11 #2935 [Verbose] > │ let v655 : string = "v654 * v634" │
00:01:11 #2936 [Verbose] > │ let v656 : num_complex_Complex<float> = │
00:01:11 #2937 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v655 │
00:01:11 #2938 [Verbose] > │ v656 │
00:01:11 #2939 [Verbose] > │ and method43 (v0 : bool) : bool = │
00:01:11 #2940 [Verbose] > │ v0 │
00:01:11 #2941 [Verbose] > │ and method1 (v0 : pyo3_Python) : unit = │
00:01:11 #2942 [Verbose] > │ let v1 : float = method2() │
00:01:11 #2943 [Verbose] > │ let v2 : float = method3(v1) │
00:01:11 #2944 [Verbose] > │ let v3 : float = method4() │
00:01:11 #2945 [Verbose] > │ let v4 : string = "num_complex::Complex::new(v2, v3)" │
00:01:11 #2946 [Verbose] > │ let v5 : num_complex_Complex<float> = │
00:01:11 #2947 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v4 │
00:01:11 #2948 [Verbose] > │ let v6 : float = method5() │
00:01:11 #2949 [Verbose] > │ let v7 : float = method3(v6) │
00:01:11 #2950 [Verbose] > │ let v8 : float = method4() │
00:01:11 #2951 [Verbose] > │ let v9 : string = "num_complex::Complex::new(v7, v8)" │
00:01:11 #2952 [Verbose] > │ let v10 : num_complex_Complex<float> = │
00:01:11 #2953 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v9 │
00:01:11 #2954 [Verbose] > │ let v11 : (struct (num_complex_Complex<float> * float) []) = [|struct │
00:01:11 #2955 [Verbose] > │ (v5, 1.6449340668482264); struct (v10, -0.08333333333333333)|] │
00:01:11 #2956 [Verbose] > │ let v12 : (struct (num_complex_Complex<float> * float) []) = │
00:01:11 #2957 [Verbose] > │ method6(v11) │
00:01:11 #2958 [Verbose] > │ let v13 : int32 = v12.Length │
00:01:11 #2959 [Verbose] > │ let v14 : Mut0 = {l0 = 0} : Mut0 │
00:01:11 #2960 [Verbose] > │ while method7(v13, v14) do │
00:01:11 #2961 [Verbose] > │ let v16 : int32 = v14.l0 │
00:01:11 #2962 [Verbose] > │ let struct (v17 : num_complex_Complex<float>, v18 : float) = v12.[ │
00:01:11 #2963 [Verbose] > │ int v16] │
00:01:11 #2964 [Verbose] > │ let v19 : string = $" s = mpmath.zeta(s)" │
00:01:11 #2965 [Verbose] > │ let v20 : num_complex_Complex<float> = method8(v17) │
00:01:11 #2966 [Verbose] > │ let v21 : Result<num_complex_Complex<float>, std_string_String> = │
00:01:11 #2967 [Verbose] > │ method9(v0, v19, v20) │
00:01:11 #2968 [Verbose] > │ let v22 : num_complex_Complex<float> = method33(v0, v17) │
00:01:11 #2969 [Verbose] > │ let v23 : string = "v21.ok()" │
00:01:11 #2970 [Verbose] > │ let v24 : num_complex_Complex<float> option = │
00:01:11 #2971 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v23 │
00:01:11 #2972 [Verbose] > │ let v25 : (num_complex_Complex<float> -> US0) = closure5() │
00:01:11 #2973 [Verbose] > │ let v26 : US0 = US0_0 │
00:01:11 #2974 [Verbose] > │ let v27 : US0 = v24 |> Option.map v25 |> Option.defaultValue v26 │
00:01:11 #2975 [Verbose] > │ let v28 : string = "f64::NAN" │
00:01:11 #2976 [Verbose] > │ let v29 : float = Fable.Core.RustInterop.emitRustExpr () v28 │
00:01:11 #2977 [Verbose] > │ let v30 : string = "f64::NAN" │
00:01:11 #2978 [Verbose] > │ let v31 : float = Fable.Core.RustInterop.emitRustExpr () v30 │
00:01:11 #2979 [Verbose] > │ let v32 : float = method31(v29) │
00:01:11 #2980 [Verbose] > │ let v33 : float = method3(v32) │
00:01:11 #2981 [Verbose] > │ let v34 : float = method32(v31) │
00:01:11 #2982 [Verbose] > │ let v35 : string = "num_complex::Complex::new(v33, v34)" │
00:01:11 #2983 [Verbose] > │ let v36 : num_complex_Complex<float> = │
00:01:11 #2984 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v35 │
00:01:11 #2985 [Verbose] > │ let v39 : num_complex_Complex<float> = │
00:01:11 #2986 [Verbose] > │ match v27 with │
00:01:11 #2987 [Verbose] > │ | US0_0 -> (* None *) │
00:01:11 #2988 [Verbose] > │ v36 │
00:01:11 #2989 [Verbose] > │ | US0_1(v37) -> (* Some *) │
00:01:11 #2990 [Verbose] > │ v37 │
00:01:11 #2991 [Verbose] > │ let v40 : num_complex_Complex<float> = method14(v39) │
00:01:11 #2992 [Verbose] > │ let v41 : string = "v40.im" │
00:01:11 #2993 [Verbose] > │ let v42 : float = Fable.Core.RustInterop.emitRustExpr () v41 │
00:01:11 #2994 [Verbose] > │ let v43 : bool = v42 = 0.0 │
00:01:11 #2995 [Verbose] > │ let v45 : bool = │
00:01:11 #2996 [Verbose] > │ if v43 then │
00:01:11 #2997 [Verbose] > │ true │
00:01:11 #2998 [Verbose] > │ else │
00:01:11 #2999 [Verbose] > │ method43(v43) │
00:01:11 #3000 [Verbose] > │ let v46 : string = $"__expect / actual: %A{v42} / expected: %A{0.0}" │
00:01:11 #3001 [Verbose] > │ let v47 : bool = v45 = false │
00:01:11 #3002 [Verbose] > │ if v47 then │
00:01:11 #3003 [Verbose] > │ failwith<unit> v46 │
00:01:11 #3004 [Verbose] > │ let v48 : num_complex_Complex<float> = method13(v39) │
00:01:11 #3005 [Verbose] > │ let v49 : string = "v48.re" │
00:01:11 #3006 [Verbose] > │ let v50 : float = Fable.Core.RustInterop.emitRustExpr () v49 │
00:01:11 #3007 [Verbose] > │ let v51 : float = v50 - v18 │
00:01:11 #3008 [Verbose] > │ let v52 : float = -v51 │
00:01:11 #3009 [Verbose] > │ let v53 : bool = v51 >= v52 │
00:01:11 #3010 [Verbose] > │ let v54 : float = │
00:01:11 #3011 [Verbose] > │ if v53 then │
00:01:11 #3012 [Verbose] > │ v51 │
00:01:11 #3013 [Verbose] > │ else │
00:01:11 #3014 [Verbose] > │ v52 │
00:01:11 #3015 [Verbose] > │ let v55 : bool = v54 < 0.0001 │
00:01:11 #3016 [Verbose] > │ let v57 : bool = │
00:01:11 #3017 [Verbose] > │ if v55 then │
00:01:11 #3018 [Verbose] > │ true │
00:01:11 #3019 [Verbose] > │ else │
00:01:11 #3020 [Verbose] > │ method43(v55) │
00:01:11 #3021 [Verbose] > │ let v58 : string = $"__expect / actual: %A{v54} / expected: │
00:01:11 #3022 [Verbose] > │ %A{0.0001}" │
00:01:11 #3023 [Verbose] > │ let v59 : bool = v57 = false │
00:01:11 #3024 [Verbose] > │ if v59 then │
00:01:11 #3025 [Verbose] > │ failwith<unit> v58 │
00:01:11 #3026 [Verbose] > │ let v60 : int32 = v16 + 1 │
00:01:11 #3027 [Verbose] > │ v14.l0 <- v60 │
00:01:11 #3028 [Verbose] > │ () │
00:01:11 #3029 [Verbose] > │ () │
00:01:11 #3030 [Verbose] > │ and method44 (v0 : Result<unit, pyo3_PyErr>) : Result<unit, pyo3_PyErr> = │
00:01:11 #3031 [Verbose] > │ v0 │
00:01:11 #3032 [Verbose] > │ and method45 (v0 : Result<unit, pyo3_PyErr>) : Result<unit, pyo3_PyErr> = │
00:01:11 #3033 [Verbose] > │ v0 │
00:01:11 #3034 [Verbose] > │ and method0 () : unit = │
00:01:11 #3035 [Verbose] > │ let v0 : string = "pyo3::prepare_freethreaded_python()" │
00:01:11 #3036 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v0 │
00:01:11 #3037 [Verbose] > │ let v1 : string = "let __result = pyo3::Python::with_gil(|py| -> │
00:01:11 #3038 [Verbose] > │ pyo3::PyResult<()> { //" │
00:01:11 #3039 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v1 │
00:01:11 #3040 [Verbose] > │ let v2 : string = "py" │
00:01:11 #3041 [Verbose] > │ let v3 : pyo3_Python = Fable.Core.RustInterop.emitRustExpr () v2 │
00:01:11 #3042 [Verbose] > │ method1(v3) │
00:01:11 #3043 [Verbose] > │ let v4 : Result<unit, pyo3_PyErr> = Ok () │
00:01:11 #3044 [Verbose] > │ let v5 : Result<unit, pyo3_PyErr> = method44(v4) │
00:01:11 #3045 [Verbose] > │ let v6 : string = "v5 }})" │
00:01:11 #3046 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v6 │
00:01:11 #3047 [Verbose] > │ let v7 : string = "{ //" │
00:01:11 #3048 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v7 │
00:01:11 #3049 [Verbose] > │ let v8 : string = "__result" │
00:01:11 #3050 [Verbose] > │ let v9 : Result<unit, pyo3_PyErr> = Fable.Core.RustInterop.emitRustExpr │
00:01:11 #3051 [Verbose] > │ () v8 │
00:01:11 #3052 [Verbose] > │ let v10 : Result<unit, pyo3_PyErr> = method45(v9) │
00:01:11 #3053 [Verbose] > │ let v11 : string = "v10.unwrap()" │
00:01:11 #3054 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v11 │
00:01:11 #3055 [Verbose] > │ () │
00:01:11 #3056 [Verbose] > │ and method48 () : float = │
00:01:11 #3057 [Verbose] > │ -2.0 │
00:01:11 #3058 [Verbose] > │ and method47 (v0 : pyo3_Python) : unit = │
00:01:11 #3059 [Verbose] > │ let v1 : float = method2() │
00:01:11 #3060 [Verbose] > │ let v2 : float = method3(v1) │
00:01:11 #3061 [Verbose] > │ let v3 : float = method48() │
00:01:11 #3062 [Verbose] > │ let v4 : string = "num_complex::Complex::new(v2, v3)" │
00:01:11 #3063 [Verbose] > │ let v5 : num_complex_Complex<float> = │
00:01:11 #3064 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v4 │
00:01:11 #3065 [Verbose] > │ let v6 : string = $" s = mpmath.zeta(s)" │
00:01:11 #3066 [Verbose] > │ let v7 : num_complex_Complex<float> = method8(v5) │
00:01:11 #3067 [Verbose] > │ let v8 : Result<num_complex_Complex<float>, std_string_String> = │
00:01:11 #3068 [Verbose] > │ method9(v0, v6, v7) │
00:01:11 #3069 [Verbose] > │ let v9 : num_complex_Complex<float> = method33(v0, v5) │
00:01:11 #3070 [Verbose] > │ let v10 : string = "v8.ok()" │
00:01:11 #3071 [Verbose] > │ let v11 : num_complex_Complex<float> option = │
00:01:11 #3072 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v10 │
00:01:11 #3073 [Verbose] > │ let v12 : (num_complex_Complex<float> -> US0) = closure5() │
00:01:11 #3074 [Verbose] > │ let v13 : US0 = US0_0 │
00:01:11 #3075 [Verbose] > │ let v14 : US0 = v11 |> Option.map v12 |> Option.defaultValue v13 │
00:01:11 #3076 [Verbose] > │ let v15 : string = "f64::NAN" │
00:01:11 #3077 [Verbose] > │ let v16 : float = Fable.Core.RustInterop.emitRustExpr () v15 │
00:01:11 #3078 [Verbose] > │ let v17 : string = "f64::NAN" │
00:01:11 #3079 [Verbose] > │ let v18 : float = Fable.Core.RustInterop.emitRustExpr () v17 │
00:01:11 #3080 [Verbose] > │ let v19 : float = method31(v16) │
00:01:11 #3081 [Verbose] > │ let v20 : float = method3(v19) │
00:01:11 #3082 [Verbose] > │ let v21 : float = method32(v18) │
00:01:11 #3083 [Verbose] > │ let v22 : string = "num_complex::Complex::new(v20, v21)" │
00:01:11 #3084 [Verbose] > │ let v23 : num_complex_Complex<float> = │
00:01:11 #3085 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v22 │
00:01:11 #3086 [Verbose] > │ let v26 : num_complex_Complex<float> = │
00:01:11 #3087 [Verbose] > │ match v14 with │
00:01:11 #3088 [Verbose] > │ | US0_0 -> (* None *) │
00:01:11 #3089 [Verbose] > │ v23 │
00:01:11 #3090 [Verbose] > │ | US0_1(v24) -> (* Some *) │
00:01:11 #3091 [Verbose] > │ v24 │
00:01:11 #3092 [Verbose] > │ let v27 : num_complex_Complex<float> = method13(v26) │
00:01:11 #3093 [Verbose] > │ let v28 : string = "v27.re" │
00:01:11 #3094 [Verbose] > │ let v29 : float = Fable.Core.RustInterop.emitRustExpr () v28 │
00:01:11 #3095 [Verbose] > │ let v30 : float = v29 - 0.8673 │
00:01:11 #3096 [Verbose] > │ let v31 : float = -v30 │
00:01:11 #3097 [Verbose] > │ let v32 : bool = v30 >= v31 │
00:01:11 #3098 [Verbose] > │ let v33 : float = │
00:01:11 #3099 [Verbose] > │ if v32 then │
00:01:11 #3100 [Verbose] > │ v30 │
00:01:11 #3101 [Verbose] > │ else │
00:01:11 #3102 [Verbose] > │ v31 │
00:01:11 #3103 [Verbose] > │ let v34 : bool = v33 < 0.001 │
00:01:11 #3104 [Verbose] > │ let v36 : bool = │
00:01:11 #3105 [Verbose] > │ if v34 then │
00:01:11 #3106 [Verbose] > │ true │
00:01:11 #3107 [Verbose] > │ else │
00:01:11 #3108 [Verbose] > │ method43(v34) │
00:01:11 #3109 [Verbose] > │ let v37 : string = $"__expect / actual: %A{v33} / expected: %A{0.001}" │
00:01:11 #3110 [Verbose] > │ let v38 : bool = v36 = false │
00:01:11 #3111 [Verbose] > │ if v38 then │
00:01:11 #3112 [Verbose] > │ failwith<unit> v37 │
00:01:11 #3113 [Verbose] > │ let v39 : num_complex_Complex<float> = method14(v26) │
00:01:11 #3114 [Verbose] > │ let v40 : string = "v39.im" │
00:01:11 #3115 [Verbose] > │ let v41 : float = Fable.Core.RustInterop.emitRustExpr () v40 │
00:01:11 #3116 [Verbose] > │ let v42 : float = v41 - 0.275 │
00:01:11 #3117 [Verbose] > │ let v43 : float = -v42 │
00:01:11 #3118 [Verbose] > │ let v44 : bool = v42 >= v43 │
00:01:11 #3119 [Verbose] > │ let v45 : float = │
00:01:11 #3120 [Verbose] > │ if v44 then │
00:01:11 #3121 [Verbose] > │ v42 │
00:01:11 #3122 [Verbose] > │ else │
00:01:11 #3123 [Verbose] > │ v43 │
00:01:11 #3124 [Verbose] > │ let v46 : bool = v45 < 0.001 │
00:01:11 #3125 [Verbose] > │ let v48 : bool = │
00:01:11 #3126 [Verbose] > │ if v46 then │
00:01:11 #3127 [Verbose] > │ true │
00:01:11 #3128 [Verbose] > │ else │
00:01:11 #3129 [Verbose] > │ method43(v46) │
00:01:11 #3130 [Verbose] > │ let v49 : string = $"__expect / actual: %A{v45} / expected: %A{0.001}" │
00:01:11 #3131 [Verbose] > │ let v50 : bool = v48 = false │
00:01:11 #3132 [Verbose] > │ if v50 then │
00:01:11 #3133 [Verbose] > │ failwith<unit> v49 │
00:01:11 #3134 [Verbose] > │ and method46 () : unit = │
00:01:11 #3135 [Verbose] > │ let v0 : string = "pyo3::prepare_freethreaded_python()" │
00:01:11 #3136 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v0 │
00:01:11 #3137 [Verbose] > │ let v1 : string = "let __result = pyo3::Python::with_gil(|py| -> │
00:01:11 #3138 [Verbose] > │ pyo3::PyResult<()> { //" │
00:01:11 #3139 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v1 │
00:01:11 #3140 [Verbose] > │ let v2 : string = "py" │
00:01:11 #3141 [Verbose] > │ let v3 : pyo3_Python = Fable.Core.RustInterop.emitRustExpr () v2 │
00:01:11 #3142 [Verbose] > │ method47(v3) │
00:01:11 #3143 [Verbose] > │ let v4 : Result<unit, pyo3_PyErr> = Ok () │
00:01:11 #3144 [Verbose] > │ let v5 : Result<unit, pyo3_PyErr> = method44(v4) │
00:01:11 #3145 [Verbose] > │ let v6 : string = "v5 }})" │
00:01:11 #3146 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v6 │
00:01:11 #3147 [Verbose] > │ let v7 : string = "{ //" │
00:01:11 #3148 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v7 │
00:01:11 #3149 [Verbose] > │ let v8 : string = "__result" │
00:01:11 #3150 [Verbose] > │ let v9 : Result<unit, pyo3_PyErr> = Fable.Core.RustInterop.emitRustExpr │
00:01:11 #3151 [Verbose] > │ () v8 │
00:01:11 #3152 [Verbose] > │ let v10 : Result<unit, pyo3_PyErr> = method45(v9) │
00:01:11 #3153 [Verbose] > │ let v11 : string = "v10.unwrap()" │
00:01:11 #3154 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v11 │
00:01:11 #3155 [Verbose] > │ () │
00:01:11 #3156 [Verbose] > │ and method51 () : UH0 = │
00:01:11 #3157 [Verbose] > │ let v0 : UH0 = UH0_1 │
00:01:11 #3158 [Verbose] > │ let v1 : UH0 = UH0_0(-40.0, v0) │
00:01:11 #3159 [Verbose] > │ let v2 : UH0 = UH0_0(-38.0, v1) │
00:01:11 #3160 [Verbose] > │ let v3 : UH0 = UH0_0(-36.0, v2) │
00:01:11 #3161 [Verbose] > │ let v4 : UH0 = UH0_0(-34.0, v3) │
00:01:11 #3162 [Verbose] > │ let v5 : UH0 = UH0_0(-32.0, v4) │
00:01:11 #3163 [Verbose] > │ let v6 : UH0 = UH0_0(-30.0, v5) │
00:01:11 #3164 [Verbose] > │ let v7 : UH0 = UH0_0(-28.0, v6) │
00:01:11 #3165 [Verbose] > │ let v8 : UH0 = UH0_0(-26.0, v7) │
00:01:11 #3166 [Verbose] > │ let v9 : UH0 = UH0_0(-24.0, v8) │
00:01:11 #3167 [Verbose] > │ let v10 : UH0 = UH0_0(-22.0, v9) │
00:01:11 #3168 [Verbose] > │ let v11 : UH0 = UH0_0(-20.0, v10) │
00:01:11 #3169 [Verbose] > │ let v12 : UH0 = UH0_0(-18.0, v11) │
00:01:11 #3170 [Verbose] > │ let v13 : UH0 = UH0_0(-16.0, v12) │
00:01:11 #3171 [Verbose] > │ let v14 : UH0 = UH0_0(-14.0, v13) │
00:01:11 #3172 [Verbose] > │ let v15 : UH0 = UH0_0(-12.0, v14) │
00:01:11 #3173 [Verbose] > │ let v16 : UH0 = UH0_0(-10.0, v15) │
00:01:11 #3174 [Verbose] > │ let v17 : UH0 = UH0_0(-8.0, v16) │
00:01:11 #3175 [Verbose] > │ let v18 : UH0 = UH0_0(-6.0, v17) │
00:01:11 #3176 [Verbose] > │ let v19 : UH0 = UH0_0(-4.0, v18) │
00:01:11 #3177 [Verbose] > │ UH0_0(-2.0, v19) │
00:01:11 #3178 [Verbose] > │ and method52 (v0 : pyo3_Python, v1 : UH0) : unit = │
00:01:11 #3179 [Verbose] > │ match v1 with │
00:01:11 #3180 [Verbose] > │ | UH0_0(v2, v3) -> (* Cons *) │
00:01:11 #3181 [Verbose] > │ let v4 : float = method31(v2) │
00:01:11 #3182 [Verbose] > │ let v5 : float = method3(v4) │
00:01:11 #3183 [Verbose] > │ let v6 : float = method4() │
00:01:11 #3184 [Verbose] > │ let v7 : string = "num_complex::Complex::new(v5, v6)" │
00:01:11 #3185 [Verbose] > │ let v8 : num_complex_Complex<float> = │
00:01:11 #3186 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v7 │
00:01:11 #3187 [Verbose] > │ let v9 : string = $" s = mpmath.zeta(s)" │
00:01:11 #3188 [Verbose] > │ let v10 : num_complex_Complex<float> = method8(v8) │
00:01:11 #3189 [Verbose] > │ let v11 : Result<num_complex_Complex<float>, std_string_String> = │
00:01:11 #3190 [Verbose] > │ method9(v0, v9, v10) │
00:01:11 #3191 [Verbose] > │ let v12 : num_complex_Complex<float> = method33(v0, v8) │
00:01:11 #3192 [Verbose] > │ let v13 : string = "v11.ok()" │
00:01:11 #3193 [Verbose] > │ let v14 : num_complex_Complex<float> option = │
00:01:11 #3194 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v13 │
00:01:11 #3195 [Verbose] > │ let v15 : (num_complex_Complex<float> -> US0) = closure5() │
00:01:11 #3196 [Verbose] > │ let v16 : US0 = US0_0 │
00:01:11 #3197 [Verbose] > │ let v17 : US0 = v14 |> Option.map v15 |> Option.defaultValue v16 │
00:01:11 #3198 [Verbose] > │ let v18 : string = "f64::NAN" │
00:01:11 #3199 [Verbose] > │ let v19 : float = Fable.Core.RustInterop.emitRustExpr () v18 │
00:01:11 #3200 [Verbose] > │ let v20 : string = "f64::NAN" │
00:01:11 #3201 [Verbose] > │ let v21 : float = Fable.Core.RustInterop.emitRustExpr () v20 │
00:01:11 #3202 [Verbose] > │ let v22 : float = method31(v19) │
00:01:11 #3203 [Verbose] > │ let v23 : float = method3(v22) │
00:01:11 #3204 [Verbose] > │ let v24 : float = method32(v21) │
00:01:11 #3205 [Verbose] > │ let v25 : string = "num_complex::Complex::new(v23, v24)" │
00:01:11 #3206 [Verbose] > │ let v26 : num_complex_Complex<float> = │
00:01:11 #3207 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v25 │
00:01:11 #3208 [Verbose] > │ let v29 : num_complex_Complex<float> = │
00:01:11 #3209 [Verbose] > │ match v17 with │
00:01:11 #3210 [Verbose] > │ | US0_0 -> (* None *) │
00:01:11 #3211 [Verbose] > │ v26 │
00:01:11 #3212 [Verbose] > │ | US0_1(v27) -> (* Some *) │
00:01:11 #3213 [Verbose] > │ v27 │
00:01:11 #3214 [Verbose] > │ let v30 : num_complex_Complex<float> = method13(v29) │
00:01:11 #3215 [Verbose] > │ let v31 : string = "v30.re" │
00:01:11 #3216 [Verbose] > │ let v32 : float = Fable.Core.RustInterop.emitRustExpr () v31 │
00:01:11 #3217 [Verbose] > │ let v33 : bool = v32 = 0.0 │
00:01:11 #3218 [Verbose] > │ let v35 : bool = │
00:01:11 #3219 [Verbose] > │ if v33 then │
00:01:11 #3220 [Verbose] > │ true │
00:01:11 #3221 [Verbose] > │ else │
00:01:11 #3222 [Verbose] > │ method43(v33) │
00:01:11 #3223 [Verbose] > │ let v36 : string = $"__expect / actual: %A{v32} / expected: %A{0.0}" │
00:01:11 #3224 [Verbose] > │ let v37 : bool = v35 = false │
00:01:11 #3225 [Verbose] > │ if v37 then │
00:01:11 #3226 [Verbose] > │ failwith<unit> v36 │
00:01:11 #3227 [Verbose] > │ let v38 : num_complex_Complex<float> = method14(v29) │
00:01:11 #3228 [Verbose] > │ let v39 : string = "v38.im" │
00:01:11 #3229 [Verbose] > │ let v40 : float = Fable.Core.RustInterop.emitRustExpr () v39 │
00:01:11 #3230 [Verbose] > │ let v41 : bool = v40 = 0.0 │
00:01:11 #3231 [Verbose] > │ let v43 : bool = │
00:01:11 #3232 [Verbose] > │ if v41 then │
00:01:11 #3233 [Verbose] > │ true │
00:01:11 #3234 [Verbose] > │ else │
00:01:11 #3235 [Verbose] > │ method43(v41) │
00:01:11 #3236 [Verbose] > │ let v44 : string = $"__expect / actual: %A{v40} / expected: %A{0.0}" │
00:01:11 #3237 [Verbose] > │ let v45 : bool = v43 = false │
00:01:11 #3238 [Verbose] > │ if v45 then │
00:01:11 #3239 [Verbose] > │ failwith<unit> v44 │
00:01:11 #3240 [Verbose] > │ method52(v0, v3) │
00:01:11 #3241 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:01:11 #3242 [Verbose] > │ () │
00:01:11 #3243 [Verbose] > │ and method50 (v0 : pyo3_Python) : unit = │
00:01:11 #3244 [Verbose] > │ let v1 : UH0 = method51() │
00:01:11 #3245 [Verbose] > │ method52(v0, v1) │
00:01:11 #3246 [Verbose] > │ and method49 () : unit = │
00:01:11 #3247 [Verbose] > │ let v0 : string = "pyo3::prepare_freethreaded_python()" │
00:01:11 #3248 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v0 │
00:01:11 #3249 [Verbose] > │ let v1 : string = "let __result = pyo3::Python::with_gil(|py| -> │
00:01:11 #3250 [Verbose] > │ pyo3::PyResult<()> { //" │
00:01:11 #3251 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v1 │
00:01:11 #3252 [Verbose] > │ let v2 : string = "py" │
00:01:11 #3253 [Verbose] > │ let v3 : pyo3_Python = Fable.Core.RustInterop.emitRustExpr () v2 │
00:01:11 #3254 [Verbose] > │ method50(v3) │
00:01:11 #3255 [Verbose] > │ let v4 : Result<unit, pyo3_PyErr> = Ok () │
00:01:11 #3256 [Verbose] > │ let v5 : Result<unit, pyo3_PyErr> = method44(v4) │
00:01:11 #3257 [Verbose] > │ let v6 : string = "v5 }})" │
00:01:11 #3258 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v6 │
00:01:11 #3259 [Verbose] > │ let v7 : string = "{ //" │
00:01:11 #3260 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v7 │
00:01:11 #3261 [Verbose] > │ let v8 : string = "__result" │
00:01:11 #3262 [Verbose] > │ let v9 : Result<unit, pyo3_PyErr> = Fable.Core.RustInterop.emitRustExpr │
00:01:11 #3263 [Verbose] > │ () v8 │
00:01:11 #3264 [Verbose] > │ let v10 : Result<unit, pyo3_PyErr> = method45(v9) │
00:01:11 #3265 [Verbose] > │ let v11 : string = "v10.unwrap()" │
00:01:11 #3266 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v11 │
00:01:11 #3267 [Verbose] > │ () │
00:01:11 #3268 [Verbose] > │ and method55 () : float = │
00:01:11 #3269 [Verbose] > │ 0.5 │
00:01:11 #3270 [Verbose] > │ and method56 () : float = │
00:01:11 #3271 [Verbose] > │ 14.134725 │
00:01:11 #3272 [Verbose] > │ and method57 () : float = │
00:01:11 #3273 [Verbose] > │ 21.02204 │
00:01:11 #3274 [Verbose] > │ and method58 () : float = │
00:01:11 #3275 [Verbose] > │ 25.010857 │
00:01:11 #3276 [Verbose] > │ and method59 () : float = │
00:01:11 #3277 [Verbose] > │ 30.424876 │
00:01:11 #3278 [Verbose] > │ and method60 () : float = │
00:01:11 #3279 [Verbose] > │ 32.935062 │
00:01:11 #3280 [Verbose] > │ and method61 () : float = │
00:01:11 #3281 [Verbose] > │ 37.586178 │
00:01:11 #3282 [Verbose] > │ and method62 (v0 : (num_complex_Complex<float> [])) : │
00:01:11 #3283 [Verbose] > │ (num_complex_Complex<float> []) = │
00:01:11 #3284 [Verbose] > │ v0 │
00:01:11 #3285 [Verbose] > │ and method54 (v0 : pyo3_Python) : unit = │
00:01:11 #3286 [Verbose] > │ let v1 : float = method55() │
00:01:11 #3287 [Verbose] > │ let v2 : float = method3(v1) │
00:01:11 #3288 [Verbose] > │ let v3 : float = method56() │
00:01:11 #3289 [Verbose] > │ let v4 : string = "num_complex::Complex::new(v2, v3)" │
00:01:11 #3290 [Verbose] > │ let v5 : num_complex_Complex<float> = │
00:01:11 #3291 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v4 │
00:01:11 #3292 [Verbose] > │ let v6 : float = method55() │
00:01:11 #3293 [Verbose] > │ let v7 : float = method3(v6) │
00:01:11 #3294 [Verbose] > │ let v8 : float = method57() │
00:01:11 #3295 [Verbose] > │ let v9 : string = "num_complex::Complex::new(v7, v8)" │
00:01:11 #3296 [Verbose] > │ let v10 : num_complex_Complex<float> = │
00:01:11 #3297 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v9 │
00:01:11 #3298 [Verbose] > │ let v11 : float = method55() │
00:01:11 #3299 [Verbose] > │ let v12 : float = method3(v11) │
00:01:11 #3300 [Verbose] > │ let v13 : float = method58() │
00:01:11 #3301 [Verbose] > │ let v14 : string = "num_complex::Complex::new(v12, v13)" │
00:01:11 #3302 [Verbose] > │ let v15 : num_complex_Complex<float> = │
00:01:11 #3303 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v14 │
00:01:11 #3304 [Verbose] > │ let v16 : float = method55() │
00:01:11 #3305 [Verbose] > │ let v17 : float = method3(v16) │
00:01:11 #3306 [Verbose] > │ let v18 : float = method59() │
00:01:11 #3307 [Verbose] > │ let v19 : string = "num_complex::Complex::new(v17, v18)" │
00:01:11 #3308 [Verbose] > │ let v20 : num_complex_Complex<float> = │
00:01:11 #3309 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v19 │
00:01:11 #3310 [Verbose] > │ let v21 : float = method55() │
00:01:11 #3311 [Verbose] > │ let v22 : float = method3(v21) │
00:01:11 #3312 [Verbose] > │ let v23 : float = method60() │
00:01:11 #3313 [Verbose] > │ let v24 : string = "num_complex::Complex::new(v22, v23)" │
00:01:11 #3314 [Verbose] > │ let v25 : num_complex_Complex<float> = │
00:01:11 #3315 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v24 │
00:01:11 #3316 [Verbose] > │ let v26 : float = method55() │
00:01:11 #3317 [Verbose] > │ let v27 : float = method3(v26) │
00:01:11 #3318 [Verbose] > │ let v28 : float = method61() │
00:01:11 #3319 [Verbose] > │ let v29 : string = "num_complex::Complex::new(v27, v28)" │
00:01:11 #3320 [Verbose] > │ let v30 : num_complex_Complex<float> = │
00:01:11 #3321 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v29 │
00:01:11 #3322 [Verbose] > │ let v31 : (num_complex_Complex<float> []) = [|v5; v10; v15; v20; v25; │
00:01:11 #3323 [Verbose] > │ v30|] │
00:01:11 #3324 [Verbose] > │ let v32 : (num_complex_Complex<float> []) = method62(v31) │
00:01:11 #3325 [Verbose] > │ let v33 : int32 = v32.Length │
00:01:11 #3326 [Verbose] > │ let v34 : Mut0 = {l0 = 0} : Mut0 │
00:01:11 #3327 [Verbose] > │ while method7(v33, v34) do │
00:01:11 #3328 [Verbose] > │ let v36 : int32 = v34.l0 │
00:01:11 #3329 [Verbose] > │ let v37 : num_complex_Complex<float> = v32.[int v36] │
00:01:11 #3330 [Verbose] > │ let v38 : string = $" s = mpmath.zeta(s)" │
00:01:11 #3331 [Verbose] > │ let v39 : num_complex_Complex<float> = method8(v37) │
00:01:11 #3332 [Verbose] > │ let v40 : Result<num_complex_Complex<float>, std_string_String> = │
00:01:11 #3333 [Verbose] > │ method9(v0, v38, v39) │
00:01:11 #3334 [Verbose] > │ let v41 : num_complex_Complex<float> = method33(v0, v37) │
00:01:11 #3335 [Verbose] > │ let v42 : string = "v40.ok()" │
00:01:11 #3336 [Verbose] > │ let v43 : num_complex_Complex<float> option = │
00:01:11 #3337 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v42 │
00:01:11 #3338 [Verbose] > │ let v44 : (num_complex_Complex<float> -> US0) = closure5() │
00:01:11 #3339 [Verbose] > │ let v45 : US0 = US0_0 │
00:01:11 #3340 [Verbose] > │ let v46 : US0 = v43 |> Option.map v44 |> Option.defaultValue v45 │
00:01:11 #3341 [Verbose] > │ let v47 : string = "f64::NAN" │
00:01:11 #3342 [Verbose] > │ let v48 : float = Fable.Core.RustInterop.emitRustExpr () v47 │
00:01:11 #3343 [Verbose] > │ let v49 : string = "f64::NAN" │
00:01:11 #3344 [Verbose] > │ let v50 : float = Fable.Core.RustInterop.emitRustExpr () v49 │
00:01:11 #3345 [Verbose] > │ let v51 : float = method31(v48) │
00:01:11 #3346 [Verbose] > │ let v52 : float = method3(v51) │
00:01:11 #3347 [Verbose] > │ let v53 : float = method32(v50) │
00:01:11 #3348 [Verbose] > │ let v54 : string = "num_complex::Complex::new(v52, v53)" │
00:01:11 #3349 [Verbose] > │ let v55 : num_complex_Complex<float> = │
00:01:11 #3350 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v54 │
00:01:11 #3351 [Verbose] > │ let v58 : num_complex_Complex<float> = │
00:01:11 #3352 [Verbose] > │ match v46 with │
00:01:11 #3353 [Verbose] > │ | US0_0 -> (* None *) │
00:01:11 #3354 [Verbose] > │ v55 │
00:01:11 #3355 [Verbose] > │ | US0_1(v56) -> (* Some *) │
00:01:11 #3356 [Verbose] > │ v56 │
00:01:11 #3357 [Verbose] > │ let v59 : num_complex_Complex<float> = method13(v58) │
00:01:11 #3358 [Verbose] > │ let v60 : string = "v59.re" │
00:01:11 #3359 [Verbose] > │ let v61 : float = Fable.Core.RustInterop.emitRustExpr () v60 │
00:01:11 #3360 [Verbose] > │ let v62 : float = -v61 │
00:01:11 #3361 [Verbose] > │ let v63 : bool = v61 >= v62 │
00:01:11 #3362 [Verbose] > │ let v64 : float = │
00:01:11 #3363 [Verbose] > │ if v63 then │
00:01:11 #3364 [Verbose] > │ v61 │
00:01:11 #3365 [Verbose] > │ else │
00:01:11 #3366 [Verbose] > │ v62 │
00:01:11 #3367 [Verbose] > │ let v65 : bool = v64 < 0.0001 │
00:01:11 #3368 [Verbose] > │ let v67 : bool = │
00:01:11 #3369 [Verbose] > │ if v65 then │
00:01:11 #3370 [Verbose] > │ true │
00:01:11 #3371 [Verbose] > │ else │
00:01:11 #3372 [Verbose] > │ method43(v65) │
00:01:11 #3373 [Verbose] > │ let v68 : string = $"__expect / actual: %A{v64} / expected: │
00:01:11 #3374 [Verbose] > │ %A{0.0001}" │
00:01:11 #3375 [Verbose] > │ let v69 : bool = v67 = false │
00:01:11 #3376 [Verbose] > │ if v69 then │
00:01:11 #3377 [Verbose] > │ failwith<unit> v68 │
00:01:11 #3378 [Verbose] > │ let v70 : num_complex_Complex<float> = method14(v58) │
00:01:11 #3379 [Verbose] > │ let v71 : string = "v70.im" │
00:01:11 #3380 [Verbose] > │ let v72 : float = Fable.Core.RustInterop.emitRustExpr () v71 │
00:01:11 #3381 [Verbose] > │ let v73 : float = -v72 │
00:01:11 #3382 [Verbose] > │ let v74 : bool = v72 >= v73 │
00:01:11 #3383 [Verbose] > │ let v75 : float = │
00:01:11 #3384 [Verbose] > │ if v74 then │
00:01:11 #3385 [Verbose] > │ v72 │
00:01:11 #3386 [Verbose] > │ else │
00:01:11 #3387 [Verbose] > │ v73 │
00:01:11 #3388 [Verbose] > │ let v76 : bool = v75 < 0.0001 │
00:01:11 #3389 [Verbose] > │ let v78 : bool = │
00:01:11 #3390 [Verbose] > │ if v76 then │
00:01:11 #3391 [Verbose] > │ true │
00:01:11 #3392 [Verbose] > │ else │
00:01:11 #3393 [Verbose] > │ method43(v76) │
00:01:11 #3394 [Verbose] > │ let v79 : string = $"__expect / actual: %A{v75} / expected: │
00:01:11 #3395 [Verbose] > │ %A{0.0001}" │
00:01:11 #3396 [Verbose] > │ let v80 : bool = v78 = false │
00:01:11 #3397 [Verbose] > │ if v80 then │
00:01:11 #3398 [Verbose] > │ failwith<unit> v79 │
00:01:11 #3399 [Verbose] > │ let v81 : int32 = v36 + 1 │
00:01:11 #3400 [Verbose] > │ v34.l0 <- v81 │
00:01:11 #3401 [Verbose] > │ () │
00:01:11 #3402 [Verbose] > │ () │
00:01:11 #3403 [Verbose] > │ and method53 () : unit = │
00:01:11 #3404 [Verbose] > │ let v0 : string = "pyo3::prepare_freethreaded_python()" │
00:01:11 #3405 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v0 │
00:01:11 #3406 [Verbose] > │ let v1 : string = "let __result = pyo3::Python::with_gil(|py| -> │
00:01:11 #3407 [Verbose] > │ pyo3::PyResult<()> { //" │
00:01:11 #3408 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v1 │
00:01:11 #3409 [Verbose] > │ let v2 : string = "py" │
00:01:11 #3410 [Verbose] > │ let v3 : pyo3_Python = Fable.Core.RustInterop.emitRustExpr () v2 │
00:01:11 #3411 [Verbose] > │ method54(v3) │
00:01:11 #3412 [Verbose] > │ let v4 : Result<unit, pyo3_PyErr> = Ok () │
00:01:11 #3413 [Verbose] > │ let v5 : Result<unit, pyo3_PyErr> = method44(v4) │
00:01:11 #3414 [Verbose] > │ let v6 : string = "v5 }})" │
00:01:11 #3415 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v6 │
00:01:11 #3416 [Verbose] > │ let v7 : string = "{ //" │
00:01:11 #3417 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v7 │
00:01:11 #3418 [Verbose] > │ let v8 : string = "__result" │
00:01:11 #3419 [Verbose] > │ let v9 : Result<unit, pyo3_PyErr> = Fable.Core.RustInterop.emitRustExpr │
00:01:11 #3420 [Verbose] > │ () v8 │
00:01:11 #3421 [Verbose] > │ let v10 : Result<unit, pyo3_PyErr> = method45(v9) │
00:01:11 #3422 [Verbose] > │ let v11 : string = "v10.unwrap()" │
00:01:11 #3423 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v11 │
00:01:11 #3424 [Verbose] > │ () │
00:01:11 #3425 [Verbose] > │ and method65 (v0 : (float [])) : (float []) = │
00:01:11 #3426 [Verbose] > │ v0 │
00:01:11 #3427 [Verbose] > │ and method64 (v0 : pyo3_Python) : unit = │
00:01:11 #3428 [Verbose] > │ let v1 : (float []) = [|2.0; 3.0; 4.0; 5.0; 10.0; 20.0; 50.0|] │
00:01:11 #3429 [Verbose] > │ let v2 : (float []) = method65(v1) │
00:01:11 #3430 [Verbose] > │ let v3 : int32 = v2.Length │
00:01:11 #3431 [Verbose] > │ let v4 : Mut0 = {l0 = 0} : Mut0 │
00:01:11 #3432 [Verbose] > │ while method7(v3, v4) do │
00:01:11 #3433 [Verbose] > │ let v6 : int32 = v4.l0 │
00:01:11 #3434 [Verbose] > │ let v7 : float = v2.[int v6] │
00:01:11 #3435 [Verbose] > │ let v8 : float = method31(v7) │
00:01:11 #3436 [Verbose] > │ let v9 : float = method3(v8) │
00:01:11 #3437 [Verbose] > │ let v10 : float = method4() │
00:01:11 #3438 [Verbose] > │ let v11 : string = "num_complex::Complex::new(v9, v10)" │
00:01:11 #3439 [Verbose] > │ let v12 : num_complex_Complex<float> = │
00:01:11 #3440 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v11 │
00:01:11 #3441 [Verbose] > │ let v13 : string = $" s = mpmath.zeta(s)" │
00:01:11 #3442 [Verbose] > │ let v14 : num_complex_Complex<float> = method8(v12) │
00:01:11 #3443 [Verbose] > │ let v15 : Result<num_complex_Complex<float>, std_string_String> = │
00:01:11 #3444 [Verbose] > │ method9(v0, v13, v14) │
00:01:11 #3445 [Verbose] > │ let v16 : num_complex_Complex<float> = method33(v0, v12) │
00:01:11 #3446 [Verbose] > │ let v17 : string = "v15.ok()" │
00:01:11 #3447 [Verbose] > │ let v18 : num_complex_Complex<float> option = │
00:01:11 #3448 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v17 │
00:01:11 #3449 [Verbose] > │ let v19 : (num_complex_Complex<float> -> US0) = closure5() │
00:01:11 #3450 [Verbose] > │ let v20 : US0 = US0_0 │
00:01:11 #3451 [Verbose] > │ let v21 : US0 = v18 |> Option.map v19 |> Option.defaultValue v20 │
00:01:11 #3452 [Verbose] > │ let v22 : string = "f64::NAN" │
00:01:11 #3453 [Verbose] > │ let v23 : float = Fable.Core.RustInterop.emitRustExpr () v22 │
00:01:11 #3454 [Verbose] > │ let v24 : string = "f64::NAN" │
00:01:11 #3455 [Verbose] > │ let v25 : float = Fable.Core.RustInterop.emitRustExpr () v24 │
00:01:11 #3456 [Verbose] > │ let v26 : float = method31(v23) │
00:01:11 #3457 [Verbose] > │ let v27 : float = method3(v26) │
00:01:11 #3458 [Verbose] > │ let v28 : float = method32(v25) │
00:01:11 #3459 [Verbose] > │ let v29 : string = "num_complex::Complex::new(v27, v28)" │
00:01:11 #3460 [Verbose] > │ let v30 : num_complex_Complex<float> = │
00:01:11 #3461 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v29 │
00:01:11 #3462 [Verbose] > │ let v33 : num_complex_Complex<float> = │
00:01:11 #3463 [Verbose] > │ match v21 with │
00:01:11 #3464 [Verbose] > │ | US0_0 -> (* None *) │
00:01:11 #3465 [Verbose] > │ v30 │
00:01:11 #3466 [Verbose] > │ | US0_1(v31) -> (* Some *) │
00:01:11 #3467 [Verbose] > │ v31 │
00:01:11 #3468 [Verbose] > │ let v34 : num_complex_Complex<float> = method13(v33) │
00:01:11 #3469 [Verbose] > │ let v35 : string = "v34.re" │
00:01:11 #3470 [Verbose] > │ let v36 : float = Fable.Core.RustInterop.emitRustExpr () v35 │
00:01:11 #3471 [Verbose] > │ let v37 : bool = v36 > 0.0 │
00:01:11 #3472 [Verbose] > │ let v39 : bool = │
00:01:11 #3473 [Verbose] > │ if v37 then │
00:01:11 #3474 [Verbose] > │ true │
00:01:11 #3475 [Verbose] > │ else │
00:01:11 #3476 [Verbose] > │ method43(v37) │
00:01:11 #3477 [Verbose] > │ let v40 : string = $"__expect / actual: %A{v36} / expected: %A{0.0}" │
00:01:11 #3478 [Verbose] > │ let v41 : bool = v39 = false │
00:01:11 #3479 [Verbose] > │ if v41 then │
00:01:11 #3480 [Verbose] > │ failwith<unit> v40 │
00:01:11 #3481 [Verbose] > │ let v42 : num_complex_Complex<float> = method14(v33) │
00:01:11 #3482 [Verbose] > │ let v43 : string = "v42.im" │
00:01:11 #3483 [Verbose] > │ let v44 : float = Fable.Core.RustInterop.emitRustExpr () v43 │
00:01:11 #3484 [Verbose] > │ let v45 : bool = v44 = 0.0 │
00:01:11 #3485 [Verbose] > │ let v47 : bool = │
00:01:11 #3486 [Verbose] > │ if v45 then │
00:01:11 #3487 [Verbose] > │ true │
00:01:11 #3488 [Verbose] > │ else │
00:01:11 #3489 [Verbose] > │ method43(v45) │
00:01:11 #3490 [Verbose] > │ let v48 : string = $"__expect / actual: %A{v44} / expected: %A{0.0}" │
00:01:11 #3491 [Verbose] > │ let v49 : bool = v47 = false │
00:01:11 #3492 [Verbose] > │ if v49 then │
00:01:11 #3493 [Verbose] > │ failwith<unit> v48 │
00:01:11 #3494 [Verbose] > │ let v50 : int32 = v6 + 1 │
00:01:11 #3495 [Verbose] > │ v4.l0 <- v50 │
00:01:11 #3496 [Verbose] > │ () │
00:01:11 #3497 [Verbose] > │ () │
00:01:11 #3498 [Verbose] > │ and method63 () : unit = │
00:01:11 #3499 [Verbose] > │ let v0 : string = "pyo3::prepare_freethreaded_python()" │
00:01:11 #3500 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v0 │
00:01:11 #3501 [Verbose] > │ let v1 : string = "let __result = pyo3::Python::with_gil(|py| -> │
00:01:11 #3502 [Verbose] > │ pyo3::PyResult<()> { //" │
00:01:11 #3503 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v1 │
00:01:11 #3504 [Verbose] > │ let v2 : string = "py" │
00:01:11 #3505 [Verbose] > │ let v3 : pyo3_Python = Fable.Core.RustInterop.emitRustExpr () v2 │
00:01:11 #3506 [Verbose] > │ method64(v3) │
00:01:11 #3507 [Verbose] > │ let v4 : Result<unit, pyo3_PyErr> = Ok () │
00:01:11 #3508 [Verbose] > │ let v5 : Result<unit, pyo3_PyErr> = method44(v4) │
00:01:11 #3509 [Verbose] > │ let v6 : string = "v5 }})" │
00:01:11 #3510 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v6 │
00:01:11 #3511 [Verbose] > │ let v7 : string = "{ //" │
00:01:11 #3512 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v7 │
00:01:11 #3513 [Verbose] > │ let v8 : string = "__result" │
00:01:11 #3514 [Verbose] > │ let v9 : Result<unit, pyo3_PyErr> = Fable.Core.RustInterop.emitRustExpr │
00:01:11 #3515 [Verbose] > │ () v8 │
00:01:11 #3516 [Verbose] > │ let v10 : Result<unit, pyo3_PyErr> = method45(v9) │
00:01:11 #3517 [Verbose] > │ let v11 : string = "v10.unwrap()" │
00:01:11 #3518 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v11 │
00:01:11 #3519 [Verbose] > │ () │
00:01:11 #3520 [Verbose] > │ and method67 (v0 : pyo3_Python) : unit = │
00:01:11 #3521 [Verbose] > │ let v1 : float = method38() │
00:01:11 #3522 [Verbose] > │ let v2 : float = method3(v1) │
00:01:11 #3523 [Verbose] > │ let v3 : float = method4() │
00:01:11 #3524 [Verbose] > │ let v4 : string = "num_complex::Complex::new(v2, v3)" │
00:01:11 #3525 [Verbose] > │ let v5 : num_complex_Complex<float> = │
00:01:11 #3526 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v4 │
00:01:11 #3527 [Verbose] > │ let v6 : string = $" s = mpmath.zeta(s)" │
00:01:11 #3528 [Verbose] > │ let v7 : num_complex_Complex<float> = method8(v5) │
00:01:11 #3529 [Verbose] > │ let v8 : Result<num_complex_Complex<float>, std_string_String> = │
00:01:11 #3530 [Verbose] > │ method9(v0, v6, v7) │
00:01:11 #3531 [Verbose] > │ let v9 : num_complex_Complex<float> = method33(v0, v5) │
00:01:11 #3532 [Verbose] > │ let v10 : string = "v8.ok()" │
00:01:11 #3533 [Verbose] > │ let v11 : num_complex_Complex<float> option = │
00:01:11 #3534 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v10 │
00:01:11 #3535 [Verbose] > │ let v12 : (num_complex_Complex<float> -> US0) = closure5() │
00:01:11 #3536 [Verbose] > │ let v13 : US0 = US0_0 │
00:01:11 #3537 [Verbose] > │ let v14 : US0 = v11 |> Option.map v12 |> Option.defaultValue v13 │
00:01:11 #3538 [Verbose] > │ let v15 : string = "f64::NAN" │
00:01:11 #3539 [Verbose] > │ let v16 : float = Fable.Core.RustInterop.emitRustExpr () v15 │
00:01:11 #3540 [Verbose] > │ let v17 : string = "f64::NAN" │
00:01:11 #3541 [Verbose] > │ let v18 : float = Fable.Core.RustInterop.emitRustExpr () v17 │
00:01:11 #3542 [Verbose] > │ let v19 : float = method31(v16) │
00:01:11 #3543 [Verbose] > │ let v20 : float = method3(v19) │
00:01:11 #3544 [Verbose] > │ let v21 : float = method32(v18) │
00:01:11 #3545 [Verbose] > │ let v22 : string = "num_complex::Complex::new(v20, v21)" │
00:01:11 #3546 [Verbose] > │ let v23 : num_complex_Complex<float> = │
00:01:11 #3547 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v22 │
00:01:11 #3548 [Verbose] > │ let v26 : num_complex_Complex<float> = │
00:01:11 #3549 [Verbose] > │ match v14 with │
00:01:11 #3550 [Verbose] > │ | US0_0 -> (* None *) │
00:01:11 #3551 [Verbose] > │ v23 │
00:01:11 #3552 [Verbose] > │ | US0_1(v24) -> (* Some *) │
00:01:11 #3553 [Verbose] > │ v24 │
00:01:11 #3554 [Verbose] > │ let v27 : num_complex_Complex<float> = method13(v26) │
00:01:11 #3555 [Verbose] > │ let v28 : string = "v27.re" │
00:01:11 #3556 [Verbose] > │ let v29 : float = Fable.Core.RustInterop.emitRustExpr () v28 │
00:01:11 #3557 [Verbose] > │ let v30 : bool = v29 = infinity │
00:01:11 #3558 [Verbose] > │ let v32 : bool = │
00:01:11 #3559 [Verbose] > │ if v30 then │
00:01:11 #3560 [Verbose] > │ true │
00:01:11 #3561 [Verbose] > │ else │
00:01:11 #3562 [Verbose] > │ method43(v30) │
00:01:11 #3563 [Verbose] > │ let v33 : string = $"__expect / actual: %A{v29} / expected: │
00:01:11 #3564 [Verbose] > │ %A{infinity}" │
00:01:11 #3565 [Verbose] > │ let v34 : bool = v32 = false │
00:01:11 #3566 [Verbose] > │ if v34 then │
00:01:11 #3567 [Verbose] > │ failwith<unit> v33 │
00:01:11 #3568 [Verbose] > │ let v35 : num_complex_Complex<float> = method14(v26) │
00:01:11 #3569 [Verbose] > │ let v36 : string = "v35.im" │
00:01:11 #3570 [Verbose] > │ let v37 : float = Fable.Core.RustInterop.emitRustExpr () v36 │
00:01:11 #3571 [Verbose] > │ let v38 : bool = v37 = 0.0 │
00:01:11 #3572 [Verbose] > │ let v40 : bool = │
00:01:11 #3573 [Verbose] > │ if v38 then │
00:01:11 #3574 [Verbose] > │ true │
00:01:11 #3575 [Verbose] > │ else │
00:01:11 #3576 [Verbose] > │ method43(v38) │
00:01:11 #3577 [Verbose] > │ let v41 : string = $"__expect / actual: %A{v37} / expected: %A{0.0}" │
00:01:11 #3578 [Verbose] > │ let v42 : bool = v40 = false │
00:01:11 #3579 [Verbose] > │ if v42 then │
00:01:11 #3580 [Verbose] > │ failwith<unit> v41 │
00:01:11 #3581 [Verbose] > │ and method66 () : unit = │
00:01:11 #3582 [Verbose] > │ let v0 : string = "pyo3::prepare_freethreaded_python()" │
00:01:11 #3583 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v0 │
00:01:11 #3584 [Verbose] > │ let v1 : string = "let __result = pyo3::Python::with_gil(|py| -> │
00:01:11 #3585 [Verbose] > │ pyo3::PyResult<()> { //" │
00:01:11 #3586 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v1 │
00:01:11 #3587 [Verbose] > │ let v2 : string = "py" │
00:01:11 #3588 [Verbose] > │ let v3 : pyo3_Python = Fable.Core.RustInterop.emitRustExpr () v2 │
00:01:11 #3589 [Verbose] > │ method67(v3) │
00:01:11 #3590 [Verbose] > │ let v4 : Result<unit, pyo3_PyErr> = Ok () │
00:01:11 #3591 [Verbose] > │ let v5 : Result<unit, pyo3_PyErr> = method44(v4) │
00:01:11 #3592 [Verbose] > │ let v6 : string = "v5 }})" │
00:01:11 #3593 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v6 │
00:01:11 #3594 [Verbose] > │ let v7 : string = "{ //" │
00:01:11 #3595 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v7 │
00:01:11 #3596 [Verbose] > │ let v8 : string = "__result" │
00:01:11 #3597 [Verbose] > │ let v9 : Result<unit, pyo3_PyErr> = Fable.Core.RustInterop.emitRustExpr │
00:01:11 #3598 [Verbose] > │ () v8 │
00:01:11 #3599 [Verbose] > │ let v10 : Result<unit, pyo3_PyErr> = method45(v9) │
00:01:11 #3600 [Verbose] > │ let v11 : string = "v10.unwrap()" │
00:01:11 #3601 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v11 │
00:01:11 #3602 [Verbose] > │ () │
00:01:11 #3603 [Verbose] > │ and method70 () : float = │
00:01:11 #3604 [Verbose] > │ 10.0 │
00:01:11 #3605 [Verbose] > │ and method69 (v0 : pyo3_Python) : unit = │
00:01:11 #3606 [Verbose] > │ let v1 : float = method2() │
00:01:11 #3607 [Verbose] > │ let v2 : float = method3(v1) │
00:01:11 #3608 [Verbose] > │ let v3 : float = method70() │
00:01:11 #3609 [Verbose] > │ let v4 : string = "num_complex::Complex::new(v2, v3)" │
00:01:11 #3610 [Verbose] > │ let v5 : num_complex_Complex<float> = │
00:01:11 #3611 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v4 │
00:01:11 #3612 [Verbose] > │ let v6 : string = $" s = mpmath.zeta(s)" │
00:01:11 #3613 [Verbose] > │ let v7 : num_complex_Complex<float> = method8(v5) │
00:01:11 #3614 [Verbose] > │ let v8 : Result<num_complex_Complex<float>, std_string_String> = │
00:01:11 #3615 [Verbose] > │ method9(v0, v6, v7) │
00:01:11 #3616 [Verbose] > │ let v9 : num_complex_Complex<float> = method33(v0, v5) │
00:01:11 #3617 [Verbose] > │ let v10 : string = "v8.ok()" │
00:01:11 #3618 [Verbose] > │ let v11 : num_complex_Complex<float> option = │
00:01:11 #3619 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v10 │
00:01:11 #3620 [Verbose] > │ let v12 : (num_complex_Complex<float> -> US0) = closure5() │
00:01:11 #3621 [Verbose] > │ let v13 : US0 = US0_0 │
00:01:11 #3622 [Verbose] > │ let v14 : US0 = v11 |> Option.map v12 |> Option.defaultValue v13 │
00:01:11 #3623 [Verbose] > │ let v15 : string = "f64::NAN" │
00:01:11 #3624 [Verbose] > │ let v16 : float = Fable.Core.RustInterop.emitRustExpr () v15 │
00:01:11 #3625 [Verbose] > │ let v17 : string = "f64::NAN" │
00:01:11 #3626 [Verbose] > │ let v18 : float = Fable.Core.RustInterop.emitRustExpr () v17 │
00:01:11 #3627 [Verbose] > │ let v19 : float = method31(v16) │
00:01:11 #3628 [Verbose] > │ let v20 : float = method3(v19) │
00:01:11 #3629 [Verbose] > │ let v21 : float = method32(v18) │
00:01:11 #3630 [Verbose] > │ let v22 : string = "num_complex::Complex::new(v20, v21)" │
00:01:11 #3631 [Verbose] > │ let v23 : num_complex_Complex<float> = │
00:01:11 #3632 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v22 │
00:01:11 #3633 [Verbose] > │ let v26 : num_complex_Complex<float> = │
00:01:11 #3634 [Verbose] > │ match v14 with │
00:01:11 #3635 [Verbose] > │ | US0_0 -> (* None *) │
00:01:11 #3636 [Verbose] > │ v23 │
00:01:11 #3637 [Verbose] > │ | US0_1(v24) -> (* Some *) │
00:01:11 #3638 [Verbose] > │ v24 │
00:01:11 #3639 [Verbose] > │ let v27 : num_complex_Complex<float> = method13(v5) │
00:01:11 #3640 [Verbose] > │ let v28 : string = "v27.re" │
00:01:11 #3641 [Verbose] > │ let v29 : float = Fable.Core.RustInterop.emitRustExpr () v28 │
00:01:11 #3642 [Verbose] > │ let v30 : num_complex_Complex<float> = method14(v5) │
00:01:11 #3643 [Verbose] > │ let v31 : string = "v30.im" │
00:01:11 #3644 [Verbose] > │ let v32 : float = Fable.Core.RustInterop.emitRustExpr () v31 │
00:01:11 #3645 [Verbose] > │ let v33 : float = -v32 │
00:01:11 #3646 [Verbose] > │ let v34 : float = method31(v29) │
00:01:11 #3647 [Verbose] > │ let v35 : float = method3(v34) │
00:01:11 #3648 [Verbose] > │ let v36 : float = method32(v33) │
00:01:11 #3649 [Verbose] > │ let v37 : string = "num_complex::Complex::new(v35, v36)" │
00:01:11 #3650 [Verbose] > │ let v38 : num_complex_Complex<float> = │
00:01:11 #3651 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v37 │
00:01:11 #3652 [Verbose] > │ let v39 : string = $" s = mpmath.zeta(s)" │
00:01:11 #3653 [Verbose] > │ let v40 : num_complex_Complex<float> = method8(v38) │
00:01:11 #3654 [Verbose] > │ let v41 : Result<num_complex_Complex<float>, std_string_String> = │
00:01:11 #3655 [Verbose] > │ method9(v0, v39, v40) │
00:01:11 #3656 [Verbose] > │ let v42 : num_complex_Complex<float> = method33(v0, v38) │
00:01:11 #3657 [Verbose] > │ let v43 : string = "v41.ok()" │
00:01:11 #3658 [Verbose] > │ let v44 : num_complex_Complex<float> option = │
00:01:11 #3659 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v43 │
00:01:11 #3660 [Verbose] > │ let v45 : US0 = US0_0 │
00:01:11 #3661 [Verbose] > │ let v46 : US0 = v44 |> Option.map v12 |> Option.defaultValue v45 │
00:01:11 #3662 [Verbose] > │ let v47 : string = "f64::NAN" │
00:01:11 #3663 [Verbose] > │ let v48 : float = Fable.Core.RustInterop.emitRustExpr () v47 │
00:01:11 #3664 [Verbose] > │ let v49 : string = "f64::NAN" │
00:01:11 #3665 [Verbose] > │ let v50 : float = Fable.Core.RustInterop.emitRustExpr () v49 │
00:01:11 #3666 [Verbose] > │ let v51 : float = method31(v48) │
00:01:11 #3667 [Verbose] > │ let v52 : float = method3(v51) │
00:01:11 #3668 [Verbose] > │ let v53 : float = method32(v50) │
00:01:11 #3669 [Verbose] > │ let v54 : string = "num_complex::Complex::new(v52, v53)" │
00:01:11 #3670 [Verbose] > │ let v55 : num_complex_Complex<float> = │
00:01:11 #3671 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v54 │
00:01:11 #3672 [Verbose] > │ let v58 : num_complex_Complex<float> = │
00:01:11 #3673 [Verbose] > │ match v46 with │
00:01:11 #3674 [Verbose] > │ | US0_0 -> (* None *) │
00:01:11 #3675 [Verbose] > │ v55 │
00:01:11 #3676 [Verbose] > │ | US0_1(v56) -> (* Some *) │
00:01:11 #3677 [Verbose] > │ v56 │
00:01:11 #3678 [Verbose] > │ let v59 : string = "v58.conj()" │
00:01:11 #3679 [Verbose] > │ let v60 : num_complex_Complex<float> = │
00:01:11 #3680 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v59 │
00:01:11 #3681 [Verbose] > │ let v61 : num_complex_Complex<float> = method13(v26) │
00:01:11 #3682 [Verbose] > │ let v62 : string = "v61.re" │
00:01:11 #3683 [Verbose] > │ let v63 : float = Fable.Core.RustInterop.emitRustExpr () v62 │
00:01:11 #3684 [Verbose] > │ let v64 : num_complex_Complex<float> = method13(v60) │
00:01:11 #3685 [Verbose] > │ let v65 : string = "v64.re" │
00:01:11 #3686 [Verbose] > │ let v66 : float = Fable.Core.RustInterop.emitRustExpr () v65 │
00:01:11 #3687 [Verbose] > │ let v67 : bool = v63 = v66 │
00:01:11 #3688 [Verbose] > │ let v69 : bool = │
00:01:11 #3689 [Verbose] > │ if v67 then │
00:01:11 #3690 [Verbose] > │ true │
00:01:11 #3691 [Verbose] > │ else │
00:01:11 #3692 [Verbose] > │ method43(v67) │
00:01:11 #3693 [Verbose] > │ let v70 : string = $"__expect / actual: %A{v63} / expected: %A{v66}" │
00:01:11 #3694 [Verbose] > │ let v71 : bool = v69 = false │
00:01:11 #3695 [Verbose] > │ if v71 then │
00:01:11 #3696 [Verbose] > │ failwith<unit> v70 │
00:01:11 #3697 [Verbose] > │ let v72 : num_complex_Complex<float> = method14(v26) │
00:01:11 #3698 [Verbose] > │ let v73 : string = "v72.im" │
00:01:11 #3699 [Verbose] > │ let v74 : float = Fable.Core.RustInterop.emitRustExpr () v73 │
00:01:11 #3700 [Verbose] > │ let v75 : num_complex_Complex<float> = method14(v60) │
00:01:11 #3701 [Verbose] > │ let v76 : string = "v75.im" │
00:01:11 #3702 [Verbose] > │ let v77 : float = Fable.Core.RustInterop.emitRustExpr () v76 │
00:01:11 #3703 [Verbose] > │ let v78 : bool = v74 = v77 │
00:01:11 #3704 [Verbose] > │ let v80 : bool = │
00:01:11 #3705 [Verbose] > │ if v78 then │
00:01:11 #3706 [Verbose] > │ true │
00:01:11 #3707 [Verbose] > │ else │
00:01:11 #3708 [Verbose] > │ method43(v78) │
00:01:11 #3709 [Verbose] > │ let v81 : string = $"__expect / actual: %A{v74} / expected: %A{v77}" │
00:01:11 #3710 [Verbose] > │ let v82 : bool = v80 = false │
00:01:11 #3711 [Verbose] > │ if v82 then │
00:01:11 #3712 [Verbose] > │ failwith<unit> v81 │
00:01:11 #3713 [Verbose] > │ and method68 () : unit = │
00:01:11 #3714 [Verbose] > │ let v0 : string = "pyo3::prepare_freethreaded_python()" │
00:01:11 #3715 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v0 │
00:01:11 #3716 [Verbose] > │ let v1 : string = "let __result = pyo3::Python::with_gil(|py| -> │
00:01:11 #3717 [Verbose] > │ pyo3::PyResult<()> { //" │
00:01:11 #3718 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v1 │
00:01:11 #3719 [Verbose] > │ let v2 : string = "py" │
00:01:11 #3720 [Verbose] > │ let v3 : pyo3_Python = Fable.Core.RustInterop.emitRustExpr () v2 │
00:01:11 #3721 [Verbose] > │ method69(v3) │
00:01:11 #3722 [Verbose] > │ let v4 : Result<unit, pyo3_PyErr> = Ok () │
00:01:11 #3723 [Verbose] > │ let v5 : Result<unit, pyo3_PyErr> = method44(v4) │
00:01:11 #3724 [Verbose] > │ let v6 : string = "v5 }})" │
00:01:11 #3725 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v6 │
00:01:11 #3726 [Verbose] > │ let v7 : string = "{ //" │
00:01:11 #3727 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v7 │
00:01:11 #3728 [Verbose] > │ let v8 : string = "__result" │
00:01:11 #3729 [Verbose] > │ let v9 : Result<unit, pyo3_PyErr> = Fable.Core.RustInterop.emitRustExpr │
00:01:11 #3730 [Verbose] > │ () v8 │
00:01:11 #3731 [Verbose] > │ let v10 : Result<unit, pyo3_PyErr> = method45(v9) │
00:01:11 #3732 [Verbose] > │ let v11 : string = "v10.unwrap()" │
00:01:11 #3733 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v11 │
00:01:11 #3734 [Verbose] > │ () │
00:01:11 #3735 [Verbose] > │ and method73 () : float = │
00:01:11 #3736 [Verbose] > │ 0.01 │
00:01:11 #3737 [Verbose] > │ and method74 () : float = │
00:01:11 #3738 [Verbose] > │ 0.01 │
00:01:11 #3739 [Verbose] > │ and method72 (v0 : pyo3_Python) : unit = │
00:01:11 #3740 [Verbose] > │ let v1 : float = method73() │
00:01:11 #3741 [Verbose] > │ let v2 : float = method3(v1) │
00:01:11 #3742 [Verbose] > │ let v3 : float = method74() │
00:01:11 #3743 [Verbose] > │ let v4 : string = "num_complex::Complex::new(v2, v3)" │
00:01:11 #3744 [Verbose] > │ let v5 : num_complex_Complex<float> = │
00:01:11 #3745 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v4 │
00:01:11 #3746 [Verbose] > │ let v6 : string = $" s = mpmath.zeta(s)" │
00:01:11 #3747 [Verbose] > │ let v7 : num_complex_Complex<float> = method8(v5) │
00:01:11 #3748 [Verbose] > │ let v8 : Result<num_complex_Complex<float>, std_string_String> = │
00:01:11 #3749 [Verbose] > │ method9(v0, v6, v7) │
00:01:11 #3750 [Verbose] > │ let v9 : num_complex_Complex<float> = method33(v0, v5) │
00:01:11 #3751 [Verbose] > │ let v10 : string = "v8.ok()" │
00:01:11 #3752 [Verbose] > │ let v11 : num_complex_Complex<float> option = │
00:01:11 #3753 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v10 │
00:01:11 #3754 [Verbose] > │ let v12 : (num_complex_Complex<float> -> US0) = closure5() │
00:01:11 #3755 [Verbose] > │ let v13 : US0 = US0_0 │
00:01:11 #3756 [Verbose] > │ let v14 : US0 = v11 |> Option.map v12 |> Option.defaultValue v13 │
00:01:11 #3757 [Verbose] > │ let v15 : string = "f64::NAN" │
00:01:11 #3758 [Verbose] > │ let v16 : float = Fable.Core.RustInterop.emitRustExpr () v15 │
00:01:11 #3759 [Verbose] > │ let v17 : string = "f64::NAN" │
00:01:11 #3760 [Verbose] > │ let v18 : float = Fable.Core.RustInterop.emitRustExpr () v17 │
00:01:11 #3761 [Verbose] > │ let v19 : float = method31(v16) │
00:01:11 #3762 [Verbose] > │ let v20 : float = method3(v19) │
00:01:11 #3763 [Verbose] > │ let v21 : float = method32(v18) │
00:01:11 #3764 [Verbose] > │ let v22 : string = "num_complex::Complex::new(v20, v21)" │
00:01:11 #3765 [Verbose] > │ let v23 : num_complex_Complex<float> = │
00:01:11 #3766 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v22 │
00:01:11 #3767 [Verbose] > │ let v26 : num_complex_Complex<float> = │
00:01:11 #3768 [Verbose] > │ match v14 with │
00:01:11 #3769 [Verbose] > │ | US0_0 -> (* None *) │
00:01:11 #3770 [Verbose] > │ v23 │
00:01:11 #3771 [Verbose] > │ | US0_1(v24) -> (* Some *) │
00:01:11 #3772 [Verbose] > │ v24 │
00:01:11 #3773 [Verbose] > │ let v27 : num_complex_Complex<float> = method13(v26) │
00:01:11 #3774 [Verbose] > │ let v28 : string = "v27.re" │
00:01:11 #3775 [Verbose] > │ let v29 : float = Fable.Core.RustInterop.emitRustExpr () v28 │
00:01:11 #3776 [Verbose] > │ let v30 : bool = v29 < infinity │
00:01:11 #3777 [Verbose] > │ let v32 : bool = │
00:01:11 #3778 [Verbose] > │ if v30 then │
00:01:11 #3779 [Verbose] > │ true │
00:01:11 #3780 [Verbose] > │ else │
00:01:11 #3781 [Verbose] > │ method43(v30) │
00:01:11 #3782 [Verbose] > │ let v33 : string = $"__expect / actual: %A{v29} / expected: │
00:01:11 #3783 [Verbose] > │ %A{infinity}" │
00:01:11 #3784 [Verbose] > │ let v34 : bool = v32 = false │
00:01:11 #3785 [Verbose] > │ if v34 then │
00:01:11 #3786 [Verbose] > │ failwith<unit> v33 │
00:01:11 #3787 [Verbose] > │ let v35 : num_complex_Complex<float> = method14(v26) │
00:01:11 #3788 [Verbose] > │ let v36 : string = "v35.im" │
00:01:11 #3789 [Verbose] > │ let v37 : float = Fable.Core.RustInterop.emitRustExpr () v36 │
00:01:11 #3790 [Verbose] > │ let v38 : bool = v37 < infinity │
00:01:11 #3791 [Verbose] > │ let v40 : bool = │
00:01:11 #3792 [Verbose] > │ if v38 then │
00:01:11 #3793 [Verbose] > │ true │
00:01:11 #3794 [Verbose] > │ else │
00:01:11 #3795 [Verbose] > │ method43(v38) │
00:01:11 #3796 [Verbose] > │ let v41 : string = $"__expect / actual: %A{v37} / expected: │
00:01:11 #3797 [Verbose] > │ %A{infinity}" │
00:01:11 #3798 [Verbose] > │ let v42 : bool = v40 = false │
00:01:11 #3799 [Verbose] > │ if v42 then │
00:01:11 #3800 [Verbose] > │ failwith<unit> v41 │
00:01:11 #3801 [Verbose] > │ and method71 () : unit = │
00:01:11 #3802 [Verbose] > │ let v0 : string = "pyo3::prepare_freethreaded_python()" │
00:01:11 #3803 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v0 │
00:01:11 #3804 [Verbose] > │ let v1 : string = "let __result = pyo3::Python::with_gil(|py| -> │
00:01:11 #3805 [Verbose] > │ pyo3::PyResult<()> { //" │
00:01:11 #3806 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v1 │
00:01:11 #3807 [Verbose] > │ let v2 : string = "py" │
00:01:11 #3808 [Verbose] > │ let v3 : pyo3_Python = Fable.Core.RustInterop.emitRustExpr () v2 │
00:01:11 #3809 [Verbose] > │ method72(v3) │
00:01:11 #3810 [Verbose] > │ let v4 : Result<unit, pyo3_PyErr> = Ok () │
00:01:11 #3811 [Verbose] > │ let v5 : Result<unit, pyo3_PyErr> = method44(v4) │
00:01:11 #3812 [Verbose] > │ let v6 : string = "v5 }})" │
00:01:11 #3813 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v6 │
00:01:11 #3814 [Verbose] > │ let v7 : string = "{ //" │
00:01:11 #3815 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v7 │
00:01:11 #3816 [Verbose] > │ let v8 : string = "__result" │
00:01:11 #3817 [Verbose] > │ let v9 : Result<unit, pyo3_PyErr> = Fable.Core.RustInterop.emitRustExpr │
00:01:11 #3818 [Verbose] > │ () v8 │
00:01:11 #3819 [Verbose] > │ let v10 : Result<unit, pyo3_PyErr> = method45(v9) │
00:01:11 #3820 [Verbose] > │ let v11 : string = "v10.unwrap()" │
00:01:11 #3821 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v11 │
00:01:11 #3822 [Verbose] > │ () │
00:01:11 #3823 [Verbose] > │ and method77 () : (float []) = │
00:01:11 #3824 [Verbose] > │ let v0 : (float []) = [|10.0; 20.0; 30.0; 40.0; 50.0; 60.0; 70.0; 80.0; │
00:01:11 #3825 [Verbose] > │ 90.0; 100.0|] │
00:01:11 #3826 [Verbose] > │ let v1 : (float []) = method65(v0) │
00:01:11 #3827 [Verbose] > │ v1 │
00:01:11 #3828 [Verbose] > │ and method78 (v0 : bool) : bool = │
00:01:11 #3829 [Verbose] > │ let v1 : bool = v0 = false │
00:01:11 #3830 [Verbose] > │ v1 │
00:01:11 #3831 [Verbose] > │ and method76 (v0 : pyo3_Python) : unit = │
00:01:11 #3832 [Verbose] > │ let v1 : (float []) = method77() │
00:01:11 #3833 [Verbose] > │ let v2 : int32 = v1.Length │
00:01:11 #3834 [Verbose] > │ let v3 : Mut0 = {l0 = 0} : Mut0 │
00:01:11 #3835 [Verbose] > │ while method7(v2, v3) do │
00:01:11 #3836 [Verbose] > │ let v5 : int32 = v3.l0 │
00:01:11 #3837 [Verbose] > │ let v6 : float = v1.[int v5] │
00:01:11 #3838 [Verbose] > │ let v7 : float = method35() │
00:01:11 #3839 [Verbose] > │ let v8 : float = method3(v7) │
00:01:11 #3840 [Verbose] > │ let v9 : float = method32(v6) │
00:01:11 #3841 [Verbose] > │ let v10 : string = "num_complex::Complex::new(v8, v9)" │
00:01:11 #3842 [Verbose] > │ let v11 : num_complex_Complex<float> = │
00:01:11 #3843 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v10 │
00:01:11 #3844 [Verbose] > │ let v12 : string = $" s = mpmath.zeta(s)" │
00:01:11 #3845 [Verbose] > │ let v13 : num_complex_Complex<float> = method8(v11) │
00:01:11 #3846 [Verbose] > │ let v14 : Result<num_complex_Complex<float>, std_string_String> = │
00:01:11 #3847 [Verbose] > │ method9(v0, v12, v13) │
00:01:11 #3848 [Verbose] > │ let v15 : num_complex_Complex<float> = method33(v0, v11) │
00:01:11 #3849 [Verbose] > │ let v16 : string = "v14.ok()" │
00:01:11 #3850 [Verbose] > │ let v17 : num_complex_Complex<float> option = │
00:01:11 #3851 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v16 │
00:01:11 #3852 [Verbose] > │ let v18 : (num_complex_Complex<float> -> US0) = closure5() │
00:01:11 #3853 [Verbose] > │ let v19 : US0 = US0_0 │
00:01:11 #3854 [Verbose] > │ let v20 : US0 = v17 |> Option.map v18 |> Option.defaultValue v19 │
00:01:11 #3855 [Verbose] > │ let v21 : string = "f64::NAN" │
00:01:11 #3856 [Verbose] > │ let v22 : float = Fable.Core.RustInterop.emitRustExpr () v21 │
00:01:11 #3857 [Verbose] > │ let v23 : string = "f64::NAN" │
00:01:11 #3858 [Verbose] > │ let v24 : float = Fable.Core.RustInterop.emitRustExpr () v23 │
00:01:11 #3859 [Verbose] > │ let v25 : float = method31(v22) │
00:01:11 #3860 [Verbose] > │ let v26 : float = method3(v25) │
00:01:11 #3861 [Verbose] > │ let v27 : float = method32(v24) │
00:01:11 #3862 [Verbose] > │ let v28 : string = "num_complex::Complex::new(v26, v27)" │
00:01:11 #3863 [Verbose] > │ let v29 : num_complex_Complex<float> = │
00:01:11 #3864 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v28 │
00:01:11 #3865 [Verbose] > │ let v32 : num_complex_Complex<float> = │
00:01:11 #3866 [Verbose] > │ match v20 with │
00:01:11 #3867 [Verbose] > │ | US0_0 -> (* None *) │
00:01:11 #3868 [Verbose] > │ v29 │
00:01:11 #3869 [Verbose] > │ | US0_1(v30) -> (* Some *) │
00:01:11 #3870 [Verbose] > │ v30 │
00:01:11 #3871 [Verbose] > │ let v33 : num_complex_Complex<float> = method13(v32) │
00:01:11 #3872 [Verbose] > │ let v34 : string = "v33.re" │
00:01:11 #3873 [Verbose] > │ let v35 : float = Fable.Core.RustInterop.emitRustExpr () v34 │
00:01:11 #3874 [Verbose] > │ let v36 : bool = v35 = 0.0 │
00:01:11 #3875 [Verbose] > │ let v37 : bool = method78(v36) │
00:01:11 #3876 [Verbose] > │ let v39 : bool = │
00:01:11 #3877 [Verbose] > │ if v37 then │
00:01:11 #3878 [Verbose] > │ true │
00:01:11 #3879 [Verbose] > │ else │
00:01:11 #3880 [Verbose] > │ method43(v37) │
00:01:11 #3881 [Verbose] > │ let v40 : string = $"__expect / actual: %A{v35} / expected: %A{0.0}" │
00:01:11 #3882 [Verbose] > │ let v41 : bool = v39 = false │
00:01:11 #3883 [Verbose] > │ if v41 then │
00:01:11 #3884 [Verbose] > │ failwith<unit> v40 │
00:01:11 #3885 [Verbose] > │ let v42 : num_complex_Complex<float> = method14(v32) │
00:01:11 #3886 [Verbose] > │ let v43 : string = "v42.im" │
00:01:11 #3887 [Verbose] > │ let v44 : float = Fable.Core.RustInterop.emitRustExpr () v43 │
00:01:11 #3888 [Verbose] > │ let v45 : bool = v44 = 0.0 │
00:01:11 #3889 [Verbose] > │ let v46 : bool = method78(v45) │
00:01:11 #3890 [Verbose] > │ let v48 : bool = │
00:01:11 #3891 [Verbose] > │ if v46 then │
00:01:11 #3892 [Verbose] > │ true │
00:01:11 #3893 [Verbose] > │ else │
00:01:11 #3894 [Verbose] > │ method43(v46) │
00:01:11 #3895 [Verbose] > │ let v49 : string = $"__expect / actual: %A{v44} / expected: %A{0.0}" │
00:01:11 #3896 [Verbose] > │ let v50 : bool = v48 = false │
00:01:11 #3897 [Verbose] > │ if v50 then │
00:01:11 #3898 [Verbose] > │ failwith<unit> v49 │
00:01:11 #3899 [Verbose] > │ let v51 : int32 = v5 + 1 │
00:01:11 #3900 [Verbose] > │ v3.l0 <- v51 │
00:01:11 #3901 [Verbose] > │ () │
00:01:11 #3902 [Verbose] > │ () │
00:01:11 #3903 [Verbose] > │ and method75 () : unit = │
00:01:11 #3904 [Verbose] > │ let v0 : string = "pyo3::prepare_freethreaded_python()" │
00:01:11 #3905 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v0 │
00:01:11 #3906 [Verbose] > │ let v1 : string = "let __result = pyo3::Python::with_gil(|py| -> │
00:01:11 #3907 [Verbose] > │ pyo3::PyResult<()> { //" │
00:01:11 #3908 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v1 │
00:01:11 #3909 [Verbose] > │ let v2 : string = "py" │
00:01:11 #3910 [Verbose] > │ let v3 : pyo3_Python = Fable.Core.RustInterop.emitRustExpr () v2 │
00:01:11 #3911 [Verbose] > │ method76(v3) │
00:01:11 #3912 [Verbose] > │ let v4 : Result<unit, pyo3_PyErr> = Ok () │
00:01:11 #3913 [Verbose] > │ let v5 : Result<unit, pyo3_PyErr> = method44(v4) │
00:01:11 #3914 [Verbose] > │ let v6 : string = "v5 }})" │
00:01:11 #3915 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v6 │
00:01:11 #3916 [Verbose] > │ let v7 : string = "{ //" │
00:01:11 #3917 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v7 │
00:01:11 #3918 [Verbose] > │ let v8 : string = "__result" │
00:01:11 #3919 [Verbose] > │ let v9 : Result<unit, pyo3_PyErr> = Fable.Core.RustInterop.emitRustExpr │
00:01:11 #3920 [Verbose] > │ () v8 │
00:01:11 #3921 [Verbose] > │ let v10 : Result<unit, pyo3_PyErr> = method45(v9) │
00:01:11 #3922 [Verbose] > │ let v11 : string = "v10.unwrap()" │
00:01:11 #3923 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v11 │
00:01:11 #3924 [Verbose] > │ () │
00:01:11 #3925 [Verbose] > │ and method81 () : float = │
00:01:11 #3926 [Verbose] > │ 0.75 │
00:01:11 #3927 [Verbose] > │ and method82 () : float = │
00:01:11 #3928 [Verbose] > │ 20.5 │
00:01:11 #3929 [Verbose] > │ and method83 () : float = │
00:01:11 #3930 [Verbose] > │ 1.25 │
00:01:11 #3931 [Verbose] > │ and method84 () : float = │
00:01:11 #3932 [Verbose] > │ 30.1 │
00:01:11 #3933 [Verbose] > │ and method85 () : float = │
00:01:11 #3934 [Verbose] > │ 0.25 │
00:01:11 #3935 [Verbose] > │ and method86 () : float = │
00:01:11 #3936 [Verbose] > │ 40.0 │
00:01:11 #3937 [Verbose] > │ and method87 () : float = │
00:01:11 #3938 [Verbose] > │ 50.0 │
00:01:11 #3939 [Verbose] > │ and method80 (v0 : pyo3_Python) : unit = │
00:01:11 #3940 [Verbose] > │ let v1 : float = method55() │
00:01:11 #3941 [Verbose] > │ let v2 : float = method3(v1) │
00:01:11 #3942 [Verbose] > │ let v3 : float = method56() │
00:01:11 #3943 [Verbose] > │ let v4 : string = "num_complex::Complex::new(v2, v3)" │
00:01:11 #3944 [Verbose] > │ let v5 : num_complex_Complex<float> = │
00:01:11 #3945 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v4 │
00:01:11 #3946 [Verbose] > │ let v6 : float = method81() │
00:01:11 #3947 [Verbose] > │ let v7 : float = method3(v6) │
00:01:11 #3948 [Verbose] > │ let v8 : float = method82() │
00:01:11 #3949 [Verbose] > │ let v9 : string = "num_complex::Complex::new(v7, v8)" │
00:01:11 #3950 [Verbose] > │ let v10 : num_complex_Complex<float> = │
00:01:11 #3951 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v9 │
00:01:11 #3952 [Verbose] > │ let v11 : float = method83() │
00:01:11 #3953 [Verbose] > │ let v12 : float = method3(v11) │
00:01:11 #3954 [Verbose] > │ let v13 : float = method84() │
00:01:11 #3955 [Verbose] > │ let v14 : string = "num_complex::Complex::new(v12, v13)" │
00:01:11 #3956 [Verbose] > │ let v15 : num_complex_Complex<float> = │
00:01:11 #3957 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v14 │
00:01:11 #3958 [Verbose] > │ let v16 : float = method85() │
00:01:11 #3959 [Verbose] > │ let v17 : float = method3(v16) │
00:01:11 #3960 [Verbose] > │ let v18 : float = method86() │
00:01:11 #3961 [Verbose] > │ let v19 : string = "num_complex::Complex::new(v17, v18)" │
00:01:11 #3962 [Verbose] > │ let v20 : num_complex_Complex<float> = │
00:01:11 #3963 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v19 │
00:01:11 #3964 [Verbose] > │ let v21 : float = method38() │
00:01:11 #3965 [Verbose] > │ let v22 : float = method3(v21) │
00:01:11 #3966 [Verbose] > │ let v23 : float = method87() │
00:01:11 #3967 [Verbose] > │ let v24 : string = "num_complex::Complex::new(v22, v23)" │
00:01:11 #3968 [Verbose] > │ let v25 : num_complex_Complex<float> = │
00:01:11 #3969 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v24 │
00:01:11 #3970 [Verbose] > │ let v26 : (num_complex_Complex<float> []) = [|v5; v10; v15; v20; v25|] │
00:01:11 #3971 [Verbose] > │ let v27 : (num_complex_Complex<float> []) = method62(v26) │
00:01:11 #3972 [Verbose] > │ let v28 : int32 = v27.Length │
00:01:11 #3973 [Verbose] > │ let v29 : Mut0 = {l0 = 0} : Mut0 │
00:01:11 #3974 [Verbose] > │ while method7(v28, v29) do │
00:01:11 #3975 [Verbose] > │ let v31 : int32 = v29.l0 │
00:01:11 #3976 [Verbose] > │ let v32 : num_complex_Complex<float> = v27.[int v31] │
00:01:11 #3977 [Verbose] > │ let v33 : string = $" s = mpmath.zeta(s)" │
00:01:11 #3978 [Verbose] > │ let v34 : num_complex_Complex<float> = method8(v32) │
00:01:11 #3979 [Verbose] > │ let v35 : Result<num_complex_Complex<float>, std_string_String> = │
00:01:11 #3980 [Verbose] > │ method9(v0, v33, v34) │
00:01:11 #3981 [Verbose] > │ let v36 : num_complex_Complex<float> = method33(v0, v32) │
00:01:11 #3982 [Verbose] > │ let v37 : string = "v35.ok()" │
00:01:11 #3983 [Verbose] > │ let v38 : num_complex_Complex<float> option = │
00:01:11 #3984 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v37 │
00:01:11 #3985 [Verbose] > │ let v39 : (num_complex_Complex<float> -> US0) = closure5() │
00:01:11 #3986 [Verbose] > │ let v40 : US0 = US0_0 │
00:01:11 #3987 [Verbose] > │ let v41 : US0 = v38 |> Option.map v39 |> Option.defaultValue v40 │
00:01:11 #3988 [Verbose] > │ let v42 : string = "f64::NAN" │
00:01:11 #3989 [Verbose] > │ let v43 : float = Fable.Core.RustInterop.emitRustExpr () v42 │
00:01:11 #3990 [Verbose] > │ let v44 : string = "f64::NAN" │
00:01:11 #3991 [Verbose] > │ let v45 : float = Fable.Core.RustInterop.emitRustExpr () v44 │
00:01:11 #3992 [Verbose] > │ let v46 : float = method31(v43) │
00:01:11 #3993 [Verbose] > │ let v47 : float = method3(v46) │
00:01:11 #3994 [Verbose] > │ let v48 : float = method32(v45) │
00:01:11 #3995 [Verbose] > │ let v49 : string = "num_complex::Complex::new(v47, v48)" │
00:01:11 #3996 [Verbose] > │ let v50 : num_complex_Complex<float> = │
00:01:11 #3997 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v49 │
00:01:11 #3998 [Verbose] > │ let v53 : num_complex_Complex<float> = │
00:01:11 #3999 [Verbose] > │ match v41 with │
00:01:11 #4000 [Verbose] > │ | US0_0 -> (* None *) │
00:01:11 #4001 [Verbose] > │ v50 │
00:01:11 #4002 [Verbose] > │ | US0_1(v51) -> (* Some *) │
00:01:11 #4003 [Verbose] > │ v51 │
00:01:11 #4004 [Verbose] > │ let v54 : num_complex_Complex<float> = method13(v53) │
00:01:11 #4005 [Verbose] > │ let v55 : string = "v54.re" │
00:01:11 #4006 [Verbose] > │ let v56 : float = Fable.Core.RustInterop.emitRustExpr () v55 │
00:01:11 #4007 [Verbose] > │ let v57 : bool = v56 = 0.0 │
00:01:11 #4008 [Verbose] > │ let v58 : bool = method78(v57) │
00:01:11 #4009 [Verbose] > │ let v60 : bool = │
00:01:11 #4010 [Verbose] > │ if v58 then │
00:01:11 #4011 [Verbose] > │ true │
00:01:11 #4012 [Verbose] > │ else │
00:01:11 #4013 [Verbose] > │ method43(v58) │
00:01:11 #4014 [Verbose] > │ let v61 : string = $"__expect / actual: %A{v56} / expected: %A{0.0}" │
00:01:11 #4015 [Verbose] > │ let v62 : bool = v60 = false │
00:01:11 #4016 [Verbose] > │ if v62 then │
00:01:11 #4017 [Verbose] > │ failwith<unit> v61 │
00:01:11 #4018 [Verbose] > │ let v63 : num_complex_Complex<float> = method14(v53) │
00:01:11 #4019 [Verbose] > │ let v64 : string = "v63.im" │
00:01:11 #4020 [Verbose] > │ let v65 : float = Fable.Core.RustInterop.emitRustExpr () v64 │
00:01:11 #4021 [Verbose] > │ let v66 : bool = v65 = 0.0 │
00:01:11 #4022 [Verbose] > │ let v67 : bool = method78(v66) │
00:01:11 #4023 [Verbose] > │ let v69 : bool = │
00:01:11 #4024 [Verbose] > │ if v67 then │
00:01:11 #4025 [Verbose] > │ true │
00:01:11 #4026 [Verbose] > │ else │
00:01:11 #4027 [Verbose] > │ method43(v67) │
00:01:11 #4028 [Verbose] > │ let v70 : string = $"__expect / actual: %A{v65} / expected: %A{0.0}" │
00:01:11 #4029 [Verbose] > │ let v71 : bool = v69 = false │
00:01:11 #4030 [Verbose] > │ if v71 then │
00:01:11 #4031 [Verbose] > │ failwith<unit> v70 │
00:01:11 #4032 [Verbose] > │ let v72 : int32 = v31 + 1 │
00:01:11 #4033 [Verbose] > │ v29.l0 <- v72 │
00:01:11 #4034 [Verbose] > │ () │
00:01:11 #4035 [Verbose] > │ () │
00:01:11 #4036 [Verbose] > │ and method79 () : unit = │
00:01:11 #4037 [Verbose] > │ let v0 : string = "pyo3::prepare_freethreaded_python()" │
00:01:11 #4038 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v0 │
00:01:11 #4039 [Verbose] > │ let v1 : string = "let __result = pyo3::Python::with_gil(|py| -> │
00:01:11 #4040 [Verbose] > │ pyo3::PyResult<()> { //" │
00:01:11 #4041 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v1 │
00:01:11 #4042 [Verbose] > │ let v2 : string = "py" │
00:01:11 #4043 [Verbose] > │ let v3 : pyo3_Python = Fable.Core.RustInterop.emitRustExpr () v2 │
00:01:11 #4044 [Verbose] > │ method80(v3) │
00:01:11 #4045 [Verbose] > │ let v4 : Result<unit, pyo3_PyErr> = Ok () │
00:01:11 #4046 [Verbose] > │ let v5 : Result<unit, pyo3_PyErr> = method44(v4) │
00:01:11 #4047 [Verbose] > │ let v6 : string = "v5 }})" │
00:01:11 #4048 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v6 │
00:01:11 #4049 [Verbose] > │ let v7 : string = "{ //" │
00:01:11 #4050 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v7 │
00:01:11 #4051 [Verbose] > │ let v8 : string = "__result" │
00:01:11 #4052 [Verbose] > │ let v9 : Result<unit, pyo3_PyErr> = Fable.Core.RustInterop.emitRustExpr │
00:01:11 #4053 [Verbose] > │ () v8 │
00:01:11 #4054 [Verbose] > │ let v10 : Result<unit, pyo3_PyErr> = method45(v9) │
00:01:11 #4055 [Verbose] > │ let v11 : string = "v10.unwrap()" │
00:01:11 #4056 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v11 │
00:01:11 #4057 [Verbose] > │ () │
00:01:11 #4058 [Verbose] > │ and method90 () : float = │
00:01:11 #4059 [Verbose] > │ 3.0 │
00:01:11 #4060 [Verbose] > │ and method91 () : float = │
00:01:11 #4061 [Verbose] > │ 4.0 │
00:01:11 #4062 [Verbose] > │ and method92 () : float = │
00:01:11 #4063 [Verbose] > │ 2.5 │
00:01:11 #4064 [Verbose] > │ and method93 () : float = │
00:01:11 #4065 [Verbose] > │ -3.5 │
00:01:11 #4066 [Verbose] > │ and method94 () : float = │
00:01:11 #4067 [Verbose] > │ 1.5 │
00:01:11 #4068 [Verbose] > │ and method95 () : float = │
00:01:11 #4069 [Verbose] > │ 2.5 │
00:01:11 #4070 [Verbose] > │ and method89 (v0 : pyo3_Python) : unit = │
00:01:11 #4071 [Verbose] > │ let v1 : float = method90() │
00:01:11 #4072 [Verbose] > │ let v2 : float = method3(v1) │
00:01:11 #4073 [Verbose] > │ let v3 : float = method91() │
00:01:11 #4074 [Verbose] > │ let v4 : string = "num_complex::Complex::new(v2, v3)" │
00:01:11 #4075 [Verbose] > │ let v5 : num_complex_Complex<float> = │
00:01:11 #4076 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v4 │
00:01:11 #4077 [Verbose] > │ let v6 : float = method92() │
00:01:11 #4078 [Verbose] > │ let v7 : float = method3(v6) │
00:01:11 #4079 [Verbose] > │ let v8 : float = method93() │
00:01:11 #4080 [Verbose] > │ let v9 : string = "num_complex::Complex::new(v7, v8)" │
00:01:11 #4081 [Verbose] > │ let v10 : num_complex_Complex<float> = │
00:01:11 #4082 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v9 │
00:01:11 #4083 [Verbose] > │ let v11 : float = method94() │
00:01:11 #4084 [Verbose] > │ let v12 : float = method3(v11) │
00:01:11 #4085 [Verbose] > │ let v13 : float = method95() │
00:01:11 #4086 [Verbose] > │ let v14 : string = "num_complex::Complex::new(v12, v13)" │
00:01:11 #4087 [Verbose] > │ let v15 : num_complex_Complex<float> = │
00:01:11 #4088 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v14 │
00:01:11 #4089 [Verbose] > │ let v16 : float = method55() │
00:01:11 #4090 [Verbose] > │ let v17 : float = method3(v16) │
00:01:11 #4091 [Verbose] > │ let v18 : float = method56() │
00:01:11 #4092 [Verbose] > │ let v19 : string = "num_complex::Complex::new(v17, v18)" │
00:01:11 #4093 [Verbose] > │ let v20 : num_complex_Complex<float> = │
00:01:11 #4094 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v19 │
00:01:11 #4095 [Verbose] > │ let v21 : (num_complex_Complex<float> []) = [|v5; v10; v15; v20|] │
00:01:11 #4096 [Verbose] > │ let v22 : (num_complex_Complex<float> []) = method62(v21) │
00:01:11 #4097 [Verbose] > │ let v23 : int32 = v22.Length │
00:01:11 #4098 [Verbose] > │ let v24 : Mut0 = {l0 = 0} : Mut0 │
00:01:11 #4099 [Verbose] > │ while method7(v23, v24) do │
00:01:11 #4100 [Verbose] > │ let v26 : int32 = v24.l0 │
00:01:11 #4101 [Verbose] > │ let v27 : num_complex_Complex<float> = v22.[int v26] │
00:01:11 #4102 [Verbose] > │ let v28 : string = $" s = mpmath.zeta(s)" │
00:01:11 #4103 [Verbose] > │ let v29 : num_complex_Complex<float> = method8(v27) │
00:01:11 #4104 [Verbose] > │ let v30 : Result<num_complex_Complex<float>, std_string_String> = │
00:01:11 #4105 [Verbose] > │ method9(v0, v28, v29) │
00:01:11 #4106 [Verbose] > │ let v31 : num_complex_Complex<float> = method33(v0, v27) │
00:01:11 #4107 [Verbose] > │ let v32 : string = "v30.ok()" │
00:01:11 #4108 [Verbose] > │ let v33 : num_complex_Complex<float> option = │
00:01:11 #4109 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v32 │
00:01:11 #4110 [Verbose] > │ let v34 : (num_complex_Complex<float> -> US0) = closure5() │
00:01:11 #4111 [Verbose] > │ let v35 : US0 = US0_0 │
00:01:11 #4112 [Verbose] > │ let v36 : US0 = v33 |> Option.map v34 |> Option.defaultValue v35 │
00:01:11 #4113 [Verbose] > │ let v37 : string = "f64::NAN" │
00:01:11 #4114 [Verbose] > │ let v38 : float = Fable.Core.RustInterop.emitRustExpr () v37 │
00:01:11 #4115 [Verbose] > │ let v39 : string = "f64::NAN" │
00:01:11 #4116 [Verbose] > │ let v40 : float = Fable.Core.RustInterop.emitRustExpr () v39 │
00:01:11 #4117 [Verbose] > │ let v41 : float = method31(v38) │
00:01:11 #4118 [Verbose] > │ let v42 : float = method3(v41) │
00:01:11 #4119 [Verbose] > │ let v43 : float = method32(v40) │
00:01:11 #4120 [Verbose] > │ let v44 : string = "num_complex::Complex::new(v42, v43)" │
00:01:11 #4121 [Verbose] > │ let v45 : num_complex_Complex<float> = │
00:01:11 #4122 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v44 │
00:01:11 #4123 [Verbose] > │ let v48 : num_complex_Complex<float> = │
00:01:11 #4124 [Verbose] > │ match v36 with │
00:01:11 #4125 [Verbose] > │ | US0_0 -> (* None *) │
00:01:11 #4126 [Verbose] > │ v45 │
00:01:11 #4127 [Verbose] > │ | US0_1(v46) -> (* Some *) │
00:01:11 #4128 [Verbose] > │ v46 │
00:01:11 #4129 [Verbose] > │ let v49 : float = method2() │
00:01:11 #4130 [Verbose] > │ let v50 : float = method3(v49) │
00:01:11 #4131 [Verbose] > │ let v51 : float = method4() │
00:01:11 #4132 [Verbose] > │ let v52 : string = "num_complex::Complex::new(v50, v51)" │
00:01:11 #4133 [Verbose] > │ let v53 : num_complex_Complex<float> = │
00:01:11 #4134 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v52 │
00:01:11 #4135 [Verbose] > │ let v54 : num_complex_Complex<float> = method39(v53) │
00:01:11 #4136 [Verbose] > │ let v55 : num_complex_Complex<float> = method40(v27) │
00:01:11 #4137 [Verbose] > │ let v56 : string = "num_complex::Complex::powc(v54, v55)" │
00:01:11 #4138 [Verbose] > │ let v57 : num_complex_Complex<float> = │
00:01:11 #4139 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v56 │
00:01:11 #4140 [Verbose] > │ let v58 : float = method42() │
00:01:11 #4141 [Verbose] > │ let v59 : float = method3(v58) │
00:01:11 #4142 [Verbose] > │ let v60 : float = method4() │
00:01:11 #4143 [Verbose] > │ let v61 : string = "num_complex::Complex::new(v59, v60)" │
00:01:11 #4144 [Verbose] > │ let v62 : num_complex_Complex<float> = │
00:01:11 #4145 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v61 │
00:01:11 #4146 [Verbose] > │ let v63 : float = method38() │
00:01:11 #4147 [Verbose] > │ let v64 : float = method3(v63) │
00:01:11 #4148 [Verbose] > │ let v65 : float = method4() │
00:01:11 #4149 [Verbose] > │ let v66 : string = "num_complex::Complex::new(v64, v65)" │
00:01:11 #4150 [Verbose] > │ let v67 : num_complex_Complex<float> = │
00:01:11 #4151 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v66 │
00:01:11 #4152 [Verbose] > │ let v68 : string = "v27 - v67" │
00:01:11 #4153 [Verbose] > │ let v69 : num_complex_Complex<float> = │
00:01:11 #4154 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v68 │
00:01:11 #4155 [Verbose] > │ let v70 : num_complex_Complex<float> = method39(v62) │
00:01:11 #4156 [Verbose] > │ let v71 : num_complex_Complex<float> = method40(v69) │
00:01:11 #4157 [Verbose] > │ let v72 : string = "num_complex::Complex::powc(v70, v71)" │
00:01:11 #4158 [Verbose] > │ let v73 : num_complex_Complex<float> = │
00:01:11 #4159 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v72 │
00:01:11 #4160 [Verbose] > │ let v74 : string = "v57 * v73" │
00:01:11 #4161 [Verbose] > │ let v75 : num_complex_Complex<float> = │
00:01:11 #4162 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v74 │
00:01:11 #4163 [Verbose] > │ let v76 : float = method42() │
00:01:11 #4164 [Verbose] > │ let v77 : float = method3(v76) │
00:01:11 #4165 [Verbose] > │ let v78 : float = method4() │
00:01:11 #4166 [Verbose] > │ let v79 : string = "num_complex::Complex::new(v77, v78)" │
00:01:11 #4167 [Verbose] > │ let v80 : num_complex_Complex<float> = │
00:01:11 #4168 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v79 │
00:01:11 #4169 [Verbose] > │ let v81 : string = "v80 * v27" │
00:01:11 #4170 [Verbose] > │ let v82 : num_complex_Complex<float> = │
00:01:11 #4171 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v81 │
00:01:11 #4172 [Verbose] > │ let v83 : float = method2() │
00:01:11 #4173 [Verbose] > │ let v84 : float = method3(v83) │
00:01:11 #4174 [Verbose] > │ let v85 : float = method4() │
00:01:11 #4175 [Verbose] > │ let v86 : string = "num_complex::Complex::new(v84, v85)" │
00:01:11 #4176 [Verbose] > │ let v87 : num_complex_Complex<float> = │
00:01:11 #4177 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v86 │
00:01:11 #4178 [Verbose] > │ let v88 : string = "v82 / v87" │
00:01:11 #4179 [Verbose] > │ let v89 : num_complex_Complex<float> = │
00:01:11 #4180 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v88 │
00:01:11 #4181 [Verbose] > │ let v90 : string = "v89.sin()" │
00:01:11 #4182 [Verbose] > │ let v91 : num_complex_Complex<float> = │
00:01:11 #4183 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v90 │
00:01:11 #4184 [Verbose] > │ let v92 : string = "v75 * v91" │
00:01:11 #4185 [Verbose] > │ let v93 : num_complex_Complex<float> = │
00:01:11 #4186 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v92 │
00:01:11 #4187 [Verbose] > │ let v94 : float = method38() │
00:01:11 #4188 [Verbose] > │ let v95 : float = method3(v94) │
00:01:11 #4189 [Verbose] > │ let v96 : float = method4() │
00:01:11 #4190 [Verbose] > │ let v97 : string = "num_complex::Complex::new(v95, v96)" │
00:01:11 #4191 [Verbose] > │ let v98 : num_complex_Complex<float> = │
00:01:11 #4192 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v97 │
00:01:11 #4193 [Verbose] > │ let v99 : string = "v98 - v27" │
00:01:11 #4194 [Verbose] > │ let v100 : num_complex_Complex<float> = │
00:01:11 #4195 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v99 │
00:01:11 #4196 [Verbose] > │ let v101 : string = $" s = mpmath.gamma(s)" │
00:01:11 #4197 [Verbose] > │ let v102 : num_complex_Complex<float> = method8(v100) │
00:01:11 #4198 [Verbose] > │ let v103 : Result<num_complex_Complex<float>, std_string_String> = │
00:01:11 #4199 [Verbose] > │ method41(v0, v101, v102) │
00:01:11 #4200 [Verbose] > │ let v104 : string = "v103.ok()" │
00:01:11 #4201 [Verbose] > │ let v105 : num_complex_Complex<float> option = │
00:01:11 #4202 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v104 │
00:01:11 #4203 [Verbose] > │ let v106 : US0 = US0_0 │
00:01:11 #4204 [Verbose] > │ let v107 : US0 = v105 |> Option.map v34 |> Option.defaultValue v106 │
00:01:11 #4205 [Verbose] > │ let v108 : string = "f64::NAN" │
00:01:11 #4206 [Verbose] > │ let v109 : float = Fable.Core.RustInterop.emitRustExpr () v108 │
00:01:11 #4207 [Verbose] > │ let v110 : string = "f64::NAN" │
00:01:11 #4208 [Verbose] > │ let v111 : float = Fable.Core.RustInterop.emitRustExpr () v110 │
00:01:11 #4209 [Verbose] > │ let v112 : float = method31(v109) │
00:01:11 #4210 [Verbose] > │ let v113 : float = method3(v112) │
00:01:11 #4211 [Verbose] > │ let v114 : float = method32(v111) │
00:01:11 #4212 [Verbose] > │ let v115 : string = "num_complex::Complex::new(v113, v114)" │
00:01:11 #4213 [Verbose] > │ let v116 : num_complex_Complex<float> = │
00:01:11 #4214 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v115 │
00:01:11 #4215 [Verbose] > │ let v119 : num_complex_Complex<float> = │
00:01:11 #4216 [Verbose] > │ match v107 with │
00:01:11 #4217 [Verbose] > │ | US0_0 -> (* None *) │
00:01:11 #4218 [Verbose] > │ v116 │
00:01:11 #4219 [Verbose] > │ | US0_1(v117) -> (* Some *) │
00:01:11 #4220 [Verbose] > │ v117 │
00:01:11 #4221 [Verbose] > │ let v120 : string = "v93 * v119" │
00:01:11 #4222 [Verbose] > │ let v121 : num_complex_Complex<float> = │
00:01:11 #4223 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v120 │
00:01:11 #4224 [Verbose] > │ let v122 : num_complex_Complex<float> = method13(v27) │
00:01:11 #4225 [Verbose] > │ let v123 : string = "v122.re" │
00:01:11 #4226 [Verbose] > │ let v124 : float = Fable.Core.RustInterop.emitRustExpr () v123 │
00:01:11 #4227 [Verbose] > │ let v125 : float = 1.0 - v124 │
00:01:11 #4228 [Verbose] > │ let v126 : num_complex_Complex<float> = method14(v27) │
00:01:11 #4229 [Verbose] > │ let v127 : string = "v126.im" │
00:01:11 #4230 [Verbose] > │ let v128 : float = Fable.Core.RustInterop.emitRustExpr () v127 │
00:01:11 #4231 [Verbose] > │ let v129 : float = -v128 │
00:01:11 #4232 [Verbose] > │ let v130 : float = method31(v125) │
00:01:11 #4233 [Verbose] > │ let v131 : float = method3(v130) │
00:01:11 #4234 [Verbose] > │ let v132 : float = method32(v129) │
00:01:11 #4235 [Verbose] > │ let v133 : string = "num_complex::Complex::new(v131, v132)" │
00:01:11 #4236 [Verbose] > │ let v134 : num_complex_Complex<float> = │
00:01:11 #4237 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v133 │
00:01:11 #4238 [Verbose] > │ let v135 : string = $" s = mpmath.zeta(s)" │
00:01:11 #4239 [Verbose] > │ let v136 : num_complex_Complex<float> = method8(v134) │
00:01:11 #4240 [Verbose] > │ let v137 : Result<num_complex_Complex<float>, std_string_String> = │
00:01:11 #4241 [Verbose] > │ method9(v0, v135, v136) │
00:01:11 #4242 [Verbose] > │ let v138 : num_complex_Complex<float> = method33(v0, v134) │
00:01:11 #4243 [Verbose] > │ let v139 : string = "v137.ok()" │
00:01:11 #4244 [Verbose] > │ let v140 : num_complex_Complex<float> option = │
00:01:11 #4245 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v139 │
00:01:11 #4246 [Verbose] > │ let v141 : US0 = US0_0 │
00:01:11 #4247 [Verbose] > │ let v142 : US0 = v140 |> Option.map v34 |> Option.defaultValue v141 │
00:01:11 #4248 [Verbose] > │ let v143 : string = "f64::NAN" │
00:01:11 #4249 [Verbose] > │ let v144 : float = Fable.Core.RustInterop.emitRustExpr () v143 │
00:01:11 #4250 [Verbose] > │ let v145 : string = "f64::NAN" │
00:01:11 #4251 [Verbose] > │ let v146 : float = Fable.Core.RustInterop.emitRustExpr () v145 │
00:01:11 #4252 [Verbose] > │ let v147 : float = method31(v144) │
00:01:11 #4253 [Verbose] > │ let v148 : float = method3(v147) │
00:01:11 #4254 [Verbose] > │ let v149 : float = method32(v146) │
00:01:11 #4255 [Verbose] > │ let v150 : string = "num_complex::Complex::new(v148, v149)" │
00:01:11 #4256 [Verbose] > │ let v151 : num_complex_Complex<float> = │
00:01:11 #4257 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v150 │
00:01:11 #4258 [Verbose] > │ let v154 : num_complex_Complex<float> = │
00:01:11 #4259 [Verbose] > │ match v142 with │
00:01:11 #4260 [Verbose] > │ | US0_0 -> (* None *) │
00:01:11 #4261 [Verbose] > │ v151 │
00:01:11 #4262 [Verbose] > │ | US0_1(v152) -> (* Some *) │
00:01:11 #4263 [Verbose] > │ v152 │
00:01:11 #4264 [Verbose] > │ let v155 : string = "v121 * v154" │
00:01:11 #4265 [Verbose] > │ let v156 : num_complex_Complex<float> = │
00:01:11 #4266 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v155 │
00:01:11 #4267 [Verbose] > │ let v157 : num_complex_Complex<float> = method13(v48) │
00:01:11 #4268 [Verbose] > │ let v158 : string = "v157.re" │
00:01:11 #4269 [Verbose] > │ let v159 : float = Fable.Core.RustInterop.emitRustExpr () v158 │
00:01:11 #4270 [Verbose] > │ let v160 : num_complex_Complex<float> = method13(v156) │
00:01:11 #4271 [Verbose] > │ let v161 : string = "v160.re" │
00:01:11 #4272 [Verbose] > │ let v162 : float = Fable.Core.RustInterop.emitRustExpr () v161 │
00:01:11 #4273 [Verbose] > │ let v163 : float = v159 - v162 │
00:01:11 #4274 [Verbose] > │ let v164 : float = -v163 │
00:01:11 #4275 [Verbose] > │ let v165 : bool = v163 >= v164 │
00:01:11 #4276 [Verbose] > │ let v166 : float = │
00:01:11 #4277 [Verbose] > │ if v165 then │
00:01:11 #4278 [Verbose] > │ v163 │
00:01:11 #4279 [Verbose] > │ else │
00:01:11 #4280 [Verbose] > │ v164 │
00:01:11 #4281 [Verbose] > │ let v167 : bool = v166 < 0.0001 │
00:01:11 #4282 [Verbose] > │ let v169 : bool = │
00:01:11 #4283 [Verbose] > │ if v167 then │
00:01:11 #4284 [Verbose] > │ true │
00:01:11 #4285 [Verbose] > │ else │
00:01:11 #4286 [Verbose] > │ method43(v167) │
00:01:11 #4287 [Verbose] > │ let v170 : string = $"__expect / actual: %A{v166} / expected: │
00:01:11 #4288 [Verbose] > │ %A{0.0001}" │
00:01:11 #4289 [Verbose] > │ let v171 : bool = v169 = false │
00:01:11 #4290 [Verbose] > │ if v171 then │
00:01:11 #4291 [Verbose] > │ failwith<unit> v170 │
00:01:11 #4292 [Verbose] > │ let v172 : num_complex_Complex<float> = method14(v48) │
00:01:11 #4293 [Verbose] > │ let v173 : string = "v172.im" │
00:01:11 #4294 [Verbose] > │ let v174 : float = Fable.Core.RustInterop.emitRustExpr () v173 │
00:01:11 #4295 [Verbose] > │ let v175 : num_complex_Complex<float> = method14(v156) │
00:01:11 #4296 [Verbose] > │ let v176 : string = "v175.im" │
00:01:11 #4297 [Verbose] > │ let v177 : float = Fable.Core.RustInterop.emitRustExpr () v176 │
00:01:11 #4298 [Verbose] > │ let v178 : float = v174 - v177 │
00:01:11 #4299 [Verbose] > │ let v179 : float = -v178 │
00:01:11 #4300 [Verbose] > │ let v180 : bool = v178 >= v179 │
00:01:11 #4301 [Verbose] > │ let v181 : float = │
00:01:11 #4302 [Verbose] > │ if v180 then │
00:01:11 #4303 [Verbose] > │ v178 │
00:01:11 #4304 [Verbose] > │ else │
00:01:11 #4305 [Verbose] > │ v179 │
00:01:11 #4306 [Verbose] > │ let v182 : bool = v181 < 0.0001 │
00:01:11 #4307 [Verbose] > │ let v184 : bool = │
00:01:11 #4308 [Verbose] > │ if v182 then │
00:01:11 #4309 [Verbose] > │ true │
00:01:11 #4310 [Verbose] > │ else │
00:01:11 #4311 [Verbose] > │ method43(v182) │
00:01:11 #4312 [Verbose] > │ let v185 : string = $"__expect / actual: %A{v181} / expected: │
00:01:11 #4313 [Verbose] > │ %A{0.0001}" │
00:01:11 #4314 [Verbose] > │ let v186 : bool = v184 = false │
00:01:11 #4315 [Verbose] > │ if v186 then │
00:01:11 #4316 [Verbose] > │ failwith<unit> v185 │
00:01:11 #4317 [Verbose] > │ let v187 : int32 = v26 + 1 │
00:01:11 #4318 [Verbose] > │ v24.l0 <- v187 │
00:01:11 #4319 [Verbose] > │ () │
00:01:11 #4320 [Verbose] > │ () │
00:01:11 #4321 [Verbose] > │ and method88 () : unit = │
00:01:11 #4322 [Verbose] > │ let v0 : string = "pyo3::prepare_freethreaded_python()" │
00:01:11 #4323 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v0 │
00:01:11 #4324 [Verbose] > │ let v1 : string = "let __result = pyo3::Python::with_gil(|py| -> │
00:01:11 #4325 [Verbose] > │ pyo3::PyResult<()> { //" │
00:01:11 #4326 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v1 │
00:01:11 #4327 [Verbose] > │ let v2 : string = "py" │
00:01:11 #4328 [Verbose] > │ let v3 : pyo3_Python = Fable.Core.RustInterop.emitRustExpr () v2 │
00:01:11 #4329 [Verbose] > │ method89(v3) │
00:01:11 #4330 [Verbose] > │ let v4 : Result<unit, pyo3_PyErr> = Ok () │
00:01:11 #4331 [Verbose] > │ let v5 : Result<unit, pyo3_PyErr> = method44(v4) │
00:01:11 #4332 [Verbose] > │ let v6 : string = "v5 }})" │
00:01:11 #4333 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v6 │
00:01:11 #4334 [Verbose] > │ let v7 : string = "{ //" │
00:01:11 #4335 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v7 │
00:01:11 #4336 [Verbose] > │ let v8 : string = "__result" │
00:01:11 #4337 [Verbose] > │ let v9 : Result<unit, pyo3_PyErr> = Fable.Core.RustInterop.emitRustExpr │
00:01:11 #4338 [Verbose] > │ () v8 │
00:01:11 #4339 [Verbose] > │ let v10 : Result<unit, pyo3_PyErr> = method45(v9) │
00:01:11 #4340 [Verbose] > │ let v11 : string = "v10.unwrap()" │
00:01:11 #4341 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v11 │
00:01:11 #4342 [Verbose] > │ () │
00:01:11 #4343 [Verbose] > │ and method98 (v0 : int32, v1 : Mut3) : bool = │
00:01:11 #4344 [Verbose] > │ let v2 : int32 = v1.l0 │
00:01:11 #4345 [Verbose] > │ let v3 : bool = v2 < v0 │
00:01:11 #4346 [Verbose] > │ v3 │
00:01:11 #4347 [Verbose] > │ and method97 (v0 : pyo3_Python) : unit = │
00:01:11 #4348 [Verbose] > │ let v1 : (float []) = [|2.0; 2.5; 3.0; 3.5; 4.0; 4.5; 5.0|] │
00:01:11 #4349 [Verbose] > │ let v2 : (float []) = method65(v1) │
00:01:11 #4350 [Verbose] > │ let v3 : (float []) = [|2.0; 3.0; 5.0; 7.0; 11.0; 13.0; 17.0; 19.0; │
00:01:11 #4351 [Verbose] > │ 23.0; 29.0; 31.0; 37.0; 41.0; 43.0; 47.0; 53.0; 59.0; 61.0; 67.0; 71.0|] │
00:01:11 #4352 [Verbose] > │ let v4 : (float []) = method65(v3) │
00:01:11 #4353 [Verbose] > │ let v5 : int32 = v2.Length │
00:01:11 #4354 [Verbose] > │ let v6 : Mut0 = {l0 = 0} : Mut0 │
00:01:11 #4355 [Verbose] > │ while method7(v5, v6) do │
00:01:11 #4356 [Verbose] > │ let v8 : int32 = v6.l0 │
00:01:11 #4357 [Verbose] > │ let v9 : float = v2.[int v8] │
00:01:11 #4358 [Verbose] > │ let v10 : float = method31(v9) │
00:01:11 #4359 [Verbose] > │ let v11 : float = method3(v10) │
00:01:11 #4360 [Verbose] > │ let v12 : float = method4() │
00:01:11 #4361 [Verbose] > │ let v13 : string = "num_complex::Complex::new(v11, v12)" │
00:01:11 #4362 [Verbose] > │ let v14 : num_complex_Complex<float> = │
00:01:11 #4363 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v13 │
00:01:11 #4364 [Verbose] > │ let v15 : int32 = v4.Length │
00:01:11 #4365 [Verbose] > │ let v16 : Mut3 = {l0 = 0; l1 = 1.0} : Mut3 │
00:01:11 #4366 [Verbose] > │ while method98(v15, v16) do │
00:01:11 #4367 [Verbose] > │ let v18 : int32 = v16.l0 │
00:01:11 #4368 [Verbose] > │ let v19 : float = v16.l1 │
00:01:11 #4369 [Verbose] > │ let v20 : float = v4.[int v18] │
00:01:11 #4370 [Verbose] > │ let v21 : float = -v9 │
00:01:11 #4371 [Verbose] > │ let v22 : float = v20 ** v21 │
00:01:11 #4372 [Verbose] > │ let v23 : float = 1.0 - v22 │
00:01:11 #4373 [Verbose] > │ let v24 : float = v19 / v23 │
00:01:11 #4374 [Verbose] > │ let v25 : int32 = v18 + 1 │
00:01:11 #4375 [Verbose] > │ v16.l0 <- v25 │
00:01:11 #4376 [Verbose] > │ v16.l1 <- v24 │
00:01:11 #4377 [Verbose] > │ () │
00:01:11 #4378 [Verbose] > │ let v26 : float = v16.l1 │
00:01:11 #4379 [Verbose] > │ let v27 : string = $" s = mpmath.zeta(s)" │
00:01:11 #4380 [Verbose] > │ let v28 : num_complex_Complex<float> = method8(v14) │
00:01:11 #4381 [Verbose] > │ let v29 : Result<num_complex_Complex<float>, std_string_String> = │
00:01:11 #4382 [Verbose] > │ method9(v0, v27, v28) │
00:01:11 #4383 [Verbose] > │ let v30 : num_complex_Complex<float> = method33(v0, v14) │
00:01:11 #4384 [Verbose] > │ let v31 : string = "v29.ok()" │
00:01:11 #4385 [Verbose] > │ let v32 : num_complex_Complex<float> option = │
00:01:11 #4386 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v31 │
00:01:11 #4387 [Verbose] > │ let v33 : (num_complex_Complex<float> -> US0) = closure5() │
00:01:11 #4388 [Verbose] > │ let v34 : US0 = US0_0 │
00:01:11 #4389 [Verbose] > │ let v35 : US0 = v32 |> Option.map v33 |> Option.defaultValue v34 │
00:01:11 #4390 [Verbose] > │ let v36 : string = "f64::NAN" │
00:01:11 #4391 [Verbose] > │ let v37 : float = Fable.Core.RustInterop.emitRustExpr () v36 │
00:01:11 #4392 [Verbose] > │ let v38 : string = "f64::NAN" │
00:01:11 #4393 [Verbose] > │ let v39 : float = Fable.Core.RustInterop.emitRustExpr () v38 │
00:01:11 #4394 [Verbose] > │ let v40 : float = method31(v37) │
00:01:11 #4395 [Verbose] > │ let v41 : float = method3(v40) │
00:01:11 #4396 [Verbose] > │ let v42 : float = method32(v39) │
00:01:11 #4397 [Verbose] > │ let v43 : string = "num_complex::Complex::new(v41, v42)" │
00:01:11 #4398 [Verbose] > │ let v44 : num_complex_Complex<float> = │
00:01:11 #4399 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v43 │
00:01:11 #4400 [Verbose] > │ let v47 : num_complex_Complex<float> = │
00:01:11 #4401 [Verbose] > │ match v35 with │
00:01:11 #4402 [Verbose] > │ | US0_0 -> (* None *) │
00:01:11 #4403 [Verbose] > │ v44 │
00:01:11 #4404 [Verbose] > │ | US0_1(v45) -> (* Some *) │
00:01:11 #4405 [Verbose] > │ v45 │
00:01:11 #4406 [Verbose] > │ let v48 : num_complex_Complex<float> = method13(v47) │
00:01:11 #4407 [Verbose] > │ let v49 : string = "v48.re" │
00:01:11 #4408 [Verbose] > │ let v50 : float = Fable.Core.RustInterop.emitRustExpr () v49 │
00:01:11 #4409 [Verbose] > │ let v51 : float = v50 - v26 │
00:01:11 #4410 [Verbose] > │ let v52 : float = -v51 │
00:01:11 #4411 [Verbose] > │ let v53 : bool = v51 >= v52 │
00:01:11 #4412 [Verbose] > │ let v54 : float = │
00:01:11 #4413 [Verbose] > │ if v53 then │
00:01:11 #4414 [Verbose] > │ v51 │
00:01:11 #4415 [Verbose] > │ else │
00:01:11 #4416 [Verbose] > │ v52 │
00:01:11 #4417 [Verbose] > │ let v55 : bool = v54 < 0.01 │
00:01:11 #4418 [Verbose] > │ let v57 : bool = │
00:01:11 #4419 [Verbose] > │ if v55 then │
00:01:11 #4420 [Verbose] > │ true │
00:01:11 #4421 [Verbose] > │ else │
00:01:11 #4422 [Verbose] > │ method43(v55) │
00:01:11 #4423 [Verbose] > │ let v58 : string = $"__expect / actual: %A{v54} / expected: │
00:01:11 #4424 [Verbose] > │ %A{0.01}" │
00:01:11 #4425 [Verbose] > │ let v59 : bool = v57 = false │
00:01:11 #4426 [Verbose] > │ if v59 then │
00:01:11 #4427 [Verbose] > │ failwith<unit> v58 │
00:01:11 #4428 [Verbose] > │ let v60 : num_complex_Complex<float> = method14(v47) │
00:01:11 #4429 [Verbose] > │ let v61 : string = "v60.im" │
00:01:11 #4430 [Verbose] > │ let v62 : float = Fable.Core.RustInterop.emitRustExpr () v61 │
00:01:11 #4431 [Verbose] > │ let v63 : bool = v62 < 0.01 │
00:01:11 #4432 [Verbose] > │ let v65 : bool = │
00:01:11 #4433 [Verbose] > │ if v63 then │
00:01:11 #4434 [Verbose] > │ true │
00:01:11 #4435 [Verbose] > │ else │
00:01:11 #4436 [Verbose] > │ method43(v63) │
00:01:11 #4437 [Verbose] > │ let v66 : string = $"__expect / actual: %A{v62} / expected: │
00:01:11 #4438 [Verbose] > │ %A{0.01}" │
00:01:11 #4439 [Verbose] > │ let v67 : bool = v65 = false │
00:01:11 #4440 [Verbose] > │ if v67 then │
00:01:11 #4441 [Verbose] > │ failwith<unit> v66 │
00:01:11 #4442 [Verbose] > │ let v68 : int32 = v8 + 1 │
00:01:11 #4443 [Verbose] > │ v6.l0 <- v68 │
00:01:11 #4444 [Verbose] > │ () │
00:01:11 #4445 [Verbose] > │ () │
00:01:11 #4446 [Verbose] > │ and method96 () : unit = │
00:01:11 #4447 [Verbose] > │ let v0 : string = "pyo3::prepare_freethreaded_python()" │
00:01:11 #4448 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v0 │
00:01:11 #4449 [Verbose] > │ let v1 : string = "let __result = pyo3::Python::with_gil(|py| -> │
00:01:11 #4450 [Verbose] > │ pyo3::PyResult<()> { //" │
00:01:11 #4451 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v1 │
00:01:11 #4452 [Verbose] > │ let v2 : string = "py" │
00:01:11 #4453 [Verbose] > │ let v3 : pyo3_Python = Fable.Core.RustInterop.emitRustExpr () v2 │
00:01:11 #4454 [Verbose] > │ method97(v3) │
00:01:11 #4455 [Verbose] > │ let v4 : Result<unit, pyo3_PyErr> = Ok () │
00:01:11 #4456 [Verbose] > │ let v5 : Result<unit, pyo3_PyErr> = method44(v4) │
00:01:11 #4457 [Verbose] > │ let v6 : string = "v5 }})" │
00:01:11 #4458 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v6 │
00:01:11 #4459 [Verbose] > │ let v7 : string = "{ //" │
00:01:11 #4460 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v7 │
00:01:11 #4461 [Verbose] > │ let v8 : string = "__result" │
00:01:11 #4462 [Verbose] > │ let v9 : Result<unit, pyo3_PyErr> = Fable.Core.RustInterop.emitRustExpr │
00:01:11 #4463 [Verbose] > │ () v8 │
00:01:11 #4464 [Verbose] > │ let v10 : Result<unit, pyo3_PyErr> = method45(v9) │
00:01:11 #4465 [Verbose] > │ let v11 : string = "v10.unwrap()" │
00:01:11 #4466 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v11 │
00:01:11 #4467 [Verbose] > │ () │
00:01:11 #4468 [Verbose] > │ and closure0 () () : unit = │
00:01:11 #4469 [Verbose] > │ let v0 : string = "}//" │
00:01:11 #4470 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v0 │
00:01:11 #4471 [Verbose] > │ let v1 : string = "#[test] fn test_zeta_at_known_values_() { //" │
00:01:11 #4472 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v1 │
00:01:11 #4473 [Verbose] > │ method0() │
00:01:11 #4474 [Verbose] > │ let v2 : string = "} #[test] fn test_zeta_at_2_minus2() { //" │
00:01:11 #4475 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v2 │
00:01:11 #4476 [Verbose] > │ method46() │
00:01:11 #4477 [Verbose] > │ let v3 : string = "} #[test] fn test_trivial_zero_at_negative_even___() │
00:01:11 #4478 [Verbose] > │ { //" │
00:01:11 #4479 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v3 │
00:01:11 #4480 [Verbose] > │ method49() │
00:01:11 #4481 [Verbose] > │ let v4 : string = "} #[test] fn test_non_trivial_zero___() { //" │
00:01:11 #4482 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v4 │
00:01:11 #4483 [Verbose] > │ method53() │
00:01:11 #4484 [Verbose] > │ let v5 : string = "} #[test] fn test_real_part_greater_than_one___() { │
00:01:11 #4485 [Verbose] > │ //" │
00:01:11 #4486 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v5 │
00:01:11 #4487 [Verbose] > │ method63() │
00:01:11 #4488 [Verbose] > │ let v6 : string = "} #[test] fn test_zeta_at_1___() { //" │
00:01:11 #4489 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v6 │
00:01:11 #4490 [Verbose] > │ method66() │
00:01:11 #4491 [Verbose] > │ let v7 : string = "} #[test] fn test_symmetry_across_real_axis___() { │
00:01:11 #4492 [Verbose] > │ //" │
00:01:11 #4493 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v7 │
00:01:11 #4494 [Verbose] > │ method68() │
00:01:11 #4495 [Verbose] > │ let v8 : string = "} #[test] fn test_behavior_near_origin___() { //" │
00:01:11 #4496 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v8 │
00:01:11 #4497 [Verbose] > │ method71() │
00:01:11 #4498 [Verbose] > │ let v9 : string = "} #[test] fn test_imaginary_axis() { //" │
00:01:11 #4499 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v9 │
00:01:11 #4500 [Verbose] > │ method75() │
00:01:11 #4501 [Verbose] > │ let v10 : string = "} #[test] fn test_critical_strip() { //" │
00:01:11 #4502 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v10 │
00:01:11 #4503 [Verbose] > │ method79() │
00:01:11 #4504 [Verbose] > │ let v11 : string = "} #[test] fn │
00:01:11 #4505 [Verbose] > │ test_reflection_formula_for_specific_value() { //" │
00:01:11 #4506 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v11 │
00:01:11 #4507 [Verbose] > │ method88() │
00:01:11 #4508 [Verbose] > │ let v12 : string = "} #[test] fn test_euler_product_formula() { //" │
00:01:11 #4509 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v12 │
00:01:11 #4510 [Verbose] > │ method96() │
00:01:11 #4511 [Verbose] > │ and closure6 () (v0 : (string [])) : int32 = │
00:01:11 #4512 [Verbose] > │ let v1 : string = $"value: {1}" │
00:01:11 #4513 [Verbose] > │ System.Console.WriteLine v1 │
00:01:11 #4514 [Verbose] > │ 0 │
00:01:11 #4515 [Verbose] > │ let v0 : (unit -> unit) = closure0() │
00:01:11 #4516 [Verbose] > │ let tests () = v0 () │
00:01:11 #4517 [Verbose] > │ let v1 : ((string []) -> int32) = closure6() │
00:01:11 #4518 [Verbose] > │ let main args = v1 args │
00:01:11 #4519 [Verbose] > │ () │
00:01:11 #4520 [Verbose] > │ │
00:01:11 #4521 [Verbose] > │ │
00:01:11 #4522 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:12 #4523 [Verbose] > [NbConvertApp] Converting notebook math.dib.ipynb to html
00:01:12 #4524 [Verbose] > /opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/nbformat/__init__.py:96: MissingIDFieldWarning: Cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:01:12 #4525 [Verbose] > validate(nb)
00:01:13 #4526 [Verbose] > /opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/nbconvert/filters/highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:01:13 #4527 [Verbose] > return _pygments_highlight(
00:01:14 #4528 [Verbose] > [NbConvertApp] Writing 7289160 bytes to math.dib.html
00:01:14 #4529 [Debug] executeAsync / exitCode: 0 / output.Length: 428151
00:01:14 #4530 [Debug] main / executeCommand / exitCode: 0
00:00:00 #1 [Debug] writeDibCode / output: Spi / path: math.dib
00:00:00 #2 [Debug] parseDibCode / output: Spi / file: math.dib
00:00:00 #1 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #2 [Debug] executeAsync / options: { Command =
"dotnet "/home/runner/work/polyglot/polyglot/deps/The-Spiral-Language/The Spiral Language 2/artifacts/bin/The Spiral Language 2/release/Spiral.dll" --port 13805 --default-int i32 --default-float f64"
WorkingDirectory = None
CancellationToken = Some System.Threading.CancellationToken
OnLine = Some <fun:main@425-297> }
00:00:00 #3 [Verbose] > pwd: /home/runner/work/polyglot/polyglot/lib/math
00:00:00 #4 [Verbose] > dll_path: /home/runner/work/polyglot/polyglot/deps/The-Spiral-Language/The Spiral Language 2/artifacts/bin/The Spiral Language 2/release
00:00:00 #5 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #6 [Verbose] waitForPortAccess / port: 13805 / retry: 0
00:00:00 #7 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #8 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #9 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #10 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #11 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #12 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #13 [Verbose] > Starting the Spiral Server. It is bound to: http://localhost:13805
00:00:00 #14 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #15 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #16 [Debug] sendJson / port: 13805 / json: {"Ping":true} / result.Length:
00:00:00 #17 [Verbose] awaitCompiler / Ping / result: Some(null) / port: 13805 / retry: 0
00:00:00 #18 [Verbose] > Server bound to: http://localhost:13805
00:00:00 #19 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: [] / typeErrorCount: 0
00:00:00 #20 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: [] / typeErrorCount: 0
00:00:00 #21 [Debug] sendJson / port: 13805 / json: {"FileOpen":{"spiText":"// // # math\n\nopen testing\nopen rust_operators\n\ninl types () =\n global \u0022[\u003CFable.Core.Erase; Fable.Core.Emit(\\\u0022num_complex::Complex\u003C$0\u003E\\\u0022)\u003E] type num_complex_Complex\u003C\u0027T\u003E = class end\u0022\n global \u0022[\u003CFable.Core.Erase; Fable.Core.Emit(\\\u0022pyo3::types::PyModule\\\u0022)\u003E] type pyo3_types_PyModule = class end\u0022\n global \u0022[\u003CFable.Core.Erase; Fable.Core.Emit(\\\u0022pyo3::Bound\u003C$0\u003E\\\u0022)\u003E] type pyo3_Bound\u003C\u0027T\u003E = class end\u0022\n global \u0022[\u003CFable.Core.Erase; Fable.Core.Emit(\\\u0022pyo3::Python\\\u0022)\u003E] type pyo3_Python = class end\u0022\n global \u0022[\u003CFable.Core.Erase; Fable.Core.Emit(\\\u0022pyo3::PyAny\\\u0022)\u003E] type pyo3_PyAny = class end\u0022\n global \u0022[\u003CFable.Core.Erase; Fable.Core.Emit(\\\u0022pyo3::PyErr\\\u0022)\u003E] type pyo3_PyErr = class end\u0022\n\ninl types () =\n rust.types ()\n sm\u0027.types ()\n types ()\n\n// // ## complex\n\nnominal complex t = $\u0022num_complex_Complex\u003C\u0060t\u003E\u0022\nnominal bound t = $\u0022pyo3_Bound\u003C\u0060t\u003E\u0022\nnominal python = $\u0022pyo3_Python\u0022\nnominal pymodule = $\u0022pyo3_types_PyModule\u0022\nnominal pyany = $\u0022pyo3_PyAny\u0022\nnominal pyerr = $\u0022pyo3_PyErr\u0022\n\ninl complex forall t. ((re : t), (im : t)) : complex t =\n inl re = join re\n inl re = join re\n inl im = join im\n !\\($\u0027\u0022num_complex::Complex::new(!re, !im)\u0022\u0027)\n\n// // ## complex_sin\n\ninl re forall t. (c : complex t) : t =\n inl c = join c\n !\\($\u0027\u0022!c.re\u0022\u0027)\n\ninl im forall t. (c : complex t) : t =\n inl c = join c\n !\\($\u0027\u0022!c.im\u0022\u0027)\n\ninl complex_unbox forall t. (c : complex t) =\n re c, im c\n\ninl (~.^) c = complex c\n\ninl complex_eq forall t. (a : complex t) (b : complex t) : bool =\n !\\($\u0027\u0022!a == !b\u0022\u0027)\n\ninl (.=) a b = complex_eq a b\n\ninstance equable complex t = complex_eq\n\ninl complex_add forall t. (a : complex t) (b : complex t) : complex t =\n !\\($\u0027\u0022!a \u002B !b\u0022\u0027)\n\ninl (.\u002B) a b = complex_add a b\n\ninl complex_sub forall t. (a : complex t) (b : complex t) : complex t =\n !\\($\u0027\u0022!a - !b\u0022\u0027)\n\ninl (.-) a b = complex_sub a b\n\ninl complex_mult forall t. (a : complex t) (b : complex t) : complex t =\n !\\($\u0027\u0022!a * !b\u0022\u0027)\n\ninl (.*) a b = complex_mult a b\n\ninl complex_div forall t. (a : complex t) (b : complex t) : complex t =\n !\\($\u0027\u0022!a / !b\u0022\u0027)\n\ninl (./) a b = complex_div a b\n\ninl powc forall t. (s : complex t) (c : complex t) : complex t =\n inl c = join c\n inl s = join s\n !\\($\u0027\u0022num_complex::Complex::powc(!c, !s)\u0022\u0027)\n\ninl (.**) a b = powc b a\n\ninl complex_sin forall t. (c : complex t) : complex t =\n !\\($\u0027\u0022!c.sin()\u0022\u0027)\n\ninl conj forall t. (c : complex t) : complex t =\n !\\($\u0027\u0022!c.conj()\u0022\u0027)\n\n// // ## zeta\n\ninl zeta log (gamma : complex f64 -\u003E complex f64) (s : complex f64) : complex f64 =\n inl rec zeta count gamma s =\n inl s = join s\n if log then\n !\\($\u0027\u0022println\\!(\\\\\\\u0022zeta / count: {:?} / s: {:?}\\\\\\\u0022, !count, !s)\u0022\u0027)\n if re s \u003E 1 then\n (.^(0, 0), (am.init 10000i32 id : a i32 _))\n ||\u003E am.fold fun acc n =\u003E\n acc .\u002B (.^(1, 0) ./ (.^(f64 n, 0) .** s))\n else\n inl gamma_term = gamma (.^(1, 0) .- s)\n inl sin_term = .^(pi, 0) .* s ./ .^(2, 0) |\u003E complex_sin\n inl one_minus_s = .^(1 - re s, -(im s))\n inl mirror_term =\n if re one_minus_s \u003C= 1\n then .^(0, 0)\n else\n if count \u003C= 3\n then zeta (count \u002B 1) gamma one_minus_s\n else one_minus_s\n inl reflection_formula =\n .^(2, 0) .* (.^(pi, 0) .** s) .* sin_term .* gamma_term .* mirror_term\n reflection_formula\n join zeta 0i32 gamma s\n\n// // ## eval\n\ninl module_from_code (py : python) (code : string) : _ (bound pymodule) _ =\n inl py = join py\n inl code = code |\u003E sm\u0027.as_str\n !\\($\u0027\u0022pyo3::types::PyModule::from_code_bound(!py, !code, \\\\\u0022\\\\\u0022, \\\\\u0022\\\\\u0022)\u0022\u0027)\n |\u003E resultm.map_error\u0027 fun (x : pyerr) =\u003E x |\u003E sm\u0027.format\u0027\n\ninl use_pyanymethods () =\n global \u0022Fable.Core.RustInterop.emitRustExpr () \\\u0022);\\nuse pyo3::prelude::PyAnyMethods;\\n//\\\u0022\u0022\n\ninl getattr (attr : string) (module : bound pymodule) : _ (bound pyany) _ =\n inl attr = attr |\u003E sm\u0027.as_str\n inl module = join module\n use_pyanymethods ()\n !\\($\u0027\u0022!module.getattr(!attr)\u0022\u0027)\n |\u003E resultm.map_error\u0027 fun (x : pyerr) =\u003E x |\u003E sm\u0027.format\u0027\n\ninl call forall t. (args : t) (module : bound pyany) : _ (bound pyany) _ =\n inl args = join args\n inl module = join module\n !\\($\u0027\u0022pyo3::prelude::PyAnyMethods::call(\u0026!module, ((*!args).0, *(*!args).1), None)\u0022\u0027)\n |\u003E resultm.map_error\u0027 fun (x : pyerr) =\u003E x |\u003E sm\u0027.format\u0027\n\ninl extract forall t. (result : bound pyany) : _ t _ =\n inl result = join result\n use_pyanymethods ()\n !\\($\u0027\u0022!result.extract()\u0022\u0027)\n |\u003E resultm.map_error\u0027 fun (x : pyerr) =\u003E x |\u003E sm\u0027.format\u0027\n\ninl eval py code (args : pair bool (pair f64 f64)) : _ (_ f64) sm\u0027.std_string =\n inl code =\n code\n |\u003E module_from_code py\n |\u003E resultm.unwrap\u0027\n inl fn =\n code\n |\u003E getattr \u0022fn\u0022\n |\u003E resultm.unwrap\u0027\n\n fn\n |\u003E call args\n |\u003E resultm.try\u0027\n |\u003E extract\n |\u003E resultm.try\u0027\n |\u003E complex\n |\u003E Ok\n |\u003E resultm.box\n\ninl call1_ log py s code =\n inl code = join (a code : _ i32 _) |\u003E sm\u0027.concat_array_trailing \u0022\\n\u0022\n \n inl s = new_pair (re s) (im s)\n inl args = new_pair log s\n\n eval py code args\n\ninl call1_ log name py s line =\n inl s = join s\n join\n ;[\n $\u0027$\u0022import sys\u0022\u0027\n $\u0027$\u0022import traceback\u0022\u0027\n $\u0027$\u0022import re\u0022\u0027\n $\u0027$\u0022count = 0\u0022\u0027\n $\u0027$\u0022memory_address_pattern = re.compile(r\\\u0027 at 0x[0-9a-fA-F]\u002B\\\u0027)\u0022\u0027\n $\u0027$\u0022def trace_calls(frame, event, arg):\u0022\u0027\n $\u0027$\u0022 global count\u0022\u0027\n $\u0027$\u0022 count \u002B= 1\u0022\u0027\n $\u0027$\u0022 if count \u003C 200:\u0022\u0027\n $\u0027$\u0022 try:\u0022\u0027\n $\u0027$\u0022 args = {{ k: v for k, v in frame.f_locals.items() if frame.f_code.co_name \\!= \\\u0027make_mpc\\\u0027 and k not in [\\\u0027ctx\\\u0027] and not callable(v) }}\u0022\u0027\n $\u0027$\u0022 args_str = \\\u0027, \\\u0027.join([ f\\\\\\\u0022{{k}}={{re.sub(memory_address_pattern, \\\u0027 at 0x\u003C?\u003E\\\u0027, repr(v))}}\\\\\\\u0022 for k, v in args.items() ])\u0022\u0027\n $\u0027$\u0022 print(f\\\\\\\u0022{{event}}({!name}) / f_code.co_name: {{frame.f_code.co_name}} / f_locals: {{args_str}} / f_lineno: {{frame.f_lineno}} / f_code.co_filename: {{frame.f_code.co_filename.split(\\\u0027site-packages\\\u0027)[-1]}} / f_back.f_lineno: {{ \\\u0027\\\u0027 if frame.f_back is None else frame.f_back.f_lineno }} / f_back.f_code.co_filename: {{ \\\u0027\\\u0027 if frame.f_back is None else frame.f_back.f_code.co_filename.split(\\\u0027site-packages\\\u0027)[-1] }} / arg: {{arg}}\\\\\\\u0022, flush=True)\u0022\u0027\n $\u0027$\u0022 except ValueError as e:\u0022\u0027\n $\u0027$\u0022 print(f\\\u0027{!name} / e: {{e}}\\\u0027, flush=True)\u0022\u0027\n $\u0027$\u0022 return trace_calls\u0022\u0027\n $\u0027$\u0022import mpmath\u0022\u0027\n $\u0027$\u0022def fn(log, s):\u0022\u0027\n $\u0027$\u0022 global count\u0022\u0027\n $\u0027$\u0022 if log:\u0022\u0027\n $\u0027$\u0022 print(f\\\u0027{!name} / s: {{s}} / count: {{count}}\\\u0027, flush=True)\u0022\u0027\n $\u0027$\u0022 s = complex(*s)\u0022\u0027\n $\u0027$\u0022 try:\u0022\u0027\n $\u0027$\u0022 if log: sys.settrace(trace_calls)\u0022\u0027\n line\n $\u0027$\u0022 if log:\u0022\u0027\n $\u0027$\u0022 sys.settrace(None)\u0022\u0027\n $\u0027$\u0022 print(f\\\u0027{!name} / result: {{s}} / count: {{count}}\\\u0027, flush=True)\u0022\u0027\n $\u0027$\u0022 except ValueError as e:\u0022\u0027\n $\u0027$\u0022 if s.real == 1:\u0022\u0027\n $\u0027$\u0022 s = complex(float(\\\u0027inf\\\u0027), 0)\u0022\u0027\n $\u0027$\u0022 return (s.real, s.imag)\u0022\u0027\n ]\n |\u003E call1_ log py s\n\ninl gamma_ log py s =\n call1_ log \u0022gamma_\u0022 py s $\u0027$\u0022 s = mpmath.gamma(s)\u0022\u0027\n\ninl zeta_ log py s =\n call1_ log \u0022zeta_\u0022 py s $\u0027$\u0022 s = mpmath.zeta(s)\u0022\u0027\n\n// // ## run_test\n\ninl run_test log closure_fix (fn : (complex f64 -\u003E complex f64) * (complex f64 -\u003E complex f64) -\u003E ()) =\n inl fn_ (py : python) : resultm.result\u0027 () pyerr =\n inl nan () =\n !\\($\u0027\u0022f64::NAN\u0022\u0027)\n inl gamma__ = fun (s : complex f64) =\u003E\n inl result = gamma_ log py s\n if log then\n inl s = join s\n !\\($\u0027\u0022println\\!(\\\\\\\u0022gamma__ / s: {:?} / result: {:?}\\\\\\\u0022, !s, !result)\u0022\u0027)\n result |\u003E resultm.ok\u0027 |\u003E optionm\u0027.unbox |\u003E optionm\u0027.default_value .^(nan (), nan ())\n inl zeta__ = fun (s : complex f64) =\u003E\n inl result = zeta_ log py s\n\n inl z = zeta true gamma__ s\n\n if log then\n inl s = join s\n !\\($\u0027\u0022println\\!(\\\\\\\u0022zeta__ / s: {:?} / result: {:?} / z: {:?}\\\\\\\u0022, !s, !result, !z)\u0022\u0027)\n\n // re result - re x |\u003E abs\n // |\u003E _assert_lt 0.001\n\n // im result - im x |\u003E abs\n // |\u003E _assert_lt 0.001\n\n result |\u003E resultm.ok\u0027 |\u003E optionm\u0027.unbox |\u003E optionm\u0027.default_value .^(nan (), nan ())\n join fn (zeta__, gamma__)\n\n Ok ()\n |\u003E resultm.box\n \n join\n !\\($\u0027\u0022pyo3::prepare_freethreaded_python()\u0022\u0027) : ()\n\n !\\($\u0027\u0022let __result = pyo3::Python::with_gil(|py| -\u003E pyo3::PyResult\u003C()\u003E { //\u0022\u0027)\n\n let x\u0027 = fn_ (!\\($\u0027\u0022py\u0022\u0027) : python)\n inl x\u0027 = join x\u0027\n \n inl closure_fix = 2u8, 1u8\n x\u0027 |\u003E rust.fix_closure closure_fix\n\n (!\\($\u0027\u0022__result\u0022\u0027) : _ () pyerr)\n |\u003E resultm.unwrap\u0027\n\n// // ## test_zeta_at_known_values_\n\ninl test_zeta_at_known_values_ log = run_test log (3u8, 2u8) fun zeta, gamma =\u003E\n ;[\n .^(2, 0), pi ** 2 / 6\n .^(-1, 0), -1 / 12\n ]\n |\u003E fun x =\u003E a x : _ i32 _\n |\u003E am.iter fun s, e =\u003E\n inl result = zeta s\n\n result |\u003E im |\u003E _assert_eq 0\n re result - e |\u003E abs |\u003E _assert_lt 0.0001\n\n// // ## test_zeta_at_2_minus2\n\ninl test_zeta_at_2_minus2 log = run_test log (6u8, 5u8) fun zeta, gamma =\u003E\n inl s = .^(2, -2)\n inl result = zeta s\n\n (re result - 0.8673) |\u003E abs |\u003E _assert_lt 0.001\n (im result - 0.2750) |\u003E abs |\u003E _assert_lt 0.001\n\n// // ## test_trivial_zero_at_negative_even___\n\ninl test_trivial_zero_at_negative_even___ log = run_test log (2u8, 1u8) fun zeta, gamma =\u003E\n (join listm\u0027.init_series -2f64 -40 -2)\n |\u003E listm.iter fun n =\u003E\n inl s = .^(n, 0)\n inl result = zeta s\n\n result |\u003E re |\u003E _assert_eq 0\n result |\u003E im |\u003E _assert_eq 0\n\n// // ## test_non_trivial_zero___\n\ninl test_non_trivial_zero___ log = run_test log (3u8, 2u8) fun zeta, gamma =\u003E\n ;[\n .^(0.5, 14.134725)\n .^(0.5, 21.022040)\n .^(0.5, 25.010857)\n .^(0.5, 30.424876)\n .^(0.5, 32.935062)\n .^(0.5, 37.586178)\n ]\n |\u003E fun x =\u003E a x : _ i32 _\n |\u003E am.iter fun x =\u003E\n inl result = zeta x\n result |\u003E re |\u003E abs |\u003E _assert_lt 0.0001\n result |\u003E im |\u003E abs |\u003E _assert_lt 0.0001\n\n// // ## test_real_part_greater_than_one___\n\ninl test_real_part_greater_than_one___ log = run_test log (3u8, 2u8) fun zeta, gamma =\u003E\n inl points = ;[2; 3; 4; 5; 10; 20; 50]\n (a points : _ i32 _)\n |\u003E am.iter fun point =\u003E\n inl s = .^(point, 0)\n inl result = zeta s\n result |\u003E re |\u003E _assert_gt 0\n result |\u003E im |\u003E _assert_eq 0\n\n// // ## test_zeta_at_1___\n\ninl test_zeta_at_1___ log = run_test log (6u8, 5u8) fun zeta, gamma =\u003E\n inl s = .^(1, 0)\n inl result = zeta s\n result |\u003E re |\u003E _assert_eq limit.max\n result |\u003E im |\u003E _assert_eq 0\n\n// // ## test_symmetry_across_real_axis___\n\ninl test_symmetry_across_real_axis___ log = run_test log (8u8, 7u8) fun zeta, gamma =\u003E\n inl s = .^(2, 10)\n inl result_positive_im = zeta s\n inl result_negative_im = zeta .^(re s, -(im s))\n inl conj = result_negative_im |\u003E conj\n result_positive_im |\u003E re |\u003E _assert_eq (conj |\u003E re)\n result_positive_im |\u003E im |\u003E _assert_eq (conj |\u003E im)\n\n// // ## test_behavior_near_origin___\n\ninl test_behavior_near_origin___ log = run_test log (6u8, 5u8) fun zeta, gamma =\u003E\n inl s = .^(0.01, 0.01)\n inl result = zeta s\n result |\u003E re |\u003E _assert_lt limit.max\n result |\u003E im |\u003E _assert_lt limit.max\n\n// // ## test_imaginary_axis\n\ninl test_imaginary_axis log = run_test log (3u8, 2u8) fun zeta, gamma =\u003E\n (join a ;[10; 20; 30; 40; 50; 60; 70; 80; 90; 100] : _ i32 _)\n |\u003E am.iter fun s =\u003E\n inl s = .^(0, s)\n inl result = zeta s\n result |\u003E re |\u003E _assert_ne 0\n result |\u003E im |\u003E _assert_ne 0\n\n// // ## test_critical_strip\n\ninl test_critical_strip log = run_test log (3u8, 2u8) fun zeta, gamma =\u003E\n ;[\n .^(0.5, 14.134725)\n .^(0.75, 20.5)\n .^(1.25, 30.1)\n .^(0.25, 40.0)\n .^(1.0, 50.0)\n ]\n |\u003E fun x =\u003E a x : _ i32 _\n |\u003E am.iter fun s =\u003E\n inl result = zeta s\n result |\u003E re |\u003E _assert_ne 0\n result |\u003E im |\u003E _assert_ne 0\n\n// // ## test_reflection_formula_for_specific_value\n\ninl test_reflection_formula_for_specific_value log = run_test log (3u8, 2u8) fun zeta, gamma =\u003E\n ;[\n .^(3, 4)\n .^(2.5, -3.5)\n .^(1.5, 2.5)\n .^(0.5, 14.134725)\n ]\n |\u003E fun x =\u003E a x : _ i32 _\n |\u003E am.iter fun s =\u003E\n inl lhs = zeta s\n inl reflection_coefficient =\n (.^(2, 0) .** s)\n .* (.^(pi, 0) .** (s .- .^(1, 0)))\n .* (.^(pi, 0) .* s ./ .^(2, 0) |\u003E complex_sin)\n .* gamma (.^(1, 0) .- s)\n\n inl one_minus_s = .^(1 - re s, -(im s))\n inl rhs = reflection_coefficient .* zeta one_minus_s\n\n re lhs - re rhs |\u003E abs |\u003E _assert_lt 0.0001\n im lhs - im rhs |\u003E abs |\u003E _assert_lt 0.0001\n\n// // ## test_euler_product_formula\n\ninl test_euler_product_formula log = run_test log (3u8, 2u8) fun zeta, gamma =\u003E\n inl s_values = ;[2; 2.5; 3; 3.5; 4; 4.5; 5]\n inl primes = ;[2; 3; 5; 7; 11; 13; 17; 19; 23; 29; 31; 37; 41; 43; 47; 53; 59; 61; 67; 71]\n (a s_values : _ i32 _)\n |\u003E am.iter fun s_re =\u003E\n inl s = .^(s_re, 0)\n inl product =\n (1, (a primes : _ i32 _))\n ||\u003E am.fold fun acc x =\u003E\n acc * 1 / (1 - x ** -s_re)\n\n inl result = zeta s\n re result - product |\u003E abs |\u003E _assert_lt 0.01\n result |\u003E im |\u003E _assert_lt 0.01\n\n// // ## graph\n\n// // ## tests\n\ninl tests () =\n !\\($\u0027\u0022}//\u0022\u0027) : ()\n\n !\\($\u0027\u0022#[test] fn test_zeta_at_known_values_() { //\u0022\u0027) : ()\n test_zeta_at_known_values_ false\n !\\($\u0027\u0022} #[test] fn test_zeta_at_2_minus2() { //\u0022\u0027) : ()\n test_zeta_at_2_minus2 false\n !\\($\u0027\u0022} #[test] fn test_trivial_zero_at_negative_even___() { //\u0022\u0027) : ()\n test_trivial_zero_at_negative_even___ false\n !\\($\u0027\u0022} #[test] fn test_non_trivial_zero___() { //\u0022\u0027) : ()\n test_non_trivial_zero___ false\n !\\($\u0027\u0022} #[test] fn test_real_part_greater_than_one___() { //\u0022\u0027) : ()\n test_real_part_greater_than_one___ false\n !\\($\u0027\u0022} #[test] fn test_zeta_at_1___() { //\u0022\u0027) : ()\n test_zeta_at_1___ false\n !\\($\u0027\u0022} #[test] fn test_symmetry_across_real_axis___() { //\u0022\u0027) : ()\n test_symmetry_across_real_axis___ false\n !\\($\u0027\u0022} #[test] fn test_behavior_near_origin___() { //\u0022\u0027) : ()\n test_behavior_near_origin___ false\n !\\($\u0027\u0022} #[test] fn test_imaginary_axis() { //\u0022\u0027) : ()\n test_imaginary_axis false\n !\\($\u0027\u0022} #[test] fn test_critical_strip() { //\u0022\u0027) : ()\n test_critical_strip false\n !\\($\u0027\u0022} #[test] fn test_reflection_formula_for_specific_value() { //\u0022\u0027) : ()\n test_reflection_formula_for_specific_value false\n !\\($\u0027\u0022} #[test] fn test_euler_product_formula() { //\u0022\u0027) : ()\n test_euler_product_formula false\n\n// // rust=\n\ninl main (_args : array_base string) =\n inl value = 1i32\n console.write_line ($\u0022$\\\u0022value: {!value}\\\u0022\u0022 : string)\n 0i32\n\ninl main () =\n types ()\n $\u0022let tests () = !tests ()\u0022 : ()\n $\u0022let main args = !main args\u0022 : ()\n","uri":"file:///home/runner/work/polyglot/polyglot/lib/math/math.spi"}} / result.Length:
00:00:00 #22 [Debug] sendJson / port: 13805 / json: {"BuildFile":{"backend":"Fsharp","uri":"file:///home/runner/work/polyglot/polyglot/lib/math/math.spi"}} / result.Length:
00:00:01 #23 [Verbose] > Building /home/runner/work/polyglot/polyglot/lib/math/math.spi
00:00:01 #24 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: [] / typeErrorCount: 0
00:00:02 #25 [Debug] buildFile / takeWhileInclusive / fsxContent: [<Fable.Core.Erase; Fable.Core.Emit("Func0<$0>")>] type Func0<'T> = class end
[<Fable.Core.Erase; Fable.Core.Emit("Func1<$0, $1>")>] type Func0<'T, 'U> = class end
[<Fable.Core.Erase; Fable.Core.Emit("Box<$0>")>] type Box<'T> = class end
[<Fable.Core.Erase; Fable.Core.Emit("dyn $0")>] type Dyn<'T> = class end
[<Fable.Core.Erase; Fable.Core.Emit("Fn() -> $0")>] type Fn<'T> = class end
[<Fable.Core.Erase; Fable.Core.Emit("Fn()")>] type FnUnit = class end
[<Fable.Core.Erase; Fable.Core.Emit("FnOnce() -> $0")>] type FnOnce<'T> = class end
[<Fable.Core.Erase; Fable.Core.Emit("Fn($0, $1)")>] type ActionFn2<'T, 'U> = class end
[<Fable.Core.Erase; Fable.Core.Emit("impl $0")>] type Impl<'T> = class end
[<Fable.Core.Erase; Fable.Core.Emit("mut $0")>]... / errors: [] / typeErrorCount: 0
00:00:02 #26 [Debug] watchWithFilter / Disposing watch stream / filter: FileName, LastWrite
00:00:00 #1 [Debug] persistCodeProject / packages: [Fable.Core] / modules: [lib/fsharp/Common.fs] / name: math / code.Length: 139741
00:00:00 #2 [Debug] buildProject / fullPath: /home/runner/work/polyglot/polyglot/target/polyglot/builder/math/math.fsproj
00:00:00 #3 [Debug] executeAsync / options: { Command =
"dotnet publish "/home/runner/work/polyglot/polyglot/target/polyglot/builder/math/math.fsproj" --configuration Release --output "/home/runner/work/polyglot/polyglot/lib/math/dist" --runtime linux-x64"
WorkingDirectory =
Some "/home/runner/work/polyglot/polyglot/target/polyglot/builder/math"
CancellationToken = None
OnLine = None }
00:00:00 #4 [Verbose] > MSBuild version 17.10.0-preview-24101-01+07fd5d51f for .NET
00:00:00 #5 [Verbose] > Determining projects to restore...
00:00:00 #6 [Verbose] > Paket version 8.1.0-alpha001+8e77fe66ac27ddecf519e0df5a4d3327ca9250e2
00:00:00 #7 [Verbose] > The last full restore is still up to date. Nothing left to do.
00:00:00 #8 [Verbose] > Total time taken: 0 milliseconds
00:00:01 #9 [Verbose] > Paket version 8.1.0-alpha001+8e77fe66ac27ddecf519e0df5a4d3327ca9250e2
00:00:01 #10 [Verbose] > Restoring /home/runner/work/polyglot/polyglot/target/polyglot/builder/math/math.fsproj
00:00:01 #11 [Verbose] > Starting restore process.
00:00:01 #12 [Verbose] > Total time taken: 0 milliseconds
00:00:02 #13 [Verbose] > Restored /home/runner/work/polyglot/polyglot/target/polyglot/builder/math/math.fsproj (in 281 ms).
00:00:02 #14 [Verbose] > /usr/share/dotnet/sdk/9.0.100-preview.1.24101.2/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.RuntimeIdentifierInference.targets(313,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [/home/runner/work/polyglot/polyglot/target/polyglot/builder/math/math.fsproj]
00:00:05 #15 [Verbose] > math -> /home/runner/work/polyglot/polyglot/target/polyglot/builder/math/bin/Release/net9.0/linux-x64/math.dll
00:00:06 #16 [Verbose] > math -> /home/runner/work/polyglot/polyglot/lib/math/dist
00:00:06 #17 [Debug] executeAsync / exitCode: 0 / output.Length: 1085
Fable 4.14.0: F# to Rust compiler (status: alpha)
Thanks to the contributor! @forki
Stand with Ukraine! https://standwithukraine.com.ua/
Parsing ../../target/polyglot/builder/math/math.fsproj...
../../target/polyglot/builder/math> dotnet restore math.fable-temp.csproj -p:FABLE_COMPILER=true -p:FABLE_COMPILER_4=true -p:FABLE_COMPILER_RUST=true
Determining projects to restore...
Paket version 8.1.0-alpha001+8e77fe66ac27ddecf519e0df5a4d3327ca9250e2
The last full restore is still up to date. Nothing left to do.
Total time taken: 0 milliseconds
Paket version 8.1.0-alpha001+8e77fe66ac27ddecf519e0df5a4d3327ca9250e2
Restoring /home/runner/work/polyglot/polyglot/target/polyglot/builder/math/math.fable-temp.csproj
Starting restore process.
Total time taken: 0 milliseconds
Restored /home/runner/work/polyglot/polyglot/target/polyglot/builder/math/math.fable-temp.csproj (in 280 ms).
../../target/polyglot/builder/math> dotnet restore /home/runner/work/polyglot/polyglot/target/polyglot/builder/math/math.fsproj
Determining projects to restore...
Restored /home/runner/work/polyglot/polyglot/target/polyglot/builder/math/math.fsproj (in 289 ms).
Project and references (2 source files) parsed in 5185ms
Started Fable compilation...
Fable compilation finished in 2976ms
./../../target/polyglot/builder/math/math.fs(35,0): (37,3) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
Compiling fable_library_rust v0.1.0 (/home/runner/work/polyglot/polyglot/lib/rust/fable/fable_modules/fable-library-rust)
Compiling math v0.0.1 (/home/runner/work/polyglot/polyglot/lib/math)
Finished `release` profile [optimized] target(s) in 8.96s
Running unittests math.rs (/home/runner/work/polyglot/polyglot/target/release/deps/math-600e87c4d174bc30)
running 12 tests
test module_b7a9935b::Math::test_behavior_near_origin___ ... ok
test module_b7a9935b::Math::test_critical_strip ... ok
test module_b7a9935b::Math::test_euler_product_formula ... ok
test module_b7a9935b::Math::test_real_part_greater_than_one___ ... ok
test module_b7a9935b::Math::test_non_trivial_zero___ ... ok
test module_b7a9935b::Math::test_symmetry_across_real_axis___ ... ok
test module_b7a9935b::Math::test_zeta_at_1___ ... ok
test module_b7a9935b::Math::test_zeta_at_2_minus2 ... ok
test module_b7a9935b::Math::test_reflection_formula_for_specific_value ... ok
test module_b7a9935b::Math::test_zeta_at_known_values_ ... ok
test module_b7a9935b::Math::test_imaginary_axis ... ok
test module_b7a9935b::Math::test_trivial_zero_at_negative_even___ ... ok
test result: ok. 12 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.19s
In [ ]:
{ . "$ScriptDir/../apps/chat/build.ps1" } | Invoke-Block
Compiling chat_contract v0.0.1 (/home/runner/work/polyglot/polyglot/apps/chat/contract) Finished `release` profile [optimized] target(s) in 2.52s Compiling chat_contract_tests v0.0.1 (/home/runner/work/polyglot/polyglot/apps/chat/contract/tests) Finished `release` profile [optimized] target(s) in 29.47s Running `/home/runner/work/polyglot/polyglot/target/release/chat_contract_tests` Updated the logging layer according to `log_config.json` new: ExecutionFinalResult { total_gas_burnt: NearGas { inner: 5283288195090, }, transaction: ExecutionOutcome { transaction_hash: ADmzFeX4brpqiddxsv3gTbyHu4CWspYm4dmoAbVw4vJJ, block_hash: HDoEe8dP15bJMZHeHHe2SUqpsoqQcufig8v4Am2hF5Fa, logs: [], receipt_ids: [ 5w7UVM4isAPE23U7zevnSZx7Q4UwnpepFMEWx7wSVzXA, ], gas_burnt: NearGas { inner: 2427927707802, }, tokens_burnt: NearToken { inner: 242792770780200000000, }, executor_id: AccountId( "dev-20240325202835-51752047343650", ), status: SuccessReceiptId(5w7UVM4isAPE23U7zevnSZx7Q4UwnpepFMEWx7wSVzXA), }, receipts: [ ExecutionOutcome { transaction_hash: 5w7UVM4isAPE23U7zevnSZx7Q4UwnpepFMEWx7wSVzXA, block_hash: HDoEe8dP15bJMZHeHHe2SUqpsoqQcufig8v4Am2hF5Fa, logs: [], receipt_ids: [ 5R3Mo5SZRJnW5DSkgoMmYoE7yMQwppeC55AWw2BrtMqZ, ], gas_burnt: NearGas { inner: 2632177924788, }, tokens_burnt: NearToken { inner: 263217792478800000000, }, executor_id: AccountId( "dev-20240325202835-51752047343650", ), status: SuccessValue(''), }, ExecutionOutcome { transaction_hash: 5R3Mo5SZRJnW5DSkgoMmYoE7yMQwppeC55AWw2BrtMqZ, block_hash: Dexw2hhGeYzmXm9fkBnFFMajrBJr5RRqYaq1TdRSXwbi, logs: [], receipt_ids: [], gas_burnt: NearGas { inner: 223182562500, }, tokens_burnt: NearToken { inner: 0, }, executor_id: AccountId( "dev-20240325202835-51752047343650", ), status: SuccessValue(''), }, ], status: SuccessValue(''), } total_gas_burnt_usd: 0.00352923651432012 outcome (success: true): outcome_gas_burnt_usd: 0.001621855708811736 outcome_tokens_burnt_usd: 0.0 outcome (success: true): outcome_gas_burnt_usd: 0.0017582948537583837 outcome_tokens_burnt_usd: 0.0 outcome (success: true): outcome_gas_burnt_usd: 0.00014908595175 outcome_tokens_burnt_usd: 0.0 claim_alias(contract, ''): ExecutionFinalResult { total_gas_burnt: NearGas { inner: 5288027146888, }, transaction: ExecutionOutcome { transaction_hash: GXq5eBvGPYtCmrq7U3xmghea49LvuDGF2XpkuQ3J5NhU, block_hash: DZScpE4rUvK9A8h8C9jgXsv2FT9hBhH6NdYiU6bZVmer, logs: [], receipt_ids: [ dVzKLvxejBLrTn4yCMCx59rNedQZ2yRcidtFbdxNQ3Z, ], gas_burnt: NearGas { inner: 2427972426482, }, tokens_burnt: NearToken { inner: 242797242648200000000, }, executor_id: AccountId( "dev-20240325202835-51752047343650", ), status: SuccessReceiptId(dVzKLvxejBLrTn4yCMCx59rNedQZ2yRcidtFbdxNQ3Z), }, receipts: [ ExecutionOutcome { transaction_hash: dVzKLvxejBLrTn4yCMCx59rNedQZ2yRcidtFbdxNQ3Z, block_hash: DZScpE4rUvK9A8h8C9jgXsv2FT9hBhH6NdYiU6bZVmer, logs: [ "claim_alias / alias: \"\" / account_id: AccountId(\n \"dev-20240325202835-51752047343650\",\n) / timestamp: 1711398517026016755", ], receipt_ids: [ 9wzzFFgxbuA2BXGczoX1cEUXH7U8xxcf1Z394x38C3iR, ], gas_burnt: NearGas { inner: 2636872157906, }, tokens_burnt: NearToken { inner: 263687215790600000000, }, executor_id: AccountId( "dev-20240325202835-51752047343650", ), status: Failure(ActionError(ActionError { index: Some(0), kind: FunctionCallError(ExecutionError("Smart contract panicked: Invalid alias")) })), }, ExecutionOutcome { transaction_hash: 9wzzFFgxbuA2BXGczoX1cEUXH7U8xxcf1Z394x38C3iR, block_hash: GJELw8xtmTrhoB4ghvHqXsGtbmExJTaQXeWYdSygz22o, logs: [], receipt_ids: [], gas_burnt: NearGas { inner: 223182562500, }, tokens_burnt: NearToken { inner: 0, }, executor_id: AccountId( "dev-20240325202835-51752047343650", ), status: SuccessValue(''), }, ], status: Failure(ActionError(ActionError { index: Some(0), kind: FunctionCallError(ExecutionError("Smart contract panicked: Invalid alias")) })), } total_gas_burnt_usd: 0.003532402134121184 outcome (success: true): outcome_gas_burnt_usd: 0.001621885580889976 outcome_tokens_burnt_usd: 0.0 outcome (success: false): outcome_gas_burnt_usd: 0.0017614306014812077 outcome_tokens_burnt_usd: 0.0 outcome (success: true): outcome_gas_burnt_usd: 0.00014908595175 outcome_tokens_burnt_usd: 0.0 dev_create_account(account1): Account { id: AccountId( "dev-20240325202837-14979555133070", ), } generate_cid_borsh(account1): ViewResultDetails { result: [ 59, 0, 0, 0, 98, 97, 102, 107, 114, 101, 105, 104, 100, 119, 100, 99, 101, 102, 103, 104, 52, 100, 113, 107, 106, 118, 54, 55, 117, 122, 99, 109, 119, 55, 111, 106, 101, 101, 54, 120, 101, 100, 122, 100, 101, 116, 111, 106, 117, 122, 106, 101, 118, 116, 101, 110, 120, 113, 117, 118, 121, 107, 117, ], logs: [], } claim_alias(account1, alias1): ExecutionFinalResult { total_gas_burnt: NearGas { inner: 5710091120701, }, transaction: ExecutionOutcome { transaction_hash: 2EZRuvWMWVpojbo2VQnMSYcwzkWoUD98vHTPjzsmsmhM, block_hash: iDRUbCe8D7SKth3xxN82U6EpQhPjRmH9XMq9safJZNs, logs: [], receipt_ids: [ 13t7fYdgqqhwFkdUWoPcEgAFybdfuXVe6aStja7LwZYn, ], gas_burnt: NearGas { inner: 2427985842086, }, tokens_burnt: NearToken { inner: 242798584208600000000, }, executor_id: AccountId( "dev-20240325202837-14979555133070", ), status: SuccessReceiptId(13t7fYdgqqhwFkdUWoPcEgAFybdfuXVe6aStja7LwZYn), }, receipts: [ ExecutionOutcome { transaction_hash: 13t7fYdgqqhwFkdUWoPcEgAFybdfuXVe6aStja7LwZYn, block_hash: EWtz1EHahA69aS42SsnwdcX6oEptKnycogvD2ya9jZ82, logs: [ "claim_alias / alias: \"alias1\" / account_id: AccountId(\n \"dev-20240325202837-14979555133070\",\n) / timestamp: 1711398519248895336", ], receipt_ids: [ 9zfC3BdXFbucLFKfJYsWb5sstN8PYyzJPLo7J3UxVuXg, ], gas_burnt: NearGas { inner: 3058922716115, }, tokens_burnt: NearToken { inner: 305892271611500000000, }, executor_id: AccountId( "dev-20240325202835-51752047343650", ), status: SuccessValue(''), }, ExecutionOutcome { transaction_hash: 9zfC3BdXFbucLFKfJYsWb5sstN8PYyzJPLo7J3UxVuXg, block_hash: 5NHJMHBbMKEF93tCkmXprpad3YBKo59hcei5ny7z49tG, logs: [], receipt_ids: [], gas_burnt: NearGas { inner: 223182562500, }, tokens_burnt: NearToken { inner: 0, }, executor_id: AccountId( "dev-20240325202837-14979555133070", ), status: SuccessValue(''), }, ], status: SuccessValue(''), } total_gas_burnt_usd: 0.0038143408686282677 outcome (success: true): outcome_gas_burnt_usd: 0.0016218945425134478 outcome_tokens_burnt_usd: 0.0 outcome (success: true): outcome_gas_burnt_usd: 0.0020433603743648197 outcome_tokens_burnt_usd: 0.0 outcome (success: true): outcome_gas_burnt_usd: 0.00014908595175 outcome_tokens_burnt_usd: 0.0 claim_alias(account1, alias1): ExecutionFinalResult { total_gas_burnt: NearGas { inner: 5534318630290, }, transaction: ExecutionOutcome { transaction_hash: 9YjJ1eRhsxVZqR9S3CZWLHCmjHkGavYPL64uLR1CdMHs, block_hash: BjTr2c11gThrNRPh2UGZajiEzrHv85CoarBktF5KT8aD, logs: [], receipt_ids: [ AK8jbjYfZ8YUNLhgmMMg33QKcsLCvSrLqc8cRJPr97Yn, ], gas_burnt: NearGas { inner: 2427985842086, }, tokens_burnt: NearToken { inner: 242798584208600000000, }, executor_id: AccountId( "dev-20240325202837-14979555133070", ), status: SuccessReceiptId(AK8jbjYfZ8YUNLhgmMMg33QKcsLCvSrLqc8cRJPr97Yn), }, receipts: [ ExecutionOutcome { transaction_hash: AK8jbjYfZ8YUNLhgmMMg33QKcsLCvSrLqc8cRJPr97Yn, block_hash: 3xbxQj19R2hTRiLx97kGvo32HPbK2ijWJagT3V253h86, logs: [ "claim_alias / alias: \"alias1\" / account_id: AccountId(\n \"dev-20240325202837-14979555133070\",\n) / timestamp: 1711398520260489796", "Alias already claimed", ], receipt_ids: [ 4fqWWGa3sBzQXpdffb2CKSc7PfYt8z2ZqYCNYYEKsYqY, ], gas_burnt: NearGas { inner: 2883150225704, }, tokens_burnt: NearToken { inner: 288315022570400000000, }, executor_id: AccountId( "dev-20240325202835-51752047343650", ), status: SuccessValue(''), }, ExecutionOutcome { transaction_hash: 4fqWWGa3sBzQXpdffb2CKSc7PfYt8z2ZqYCNYYEKsYqY, block_hash: 87GVEkD6ZDcvbL8Jc4FaEbMvj92eCoGAroCwFKKD7NYk, logs: [], receipt_ids: [], gas_burnt: NearGas { inner: 223182562500, }, tokens_burnt: NearToken { inner: 0, }, executor_id: AccountId( "dev-20240325202837-14979555133070", ), status: SuccessValue(''), }, ], status: SuccessValue(''), } total_gas_burnt_usd: 0.00369692484503372 outcome (success: true): outcome_gas_burnt_usd: 0.0016218945425134478 outcome_tokens_burnt_usd: 0.0 outcome (success: true): outcome_gas_burnt_usd: 0.001925944350770272 outcome_tokens_burnt_usd: 0.0 outcome (success: true): outcome_gas_burnt_usd: 0.00014908595175 outcome_tokens_burnt_usd: 0.0 get_account_info(account1): Some( ( "alias1", ( 1711398519248895336, 0, ), ), ) get_alias_map(account1, alias1): Some( { AccountId( "dev-20240325202837-14979555133070", ): ( 1711398519248895336, 0, ), }, ) dev_create_account(account2): Account { id: AccountId( "dev-20240325202840-62268072686100", ), } claim_alias(alias2): ExecutionFinalResult { total_gas_burnt: NearGas { inner: 5797440900331, }, transaction: ExecutionOutcome { transaction_hash: 7GNSUwFwAJDfUtwGiduVjQ5trxJhxLCfqU1LiwJLjsLX, block_hash: 2Y5FbS5tYC6SC6KkVNm5VTfWZXnBbrjH81yU8qejhB8j, logs: [], receipt_ids: [ qSbNYoFAfJF6NXvFEFrryokJFaGqnc7u4tNkKw95rz1, ], gas_burnt: NearGas { inner: 2427985842086, }, tokens_burnt: NearToken { inner: 242798584208600000000, }, executor_id: AccountId( "dev-20240325202840-62268072686100", ), status: SuccessReceiptId(qSbNYoFAfJF6NXvFEFrryokJFaGqnc7u4tNkKw95rz1), }, receipts: [ ExecutionOutcome { transaction_hash: qSbNYoFAfJF6NXvFEFrryokJFaGqnc7u4tNkKw95rz1, block_hash: DrrxVRswGvyyYSHH17V5GeykYPDsUiT4C5qFH4vU4kiY, logs: [ "claim_alias / alias: \"alias2\" / account_id: AccountId(\n \"dev-20240325202840-62268072686100\",\n) / timestamp: 1711398522281458467", ], receipt_ids: [ 5uScWgetNA4ZgXndtK8zXvgm4LNLs4oEgkEbFdYx1nRD, ], gas_burnt: NearGas { inner: 3146272495745, }, tokens_burnt: NearToken { inner: 314627249574500000000, }, executor_id: AccountId( "dev-20240325202835-51752047343650", ), status: SuccessValue(''), }, ExecutionOutcome { transaction_hash: 5uScWgetNA4ZgXndtK8zXvgm4LNLs4oEgkEbFdYx1nRD, block_hash: 4xaMjeuG2EsdzR4QzzLj4vQFZvpqCkRJxucJWPDzp3Wh, logs: [], receipt_ids: [], gas_burnt: NearGas { inner: 223182562500, }, tokens_burnt: NearToken { inner: 0, }, executor_id: AccountId( "dev-20240325202840-62268072686100", ), status: SuccessValue(''), }, ], status: SuccessValue(''), } total_gas_burnt_usd: 0.003872690521421108 outcome (success: true): outcome_gas_burnt_usd: 0.0016218945425134478 outcome_tokens_burnt_usd: 0.0 outcome (success: true): outcome_gas_burnt_usd: 0.00210171002715766 outcome_tokens_burnt_usd: 0.0 outcome (success: true): outcome_gas_burnt_usd: 0.00014908595175 outcome_tokens_burnt_usd: 0.0 get_account_info(account2): Some( ( "alias2", ( 1711398522281458467, 0, ), ), ) get_alias_map_borsh(alias2): Some( { AccountId( "dev-20240325202840-62268072686100", ): ( 1711398522281458467, 0, ), }, ) claim_alias(account2, alias1): ExecutionFinalResult { total_gas_burnt: NearGas { inner: 6101657465686, }, transaction: ExecutionOutcome { transaction_hash: AiTe7naNd118ZYrvHBgye5kbcY76HTYuRwef2YFMKFng, block_hash: HpwLyPnig7eAXAuPp1Ao45APynX9qXtYS8NdmtgPJBgA, logs: [], receipt_ids: [ DLCRXu12HJfYhQ5G3eMLcuAzWzZY9BM1LGgVouPCBEJn, ], gas_burnt: NearGas { inner: 2427985842086, }, tokens_burnt: NearToken { inner: 242798584208600000000, }, executor_id: AccountId( "dev-20240325202840-62268072686100", ), status: SuccessReceiptId(DLCRXu12HJfYhQ5G3eMLcuAzWzZY9BM1LGgVouPCBEJn), }, receipts: [ ExecutionOutcome { transaction_hash: DLCRXu12HJfYhQ5G3eMLcuAzWzZY9BM1LGgVouPCBEJn, block_hash: 8t5jR7LSaV6jDJxbsRP3YvkxHTrzYthNPxttvT3NX7Fh, logs: [ "claim_alias / alias: \"alias1\" / account_id: AccountId(\n \"dev-20240325202840-62268072686100\",\n) / timestamp: 1711398523291397206", ], receipt_ids: [ GdYfeUkwfCb8MdPse2oeTgo1W9pHN4j6fYrcHyzwrGJu, ], gas_burnt: NearGas { inner: 3450489061100, }, tokens_burnt: NearToken { inner: 345048906110000000000, }, executor_id: AccountId( "dev-20240325202835-51752047343650", ), status: SuccessValue(''), }, ExecutionOutcome { transaction_hash: GdYfeUkwfCb8MdPse2oeTgo1W9pHN4j6fYrcHyzwrGJu, block_hash: 2jwZMXM1mLEkpaRExwFrkLXzBTaVUsRteCMgYS5yeRMh, logs: [], receipt_ids: [], gas_burnt: NearGas { inner: 223182562500, }, tokens_burnt: NearToken { inner: 0, }, executor_id: AccountId( "dev-20240325202840-62268072686100", ), status: SuccessValue(''), }, ], status: SuccessValue(''), } total_gas_burnt_usd: 0.004075907187078248 outcome (success: true): outcome_gas_burnt_usd: 0.0016218945425134478 outcome_tokens_burnt_usd: 0.0 outcome (success: true): outcome_gas_burnt_usd: 0.0023049266928148 outcome_tokens_burnt_usd: 0.0 outcome (success: true): outcome_gas_burnt_usd: 0.00014908595175 outcome_tokens_burnt_usd: 0.0 get_account_info(account2): Some( ( "alias1", ( 1711398523291397206, 1, ), ), ) get_alias_map(account2, alias1): Some( { AccountId( "dev-20240325202840-62268072686100", ): ( 1711398523291397206, 1, ), AccountId( "dev-20240325202837-14979555133070", ): ( 1711398519248895336, 0, ), }, ) get_alias_map(account2, alias2): Some( {}, ) claim_alias(account1, alias2): ExecutionFinalResult { total_gas_burnt: NearGas { inner: 6096351512242, }, transaction: ExecutionOutcome { transaction_hash: CYzstz8V6jp7PueE1U8kfdqUkka3VmmPPPrtfk3juiN2, block_hash: 3rFmXQ8jkxBJ9zRJfdsVPfavuPab6ABnccsBDbdcDxJi, logs: [], receipt_ids: [ 8PeTWe5yUctHemuURTwNxZxLcDNmyEFVoGrCJsACfZQK, ], gas_burnt: NearGas { inner: 2427985842086, }, tokens_burnt: NearToken { inner: 242798584208600000000, }, executor_id: AccountId( "dev-20240325202837-14979555133070", ), status: SuccessReceiptId(8PeTWe5yUctHemuURTwNxZxLcDNmyEFVoGrCJsACfZQK), }, receipts: [ ExecutionOutcome { transaction_hash: 8PeTWe5yUctHemuURTwNxZxLcDNmyEFVoGrCJsACfZQK, block_hash: 7TBK13VbekXJbARGkNVtyXMmN83xGDiRQxpF18XZkjiB, logs: [ "claim_alias / alias: \"alias2\" / account_id: AccountId(\n \"dev-20240325202837-14979555133070\",\n) / timestamp: 1711398524300731703", ], receipt_ids: [ JBSNJicyriTtKtdzcE71yaPkz8FdKsAZVd4xPKc8LnF1, ], gas_burnt: NearGas { inner: 3445183107656, }, tokens_burnt: NearToken { inner: 344518310765600000000, }, executor_id: AccountId( "dev-20240325202835-51752047343650", ), status: SuccessValue(''), }, ExecutionOutcome { transaction_hash: JBSNJicyriTtKtdzcE71yaPkz8FdKsAZVd4xPKc8LnF1, block_hash: F2SkYX19fwqozGutrGSoRPTrjjXd9hryQ8zbwAkpPab8, logs: [], receipt_ids: [], gas_burnt: NearGas { inner: 223182562500, }, tokens_burnt: NearToken { inner: 0, }, executor_id: AccountId( "dev-20240325202837-14979555133070", ), status: SuccessValue(''), }, ], status: SuccessValue(''), } total_gas_burnt_usd: 0.004072362810177656 outcome (success: true): outcome_gas_burnt_usd: 0.0016218945425134478 outcome_tokens_burnt_usd: 0.0 outcome (success: true): outcome_gas_burnt_usd: 0.002301382315914208 outcome_tokens_burnt_usd: 0.0 outcome (success: true): outcome_gas_burnt_usd: 0.00014908595175 outcome_tokens_burnt_usd: 0.0 get_account_info(account1): Some( ( "alias2", ( 1711398524300731703, 0, ), ), ) get_alias_map(account1, alias2): Some( { AccountId( "dev-20240325202837-14979555133070", ): ( 1711398524300731703, 0, ), }, ) get_alias_map(account1, alias1): Some( { AccountId( "dev-20240325202840-62268072686100", ): ( 1711398523291397206, 1, ), }, ) claim_alias(account1, alias1): ExecutionFinalResult { total_gas_burnt: NearGas { inner: 6101657465686, }, transaction: ExecutionOutcome { transaction_hash: 8MwMoJXEVFRCkw31R2M5DpFTWGJgSaBr4tfR2DbF6cg, block_hash: 5rJKo2qgZamzwdByBt3qSNGn1dKdorRiLF2YL4v8ipuK, logs: [], receipt_ids: [ 8LtYugwcqktKd5PojeS8kvNd95VgNXWeBLntqKGvu9m2, ], gas_burnt: NearGas { inner: 2427985842086, }, tokens_burnt: NearToken { inner: 242798584208600000000, }, executor_id: AccountId( "dev-20240325202837-14979555133070", ), status: SuccessReceiptId(8LtYugwcqktKd5PojeS8kvNd95VgNXWeBLntqKGvu9m2), }, receipts: [ ExecutionOutcome { transaction_hash: 8LtYugwcqktKd5PojeS8kvNd95VgNXWeBLntqKGvu9m2, block_hash: 2mrbvm3sxYB13qXLmAynd9aZjqiq6sCAFSa4vQuuHNv6, logs: [ "claim_alias / alias: \"alias1\" / account_id: AccountId(\n \"dev-20240325202837-14979555133070\",\n) / timestamp: 1711398525310638103", ], receipt_ids: [ 7hX5QhGw8v6zFPnXHSNUaHyUQg3mY7NdS9zBe81n3Qp, ], gas_burnt: NearGas { inner: 3450489061100, }, tokens_burnt: NearToken { inner: 345048906110000000000, }, executor_id: AccountId( "dev-20240325202835-51752047343650", ), status: SuccessValue(''), }, ExecutionOutcome { transaction_hash: 7hX5QhGw8v6zFPnXHSNUaHyUQg3mY7NdS9zBe81n3Qp, block_hash: 9h9obTG2uTCxPkKQtihAoDN9w1ZNaoZhWDGuSyroehgw, logs: [], receipt_ids: [], gas_burnt: NearGas { inner: 223182562500, }, tokens_burnt: NearToken { inner: 0, }, executor_id: AccountId( "dev-20240325202837-14979555133070", ), status: SuccessValue(''), }, ], status: SuccessValue(''), } total_gas_burnt_usd: 0.004075907187078248 outcome (success: true): outcome_gas_burnt_usd: 0.0016218945425134478 outcome_tokens_burnt_usd: 0.0 outcome (success: true): outcome_gas_burnt_usd: 0.0023049266928148 outcome_tokens_burnt_usd: 0.0 outcome (success: true): outcome_gas_burnt_usd: 0.00014908595175 outcome_tokens_burnt_usd: 0.0 get_account_info(account1): Some( ( "alias1", ( 1711398525310638103, 1, ), ), ) get_alias_map(account1, alias1): Some( { AccountId( "dev-20240325202837-14979555133070", ): ( 1711398525310638103, 1, ), AccountId( "dev-20240325202840-62268072686100", ): ( 1711398523291397206, 0, ), }, ) get_alias_map(account1, alias2): Some( {}, )
In [ ]:
{ . "$ScriptDir/../apps/spiral/temp/extension/build.ps1" } | Invoke-Block
Lockfile is up to date, resolution step is skipped Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +309 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Progress: resolved 309, reused 299, downloaded 10, added 309, done dependencies: + buffer 6.0.3 devDependencies: + @playwright/test 1.42.1 + @types/chrome 0.0.263 + npm-check-updates 16.14.11 Done in 1.1s [INFO]: 🎯 Checking for the Wasm target... [INFO]: 🌀 Compiling to Wasm... Compiling spiral_temp_extension v0.0.1 (/home/runner/work/polyglot/polyglot/apps/spiral/temp/extension) Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.90s [INFO]: ⬇️ Installing wasm-bindgen... [INFO]: origin crate has no LICENSE [INFO]: ✨ Done in 3.53s [INFO]: 📦 Your wasm pkg is ready to publish at /home/runner/work/polyglot/polyglot/apps/spiral/temp/extension/pkg. ▲ [WARNING] "import.meta" is not available with the "iife" output format and will be empty [empty-import-meta] pkg/spiral_temp_extension.js:1496:57: 1496 │ ...put = new URL('spiral_temp_extension_bg.wasm', import.meta.url); ╵ ~~~~~~~~~~~ You need to set the output format to "esm" for "import.meta" to work correctly. 1 warning dist/spiral_temp_extension_bg-ZVB2CR3S.wasm 4.6mb ⚠️ dist/devtools.js 29.0kb dist/content_script.js 27.2kb dist/service_worker.js 2.2kb ⚡ Done in 36ms > polyglot@ test:e2e /home/runner/work/polyglot/polyglot/apps/spiral/temp/extension > playwright test [WebServer] npm WARN[WebServer] exec The following package was not found and will be installed: serve@14.2.1 [WebServer] (node:130143) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead. (Use `node --trace-deprecation ...` to show where the warning was created) Running 3 tests using 2 workers ··· 3 passed (11.5s)
In [ ]:
{ . "$ScriptDir/../apps/perf/build.ps1" } | Invoke-Block
00:00:00 #1 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #2 [Debug] executeAsync / options: { Command =
"dotnet "/home/runner/work/polyglot/polyglot/deps/The-Spiral-Language/The Spiral Language 2/artifacts/bin/The Spiral Language 2/release/Spiral.dll" --port 13805 --default-int i32 --default-float f64"
WorkingDirectory = None
CancellationToken = Some System.Threading.CancellationToken
OnLine = Some <fun:main@464-1020> }
00:00:00 #3 [Verbose] > pwd: /home/runner/work/polyglot/polyglot/apps/perf
00:00:00 #4 [Verbose] > dll_path: /home/runner/work/polyglot/polyglot/deps/The-Spiral-Language/The Spiral Language 2/artifacts/bin/The Spiral Language 2/release
00:00:00 #5 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #6 [Verbose] waitForPortAccess / port: 13805 / retry: 0
00:00:00 #7 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #8 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #9 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #10 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #11 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #12 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #13 [Verbose] > Starting the Spiral Server. It is bound to: http://localhost:13805
00:00:00 #14 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #15 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #16 [Verbose] testPortOpen / ex: System.AggregateException: One or more errors occurred. (Connection refused)
00:00:00 #17 [Debug] sendJson / port: 13805 / json: {"Ping":true} / result.Length:
00:00:00 #18 [Verbose] awaitCompiler / Ping / result: Some(null) / port: 13805 / retry: 0
00:00:00 #19 [Verbose] > Server bound to: http://localhost:13805
00:00:00 #20 [Debug] executeAsync / options: { Command = "pwsh -c "../../scripts/invoke-dib.ps1 Perf.dib""
WorkingDirectory = None
CancellationToken = Some System.Threading.CancellationToken
OnLine = None }
00:00:02 #21 [Verbose] >
00:00:02 #22 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:02 #23 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:02 #24 [Verbose] > │ ## Perf (Polyglot) │
00:00:02 #25 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:02 #26 [Verbose] >
00:00:02 #27 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:02 #28 [Verbose] > // // test
00:00:02 #29 [Verbose] >
00:00:02 #30 [Verbose] > open testing
00:00:02 #31 [Verbose] > open benchmark
00:00:04 #32 [Verbose] > Building /tmp/!dotnet-repl/20240325-2029-0880-8059-85424e3d3574/main.spi
00:00:06 #33 [Verbose] >
00:00:06 #34 [Verbose] > ╭─[ 3.71s - stdout ]───────────────────────────────────────────────────────────╮
00:00:06 #35 [Verbose] > │ () │
00:00:06 #36 [Verbose] > │ │
00:00:06 #37 [Verbose] > │ │
00:00:06 #38 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:06 #39 [Verbose] >
00:00:06 #40 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:06 #41 [Verbose] > inl (/@) x = listm'.(/@) x
00:00:06 #42 [Verbose] > Building /tmp/!dotnet-repl/20240325-2029-1123-2359-255661bb46cc/main.spi
00:00:06 #43 [Verbose] >
00:00:06 #44 [Verbose] > ╭─[ 174.16ms - stdout ]────────────────────────────────────────────────────────╮
00:00:06 #45 [Verbose] > │ () │
00:00:06 #46 [Verbose] > │ │
00:00:06 #47 [Verbose] > │ │
00:00:06 #48 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:06 #49 [Verbose] >
00:00:06 #50 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:06 #51 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:06 #52 [Verbose] > │ ## TestCaseResult │
00:00:06 #53 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:06 #54 [Verbose] >
00:00:06 #55 [Verbose] > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:06 #56 [Verbose] > type TestCaseResult =
00:00:06 #57 [Verbose] > {
00:00:06 #58 [Verbose] > Input: string
00:00:06 #59 [Verbose] > Expected: string
00:00:06 #60 [Verbose] > Result: string
00:00:06 #61 [Verbose] > TimeList: int64 list
00:00:06 #62 [Verbose] > }
00:00:06 #63 [Verbose] >
00:00:06 #64 [Verbose] > ── fsharp - import ─────────────────────────────────────────────────────────────
00:00:06 #65 [Verbose] > #r
00:00:06 #66 [Verbose] > "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Asp
00:00:06 #67 [Verbose] > NetCore.Html.Abstractions.dll"
00:00:06 #68 [Verbose] > #r
00:00:06 #69 [Verbose] > "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Dot
00:00:06 #70 [Verbose] > Net.Interactive.dll"
00:00:06 #71 [Verbose] > #r
00:00:06 #72 [Verbose] > "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Dot
00:00:06 #73 [Verbose] > Net.Interactive.FSharp.dll"
00:00:06 #74 [Verbose] > #r
00:00:06 #75 [Verbose] > "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Dot
00:00:06 #76 [Verbose] > Net.Interactive.Formatting.dll"
00:00:06 #77 [Verbose] > open System
00:00:06 #78 [Verbose] > open System.IO
00:00:06 #79 [Verbose] > open System.Text
00:00:06 #80 [Verbose] > open Microsoft.DotNet.Interactive.Formatting
00:00:07 #81 [Verbose] >
00:00:07 #82 [Verbose] > ── fsharp - import ─────────────────────────────────────────────────────────────
00:00:07 #83 [Verbose] > #r
00:00:07 #84 [Verbose] > "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Dot
00:00:07 #85 [Verbose] > Net.Interactive.FSharp.dll"
00:00:07 #86 [Verbose] > open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers
00:00:07 #87 [Verbose] > #r
00:00:07 #88 [Verbose] > "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Dot
00:00:07 #89 [Verbose] > Net.Interactive.dll"
00:00:07 #90 [Verbose] > open type Microsoft.DotNet.Interactive.Kernel
00:00:07 #91 [Verbose] >
00:00:07 #92 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:07 #93 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:07 #94 [Verbose] > │ ## run │
00:00:07 #95 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #96 [Verbose] >
00:00:07 #97 [Verbose] > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:07 #98 [Verbose] > let run count (solutions: (string * ('TInput -> 'TExpected)) list) (input,
00:00:07 #99 [Verbose] > expected) =
00:00:07 #100 [Verbose] > let inputStr =
00:00:07 #101 [Verbose] > match box input with
00:00:07 #102 [Verbose] > | :? System.Collections.ICollection as input ->
00:00:07 #103 [Verbose] > System.Linq.Enumerable.Cast<obj> input
00:00:07 #104 [Verbose] > |> Seq.map string
00:00:07 #105 [Verbose] > |> String.concat ","
00:00:07 #106 [Verbose] > | _ -> input.ToString ()
00:00:07 #107 [Verbose] >
00:00:07 #108 [Verbose] > printfn ""
00:00:07 #109 [Verbose] > printfn $"Solution: {inputStr} "
00:00:07 #110 [Verbose] >
00:00:07 #111 [Verbose] > let performanceInvoke (fn: unit -> 'T) =
00:00:07 #112 [Verbose] > GC.Collect ()
00:00:07 #113 [Verbose] > let stopwatch = System.Diagnostics.Stopwatch ()
00:00:07 #114 [Verbose] > stopwatch.Start ()
00:00:07 #115 [Verbose] > let time1 = stopwatch.ElapsedMilliseconds
00:00:07 #116 [Verbose] >
00:00:07 #117 [Verbose] > let result =
00:00:07 #118 [Verbose] > [[| 0 .. count |]]
00:00:07 #119 [Verbose] > |> Array.Parallel.map (fun _ ->
00:00:07 #120 [Verbose] > fn ()
00:00:07 #121 [Verbose] > )
00:00:07 #122 [Verbose] > |> Array.last
00:00:07 #123 [Verbose] >
00:00:07 #124 [Verbose] > let time2 = stopwatch.ElapsedMilliseconds - time1
00:00:07 #125 [Verbose] >
00:00:07 #126 [Verbose] > result, time2
00:00:07 #127 [Verbose] >
00:00:07 #128 [Verbose] > let resultsWithTime =
00:00:07 #129 [Verbose] > solutions
00:00:07 #130 [Verbose] > |> List.mapi (fun i (testName, solution) ->
00:00:07 #131 [Verbose] > let result, time = performanceInvoke (fun () -> solution input)
00:00:07 #132 [Verbose] > printfn $"Test case %d{i + 1}. %s{testName}. Time: %A{time} "
00:00:07 #133 [Verbose] > result, time
00:00:07 #134 [Verbose] > )
00:00:07 #135 [Verbose] >
00:00:07 #136 [Verbose] >
00:00:07 #137 [Verbose] > match resultsWithTime |> List.map fst with
00:00:07 #138 [Verbose] > | ([[]] | [[ _ ]]) -> ()
00:00:07 #139 [Verbose] > | (head :: tail) when tail |> List.forall ((=) head) -> ()
00:00:07 #140 [Verbose] > | results -> failwithf $"Challenge error: %A{results}"
00:00:07 #141 [Verbose] >
00:00:07 #142 [Verbose] > {
00:00:07 #143 [Verbose] > Input = inputStr
00:00:07 #144 [Verbose] > Expected = expected.ToString ()
00:00:07 #145 [Verbose] > Result = resultsWithTime |> Seq.map fst |> Seq.head |> _.ToString()
00:00:07 #146 [Verbose] > TimeList = resultsWithTime |> List.map snd
00:00:07 #147 [Verbose] > }
00:00:08 #148 [Verbose] >
00:00:08 #149 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:08 #150 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:08 #151 [Verbose] > │ ## runAll │
00:00:08 #152 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #153 [Verbose] >
00:00:08 #154 [Verbose] > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:08 #155 [Verbose] > let runAll testName count (solutions: (string * ('TInput -> 'TExpected)) list)
00:00:08 #156 [Verbose] > testCases =
00:00:08 #157 [Verbose] > printfn ""
00:00:08 #158 [Verbose] > printfn ""
00:00:08 #159 [Verbose] > printfn $"Test: {testName}"
00:00:08 #160 [Verbose] > testCases
00:00:08 #161 [Verbose] > |> Seq.map (run count solutions)
00:00:08 #162 [Verbose] > |> Seq.toList
00:00:08 #163 [Verbose] >
00:00:08 #164 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:08 #165 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:08 #166 [Verbose] > │ ## sortResultList │
00:00:08 #167 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #168 [Verbose] >
00:00:08 #169 [Verbose] > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:08 #170 [Verbose] > let sortResultList resultList =
00:00:08 #171 [Verbose] > let table =
00:00:08 #172 [Verbose] > let rows =
00:00:08 #173 [Verbose] > resultList
00:00:08 #174 [Verbose] > |> List.map (fun result ->
00:00:08 #175 [Verbose] > let best =
00:00:08 #176 [Verbose] > result.TimeList
00:00:08 #177 [Verbose] > |> List.mapi (fun i time ->
00:00:08 #178 [Verbose] > i + 1, time
00:00:08 #179 [Verbose] > )
00:00:08 #180 [Verbose] > |> List.sortBy snd
00:00:08 #181 [Verbose] > |> List.head
00:00:08 #182 [Verbose] > |> _.ToString()
00:00:08 #183 [Verbose] > let row =
00:00:08 #184 [Verbose] > [[
00:00:08 #185 [Verbose] > result.Input
00:00:08 #186 [Verbose] > result.Expected
00:00:08 #187 [Verbose] > result.Result
00:00:08 #188 [Verbose] > best
00:00:08 #189 [Verbose] > ]]
00:00:08 #190 [Verbose] > let color =
00:00:08 #191 [Verbose] > match result.Expected = result.Result with
00:00:08 #192 [Verbose] > | true -> Some ConsoleColor.DarkGreen
00:00:08 #193 [Verbose] > | false -> Some ConsoleColor.DarkRed
00:00:08 #194 [Verbose] > row, color
00:00:08 #195 [Verbose] > )
00:00:08 #196 [Verbose] > let header =
00:00:08 #197 [Verbose] > [[
00:00:08 #198 [Verbose] > [[
00:00:08 #199 [Verbose] > "Input"
00:00:08 #200 [Verbose] > "Expected"
00:00:08 #201 [Verbose] > "Result"
00:00:08 #202 [Verbose] > "Best"
00:00:08 #203 [Verbose] > ]]
00:00:08 #204 [Verbose] > [[
00:00:08 #205 [Verbose] > "---"
00:00:08 #206 [Verbose] > "---"
00:00:08 #207 [Verbose] > "---"
00:00:08 #208 [Verbose] > "---"
00:00:08 #209 [Verbose] > ]]
00:00:08 #210 [Verbose] > ]]
00:00:08 #211 [Verbose] > |> List.map (fun row -> row, None)
00:00:08 #212 [Verbose] > header @ rows
00:00:08 #213 [Verbose] >
00:00:08 #214 [Verbose] > let formattedTable =
00:00:08 #215 [Verbose] > let lengthMap =
00:00:08 #216 [Verbose] > table
00:00:08 #217 [Verbose] > |> List.map fst
00:00:08 #218 [Verbose] > |> List.transpose
00:00:08 #219 [Verbose] > |> List.map (fun column ->
00:00:08 #220 [Verbose] > column
00:00:08 #221 [Verbose] > |> List.map String.length
00:00:08 #222 [Verbose] > |> List.sortDescending
00:00:08 #223 [Verbose] > |> List.tryHead
00:00:08 #224 [Verbose] > |> Option.defaultValue 0
00:00:08 #225 [Verbose] > )
00:00:08 #226 [Verbose] > |> List.indexed
00:00:08 #227 [Verbose] > |> Map.ofList
00:00:08 #228 [Verbose] > table
00:00:08 #229 [Verbose] > |> List.map (fun (row, color) ->
00:00:08 #230 [Verbose] > let newRow =
00:00:08 #231 [Verbose] > row
00:00:08 #232 [Verbose] > |> List.mapi (fun i cell ->
00:00:08 #233 [Verbose] > cell.PadRight lengthMap.[[i]]
00:00:08 #234 [Verbose] > )
00:00:08 #235 [Verbose] > newRow, color
00:00:08 #236 [Verbose] > )
00:00:08 #237 [Verbose] >
00:00:08 #238 [Verbose] > printfn ""
00:00:08 #239 [Verbose] > formattedTable
00:00:08 #240 [Verbose] > |> List.iter (fun (row, color) ->
00:00:08 #241 [Verbose] > match color with
00:00:08 #242 [Verbose] > | Some color -> Console.ForegroundColor <- color
00:00:08 #243 [Verbose] > | None -> Console.ResetColor ()
00:00:08 #244 [Verbose] >
00:00:08 #245 [Verbose] > printfn "%s" (String.Join ("\t| ", row))
00:00:08 #246 [Verbose] >
00:00:08 #247 [Verbose] > Console.ResetColor ()
00:00:08 #248 [Verbose] > )
00:00:08 #249 [Verbose] >
00:00:08 #250 [Verbose] > let averages =
00:00:08 #251 [Verbose] > resultList
00:00:08 #252 [Verbose] > |> List.map (fun result -> result.TimeList |> List.map float)
00:00:08 #253 [Verbose] > |> List.transpose
00:00:08 #254 [Verbose] > |> List.map List.average
00:00:08 #255 [Verbose] > |> List.map int64
00:00:08 #256 [Verbose] > |> List.indexed
00:00:08 #257 [Verbose] >
00:00:08 #258 [Verbose] > printfn ""
00:00:08 #259 [Verbose] > printfn "Average Ranking "
00:00:08 #260 [Verbose] > averages
00:00:08 #261 [Verbose] > |> List.sortBy snd
00:00:08 #262 [Verbose] > |> List.iter (fun (i, avg) ->
00:00:08 #263 [Verbose] > printfn $"Test case %d{i + 1}. Average Time: %A{avg} "
00:00:08 #264 [Verbose] > )
00:00:08 #265 [Verbose] >
00:00:08 #266 [Verbose] > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:08 #267 [Verbose] > let mutable _count =
00:00:08 #268 [Verbose] > if ("CI" |> System.Environment.GetEnvironmentVariable |> fun x -> $"%A{x}")
00:00:08 #269 [Verbose] > <> "<null>"
00:00:08 #270 [Verbose] > then 2000000
00:00:08 #271 [Verbose] > else 2000
00:00:08 #272 [Verbose] >
00:00:08 #273 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:08 #274 [Verbose] > inl is_fast () =
00:00:08 #275 [Verbose] > false
00:00:08 #276 [Verbose] > Building /tmp/!dotnet-repl/20240325-2029-1344-4451-4ca15b93fd0a/main.spi
00:00:08 #277 [Verbose] >
00:00:08 #278 [Verbose] > ╭─[ 144.17ms - stdout ]────────────────────────────────────────────────────────╮
00:00:08 #279 [Verbose] > │ () │
00:00:08 #280 [Verbose] > │ │
00:00:08 #281 [Verbose] > │ │
00:00:08 #282 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #283 [Verbose] >
00:00:08 #284 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:08 #285 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:08 #286 [Verbose] > │ ## empty3Tests │
00:00:08 #287 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #288 [Verbose] >
00:00:08 #289 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:08 #290 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:08 #291 [Verbose] > │ Test: Empty3 │
00:00:08 #292 [Verbose] > │ │
00:00:08 #293 [Verbose] > │ Solution: (a, a) │
00:00:08 #294 [Verbose] > │ Test case 1. A. Time: 91L │
00:00:08 #295 [Verbose] > │ │
00:00:08 #296 [Verbose] > │ Solution: (a, a) │
00:00:08 #297 [Verbose] > │ Test case 1. A. Time: 56L │
00:00:08 #298 [Verbose] > │ │
00:00:08 #299 [Verbose] > │ Input | Expected | Result | Best │
00:00:08 #300 [Verbose] > │ --- | --- | --- | --- │
00:00:08 #301 [Verbose] > │ (a, a) | a | a | (1, 91) │
00:00:08 #302 [Verbose] > │ (a, a) | a | a | (1, 56) │
00:00:08 #303 [Verbose] > │ │
00:00:08 #304 [Verbose] > │ Averages │
00:00:08 #305 [Verbose] > │ Test case 1. Average Time: 73L │
00:00:08 #306 [Verbose] > │ │
00:00:08 #307 [Verbose] > │ Ranking │
00:00:08 #308 [Verbose] > │ Test case 1. Average Time: 73L │
00:00:08 #309 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #310 [Verbose] >
00:00:08 #311 [Verbose] > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:08 #312 [Verbose] > //// test
00:00:08 #313 [Verbose] >
00:00:08 #314 [Verbose] > let solutions = [[
00:00:08 #315 [Verbose] > "A",
00:00:08 #316 [Verbose] > fun (a, _b) ->
00:00:08 #317 [Verbose] > a
00:00:08 #318 [Verbose] > ]]
00:00:08 #319 [Verbose] > let testCases = seq {
00:00:08 #320 [Verbose] > ("a", "a"), "a"
00:00:08 #321 [Verbose] > ("a", "a"), "a"
00:00:08 #322 [Verbose] > }
00:00:08 #323 [Verbose] > let rec empty3Tests = runAll (nameof empty3Tests) _count solutions testCases
00:00:08 #324 [Verbose] > empty3Tests
00:00:08 #325 [Verbose] > |> sortResultList
00:00:08 #326 [Verbose] >
00:00:08 #327 [Verbose] > ╭─[ 468.74ms - stdout ]────────────────────────────────────────────────────────╮
00:00:08 #328 [Verbose] > │ │
00:00:08 #329 [Verbose] > │ │
00:00:08 #330 [Verbose] > │ Test: empty3Tests │
00:00:08 #331 [Verbose] > │ │
00:00:08 #332 [Verbose] > │ Solution: (a, a) │
00:00:08 #333 [Verbose] > │ Test case 1. A. Time: 57L │
00:00:08 #334 [Verbose] > │ │
00:00:08 #335 [Verbose] > │ Solution: (a, a) │
00:00:08 #336 [Verbose] > │ Test case 1. A. Time: 25L │
00:00:08 #337 [Verbose] > │ │
00:00:08 #338 [Verbose] > │ Input | Expected | Result | Best │
00:00:08 #339 [Verbose] > │ --- | --- | --- | --- │
00:00:08 #340 [Verbose] > │ (a, a) | a | a | (1, 57) │
00:00:08 #341 [Verbose] > │ (a, a) | a | a | (1, 25) │
00:00:08 #342 [Verbose] > │ │
00:00:08 #343 [Verbose] > │ Average Ranking │
00:00:08 #344 [Verbose] > │ Test case 1. Average Time: 41L │
00:00:08 #345 [Verbose] > │ │
00:00:08 #346 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #347 [Verbose] >
00:00:08 #348 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:08 #349 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:08 #350 [Verbose] > │ ## empty2Tests │
00:00:08 #351 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #352 [Verbose] >
00:00:08 #353 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:08 #354 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:08 #355 [Verbose] > │ Test: Empty2 │
00:00:08 #356 [Verbose] > │ │
00:00:08 #357 [Verbose] > │ Solution: (a, a) │
00:00:08 #358 [Verbose] > │ Test case 1. A. Time: 59L │
00:00:08 #359 [Verbose] > │ │
00:00:08 #360 [Verbose] > │ Solution: (a, a) │
00:00:08 #361 [Verbose] > │ Test case 1. A. Time: 53L │
00:00:08 #362 [Verbose] > │ │
00:00:08 #363 [Verbose] > │ Input | Expected | Result | Best │
00:00:08 #364 [Verbose] > │ --- | --- | --- | --- │
00:00:08 #365 [Verbose] > │ (a, a) | a | a | (1, 59) │
00:00:08 #366 [Verbose] > │ (a, a) | a | a | (1, 53) │
00:00:08 #367 [Verbose] > │ │
00:00:08 #368 [Verbose] > │ Averages │
00:00:08 #369 [Verbose] > │ Test case 1. Average Time: 56L │
00:00:08 #370 [Verbose] > │ │
00:00:08 #371 [Verbose] > │ Ranking │
00:00:08 #372 [Verbose] > │ Test case 1. Average Time: 56L │
00:00:08 #373 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #374 [Verbose] >
00:00:08 #375 [Verbose] > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:08 #376 [Verbose] > //// test
00:00:08 #377 [Verbose] >
00:00:08 #378 [Verbose] > let solutions = [[
00:00:08 #379 [Verbose] > "A",
00:00:08 #380 [Verbose] > fun (a, _b) ->
00:00:08 #381 [Verbose] > a
00:00:08 #382 [Verbose] > ]]
00:00:08 #383 [Verbose] > let testCases = seq {
00:00:08 #384 [Verbose] > ("a", "a"), "a"
00:00:08 #385 [Verbose] > ("a", "a"), "a"
00:00:08 #386 [Verbose] > }
00:00:08 #387 [Verbose] > let rec empty2Tests = runAll (nameof empty2Tests) _count solutions testCases
00:00:08 #388 [Verbose] > empty2Tests
00:00:08 #389 [Verbose] > |> sortResultList
00:00:09 #390 [Verbose] >
00:00:09 #391 [Verbose] > ╭─[ 230.22ms - stdout ]────────────────────────────────────────────────────────╮
00:00:09 #392 [Verbose] > │ │
00:00:09 #393 [Verbose] > │ │
00:00:09 #394 [Verbose] > │ Test: empty2Tests │
00:00:09 #395 [Verbose] > │ │
00:00:09 #396 [Verbose] > │ Solution: (a, a) │
00:00:09 #397 [Verbose] > │ Test case 1. A. Time: 28L │
00:00:09 #398 [Verbose] > │ │
00:00:09 #399 [Verbose] > │ Solution: (a, a) │
00:00:09 #400 [Verbose] > │ Test case 1. A. Time: 26L │
00:00:09 #401 [Verbose] > │ │
00:00:09 #402 [Verbose] > │ Input | Expected | Result | Best │
00:00:09 #403 [Verbose] > │ --- | --- | --- | --- │
00:00:09 #404 [Verbose] > │ (a, a) | a | a | (1, 28) │
00:00:09 #405 [Verbose] > │ (a, a) | a | a | (1, 26) │
00:00:09 #406 [Verbose] > │ │
00:00:09 #407 [Verbose] > │ Average Ranking │
00:00:09 #408 [Verbose] > │ Test case 1. Average Time: 27L │
00:00:09 #409 [Verbose] > │ │
00:00:09 #410 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #411 [Verbose] >
00:00:09 #412 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:09 #413 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:09 #414 [Verbose] > │ ## emptyTests │
00:00:09 #415 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #416 [Verbose] >
00:00:09 #417 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:09 #418 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:09 #419 [Verbose] > │ Test: Empty │
00:00:09 #420 [Verbose] > │ │
00:00:09 #421 [Verbose] > │ Solution: 0 │
00:00:09 #422 [Verbose] > │ Test case 1. A. Time: 61L │
00:00:09 #423 [Verbose] > │ │
00:00:09 #424 [Verbose] > │ Solution: 2 │
00:00:09 #425 [Verbose] > │ Test case 1. A. Time: 62L │
00:00:09 #426 [Verbose] > │ │
00:00:09 #427 [Verbose] > │ Solution: 5 │
00:00:09 #428 [Verbose] > │ Test case 1. A. Time: 70L │
00:00:09 #429 [Verbose] > │ │
00:00:09 #430 [Verbose] > │ Input | Expected | Result | Best │
00:00:09 #431 [Verbose] > │ --- | --- | --- | --- │
00:00:09 #432 [Verbose] > │ 0 | 0 | 0 | (1, 61) │
00:00:09 #433 [Verbose] > │ 2 | 2 | 2 | (1, 62) │
00:00:09 #434 [Verbose] > │ 5 | 5 | 5 | (1, 70) │
00:00:09 #435 [Verbose] > │ │
00:00:09 #436 [Verbose] > │ Averages │
00:00:09 #437 [Verbose] > │ Test case 1. Average Time: 64L │
00:00:09 #438 [Verbose] > │ │
00:00:09 #439 [Verbose] > │ Ranking │
00:00:09 #440 [Verbose] > │ Test case 1. Average Time: 64L │
00:00:09 #441 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #442 [Verbose] >
00:00:09 #443 [Verbose] > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:09 #444 [Verbose] > //// test
00:00:09 #445 [Verbose] >
00:00:09 #446 [Verbose] > let solutions = [[
00:00:09 #447 [Verbose] > "A",
00:00:09 #448 [Verbose] > fun n ->
00:00:09 #449 [Verbose] > n + 0
00:00:09 #450 [Verbose] > ]]
00:00:09 #451 [Verbose] > let testCases = seq {
00:00:09 #452 [Verbose] > 0, 0
00:00:09 #453 [Verbose] > 2, 2
00:00:09 #454 [Verbose] > 5, 5
00:00:09 #455 [Verbose] > }
00:00:09 #456 [Verbose] > let rec emptyTests = runAll (nameof emptyTests) _count solutions testCases
00:00:09 #457 [Verbose] > emptyTests
00:00:09 #458 [Verbose] > |> sortResultList
00:00:09 #459 [Verbose] >
00:00:09 #460 [Verbose] > ╭─[ 323.93ms - stdout ]────────────────────────────────────────────────────────╮
00:00:09 #461 [Verbose] > │ │
00:00:09 #462 [Verbose] > │ │
00:00:09 #463 [Verbose] > │ Test: emptyTests │
00:00:09 #464 [Verbose] > │ │
00:00:09 #465 [Verbose] > │ Solution: 0 │
00:00:09 #466 [Verbose] > │ Test case 1. A. Time: 20L │
00:00:09 #467 [Verbose] > │ │
00:00:09 #468 [Verbose] > │ Solution: 2 │
00:00:09 #469 [Verbose] > │ Test case 1. A. Time: 19L │
00:00:09 #470 [Verbose] > │ │
00:00:09 #471 [Verbose] > │ Solution: 5 │
00:00:09 #472 [Verbose] > │ Test case 1. A. Time: 21L │
00:00:09 #473 [Verbose] > │ │
00:00:09 #474 [Verbose] > │ Input | Expected | Result | Best │
00:00:09 #475 [Verbose] > │ --- | --- | --- | --- │
00:00:09 #476 [Verbose] > │ 0 | 0 | 0 | (1, 20) │
00:00:09 #477 [Verbose] > │ 2 | 2 | 2 | (1, 19) │
00:00:09 #478 [Verbose] > │ 5 | 5 | 5 | (1, 21) │
00:00:09 #479 [Verbose] > │ │
00:00:09 #480 [Verbose] > │ Average Ranking │
00:00:09 #481 [Verbose] > │ Test case 1. Average Time: 20L │
00:00:09 #482 [Verbose] > │ │
00:00:09 #483 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #484 [Verbose] >
00:00:09 #485 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:09 #486 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:09 #487 [Verbose] > │ ## uniqueLettersTests │
00:00:09 #488 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #489 [Verbose] >
00:00:09 #490 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:09 #491 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:09 #492 [Verbose] > │ Test: UniqueLetters │
00:00:09 #493 [Verbose] > │ │
00:00:09 #494 [Verbose] > │ Solution: abc │
00:00:09 #495 [Verbose] > │ Test case 1. A. Time: 1512L │
00:00:09 #496 [Verbose] > │ Test case 2. B. Time: 1947L │
00:00:09 #497 [Verbose] > │ Test case 3. C. Time: 2023L │
00:00:09 #498 [Verbose] > │ Test case 4. D. Time: 1358L │
00:00:09 #499 [Verbose] > │ Test case 5. E. Time: 1321L │
00:00:09 #500 [Verbose] > │ Test case 6. F. Time: 1346L │
00:00:09 #501 [Verbose] > │ Test case 7. G. Time: 1304L │
00:00:09 #502 [Verbose] > │ Test case 8. H. Time: 1383L │
00:00:09 #503 [Verbose] > │ Test case 9. I. Time: 1495L │
00:00:09 #504 [Verbose] > │ Test case 10. J. Time: 1245L │
00:00:09 #505 [Verbose] > │ Test case 11. K. Time: 1219L │
00:00:09 #506 [Verbose] > │ │
00:00:09 #507 [Verbose] > │ Solution: accabb │
00:00:09 #508 [Verbose] > │ Test case 1. A. Time: 1648L │
00:00:09 #509 [Verbose] > │ Test case 2. B. Time: 2061L │
00:00:09 #510 [Verbose] > │ Test case 3. C. Time: 2413L │
00:00:09 #511 [Verbose] > │ Test case 4. D. Time: 1561L │
00:00:09 #512 [Verbose] > │ Test case 5. E. Time: 1593L │
00:00:09 #513 [Verbose] > │ Test case 6. F. Time: 1518L │
00:00:09 #514 [Verbose] > │ Test case 7. G. Time: 1415L │
00:00:09 #515 [Verbose] > │ Test case 8. H. Time: 1510L │
00:00:09 #516 [Verbose] > │ Test case 9. I. Time: 1445L │
00:00:09 #517 [Verbose] > │ Test case 10. J. Time: 1636L │
00:00:09 #518 [Verbose] > │ Test case 11. K. Time: 1317L │
00:00:09 #519 [Verbose] > │ │
00:00:09 #520 [Verbose] > │ Solution: pprrqqpp │
00:00:09 #521 [Verbose] > │ Test case 1. A. Time: 2255L │
00:00:09 #522 [Verbose] > │ Test case 2. B. Time: 2408L │
00:00:09 #523 [Verbose] > │ Test case 3. C. Time: 2393L │
00:00:09 #524 [Verbose] > │ Test case 4. D. Time: 1675L │
00:00:09 #525 [Verbose] > │ Test case 5. E. Time: 1911L │
00:00:09 #526 [Verbose] > │ Test case 6. F. Time: 2126L │
00:00:09 #527 [Verbose] > │ Test case 7. G. Time: 1504L │
00:00:09 #528 [Verbose] > │ Test case 8. H. Time: 1715L │
00:00:09 #529 [Verbose] > │ Test case 9. I. Time: 1537L │
00:00:09 #530 [Verbose] > │ Test case 10. J. Time: 1522L │
00:00:09 #531 [Verbose] > │ Test case 11. K. Time: 1322L │
00:00:09 #532 [Verbose] > │ │
00:00:09 #533 [Verbose] > │ Solution: │
00:00:09 #534 [Verbose] > │ aaaaaaaaaaaaaaccccccabbbbbbbaaacccbbbaaccccccccccacbbbbbbbbbbbbbcccccccbbbbb │
00:00:09 #535 [Verbose] > │ bbb │
00:00:09 #536 [Verbose] > │ Test case 1. A. Time: 13073L │
00:00:09 #537 [Verbose] > │ Test case 2. B. Time: 11519L │
00:00:09 #538 [Verbose] > │ Test case 3. C. Time: 8373L │
00:00:09 #539 [Verbose] > │ Test case 4. D. Time: 5860L │
00:00:09 #540 [Verbose] > │ Test case 5. E. Time: 6490L │
00:00:09 #541 [Verbose] > │ Test case 6. F. Time: 6325L │
00:00:09 #542 [Verbose] > │ Test case 7. G. Time: 5799L │
00:00:09 #543 [Verbose] > │ Test case 8. H. Time: 7099L │
00:00:09 #544 [Verbose] > │ Test case 9. I. Time: 6133L │
00:00:09 #545 [Verbose] > │ Test case 10. J. Time: 5993L │
00:00:09 #546 [Verbose] > │ Test case 11. K. Time: 2040L │
00:00:09 #547 [Verbose] > │ │
00:00:09 #548 [Verbose] > │ Input │
00:00:09 #549 [Verbose] > │ | Expected | Result | Best │
00:00:09 #550 [Verbose] > │ --- │
00:00:09 #551 [Verbose] > │ │
00:00:09 #552 [Verbose] > │ | --- | --- | --- │
00:00:09 #553 [Verbose] > │ abc │
00:00:09 #554 [Verbose] > │ │
00:00:09 #555 [Verbose] > │ | abc | abc | (11, 1219) │
00:00:09 #556 [Verbose] > │ accabb │
00:00:09 #557 [Verbose] > │ | acb | acb | (11, 1317) │
00:00:09 #558 [Verbose] > │ pprrqqpp │
00:00:09 #559 [Verbose] > │ | prq | prq | (11, 1322) │
00:00:09 #560 [Verbose] > │ aaaaaaaaaaaaaaccccccabbbbbbbaaacccbbbaaccccccccccacbbbbbbbbbbbbbcccccccbbbbb │
00:00:09 #561 [Verbose] > │ bbb | acb | acb | (11, 2040) │
00:00:09 #562 [Verbose] > │ │
00:00:09 #563 [Verbose] > │ Averages │
00:00:09 #564 [Verbose] > │ Test case 1. Average Time: 4622L │
00:00:09 #565 [Verbose] > │ Test case 2. Average Time: 4483L │
00:00:09 #566 [Verbose] > │ Test case 3. Average Time: 3800L │
00:00:09 #567 [Verbose] > │ Test case 4. Average Time: 2613L │
00:00:09 #568 [Verbose] > │ Test case 5. Average Time: 2828L │
00:00:09 #569 [Verbose] > │ Test case 6. Average Time: 2828L │
00:00:09 #570 [Verbose] > │ Test case 7. Average Time: 2505L │
00:00:09 #571 [Verbose] > │ Test case 8. Average Time: 2926L │
00:00:09 #572 [Verbose] > │ Test case 9. Average Time: 2652L │
00:00:09 #573 [Verbose] > │ Test case 10. Average Time: 2599L │
00:00:09 #574 [Verbose] > │ Test case 11. Average Time: 1474L │
00:00:09 #575 [Verbose] > │ │
00:00:09 #576 [Verbose] > │ Ranking │
00:00:09 #577 [Verbose] > │ Test case 1. Average Time: 4622L │
00:00:09 #578 [Verbose] > │ Test case 2. Average Time: 4483L │
00:00:09 #579 [Verbose] > │ Test case 3. Average Time: 3800L │
00:00:09 #580 [Verbose] > │ Test case 8. Average Time: 2926L │
00:00:09 #581 [Verbose] > │ Test case 5. Average Time: 2828L │
00:00:09 #582 [Verbose] > │ Test case 6. Average Time: 2828L │
00:00:09 #583 [Verbose] > │ Test case 9. Average Time: 2652L │
00:00:09 #584 [Verbose] > │ Test case 4. Average Time: 2613L │
00:00:09 #585 [Verbose] > │ Test case 10. Average Time: 2599L │
00:00:09 #586 [Verbose] > │ Test case 7. Average Time: 2505L │
00:00:09 #587 [Verbose] > │ Test case 11. Average Time: 1474L │
00:00:09 #588 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #589 [Verbose] >
00:00:09 #590 [Verbose] > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:09 #591 [Verbose] > //// test
00:00:09 #592 [Verbose] >
00:00:09 #593 [Verbose] > let solutions = [[
00:00:09 #594 [Verbose] > "A",
00:00:09 #595 [Verbose] > fun input ->
00:00:09 #596 [Verbose] > input
00:00:09 #597 [Verbose] > |> Seq.toList
00:00:09 #598 [Verbose] > |> List.fold (fun acc x -> if List.contains x acc then acc else acc @ [[
00:00:09 #599 [Verbose] > x ]]) [[]]
00:00:09 #600 [Verbose] > |> Seq.toArray
00:00:09 #601 [Verbose] > |> String
00:00:09 #602 [Verbose] >
00:00:09 #603 [Verbose] > "B",
00:00:09 #604 [Verbose] > fun input ->
00:00:09 #605 [Verbose] > input
00:00:09 #606 [Verbose] > |> Seq.rev
00:00:09 #607 [Verbose] > |> fun list -> Seq.foldBack (fun x acc -> if List.contains x acc then
00:00:09 #608 [Verbose] > acc else x :: acc) list [[]]
00:00:09 #609 [Verbose] > |> Seq.rev
00:00:09 #610 [Verbose] > |> Seq.toArray
00:00:09 #611 [Verbose] > |> String
00:00:09 #612 [Verbose] >
00:00:09 #613 [Verbose] > "C",
00:00:09 #614 [Verbose] > fun input ->
00:00:09 #615 [Verbose] > input
00:00:09 #616 [Verbose] > |> Seq.rev
00:00:09 #617 [Verbose] > |> fun list -> Seq.foldBack (fun x (set, acc) -> if Set.contains x set
00:00:09 #618 [Verbose] > then set, acc else set.Add x, x :: acc) list (Set.empty, [[]])
00:00:09 #619 [Verbose] > |> snd
00:00:09 #620 [Verbose] > |> Seq.rev
00:00:09 #621 [Verbose] > |> Seq.toArray
00:00:09 #622 [Verbose] > |> String
00:00:09 #623 [Verbose] >
00:00:09 #624 [Verbose] > "D",
00:00:09 #625 [Verbose] > fun input ->
00:00:09 #626 [Verbose] > input
00:00:09 #627 [Verbose] > |> Seq.fold (fun (set, acc) x -> if Set.contains x set then set, acc
00:00:09 #628 [Verbose] > else set.Add x, Array.append acc [[| x |]]) (Set.empty, [[||]])
00:00:09 #629 [Verbose] > |> snd
00:00:09 #630 [Verbose] > |> String
00:00:09 #631 [Verbose] >
00:00:09 #632 [Verbose] > "E",
00:00:09 #633 [Verbose] > fun input ->
00:00:09 #634 [Verbose] > input
00:00:09 #635 [Verbose] > |> Seq.fold (fun (set, acc) x -> if Set.contains x set then set, acc
00:00:09 #636 [Verbose] > else set.Add x, x :: acc) (Set.empty, [[]])
00:00:09 #637 [Verbose] > |> snd
00:00:09 #638 [Verbose] > |> List.rev
00:00:09 #639 [Verbose] > |> List.toArray
00:00:09 #640 [Verbose] > |> String
00:00:09 #641 [Verbose] >
00:00:09 #642 [Verbose] > "F",
00:00:09 #643 [Verbose] > fun input ->
00:00:09 #644 [Verbose] > input
00:00:09 #645 [Verbose] > |> Seq.fold (fun (set, acc) x -> if Set.contains x set then set, acc
00:00:09 #646 [Verbose] > else set.Add x, acc @ [[ x ]]) (Set.empty, [[]])
00:00:09 #647 [Verbose] > |> snd
00:00:09 #648 [Verbose] > |> List.toArray
00:00:09 #649 [Verbose] > |> String
00:00:09 #650 [Verbose] >
00:00:09 #651 [Verbose] > "G",
00:00:09 #652 [Verbose] > fun input ->
00:00:09 #653 [Verbose] > input
00:00:09 #654 [Verbose] > |> Seq.fold (fun (set, acc) x -> if Set.contains x set then set, acc
00:00:09 #655 [Verbose] > else set.Add x, x :: acc) (Set.empty, [[]])
00:00:09 #656 [Verbose] > |> snd
00:00:09 #657 [Verbose] > |> List.toArray
00:00:09 #658 [Verbose] > |> Array.rev
00:00:09 #659 [Verbose] > |> String
00:00:09 #660 [Verbose] >
00:00:09 #661 [Verbose] > "H",
00:00:09 #662 [Verbose] > fun input ->
00:00:09 #663 [Verbose] > input
00:00:09 #664 [Verbose] > |> Seq.toList
00:00:09 #665 [Verbose] > |> fun list ->
00:00:09 #666 [Verbose] > let rec loop set = function
00:00:09 #667 [Verbose] > | head :: tail when Set.contains head set -> loop set tail
00:00:09 #668 [Verbose] > | head :: tail -> (loop (set.Add head) tail) @ [[ head ]]
00:00:09 #669 [Verbose] > | [[]] -> [[]]
00:00:09 #670 [Verbose] > loop Set.empty list
00:00:09 #671 [Verbose] > |> List.rev
00:00:09 #672 [Verbose] > |> List.toArray
00:00:09 #673 [Verbose] > |> String
00:00:09 #674 [Verbose] >
00:00:09 #675 [Verbose] > "I",
00:00:09 #676 [Verbose] > fun input ->
00:00:09 #677 [Verbose] > input
00:00:09 #678 [Verbose] > |> Seq.toList
00:00:09 #679 [Verbose] > |> fun list ->
00:00:09 #680 [Verbose] > let rec loop set = function
00:00:09 #681 [Verbose] > | head :: tail when Set.contains head set -> loop set tail
00:00:09 #682 [Verbose] > | head :: tail -> loop (set.Add head) tail |> Array.append [[|
00:00:09 #683 [Verbose] > head |]]
00:00:09 #684 [Verbose] > | [[]] -> [[||]]
00:00:09 #685 [Verbose] > loop Set.empty list
00:00:09 #686 [Verbose] > |> String
00:00:09 #687 [Verbose] >
00:00:09 #688 [Verbose] > "J",
00:00:09 #689 [Verbose] > fun input ->
00:00:09 #690 [Verbose] > input
00:00:09 #691 [Verbose] > |> Seq.toList
00:00:09 #692 [Verbose] > |> fun list ->
00:00:09 #693 [Verbose] > let rec loop set = function
00:00:09 #694 [Verbose] > | head :: tail when Set.contains head set -> loop set tail
00:00:09 #695 [Verbose] > | head :: tail -> head :: loop (set.Add head) tail
00:00:09 #696 [Verbose] > | [[]] -> [[]]
00:00:09 #697 [Verbose] > loop Set.empty list
00:00:09 #698 [Verbose] > |> List.toArray
00:00:09 #699 [Verbose] > |> String
00:00:09 #700 [Verbose] >
00:00:09 #701 [Verbose] > "K",
00:00:09 #702 [Verbose] > fun input ->
00:00:09 #703 [Verbose] > input
00:00:09 #704 [Verbose] > |> Seq.distinct
00:00:09 #705 [Verbose] > |> Seq.toArray
00:00:09 #706 [Verbose] > |> String
00:00:09 #707 [Verbose] > ]]
00:00:09 #708 [Verbose] > let testCases = seq {
00:00:09 #709 [Verbose] > "abc", "abc"
00:00:09 #710 [Verbose] > "accabb", "acb"
00:00:09 #711 [Verbose] > "pprrqqpp", "prq"
00:00:09 #712 [Verbose] >
00:00:09 #713 [Verbose] > "aaaaaaaaaaaaaaccccccabbbbbbbaaacccbbbaaccccccccccacbbbbbbbbbbbbbcccccccbbbbbbbb
00:00:09 #714 [Verbose] > ", "acb"
00:00:09 #715 [Verbose] > }
00:00:09 #716 [Verbose] > let rec uniqueLettersTests = runAll (nameof uniqueLettersTests) _count solutions
00:00:09 #717 [Verbose] > testCases
00:00:09 #718 [Verbose] > uniqueLettersTests
00:00:09 #719 [Verbose] > |> sortResultList
00:01:17 #720 [Verbose] >
00:01:17 #721 [Verbose] > ╭─[ 1.13m - stdout ]───────────────────────────────────────────────────────────╮
00:01:17 #722 [Verbose] > │ │
00:01:17 #723 [Verbose] > │ │
00:01:17 #724 [Verbose] > │ Test: uniqueLettersTests │
00:01:17 #725 [Verbose] > │ │
00:01:17 #726 [Verbose] > │ Solution: abc │
00:01:17 #727 [Verbose] > │ Test case 1. A. Time: 1237L │
00:01:17 #728 [Verbose] > │ Test case 2. B. Time: 1873L │
00:01:17 #729 [Verbose] > │ Test case 3. C. Time: 2087L │
00:01:17 #730 [Verbose] > │ Test case 4. D. Time: 1363L │
00:01:17 #731 [Verbose] > │ Test case 5. E. Time: 1310L │
00:01:17 #732 [Verbose] > │ Test case 6. F. Time: 849L │
00:01:17 #733 [Verbose] > │ Test case 7. G. Time: 828L │
00:01:17 #734 [Verbose] > │ Test case 8. H. Time: 892L │
00:01:17 #735 [Verbose] > │ Test case 9. I. Time: 837L │
00:01:17 #736 [Verbose] > │ Test case 10. J. Time: 778L │
00:01:17 #737 [Verbose] > │ Test case 11. K. Time: 810L │
00:01:17 #738 [Verbose] > │ │
00:01:17 #739 [Verbose] > │ Solution: accabb │
00:01:17 #740 [Verbose] > │ Test case 1. A. Time: 839L │
00:01:17 #741 [Verbose] > │ Test case 2. B. Time: 1021L │
00:01:17 #742 [Verbose] > │ Test case 3. C. Time: 1350L │
00:01:17 #743 [Verbose] > │ Test case 4. D. Time: 901L │
00:01:17 #744 [Verbose] > │ Test case 5. E. Time: 883L │
00:01:17 #745 [Verbose] > │ Test case 6. F. Time: 894L │
00:01:17 #746 [Verbose] > │ Test case 7. G. Time: 922L │
00:01:17 #747 [Verbose] > │ Test case 8. H. Time: 945L │
00:01:17 #748 [Verbose] > │ Test case 9. I. Time: 917L │
00:01:17 #749 [Verbose] > │ Test case 10. J. Time: 831L │
00:01:17 #750 [Verbose] > │ Test case 11. K. Time: 709L │
00:01:17 #751 [Verbose] > │ │
00:01:17 #752 [Verbose] > │ Solution: pprrqqpp │
00:01:17 #753 [Verbose] > │ Test case 1. A. Time: 846L │
00:01:17 #754 [Verbose] > │ Test case 2. B. Time: 1012L │
00:01:17 #755 [Verbose] > │ Test case 3. C. Time: 1392L │
00:01:17 #756 [Verbose] > │ Test case 4. D. Time: 961L │
00:01:17 #757 [Verbose] > │ Test case 5. E. Time: 937L │
00:01:17 #758 [Verbose] > │ Test case 6. F. Time: 966L │
00:01:17 #759 [Verbose] > │ Test case 7. G. Time: 918L │
00:01:17 #760 [Verbose] > │ Test case 8. H. Time: 990L │
00:01:17 #761 [Verbose] > │ Test case 9. I. Time: 928L │
00:01:17 #762 [Verbose] > │ Test case 10. J. Time: 878L │
00:01:17 #763 [Verbose] > │ Test case 11. K. Time: 730L │
00:01:17 #764 [Verbose] > │ │
00:01:17 #765 [Verbose] > │ Solution: │
00:01:17 #766 [Verbose] > │ aaaaaaaaaaaaaaccccccabbbbbbbaaacccbbbaaccccccccccacbbbbbbbbbbbbbcccccccbbbbb │
00:01:17 #767 [Verbose] > │ bbb │
00:01:17 #768 [Verbose] > │ Test case 1. A. Time: 2325L │
00:01:17 #769 [Verbose] > │ Test case 2. B. Time: 2580L │
00:01:17 #770 [Verbose] > │ Test case 3. C. Time: 4124L │
00:01:17 #771 [Verbose] > │ Test case 4. D. Time: 2537L │
00:01:17 #772 [Verbose] > │ Test case 5. E. Time: 2471L │
00:01:17 #773 [Verbose] > │ Test case 6. F. Time: 2633L │
00:01:17 #774 [Verbose] > │ Test case 7. G. Time: 2650L │
00:01:17 #775 [Verbose] > │ Test case 8. H. Time: 2568L │
00:01:17 #776 [Verbose] > │ Test case 9. I. Time: 2450L │
00:01:17 #777 [Verbose] > │ Test case 10. J. Time: 2387L │
00:01:17 #778 [Verbose] > │ Test case 11. K. Time: 1356L │
00:01:17 #779 [Verbose] > │ │
00:01:17 #780 [Verbose] > │ Input │
00:01:17 #781 [Verbose] > │ | Expected | Result | Best │
00:01:17 #782 [Verbose] > │ --- │
00:01:17 #783 [Verbose] > │ | --- | --- | --- │
00:01:17 #784 [Verbose] > │ abc │
00:01:17 #785 [Verbose] > │ | abc | abc | (10, 778) │
00:01:17 #786 [Verbose] > │ accabb │
00:01:17 #787 [Verbose] > │ | acb | acb | (11, 709) │
00:01:17 #788 [Verbose] > │ pprrqqpp │
00:01:17 #789 [Verbose] > │ | prq | prq | (11, 730) │
00:01:17 #790 [Verbose] > │ aaaaaaaaaaaaaaccccccabbbbbbbaaacccbbbaaccccccccccacbbbbbbbbbbbbbcccccccbbbbb │
00:01:17 #791 [Verbose] > │ bbb | acb | acb | (11, 1356) │
00:01:17 #792 [Verbose] > │ │
00:01:17 #793 [Verbose] > │ Average Ranking │
00:01:17 #794 [Verbose] > │ Test case 11. Average Time: 901L │
00:01:17 #795 [Verbose] > │ Test case 10. Average Time: 1218L │
00:01:17 #796 [Verbose] > │ Test case 9. Average Time: 1283L │
00:01:17 #797 [Verbose] > │ Test case 1. Average Time: 1311L │
00:01:17 #798 [Verbose] > │ Test case 7. Average Time: 1329L │
00:01:17 #799 [Verbose] > │ Test case 6. Average Time: 1335L │
00:01:17 #800 [Verbose] > │ Test case 8. Average Time: 1348L │
00:01:17 #801 [Verbose] > │ Test case 5. Average Time: 1400L │
00:01:17 #802 [Verbose] > │ Test case 4. Average Time: 1440L │
00:01:17 #803 [Verbose] > │ Test case 2. Average Time: 1621L │
00:01:17 #804 [Verbose] > │ Test case 3. Average Time: 2238L │
00:01:17 #805 [Verbose] > │ │
00:01:17 #806 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:17 #807 [Verbose] >
00:01:17 #808 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:01:17 #809 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:17 #810 [Verbose] > │ ## rotateStringsTests │
00:01:17 #811 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:17 #812 [Verbose] >
00:01:17 #813 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:01:17 #814 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:17 #815 [Verbose] > │ https://www.hackerrank.com/challenges/rotate-string/forum │
00:01:17 #816 [Verbose] > │ │
00:01:17 #817 [Verbose] > │ Test: RotateStrings │
00:01:17 #818 [Verbose] > │ │
00:01:17 #819 [Verbose] > │ Solution: abc │
00:01:17 #820 [Verbose] > │ Test case 1. A. Time: 1842L │
00:01:17 #821 [Verbose] > │ Test case 2. B. Time: 1846L │
00:01:17 #822 [Verbose] > │ Test case 3. C. Time: 1936L │
00:01:17 #823 [Verbose] > │ Test case 4. CA. Time: 2224L │
00:01:17 #824 [Verbose] > │ Test case 5. CB. Time: 2329L │
00:01:17 #825 [Verbose] > │ Test case 6. D. Time: 2474L │
00:01:17 #826 [Verbose] > │ Test case 7. E. Time: 1664L │
00:01:17 #827 [Verbose] > │ Test case 8. F. Time: 1517L │
00:01:17 #828 [Verbose] > │ Test case 9. FA. Time: 1651L │
00:01:17 #829 [Verbose] > │ Test case 10. FB. Time: 3764L │
00:01:17 #830 [Verbose] > │ Test case 11. FC. Time: 5415L │
00:01:17 #831 [Verbose] > │ │
00:01:17 #832 [Verbose] > │ Solution: abcde │
00:01:17 #833 [Verbose] > │ Test case 1. A. Time: 3356L │
00:01:17 #834 [Verbose] > │ Test case 2. B. Time: 2592L │
00:01:17 #835 [Verbose] > │ Test case 3. C. Time: 2346L │
00:01:17 #836 [Verbose] > │ Test case 4. CA. Time: 2997L │
00:01:17 #837 [Verbose] > │ Test case 5. CB. Time: 3061L │
00:01:17 #838 [Verbose] > │ Test case 6. D. Time: 4051L │
00:01:17 #839 [Verbose] > │ Test case 7. E. Time: 1905L │
00:01:17 #840 [Verbose] > │ Test case 8. F. Time: 1771L │
00:01:17 #841 [Verbose] > │ Test case 9. FA. Time: 2175L │
00:01:17 #842 [Verbose] > │ Test case 10. FB. Time: 3275L │
00:01:17 #843 [Verbose] > │ Test case 11. FC. Time: 5266L │
00:01:17 #844 [Verbose] > │ │
00:01:17 #845 [Verbose] > │ Solution: abcdefghi │
00:01:17 #846 [Verbose] > │ Test case 1. A. Time: 4492L │
00:01:17 #847 [Verbose] > │ Test case 2. B. Time: 3526L │
00:01:17 #848 [Verbose] > │ Test case 3. C. Time: 3583L │
00:01:17 #849 [Verbose] > │ Test case 4. CA. Time: 3711L │
00:01:17 #850 [Verbose] > │ Test case 5. CB. Time: 4783L │
00:01:17 #851 [Verbose] > │ Test case 6. D. Time: 7557L │
00:01:17 #852 [Verbose] > │ Test case 7. E. Time: 3452L │
00:01:17 #853 [Verbose] > │ Test case 8. F. Time: 3050L │
00:01:17 #854 [Verbose] > │ Test case 9. FA. Time: 3275L │
00:01:17 #855 [Verbose] > │ Test case 10. FB. Time: 4635L │
00:01:17 #856 [Verbose] > │ Test case 11. FC. Time: 5616L │
00:01:17 #857 [Verbose] > │ │
00:01:17 #858 [Verbose] > │ Solution: abab │
00:01:17 #859 [Verbose] > │ Test case 1. A. Time: 2093L │
00:01:17 #860 [Verbose] > │ Test case 2. B. Time: 1843L │
00:01:17 #861 [Verbose] > │ Test case 3. C. Time: 1746L │
00:01:17 #862 [Verbose] > │ Test case 4. CA. Time: 2085L │
00:01:17 #863 [Verbose] > │ Test case 5. CB. Time: 2139L │
00:01:17 #864 [Verbose] > │ Test case 6. D. Time: 2095L │
00:01:17 #865 [Verbose] > │ Test case 7. E. Time: 1723L │
00:01:17 #866 [Verbose] > │ Test case 8. F. Time: 1558L │
00:01:17 #867 [Verbose] > │ Test case 9. FA. Time: 1620L │
00:01:17 #868 [Verbose] > │ Test case 10. FB. Time: 2319L │
00:01:17 #869 [Verbose] > │ Test case 11. FC. Time: 3918L │
00:01:17 #870 [Verbose] > │ │
00:01:17 #871 [Verbose] > │ Solution: aa │
00:01:17 #872 [Verbose] > │ Test case 1. A. Time: 1107L │
00:01:17 #873 [Verbose] > │ Test case 2. B. Time: 1241L │
00:01:17 #874 [Verbose] > │ Test case 3. C. Time: 1183L │
00:01:17 #875 [Verbose] > │ Test case 4. CA. Time: 1563L │
00:01:17 #876 [Verbose] > │ Test case 5. CB. Time: 1525L │
00:01:17 #877 [Verbose] > │ Test case 6. D. Time: 1591L │
00:01:17 #878 [Verbose] > │ Test case 7. E. Time: 1327L │
00:01:17 #879 [Verbose] > │ Test case 8. F. Time: 1151L │
00:01:17 #880 [Verbose] > │ Test case 9. FA. Time: 1180L │
00:01:17 #881 [Verbose] > │ Test case 10. FB. Time: 1733L │
00:01:17 #882 [Verbose] > │ Test case 11. FC. Time: 2817L │
00:01:17 #883 [Verbose] > │ │
00:01:17 #884 [Verbose] > │ Solution: z │
00:01:17 #885 [Verbose] > │ Test case 1. A. Time: 816L │
00:01:17 #886 [Verbose] > │ Test case 2. B. Time: 745L │
00:01:17 #887 [Verbose] > │ Test case 3. C. Time: 928L │
00:01:17 #888 [Verbose] > │ Test case 4. CA. Time: 1375L │
00:01:17 #889 [Verbose] > │ Test case 5. CB. Time: 1029L │
00:01:17 #890 [Verbose] > │ Test case 6. D. Time: 852L │
00:01:17 #891 [Verbose] > │ Test case 7. E. Time: 712L │
00:01:17 #892 [Verbose] > │ Test case 8. F. Time: 263L │
00:01:17 #893 [Verbose] > │ Test case 9. FA. Time: 232L │
00:01:17 #894 [Verbose] > │ Test case 10. FB. Time: 773L │
00:01:17 #895 [Verbose] > │ Test case 11. FC. Time: 1789L │
00:01:17 #896 [Verbose] > │ │
00:01:17 #897 [Verbose] > │ Input | Expected │
00:01:17 #898 [Verbose] > │ │
00:01:17 #899 [Verbose] > │ | Result │
00:01:17 #900 [Verbose] > │ │
00:01:17 #901 [Verbose] > │ | Best │
00:01:17 #902 [Verbose] > │ --- | --- │
00:01:17 #903 [Verbose] > │ │
00:01:17 #904 [Verbose] > │ | --- │
00:01:17 #905 [Verbose] > │ │
00:01:17 #906 [Verbose] > │ | --- │
00:01:17 #907 [Verbose] > │ abc | bca cab abc │
00:01:17 #908 [Verbose] > │ │
00:01:17 #909 [Verbose] > │ | bca cab abc │
00:01:17 #910 [Verbose] > │ │
00:01:17 #911 [Verbose] > │ | (8, 1517) │
00:01:17 #912 [Verbose] > │ abcde | bcdea cdeab deabc eabcd abcde │
00:01:17 #913 [Verbose] > │ | bcdea cdeab deabc eabcd abcde │
00:01:17 #914 [Verbose] > │ | (8, 1771) │
00:01:17 #915 [Verbose] > │ abcdefghi | bcdefghia cdefghiab defghiabc efghiabcd fghiabcde │
00:01:17 #916 [Verbose] > │ ghiabcdef hiabcdefg iabcdefgh abcdefghi | bcdefghia cdefghiab │
00:01:17 #917 [Verbose] > │ defghiabc efghiabcd fghiabcde ghiabcdef hiabcdefg iabcdefgh abcdefghi │
00:01:17 #918 [Verbose] > │ | (8, 3050) │
00:01:17 #919 [Verbose] > │ abab | baba abab baba abab │
00:01:17 #920 [Verbose] > │ │
00:01:17 #921 [Verbose] > │ | baba abab baba abab │
00:01:17 #922 [Verbose] > │ │
00:01:17 #923 [Verbose] > │ | (8, 1558) │
00:01:17 #924 [Verbose] > │ aa | aa aa │
00:01:17 #925 [Verbose] > │ │
00:01:17 #926 [Verbose] > │ | aa aa │
00:01:17 #927 [Verbose] > │ │
00:01:17 #928 [Verbose] > │ | (1, 1107) │
00:01:17 #929 [Verbose] > │ z | z │
00:01:17 #930 [Verbose] > │ │
00:01:17 #931 [Verbose] > │ | z │
00:01:17 #932 [Verbose] > │ │
00:01:17 #933 [Verbose] > │ | (9, 232) │
00:01:17 #934 [Verbose] > │ │
00:01:17 #935 [Verbose] > │ Averages │
00:01:17 #936 [Verbose] > │ Test case 1. Average Time: 2284L │
00:01:17 #937 [Verbose] > │ Test case 2. Average Time: 1965L │
00:01:17 #938 [Verbose] > │ Test case 3. Average Time: 1953L │
00:01:17 #939 [Verbose] > │ Test case 4. Average Time: 2325L │
00:01:17 #940 [Verbose] > │ Test case 5. Average Time: 2477L │
00:01:17 #941 [Verbose] > │ Test case 6. Average Time: 3103L │
00:01:17 #942 [Verbose] > │ Test case 7. Average Time: 1797L │
00:01:17 #943 [Verbose] > │ Test case 8. Average Time: 1551L │
00:01:17 #944 [Verbose] > │ Test case 9. Average Time: 1688L │
00:01:17 #945 [Verbose] > │ Test case 10. Average Time: 2749L │
00:01:17 #946 [Verbose] > │ Test case 11. Average Time: 4136L │
00:01:17 #947 [Verbose] > │ │
00:01:17 #948 [Verbose] > │ Ranking │
00:01:17 #949 [Verbose] > │ Test case 11. Average Time: 4136L │
00:01:17 #950 [Verbose] > │ Test case 6. Average Time: 3103L │
00:01:17 #951 [Verbose] > │ Test case 10. Average Time: 2749L │
00:01:17 #952 [Verbose] > │ Test case 5. Average Time: 2477L │
00:01:17 #953 [Verbose] > │ Test case 4. Average Time: 2325L │
00:01:17 #954 [Verbose] > │ Test case 1. Average Time: 2284L │
00:01:17 #955 [Verbose] > │ Test case 2. Average Time: 1965L │
00:01:17 #956 [Verbose] > │ Test case 3. Average Time: 1953L │
00:01:17 #957 [Verbose] > │ Test case 7. Average Time: 1797L │
00:01:17 #958 [Verbose] > │ Test case 9. Average Time: 1688L │
00:01:17 #959 [Verbose] > │ Test case 8. Average Time: 1551L │
00:01:17 #960 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:17 #961 [Verbose] >
00:01:17 #962 [Verbose] > ── fsharp ──────────────────────────────────────────────────────────────────────
00:01:17 #963 [Verbose] > //// test
00:01:17 #964 [Verbose] >
00:01:17 #965 [Verbose] > let solutions = [[
00:01:17 #966 [Verbose] > "A",
00:01:17 #967 [Verbose] > fun (input: string) ->
00:01:17 #968 [Verbose] > let resultList =
00:01:17 #969 [Verbose] > List.fold (fun acc x ->
00:01:17 #970 [Verbose] > let rotate (text: string) (letter: string) = text.Substring (1,
00:01:17 #971 [Verbose] > input.Length - 1) + letter
00:01:17 #972 [Verbose] > [[ rotate (if acc.IsEmpty then input else acc.Head) (string x)
00:01:17 #973 [Verbose] > ]] @ acc
00:01:17 #974 [Verbose] > ) [[]] (Seq.toList input)
00:01:17 #975 [Verbose] >
00:01:17 #976 [Verbose] > (resultList, "")
00:01:17 #977 [Verbose] > ||> List.foldBack (fun acc x -> x + acc + " ")
00:01:17 #978 [Verbose] > |> _.TrimEnd()
00:01:17 #979 [Verbose] >
00:01:17 #980 [Verbose] > "B",
00:01:17 #981 [Verbose] > fun input ->
00:01:17 #982 [Verbose] > input
00:01:17 #983 [Verbose] > |> Seq.toList
00:01:17 #984 [Verbose] > |> List.fold (fun (acc: string list) letter ->
00:01:17 #985 [Verbose] > let last =
00:01:17 #986 [Verbose] > if acc.IsEmpty
00:01:17 #987 [Verbose] > then input
00:01:17 #988 [Verbose] > else acc.Head
00:01:17 #989 [Verbose] >
00:01:17 #990 [Verbose] > let item = last.[[1 .. input.Length - 1]] + string letter
00:01:17 #991 [Verbose] >
00:01:17 #992 [Verbose] > item :: acc
00:01:17 #993 [Verbose] > ) [[]]
00:01:17 #994 [Verbose] > |> List.rev
00:01:17 #995 [Verbose] > |> String.concat " "
00:01:17 #996 [Verbose] >
00:01:17 #997 [Verbose] > "C",
00:01:17 #998 [Verbose] > fun input ->
00:01:17 #999 [Verbose] > input
00:01:17 #1000 [Verbose] > |> Seq.toList
00:01:17 #1001 [Verbose] > |> List.fold (fun (acc: string list) letter -> acc.Head.[[ 1 ..
00:01:17 #1002 [Verbose] > input.Length - 1 ]] + string letter :: acc) [[ input ]]
00:01:17 #1003 [Verbose] > |> List.rev
00:01:17 #1004 [Verbose] > |> List.skip 1
00:01:17 #1005 [Verbose] > |> String.concat " "
00:01:17 #1006 [Verbose] >
00:01:17 #1007 [Verbose] > "CA",
00:01:17 #1008 [Verbose] > fun input ->
00:01:17 #1009 [Verbose] > input
00:01:17 #1010 [Verbose] > |> Seq.fold (fun (acc: string list) letter -> acc.Head.[[ 1 ..
00:01:17 #1011 [Verbose] > input.Length - 1 ]] + string letter :: acc) [[ input ]]
00:01:17 #1012 [Verbose] > |> Seq.rev
00:01:17 #1013 [Verbose] > |> Seq.skip 1
00:01:17 #1014 [Verbose] > |> String.concat " "
00:01:17 #1015 [Verbose] >
00:01:17 #1016 [Verbose] > "CB",
00:01:17 #1017 [Verbose] > fun input ->
00:01:17 #1018 [Verbose] > input
00:01:17 #1019 [Verbose] > |> Seq.toArray
00:01:17 #1020 [Verbose] > |> Array.fold (fun (acc: string[[]]) letter -> acc |> Array.append [[|
00:01:17 #1021 [Verbose] > acc.[[0]].[[ 1 .. input.Length - 1 ]] + string letter |]]) [[| input |]]
00:01:17 #1022 [Verbose] > |> Array.rev
00:01:17 #1023 [Verbose] > |> Array.skip 1
00:01:17 #1024 [Verbose] > |> String.concat " "
00:01:17 #1025 [Verbose] >
00:01:17 #1026 [Verbose] > "D",
00:01:17 #1027 [Verbose] > fun input ->
00:01:17 #1028 [Verbose] > input
00:01:17 #1029 [Verbose] > |> Seq.toList
00:01:17 #1030 [Verbose] > |> fun list ->
00:01:17 #1031 [Verbose] > let rec loop (acc: char list list) = function
00:01:17 #1032 [Verbose] > | _ when acc.Length = list.Length -> acc
00:01:17 #1033 [Verbose] > | head :: tail ->
00:01:17 #1034 [Verbose] > let item = tail @ [[ head ]]
00:01:17 #1035 [Verbose] > loop (item :: acc) item
00:01:17 #1036 [Verbose] > | [[]] -> [[]]
00:01:17 #1037 [Verbose] > loop [[]] list
00:01:17 #1038 [Verbose] > |> List.rev
00:01:17 #1039 [Verbose] > |> List.map (List.toArray >> String)
00:01:17 #1040 [Verbose] > |> String.concat " "
00:01:17 #1041 [Verbose] >
00:01:17 #1042 [Verbose] > "E",
00:01:17 #1043 [Verbose] > fun input ->
00:01:17 #1044 [Verbose] > input
00:01:17 #1045 [Verbose] > |> Seq.toList
00:01:17 #1046 [Verbose] > |> fun list ->
00:01:17 #1047 [Verbose] > let rec loop (last: string) = function
00:01:17 #1048 [Verbose] > | head :: tail ->
00:01:17 #1049 [Verbose] > let item = last.[[1 .. input.Length - 1]] + string head
00:01:17 #1050 [Verbose] > item :: loop item tail
00:01:17 #1051 [Verbose] > | [[]] -> [[]]
00:01:17 #1052 [Verbose] > loop input list
00:01:17 #1053 [Verbose] > |> String.concat " "
00:01:17 #1054 [Verbose] >
00:01:17 #1055 [Verbose] > "F",
00:01:17 #1056 [Verbose] > fun input ->
00:01:17 #1057 [Verbose] > Array.singleton 0
00:01:17 #1058 [Verbose] > |> Array.append [[| 1 .. input.Length - 1 |]]
00:01:17 #1059 [Verbose] > |> Array.map (fun i -> input.[[ i .. ]] + input.[[ .. i - 1 ]])
00:01:17 #1060 [Verbose] > |> String.concat " "
00:01:17 #1061 [Verbose] >
00:01:17 #1062 [Verbose] > "FA",
00:01:17 #1063 [Verbose] > fun input ->
00:01:17 #1064 [Verbose] > List.singleton 0
00:01:17 #1065 [Verbose] > |> List.append [[ 1 .. input.Length - 1 ]]
00:01:17 #1066 [Verbose] > |> List.map (fun i -> input.[[ i .. ]] + input.[[ .. i - 1 ]])
00:01:17 #1067 [Verbose] > |> String.concat " "
00:01:17 #1068 [Verbose] >
00:01:17 #1069 [Verbose] > "FB",
00:01:17 #1070 [Verbose] > fun input ->
00:01:17 #1071 [Verbose] > Seq.singleton 0
00:01:17 #1072 [Verbose] > |> Seq.append (seq { 1 .. input.Length - 1 })
00:01:17 #1073 [Verbose] > |> Seq.map (fun i -> input.[[ i .. ]] + input.[[ .. i - 1 ]])
00:01:17 #1074 [Verbose] > |> String.concat " "
00:01:17 #1075 [Verbose] >
00:01:17 #1076 [Verbose] > "FC",
00:01:17 #1077 [Verbose] > fun input ->
00:01:17 #1078 [Verbose] > Array.singleton 0
00:01:17 #1079 [Verbose] > |> Array.append [[| 1 .. input.Length - 1 |]]
00:01:17 #1080 [Verbose] > |> Array.Parallel.map (fun i -> input.[[ i .. ]] + input.[[ .. i - 1 ]])
00:01:17 #1081 [Verbose] > |> String.concat " "
00:01:17 #1082 [Verbose] > ]]
00:01:17 #1083 [Verbose] > let testCases = seq {
00:01:17 #1084 [Verbose] > "abc", "bca cab abc"
00:01:17 #1085 [Verbose] > "abcde", "bcdea cdeab deabc eabcd abcde"
00:01:17 #1086 [Verbose] > "abcdefghi", "bcdefghia cdefghiab defghiabc efghiabcd fghiabcde ghiabcdef
00:01:17 #1087 [Verbose] > hiabcdefg iabcdefgh abcdefghi"
00:01:17 #1088 [Verbose] > "abab", "baba abab baba abab"
00:01:17 #1089 [Verbose] > "aa", "aa aa"
00:01:17 #1090 [Verbose] > "z", "z"
00:01:17 #1091 [Verbose] > }
00:01:17 #1092 [Verbose] > let rec rotateStringsTests = runAll (nameof rotateStringsTests) _count solutions
00:01:17 #1093 [Verbose] > testCases
00:01:17 #1094 [Verbose] > rotateStringsTests
00:01:17 #1095 [Verbose] > |> sortResultList
00:02:57 #1096 [Verbose] >
00:02:57 #1097 [Verbose] > ╭─[ 1.68m - stdout ]───────────────────────────────────────────────────────────╮
00:02:57 #1098 [Verbose] > │ │
00:02:57 #1099 [Verbose] > │ │
00:02:57 #1100 [Verbose] > │ Test: rotateStringsTests │
00:02:57 #1101 [Verbose] > │ │
00:02:57 #1102 [Verbose] > │ Solution: abc │
00:02:57 #1103 [Verbose] > │ Test case 1. A. Time: 1082L │
00:02:57 #1104 [Verbose] > │ Test case 2. B. Time: 1128L │
00:02:57 #1105 [Verbose] > │ Test case 3. C. Time: 1167L │
00:02:57 #1106 [Verbose] > │ Test case 4. CA. Time: 1574L │
00:02:57 #1107 [Verbose] > │ Test case 5. CB. Time: 1340L │
00:02:57 #1108 [Verbose] > │ Test case 6. D. Time: 1349L │
00:02:57 #1109 [Verbose] > │ Test case 7. E. Time: 1061L │
00:02:57 #1110 [Verbose] > │ Test case 8. F. Time: 1068L │
00:02:57 #1111 [Verbose] > │ Test case 9. FA. Time: 1163L │
00:02:57 #1112 [Verbose] > │ Test case 10. FB. Time: 1849L │
00:02:57 #1113 [Verbose] > │ Test case 11. FC. Time: 2574L │
00:02:57 #1114 [Verbose] > │ │
00:02:57 #1115 [Verbose] > │ Solution: abcde │
00:02:57 #1116 [Verbose] > │ Test case 1. A. Time: 1478L │
00:02:57 #1117 [Verbose] > │ Test case 2. B. Time: 1353L │
00:02:57 #1118 [Verbose] > │ Test case 3. C. Time: 1417L │
00:02:57 #1119 [Verbose] > │ Test case 4. CA. Time: 1450L │
00:02:57 #1120 [Verbose] > │ Test case 5. CB. Time: 1543L │
00:02:57 #1121 [Verbose] > │ Test case 6. D. Time: 1937L │
00:02:57 #1122 [Verbose] > │ Test case 7. E. Time: 1301L │
00:02:57 #1123 [Verbose] > │ Test case 8. F. Time: 994L │
00:02:57 #1124 [Verbose] > │ Test case 9. FA. Time: 1281L │
00:02:57 #1125 [Verbose] > │ Test case 10. FB. Time: 1984L │
00:02:57 #1126 [Verbose] > │ Test case 11. FC. Time: 2633L │
00:02:57 #1127 [Verbose] > │ │
00:02:57 #1128 [Verbose] > │ Solution: abcdefghi │
00:02:57 #1129 [Verbose] > │ Test case 1. A. Time: 2419L │
00:02:57 #1130 [Verbose] > │ Test case 2. B. Time: 2246L │
00:02:57 #1131 [Verbose] > │ Test case 3. C. Time: 2099L │
00:02:57 #1132 [Verbose] > │ Test case 4. CA. Time: 2229L │
00:02:57 #1133 [Verbose] > │ Test case 5. CB. Time: 2540L │
00:02:57 #1134 [Verbose] > │ Test case 6. D. Time: 3848L │
00:02:57 #1135 [Verbose] > │ Test case 7. E. Time: 2106L │
00:02:57 #1136 [Verbose] > │ Test case 8. F. Time: 1573L │
00:02:57 #1137 [Verbose] > │ Test case 9. FA. Time: 2162L │
00:02:57 #1138 [Verbose] > │ Test case 10. FB. Time: 2762L │
00:02:57 #1139 [Verbose] > │ Test case 11. FC. Time: 3271L │
00:02:57 #1140 [Verbose] > │ │
00:02:57 #1141 [Verbose] > │ Solution: abab │
00:02:57 #1142 [Verbose] > │ Test case 1. A. Time: 1179L │
00:02:57 #1143 [Verbose] > │ Test case 2. B. Time: 1109L │
00:02:57 #1144 [Verbose] > │ Test case 3. C. Time: 1196L │
00:02:57 #1145 [Verbose] > │ Test case 4. CA. Time: 1366L │
00:02:57 #1146 [Verbose] > │ Test case 5. CB. Time: 1344L │
00:02:57 #1147 [Verbose] > │ Test case 6. D. Time: 1424L │
00:02:57 #1148 [Verbose] > │ Test case 7. E. Time: 1043L │
00:02:57 #1149 [Verbose] > │ Test case 8. F. Time: 919L │
00:02:57 #1150 [Verbose] > │ Test case 9. FA. Time: 1099L │
00:02:57 #1151 [Verbose] > │ Test case 10. FB. Time: 1684L │
00:02:57 #1152 [Verbose] > │ Test case 11. FC. Time: 2353L │
00:02:57 #1153 [Verbose] > │ │
00:02:57 #1154 [Verbose] > │ Solution: aa │
00:02:57 #1155 [Verbose] > │ Test case 1. A. Time: 757L │
00:02:57 #1156 [Verbose] > │ Test case 2. B. Time: 861L │
00:02:57 #1157 [Verbose] > │ Test case 3. C. Time: 844L │
00:02:57 #1158 [Verbose] > │ Test case 4. CA. Time: 1033L │
00:02:57 #1159 [Verbose] > │ Test case 5. CB. Time: 934L │
00:02:57 #1160 [Verbose] > │ Test case 6. D. Time: 854L │
00:02:57 #1161 [Verbose] > │ Test case 7. E. Time: 759L │
00:02:57 #1162 [Verbose] > │ Test case 8. F. Time: 604L │
00:02:57 #1163 [Verbose] > │ Test case 9. FA. Time: 754L │
00:02:57 #1164 [Verbose] > │ Test case 10. FB. Time: 1250L │
00:02:57 #1165 [Verbose] > │ Test case 11. FC. Time: 1965L │
00:02:57 #1166 [Verbose] > │ │
00:02:57 #1167 [Verbose] > │ Solution: z │
00:02:57 #1168 [Verbose] > │ Test case 1. A. Time: 414L │
00:02:57 #1169 [Verbose] > │ Test case 2. B. Time: 430L │
00:02:57 #1170 [Verbose] > │ Test case 3. C. Time: 572L │
00:02:57 #1171 [Verbose] > │ Test case 4. CA. Time: 923L │
00:02:57 #1172 [Verbose] > │ Test case 5. CB. Time: 614L │
00:02:57 #1173 [Verbose] > │ Test case 6. D. Time: 514L │
00:02:57 #1174 [Verbose] > │ Test case 7. E. Time: 408L │
00:02:57 #1175 [Verbose] > │ Test case 8. F. Time: 140L │
00:02:57 #1176 [Verbose] > │ Test case 9. FA. Time: 120L │
00:02:57 #1177 [Verbose] > │ Test case 10. FB. Time: 367L │
00:02:57 #1178 [Verbose] > │ Test case 11. FC. Time: 798L │
00:02:57 #1179 [Verbose] > │ │
00:02:57 #1180 [Verbose] > │ Input | Expected │
00:02:57 #1181 [Verbose] > │ │
00:02:57 #1182 [Verbose] > │ | Result │
00:02:57 #1183 [Verbose] > │ │
00:02:57 #1184 [Verbose] > │ | Best │
00:02:57 #1185 [Verbose] > │ --- | --- │
00:02:57 #1186 [Verbose] > │ │
00:02:57 #1187 [Verbose] > │ | --- │
00:02:57 #1188 [Verbose] > │ │
00:02:57 #1189 [Verbose] > │ | --- │
00:02:57 #1190 [Verbose] > │ abc | bca cab abc │
00:02:57 #1191 [Verbose] > │ │
00:02:57 #1192 [Verbose] > │ | bca cab abc │
00:02:57 #1193 [Verbose] > │ │
00:02:57 #1194 [Verbose] > │ | (7, 1061) │
00:02:57 #1195 [Verbose] > │ abcde | bcdea cdeab deabc eabcd abcde │
00:02:57 #1196 [Verbose] > │ | bcdea cdeab deabc eabcd abcde │
00:02:57 #1197 [Verbose] > │ | (8, 994) │
00:02:57 #1198 [Verbose] > │ abcdefghi | bcdefghia cdefghiab defghiabc efghiabcd fghiabcde ghiabcdef │
00:02:57 #1199 [Verbose] > │ hiabcdefg iabcdefgh abcdefghi | bcdefghia cdefghiab defghiabc efghiabcd │
00:02:57 #1200 [Verbose] > │ fghiabcde ghiabcdef hiabcdefg iabcdefgh abcdefghi | (8, 1573) │
00:02:57 #1201 [Verbose] > │ abab | baba abab baba abab │
00:02:57 #1202 [Verbose] > │ | baba abab baba abab │
00:02:57 #1203 [Verbose] > │ | (8, 919) │
00:02:57 #1204 [Verbose] > │ aa | aa aa │
00:02:57 #1205 [Verbose] > │ │
00:02:57 #1206 [Verbose] > │ | aa aa │
00:02:57 #1207 [Verbose] > │ │
00:02:57 #1208 [Verbose] > │ | (8, 604) │
00:02:57 #1209 [Verbose] > │ z | z │
00:02:57 #1210 [Verbose] > │ │
00:02:57 #1211 [Verbose] > │ | z │
00:02:57 #1212 [Verbose] > │ │
00:02:57 #1213 [Verbose] > │ | (9, 120) │
00:02:57 #1214 [Verbose] > │ │
00:02:57 #1215 [Verbose] > │ Average Ranking │
00:02:57 #1216 [Verbose] > │ Test case 8. Average Time: 883L │
00:02:57 #1217 [Verbose] > │ Test case 9. Average Time: 1096L │
00:02:57 #1218 [Verbose] > │ Test case 7. Average Time: 1113L │
00:02:57 #1219 [Verbose] > │ Test case 2. Average Time: 1187L │
00:02:57 #1220 [Verbose] > │ Test case 3. Average Time: 1215L │
00:02:57 #1221 [Verbose] > │ Test case 1. Average Time: 1221L │
00:02:57 #1222 [Verbose] > │ Test case 5. Average Time: 1385L │
00:02:57 #1223 [Verbose] > │ Test case 4. Average Time: 1429L │
00:02:57 #1224 [Verbose] > │ Test case 10. Average Time: 1649L │
00:02:57 #1225 [Verbose] > │ Test case 6. Average Time: 1654L │
00:02:57 #1226 [Verbose] > │ Test case 11. Average Time: 2265L │
00:02:57 #1227 [Verbose] > │ │
00:02:57 #1228 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:57 #1229 [Verbose] >
00:02:57 #1230 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:02:57 #1231 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:57 #1232 [Verbose] > │ ## rotate_strings_tests │
00:02:57 #1233 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:57 #1234 [Verbose] >
00:02:57 #1235 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:57 #1236 [Verbose] > // // test
00:02:57 #1237 [Verbose] > // // timeout=60000
00:02:57 #1238 [Verbose] > // // print_code=true
00:02:57 #1239 [Verbose] >
00:02:57 #1240 [Verbose] > inl get_solutions () =
00:02:57 #1241 [Verbose] > [[
00:02:57 #1242 [Verbose] > // "A",
00:02:57 #1243 [Verbose] > // fun (input : string) =>
00:02:57 #1244 [Verbose] > // let resultList =
00:02:57 #1245 [Verbose] > // List.fold (fun acc x =>
00:02:57 #1246 [Verbose] > // let rotate (text : string) (letter : string) =
00:02:57 #1247 [Verbose] > text.Substring (1, input.Length - 1) + letter
00:02:57 #1248 [Verbose] > // [[ rotate (if acc.IsEmpty then input else acc.Head)
00:02:57 #1249 [Verbose] > (string x) ]] /@ acc
00:02:57 #1250 [Verbose] > // ) [[]] (Seq.toList input)
00:02:57 #1251 [Verbose] >
00:02:57 #1252 [Verbose] > // List.foldBack (fun acc x => x + acc + " ") resultList ""
00:02:57 #1253 [Verbose] > // |> fun x => x.TrimEnd ()
00:02:57 #1254 [Verbose] >
00:02:57 #1255 [Verbose] > // "B",
00:02:57 #1256 [Verbose] > // fun input =>
00:02:57 #1257 [Verbose] > // input
00:02:57 #1258 [Verbose] > // |> Seq.toList
00:02:57 #1259 [Verbose] > // |> List.fold (fun (acc : string list) letter =>
00:02:57 #1260 [Verbose] > // let last =
00:02:57 #1261 [Verbose] > // if acc.IsEmpty
00:02:57 #1262 [Verbose] > // then input
00:02:57 #1263 [Verbose] > // else acc.Head
00:02:57 #1264 [Verbose] >
00:02:57 #1265 [Verbose] > // let item = last.[[1 .. input.Length - 1]] + string letter
00:02:57 #1266 [Verbose] >
00:02:57 #1267 [Verbose] > // item :: acc
00:02:57 #1268 [Verbose] > // ) [[]]
00:02:57 #1269 [Verbose] > // |> List.rev
00:02:57 #1270 [Verbose] > // |> String.concat " "
00:02:57 #1271 [Verbose] >
00:02:57 #1272 [Verbose] > // "C",
00:02:57 #1273 [Verbose] > // fun input =>
00:02:57 #1274 [Verbose] > // input
00:02:57 #1275 [Verbose] > // |> Seq.toList
00:02:57 #1276 [Verbose] > // |> List.fold (fun (acc : list string) letter => acc.Head.[[ 1 ..
00:02:57 #1277 [Verbose] > input.Length - 1 ]] + string letter :: acc) [[ input ]]
00:02:57 #1278 [Verbose] > // |> List.rev
00:02:57 #1279 [Verbose] > // |> List.skip 1
00:02:57 #1280 [Verbose] > // |> String.concat " "
00:02:57 #1281 [Verbose] >
00:02:57 #1282 [Verbose] > // "CA",
00:02:57 #1283 [Verbose] > // fun input =>
00:02:57 #1284 [Verbose] > // input
00:02:57 #1285 [Verbose] > // |> Seq.fold (fun (acc : list string) letter => acc.Head.[[ 1 ..
00:02:57 #1286 [Verbose] > input.Length - 1 ]] + string letter :: acc) [[ input ]]
00:02:57 #1287 [Verbose] > // |> Seq.rev
00:02:57 #1288 [Verbose] > // |> Seq.skip 1
00:02:57 #1289 [Verbose] > // |> String.concat " "
00:02:57 #1290 [Verbose] >
00:02:57 #1291 [Verbose] > // "CB",
00:02:57 #1292 [Verbose] > // fun input =>
00:02:57 #1293 [Verbose] > // input
00:02:57 #1294 [Verbose] > // |> Seq.toArray
00:02:57 #1295 [Verbose] > // |> Array.fold (fun (acc : a _ string) letter => acc |>
00:02:57 #1296 [Verbose] > Array.append (a ;[[ acc.[[0]].[[ 1 .. input.Length - 1 ]] + string letter ]]))
00:02:57 #1297 [Verbose] > (a ;[[ input ]])
00:02:57 #1298 [Verbose] > // |> Array.rev
00:02:57 #1299 [Verbose] > // |> Array.skip 1
00:02:57 #1300 [Verbose] > // |> String.concat " "
00:02:57 #1301 [Verbose] >
00:02:57 #1302 [Verbose] > // "D",
00:02:57 #1303 [Verbose] > // fun input =>
00:02:57 #1304 [Verbose] > // input
00:02:57 #1305 [Verbose] > // |> Seq.toList
00:02:57 #1306 [Verbose] > // |> fun list =>
00:02:57 #1307 [Verbose] > // let rec loop (acc : list (list char)) = function
00:02:57 #1308 [Verbose] > // | _ when acc.Length = list.Length => acc
00:02:57 #1309 [Verbose] > // | head :: tail =>
00:02:57 #1310 [Verbose] > // let item = tail /@ [[ head ]]
00:02:57 #1311 [Verbose] > // loop (item :: acc) item
00:02:57 #1312 [Verbose] > // | [[]] => [[]]
00:02:57 #1313 [Verbose] > // loop [[]] list
00:02:57 #1314 [Verbose] > // |> List.rev
00:02:57 #1315 [Verbose] > // |> List.map (List.toArray >> String)
00:02:57 #1316 [Verbose] > // |> String.concat " "
00:02:57 #1317 [Verbose] >
00:02:57 #1318 [Verbose] > // "E",
00:02:57 #1319 [Verbose] > // fun input =>
00:02:57 #1320 [Verbose] > // input
00:02:57 #1321 [Verbose] > // |> Seq.toList
00:02:57 #1322 [Verbose] > // |> fun list =>
00:02:57 #1323 [Verbose] > // let rec loop (last : string) = function
00:02:57 #1324 [Verbose] > // | head :: tail =>
00:02:57 #1325 [Verbose] > // let item = last.[[1 .. input.Length - 1]] + string
00:02:57 #1326 [Verbose] > head
00:02:57 #1327 [Verbose] > // item :: loop item tail
00:02:57 #1328 [Verbose] > // | [[]] => [[]]
00:02:57 #1329 [Verbose] > // loop input list
00:02:57 #1330 [Verbose] > // |> String.concat " "
00:02:57 #1331 [Verbose] >
00:02:57 #1332 [Verbose] > "F",
00:02:57 #1333 [Verbose] > fun input =>
00:02:57 #1334 [Verbose] > // Array.singleton 0
00:02:57 #1335 [Verbose] > // |> Array.append [[| 1 .. input.Length - 1 |]]
00:02:57 #1336 [Verbose] > // |> Array.map (fun i -> input.[[ i .. ]] + input.[[ .. i - 1 ]])
00:02:57 #1337 [Verbose] > // |> String.concat " "
00:02:57 #1338 [Verbose] > inl input_length = input |> sm.length
00:02:57 #1339 [Verbose] > am.singleton 0i32
00:02:57 #1340 [Verbose] > |> am.append (am'.init_series 1 (input_length - 1) 1)
00:02:57 #1341 [Verbose] > |> am.map (fun i =>
00:02:57 #1342 [Verbose] > inl a = sm.slice input { from = i; to = input_length - 1 } :
00:02:57 #1343 [Verbose] > string
00:02:57 #1344 [Verbose] > inl b = sm.slice input { from = 0; to = i - 1 } : string
00:02:57 #1345 [Verbose] > $"!a + !b" : string
00:02:57 #1346 [Verbose] > )
00:02:57 #1347 [Verbose] > |> sm'.concat " "
00:02:57 #1348 [Verbose] >
00:02:57 #1349 [Verbose] > "FA",
00:02:57 #1350 [Verbose] > fun input =>
00:02:57 #1351 [Verbose] > // List.singleton 0
00:02:57 #1352 [Verbose] > // |> List.append [[ 1 .. input.Length - 1 ]]
00:02:57 #1353 [Verbose] > // // |> List.map (fun i => input.[[ i .. ]] + input.[[ .. i - 1 ]])
00:02:57 #1354 [Verbose] > // |> String.concat " "
00:02:57 #1355 [Verbose] > inl input_length = input |> sm.length
00:02:57 #1356 [Verbose] > listm.singleton 0i32
00:02:57 #1357 [Verbose] > |> listm.append (listm'.init_series 1 (input_length - 1) 1)
00:02:57 #1358 [Verbose] > |> listm.map (fun i =>
00:02:57 #1359 [Verbose] > inl a = sm.slice input { from = i; to = input_length - 1 } :
00:02:57 #1360 [Verbose] > string
00:02:57 #1361 [Verbose] > inl b = if i = 0 then "" else sm.slice input { from = 0; to = i
00:02:57 #1362 [Verbose] > - 1 } : string
00:02:57 #1363 [Verbose] > $"!a + !b" : string
00:02:57 #1364 [Verbose] > )
00:02:57 #1365 [Verbose] > |> listm.toArray
00:02:57 #1366 [Verbose] > |> fun x => x : a i32 _
00:02:57 #1367 [Verbose] > |> sm'.concat " "
00:02:57 #1368 [Verbose] >
00:02:57 #1369 [Verbose] > // "FB",
00:02:57 #1370 [Verbose] > // fun input =>
00:02:57 #1371 [Verbose] > // Seq.singleton 0
00:02:57 #1372 [Verbose] > // // |> Seq.append (seq { 1 .. input.Length - 1 })
00:02:57 #1373 [Verbose] > // // |> Seq.map (fun i => input.[[ i .. ]] + input.[[ .. i - 1 ]])
00:02:57 #1374 [Verbose] > // |> String.concat " "
00:02:57 #1375 [Verbose] >
00:02:57 #1376 [Verbose] > // "FC",
00:02:57 #1377 [Verbose] > // fun input =>
00:02:57 #1378 [Verbose] > // Array.singleton 0
00:02:57 #1379 [Verbose] > // |> Array.append (a ;[[ 1 .. input.Length - 1 ]])
00:02:57 #1380 [Verbose] > // // |> Array.Parallel.map (fun i => input.[[ i .. ]] + input.[[ ..
00:02:57 #1381 [Verbose] > i - 1 ]])
00:02:57 #1382 [Verbose] > // |> String.concat " "
00:02:57 #1383 [Verbose] > ]]
00:02:57 #1384 [Verbose] >
00:02:57 #1385 [Verbose] > inl rec rotate_strings_tests () =
00:02:57 #1386 [Verbose] > inl test_cases = [[
00:02:57 #1387 [Verbose] > "abc", "bca cab abc"
00:02:57 #1388 [Verbose] > "abcde", "bcdea cdeab deabc eabcd abcde"
00:02:57 #1389 [Verbose] > "abcdefghi", "bcdefghia cdefghiab defghiabc efghiabcd fghiabcde
00:02:57 #1390 [Verbose] > ghiabcdef hiabcdefg iabcdefgh abcdefghi"
00:02:57 #1391 [Verbose] > "abab", "baba abab baba abab"
00:02:57 #1392 [Verbose] > "aa", "aa aa"
00:02:57 #1393 [Verbose] > "z", "z"
00:02:57 #1394 [Verbose] > ]]
00:02:57 #1395 [Verbose] >
00:02:57 #1396 [Verbose] > inl solutions = get_solutions ()
00:02:57 #1397 [Verbose] >
00:02:57 #1398 [Verbose] > // inl is_fast () = true
00:02:57 #1399 [Verbose] >
00:02:57 #1400 [Verbose] > inl count =
00:02:57 #1401 [Verbose] > if is_fast ()
00:02:57 #1402 [Verbose] > then 1000i32
00:02:57 #1403 [Verbose] > else 2000000i32
00:02:57 #1404 [Verbose] >
00:02:57 #1405 [Verbose] > run_all (nameof rotate_strings_tests) count solutions test_cases
00:02:57 #1406 [Verbose] > |> sort_result_list
00:02:57 #1407 [Verbose] >
00:02:57 #1408 [Verbose] > rotate_strings_tests ()
00:02:57 #1409 [Verbose] > Building /tmp/!dotnet-repl/20240325-2032-0298-9807-9e5f03ccbbbc/main.spi
00:03:14 #1410 [Verbose] >
00:03:14 #1411 [Verbose] > ╭─[ 16.40s - stdout ]──────────────────────────────────────────────────────────╮
00:03:14 #1412 [Verbose] > │ type UH0 = │
00:03:14 #1413 [Verbose] > │ | UH0_0 of string * string * UH0 │
00:03:14 #1414 [Verbose] > │ | UH0_1 │
00:03:14 #1415 [Verbose] > │ and Mut0 = {mutable l0 : uint64} │
00:03:14 #1416 [Verbose] > │ and Mut1 = {mutable l0 : int32} │
00:03:14 #1417 [Verbose] > │ and UH1 = │
00:03:14 #1418 [Verbose] > │ | UH1_0 of int32 * UH1 │
00:03:14 #1419 [Verbose] > │ | UH1_1 │
00:03:14 #1420 [Verbose] > │ and UH2 = │
00:03:14 #1421 [Verbose] > │ | UH2_0 of string * UH2 │
00:03:14 #1422 [Verbose] > │ | UH2_1 │
00:03:14 #1423 [Verbose] > │ and UH3 = │
00:03:14 #1424 [Verbose] > │ | UH3_0 of int32 * string * (string -> string) * UH3 │
00:03:14 #1425 [Verbose] > │ | UH3_1 │
00:03:14 #1426 [Verbose] > │ and [<Struct>] US0 = │
00:03:14 #1427 [Verbose] > │ | US0_0 │
00:03:14 #1428 [Verbose] > │ | US0_1 of f1_0 : System.ConsoleColor │
00:03:14 #1429 [Verbose] > │ and UH4 = │
00:03:14 #1430 [Verbose] > │ | UH4_0 of int64 * int64 * UH4 │
00:03:14 #1431 [Verbose] > │ | UH4_1 │
00:03:14 #1432 [Verbose] > │ and Mut2 = {mutable l0 : uint64; mutable l1 : UH4; mutable l2 : int64} │
00:03:14 #1433 [Verbose] > │ and UH5 = │
00:03:14 #1434 [Verbose] > │ | UH5_0 of UH2 * US0 * UH5 │
00:03:14 #1435 [Verbose] > │ | UH5_1 │
00:03:14 #1436 [Verbose] > │ and [<Struct>] US1 = │
00:03:14 #1437 [Verbose] > │ | US1_0 │
00:03:14 #1438 [Verbose] > │ | US1_1 of f1_0 : int64 │
00:03:14 #1439 [Verbose] > │ and UH6 = │
00:03:14 #1440 [Verbose] > │ | UH6_0 of int32 * int64 * UH6 │
00:03:14 #1441 [Verbose] > │ | UH6_1 │
00:03:14 #1442 [Verbose] > │ and Mut3 = {mutable l0 : uint64; mutable l1 : UH6; mutable l2 : int32} │
00:03:14 #1443 [Verbose] > │ and UH7 = │
00:03:14 #1444 [Verbose] > │ | UH7_0 of int32 * string * UH7 │
00:03:14 #1445 [Verbose] > │ | UH7_1 │
00:03:14 #1446 [Verbose] > │ let rec method2 (v0 : UH0, v1 : uint64) : uint64 = │
00:03:14 #1447 [Verbose] > │ match v0 with │
00:03:14 #1448 [Verbose] > │ | UH0_0(v2, v3, v4) -> (* Cons *) │
00:03:14 #1449 [Verbose] > │ let v5 : uint64 = v1 + 1UL │
00:03:14 #1450 [Verbose] > │ method2(v4, v5) │
00:03:14 #1451 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:03:14 #1452 [Verbose] > │ v1 │
00:03:14 #1453 [Verbose] > │ and method3 (v0 : (struct (string * string) []), v1 : UH0, v2 : uint64) : │
00:03:14 #1454 [Verbose] > │ uint64 = │
00:03:14 #1455 [Verbose] > │ match v1 with │
00:03:14 #1456 [Verbose] > │ | UH0_0(v3, v4, v5) -> (* Cons *) │
00:03:14 #1457 [Verbose] > │ v0.[int v2] <- struct (v3, v4) │
00:03:14 #1458 [Verbose] > │ let v6 : uint64 = v2 + 1UL │
00:03:14 #1459 [Verbose] > │ method3(v0, v5, v6) │
00:03:14 #1460 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:03:14 #1461 [Verbose] > │ v2 │
00:03:14 #1462 [Verbose] > │ and method1 (v0 : UH0) : (struct (string * string) []) = │
00:03:14 #1463 [Verbose] > │ let v1 : uint64 = 0UL │
00:03:14 #1464 [Verbose] > │ let v2 : uint64 = method2(v0, v1) │
00:03:14 #1465 [Verbose] > │ let v3 : (struct (string * string) []) = Array.zeroCreate<struct (string │
00:03:14 #1466 [Verbose] > │ * string)> (System.Convert.ToInt32(v2)) │
00:03:14 #1467 [Verbose] > │ let v4 : uint64 = 0UL │
00:03:14 #1468 [Verbose] > │ let v5 : uint64 = method3(v3, v0, v4) │
00:03:14 #1469 [Verbose] > │ v3 │
00:03:14 #1470 [Verbose] > │ and method4 (v0 : uint64, v1 : Mut0) : bool = │
00:03:14 #1471 [Verbose] > │ let v2 : uint64 = v1.l0 │
00:03:14 #1472 [Verbose] > │ let v3 : bool = v2 < v0 │
00:03:14 #1473 [Verbose] > │ v3 │
00:03:14 #1474 [Verbose] > │ and method5 (v0 : int32, v1 : Mut1) : bool = │
00:03:14 #1475 [Verbose] > │ let v2 : int32 = v1.l0 │
00:03:14 #1476 [Verbose] > │ let v3 : bool = v2 < v0 │
00:03:14 #1477 [Verbose] > │ v3 │
00:03:14 #1478 [Verbose] > │ and closure1 () (v0 : string) : string = │
00:03:14 #1479 [Verbose] > │ let v1 : int32 = v0.Length │
00:03:14 #1480 [Verbose] > │ let v2 : (int32 []) = Array.zeroCreate<int32> (1) │
00:03:14 #1481 [Verbose] > │ v2.[int 0] <- 0 │
00:03:14 #1482 [Verbose] > │ let v3 : int32 = v1 - 1 │
00:03:14 #1483 [Verbose] > │ let v4 : int32 = v3 - 1 │
00:03:14 #1484 [Verbose] > │ let v5 : int32 = v4 + 1 │
00:03:14 #1485 [Verbose] > │ let v6 : (int32 []) = Array.zeroCreate<int32> (v5) │
00:03:14 #1486 [Verbose] > │ let v7 : Mut1 = {l0 = 0} : Mut1 │
00:03:14 #1487 [Verbose] > │ while method5(v5, v7) do │
00:03:14 #1488 [Verbose] > │ let v9 : int32 = v7.l0 │
00:03:14 #1489 [Verbose] > │ let v10 : int32 = 1 + v9 │
00:03:14 #1490 [Verbose] > │ v6.[int v9] <- v10 │
00:03:14 #1491 [Verbose] > │ let v11 : int32 = v9 + 1 │
00:03:14 #1492 [Verbose] > │ v7.l0 <- v11 │
00:03:14 #1493 [Verbose] > │ () │
00:03:14 #1494 [Verbose] > │ let v12 : int32 = v6.Length │
00:03:14 #1495 [Verbose] > │ let v13 : int32 = v2.Length │
00:03:14 #1496 [Verbose] > │ let v14 : int32 = v12 + v13 │
00:03:14 #1497 [Verbose] > │ let v15 : (int32 []) = Array.zeroCreate<int32> (v14) │
00:03:14 #1498 [Verbose] > │ let v16 : Mut1 = {l0 = 0} : Mut1 │
00:03:14 #1499 [Verbose] > │ while method5(v14, v16) do │
00:03:14 #1500 [Verbose] > │ let v18 : int32 = v16.l0 │
00:03:14 #1501 [Verbose] > │ let v19 : bool = v18 < v12 │
00:03:14 #1502 [Verbose] > │ let v23 : int32 = │
00:03:14 #1503 [Verbose] > │ if v19 then │
00:03:14 #1504 [Verbose] > │ let v20 : int32 = v6.[int v18] │
00:03:14 #1505 [Verbose] > │ v20 │
00:03:14 #1506 [Verbose] > │ else │
00:03:14 #1507 [Verbose] > │ let v21 : int32 = v18 - v12 │
00:03:14 #1508 [Verbose] > │ let v22 : int32 = v2.[int v21] │
00:03:14 #1509 [Verbose] > │ v22 │
00:03:14 #1510 [Verbose] > │ v15.[int v18] <- v23 │
00:03:14 #1511 [Verbose] > │ let v24 : int32 = v18 + 1 │
00:03:14 #1512 [Verbose] > │ v16.l0 <- v24 │
00:03:14 #1513 [Verbose] > │ () │
00:03:14 #1514 [Verbose] > │ let v25 : int32 = v15.Length │
00:03:14 #1515 [Verbose] > │ let v26 : (string []) = Array.zeroCreate<string> (v25) │
00:03:14 #1516 [Verbose] > │ let v27 : Mut1 = {l0 = 0} : Mut1 │
00:03:14 #1517 [Verbose] > │ while method5(v25, v27) do │
00:03:14 #1518 [Verbose] > │ let v29 : int32 = v27.l0 │
00:03:14 #1519 [Verbose] > │ let v30 : int32 = v15.[int v29] │
00:03:14 #1520 [Verbose] > │ let v31 : string = v0.[int v30..int v3] │
00:03:14 #1521 [Verbose] > │ let v32 : int32 = v30 - 1 │
00:03:14 #1522 [Verbose] > │ let v33 : string = v0.[int 0..int v32] │
00:03:14 #1523 [Verbose] > │ let v34 : string = v31 + v33 │
00:03:14 #1524 [Verbose] > │ v26.[int v29] <- v34 │
00:03:14 #1525 [Verbose] > │ let v35 : int32 = v29 + 1 │
00:03:14 #1526 [Verbose] > │ v27.l0 <- v35 │
00:03:14 #1527 [Verbose] > │ () │
00:03:14 #1528 [Verbose] > │ let v36 : string = " " │
00:03:14 #1529 [Verbose] > │ let v37 : string = v26 |> String.concat v36 │
00:03:14 #1530 [Verbose] > │ v37 │
00:03:14 #1531 [Verbose] > │ and method6 (v0 : float, v1 : float) : UH1 = │
00:03:14 #1532 [Verbose] > │ let v2 : bool = v1 < v0 │
00:03:14 #1533 [Verbose] > │ if v2 then │
00:03:14 #1534 [Verbose] > │ let v3 : int32 = int32 v1 │
00:03:14 #1535 [Verbose] > │ let v4 : int32 = 1 + v3 │
00:03:14 #1536 [Verbose] > │ let v5 : float = v1 + 1.0 │
00:03:14 #1537 [Verbose] > │ let v6 : UH1 = method6(v0, v5) │
00:03:14 #1538 [Verbose] > │ UH1_0(v4, v6) │
00:03:14 #1539 [Verbose] > │ else │
00:03:14 #1540 [Verbose] > │ UH1_1 │
00:03:14 #1541 [Verbose] > │ and method7 (v0 : UH1, v1 : UH1) : UH1 = │
00:03:14 #1542 [Verbose] > │ match v0 with │
00:03:14 #1543 [Verbose] > │ | UH1_0(v2, v3) -> (* Cons *) │
00:03:14 #1544 [Verbose] > │ let v4 : UH1 = method7(v3, v1) │
00:03:14 #1545 [Verbose] > │ UH1_0(v2, v4) │
00:03:14 #1546 [Verbose] > │ | UH1_1 -> (* Nil *) │
00:03:14 #1547 [Verbose] > │ v1 │
00:03:14 #1548 [Verbose] > │ and method8 (v0 : string, v1 : int32, v2 : UH1, v3 : UH2) : UH2 = │
00:03:14 #1549 [Verbose] > │ match v2 with │
00:03:14 #1550 [Verbose] > │ | UH1_0(v4, v5) -> (* Cons *) │
00:03:14 #1551 [Verbose] > │ let v6 : UH2 = method8(v0, v1, v5, v3) │
00:03:14 #1552 [Verbose] > │ let v7 : int32 = v1 - 1 │
00:03:14 #1553 [Verbose] > │ let v8 : string = v0.[int v4..int v7] │
00:03:14 #1554 [Verbose] > │ let v9 : bool = v4 = 0 │
00:03:14 #1555 [Verbose] > │ let v13 : string = │
00:03:14 #1556 [Verbose] > │ if v9 then │
00:03:14 #1557 [Verbose] > │ let v10 : string = "" │
00:03:14 #1558 [Verbose] > │ v10 │
00:03:14 #1559 [Verbose] > │ else │
00:03:14 #1560 [Verbose] > │ let v11 : int32 = v4 - 1 │
00:03:14 #1561 [Verbose] > │ let v12 : string = v0.[int 0..int v11] │
00:03:14 #1562 [Verbose] > │ v12 │
00:03:14 #1563 [Verbose] > │ let v14 : string = v8 + v13 │
00:03:14 #1564 [Verbose] > │ UH2_0(v14, v6) │
00:03:14 #1565 [Verbose] > │ | UH1_1 -> (* Nil *) │
00:03:14 #1566 [Verbose] > │ v3 │
00:03:14 #1567 [Verbose] > │ and method10 (v0 : UH2, v1 : int32) : int32 = │
00:03:14 #1568 [Verbose] > │ match v0 with │
00:03:14 #1569 [Verbose] > │ | UH2_0(v2, v3) -> (* Cons *) │
00:03:14 #1570 [Verbose] > │ let v4 : int32 = v1 + 1 │
00:03:14 #1571 [Verbose] > │ method10(v3, v4) │
00:03:14 #1572 [Verbose] > │ | UH2_1 -> (* Nil *) │
00:03:14 #1573 [Verbose] > │ v1 │
00:03:14 #1574 [Verbose] > │ and method11 (v0 : (string []), v1 : UH2, v2 : int32) : int32 = │
00:03:14 #1575 [Verbose] > │ match v1 with │
00:03:14 #1576 [Verbose] > │ | UH2_0(v3, v4) -> (* Cons *) │
00:03:14 #1577 [Verbose] > │ v0.[int v2] <- v3 │
00:03:14 #1578 [Verbose] > │ let v5 : int32 = v2 + 1 │
00:03:14 #1579 [Verbose] > │ method11(v0, v4, v5) │
00:03:14 #1580 [Verbose] > │ | UH2_1 -> (* Nil *) │
00:03:14 #1581 [Verbose] > │ v2 │
00:03:14 #1582 [Verbose] > │ and method9 (v0 : UH2) : (string []) = │
00:03:14 #1583 [Verbose] > │ let v1 : int32 = 0 │
00:03:14 #1584 [Verbose] > │ let v2 : int32 = method10(v0, v1) │
00:03:14 #1585 [Verbose] > │ let v3 : (string []) = Array.zeroCreate<string> (v2) │
00:03:14 #1586 [Verbose] > │ let v4 : int32 = 0 │
00:03:14 #1587 [Verbose] > │ let v5 : int32 = method11(v3, v0, v4) │
00:03:14 #1588 [Verbose] > │ v3 │
00:03:14 #1589 [Verbose] > │ and closure2 () (v0 : string) : string = │
00:03:14 #1590 [Verbose] > │ let v1 : int32 = v0.Length │
00:03:14 #1591 [Verbose] > │ let v2 : int32 = v1 - 1 │
00:03:14 #1592 [Verbose] > │ let v3 : int32 = v2 - 1 │
00:03:14 #1593 [Verbose] > │ let v4 : float = float v3 │
00:03:14 #1594 [Verbose] > │ let v5 : float = v4 + 1.0 │
00:03:14 #1595 [Verbose] > │ let v6 : float = 0.0 │
00:03:14 #1596 [Verbose] > │ let v7 : UH1 = method6(v5, v6) │
00:03:14 #1597 [Verbose] > │ let v8 : int32 = 0 │
00:03:14 #1598 [Verbose] > │ let v9 : UH1 = UH1_1 │
00:03:14 #1599 [Verbose] > │ let v10 : UH1 = UH1_0(v8, v9) │
00:03:14 #1600 [Verbose] > │ let v11 : UH1 = method7(v7, v10) │
00:03:14 #1601 [Verbose] > │ let v12 : UH2 = UH2_1 │
00:03:14 #1602 [Verbose] > │ let v13 : UH2 = method8(v0, v1, v11, v12) │
00:03:14 #1603 [Verbose] > │ let v14 : (string []) = method9(v13) │
00:03:14 #1604 [Verbose] > │ let v15 : string = " " │
00:03:14 #1605 [Verbose] > │ let v16 : string = v14 |> String.concat v15 │
00:03:14 #1606 [Verbose] > │ v16 │
00:03:14 #1607 [Verbose] > │ and method13 (v0 : UH3, v1 : uint64) : uint64 = │
00:03:14 #1608 [Verbose] > │ match v0 with │
00:03:14 #1609 [Verbose] > │ | UH3_0(v2, v3, v4, v5) -> (* Cons *) │
00:03:14 #1610 [Verbose] > │ let v6 : uint64 = v1 + 1UL │
00:03:14 #1611 [Verbose] > │ method13(v5, v6) │
00:03:14 #1612 [Verbose] > │ | UH3_1 -> (* Nil *) │
00:03:14 #1613 [Verbose] > │ v1 │
00:03:14 #1614 [Verbose] > │ and method14 (v0 : (struct (int32 * string * (string -> string)) []), v1 : │
00:03:14 #1615 [Verbose] > │ UH3, v2 : uint64) : uint64 = │
00:03:14 #1616 [Verbose] > │ match v1 with │
00:03:14 #1617 [Verbose] > │ | UH3_0(v3, v4, v5, v6) -> (* Cons *) │
00:03:14 #1618 [Verbose] > │ v0.[int v2] <- struct (v3, v4, v5) │
00:03:14 #1619 [Verbose] > │ let v7 : uint64 = v2 + 1UL │
00:03:14 #1620 [Verbose] > │ method14(v0, v6, v7) │
00:03:14 #1621 [Verbose] > │ | UH3_1 -> (* Nil *) │
00:03:14 #1622 [Verbose] > │ v2 │
00:03:14 #1623 [Verbose] > │ and method12 (v0 : UH3) : (struct (int32 * string * (string -> string)) []) │
00:03:14 #1624 [Verbose] > │ = │
00:03:14 #1625 [Verbose] > │ let v1 : uint64 = 0UL │
00:03:14 #1626 [Verbose] > │ let v2 : uint64 = method13(v0, v1) │
00:03:14 #1627 [Verbose] > │ let v3 : (struct (int32 * string * (string -> string)) []) = │
00:03:14 #1628 [Verbose] > │ Array.zeroCreate<struct (int32 * string * (string -> string))> │
00:03:14 #1629 [Verbose] > │ (System.Convert.ToInt32(v2)) │
00:03:14 #1630 [Verbose] > │ let v4 : uint64 = 0UL │
00:03:14 #1631 [Verbose] > │ let v5 : uint64 = method14(v3, v0, v4) │
00:03:14 #1632 [Verbose] > │ v3 │
00:03:14 #1633 [Verbose] > │ and method15 (v0 : Mut1) : bool = │
00:03:14 #1634 [Verbose] > │ let v1 : int32 = v0.l0 │
00:03:14 #1635 [Verbose] > │ let v2 : bool = v1 < 2000001 │
00:03:14 #1636 [Verbose] > │ v2 │
00:03:14 #1637 [Verbose] > │ and closure3 (v0 : string, v1 : (string -> string)) (v2 : int32) : string = │
00:03:14 #1638 [Verbose] > │ v1 v0 │
00:03:14 #1639 [Verbose] > │ and method16 (v0 : string, v1 : (string []), v2 : uint64) : bool = │
00:03:14 #1640 [Verbose] > │ let v3 : uint64 = System.Convert.ToUInt64 v1.Length │
00:03:14 #1641 [Verbose] > │ let v4 : bool = v2 < v3 │
00:03:14 #1642 [Verbose] > │ if v4 then │
00:03:14 #1643 [Verbose] > │ let v5 : string = v1.[int v2] │
00:03:14 #1644 [Verbose] > │ let v6 : bool = v0 = v5 │
00:03:14 #1645 [Verbose] > │ if v6 then │
00:03:14 #1646 [Verbose] > │ let v7 : uint64 = v2 + 1UL │
00:03:14 #1647 [Verbose] > │ method16(v0, v1, v7) │
00:03:14 #1648 [Verbose] > │ else │
00:03:14 #1649 [Verbose] > │ false │
00:03:14 #1650 [Verbose] > │ else │
00:03:14 #1651 [Verbose] > │ true │
00:03:14 #1652 [Verbose] > │ and method17 (v0 : uint64, v1 : Mut2) : bool = │
00:03:14 #1653 [Verbose] > │ let v2 : uint64 = v1.l0 │
00:03:14 #1654 [Verbose] > │ let v3 : bool = v2 < v0 │
00:03:14 #1655 [Verbose] > │ v3 │
00:03:14 #1656 [Verbose] > │ and method18 (v0 : UH4, v1 : UH4) : UH4 = │
00:03:14 #1657 [Verbose] > │ match v0 with │
00:03:14 #1658 [Verbose] > │ | UH4_0(v2, v3, v4) -> (* Cons *) │
00:03:14 #1659 [Verbose] > │ let v5 : UH4 = UH4_0(v2, v3, v1) │
00:03:14 #1660 [Verbose] > │ method18(v4, v5) │
00:03:14 #1661 [Verbose] > │ | UH4_1 -> (* Nil *) │
00:03:14 #1662 [Verbose] > │ v1 │
00:03:14 #1663 [Verbose] > │ and method20 (v0 : UH4, v1 : int32) : int32 = │
00:03:14 #1664 [Verbose] > │ match v0 with │
00:03:14 #1665 [Verbose] > │ | UH4_0(v2, v3, v4) -> (* Cons *) │
00:03:14 #1666 [Verbose] > │ let v5 : int32 = v1 + 1 │
00:03:14 #1667 [Verbose] > │ method20(v4, v5) │
00:03:14 #1668 [Verbose] > │ | UH4_1 -> (* Nil *) │
00:03:14 #1669 [Verbose] > │ v1 │
00:03:14 #1670 [Verbose] > │ and method21 (v0 : (struct (int64 * int64) []), v1 : UH4, v2 : int32) : │
00:03:14 #1671 [Verbose] > │ int32 = │
00:03:14 #1672 [Verbose] > │ match v1 with │
00:03:14 #1673 [Verbose] > │ | UH4_0(v3, v4, v5) -> (* Cons *) │
00:03:14 #1674 [Verbose] > │ v0.[int v2] <- struct (v3, v4) │
00:03:14 #1675 [Verbose] > │ let v6 : int32 = v2 + 1 │
00:03:14 #1676 [Verbose] > │ method21(v0, v5, v6) │
00:03:14 #1677 [Verbose] > │ | UH4_1 -> (* Nil *) │
00:03:14 #1678 [Verbose] > │ v2 │
00:03:14 #1679 [Verbose] > │ and method19 (v0 : UH4) : (struct (int64 * int64) []) = │
00:03:14 #1680 [Verbose] > │ let v1 : int32 = 0 │
00:03:14 #1681 [Verbose] > │ let v2 : int32 = method20(v0, v1) │
00:03:14 #1682 [Verbose] > │ let v3 : (struct (int64 * int64) []) = Array.zeroCreate<struct (int64 * │
00:03:14 #1683 [Verbose] > │ int64)> (v2) │
00:03:14 #1684 [Verbose] > │ let v4 : int32 = 0 │
00:03:14 #1685 [Verbose] > │ let v5 : int32 = method21(v3, v0, v4) │
00:03:14 #1686 [Verbose] > │ v3 │
00:03:14 #1687 [Verbose] > │ and closure4 () struct (v0 : int64, v1 : int64) : int64 = │
00:03:14 #1688 [Verbose] > │ v1 │
00:03:14 #1689 [Verbose] > │ and method23 (v0 : UH5, v1 : uint64) : uint64 = │
00:03:14 #1690 [Verbose] > │ match v0 with │
00:03:14 #1691 [Verbose] > │ | UH5_0(v2, v3, v4) -> (* Cons *) │
00:03:14 #1692 [Verbose] > │ let v5 : uint64 = v1 + 1UL │
00:03:14 #1693 [Verbose] > │ method23(v4, v5) │
00:03:14 #1694 [Verbose] > │ | UH5_1 -> (* Nil *) │
00:03:14 #1695 [Verbose] > │ v1 │
00:03:14 #1696 [Verbose] > │ and method24 (v0 : (struct (UH2 * US0) []), v1 : UH5, v2 : uint64) : uint64 │
00:03:14 #1697 [Verbose] > │ = │
00:03:14 #1698 [Verbose] > │ match v1 with │
00:03:14 #1699 [Verbose] > │ | UH5_0(v3, v4, v5) -> (* Cons *) │
00:03:14 #1700 [Verbose] > │ v0.[int v2] <- struct (v3, v4) │
00:03:14 #1701 [Verbose] > │ let v6 : uint64 = v2 + 1UL │
00:03:14 #1702 [Verbose] > │ method24(v0, v5, v6) │
00:03:14 #1703 [Verbose] > │ | UH5_1 -> (* Nil *) │
00:03:14 #1704 [Verbose] > │ v2 │
00:03:14 #1705 [Verbose] > │ and method22 (v0 : UH5) : (struct (UH2 * US0) []) = │
00:03:14 #1706 [Verbose] > │ let v1 : uint64 = 0UL │
00:03:14 #1707 [Verbose] > │ let v2 : uint64 = method23(v0, v1) │
00:03:14 #1708 [Verbose] > │ let v3 : (struct (UH2 * US0) []) = Array.zeroCreate<struct (UH2 * US0)> │
00:03:14 #1709 [Verbose] > │ (System.Convert.ToInt32(v2)) │
00:03:14 #1710 [Verbose] > │ let v4 : uint64 = 0UL │
00:03:14 #1711 [Verbose] > │ let v5 : uint64 = method24(v3, v0, v4) │
00:03:14 #1712 [Verbose] > │ v3 │
00:03:14 #1713 [Verbose] > │ and method26 (v0 : UH2, v1 : uint64) : uint64 = │
00:03:14 #1714 [Verbose] > │ match v0 with │
00:03:14 #1715 [Verbose] > │ | UH2_0(v2, v3) -> (* Cons *) │
00:03:14 #1716 [Verbose] > │ let v4 : uint64 = v1 + 1UL │
00:03:14 #1717 [Verbose] > │ method26(v3, v4) │
00:03:14 #1718 [Verbose] > │ | UH2_1 -> (* Nil *) │
00:03:14 #1719 [Verbose] > │ v1 │
00:03:14 #1720 [Verbose] > │ and method27 (v0 : (string []), v1 : UH2, v2 : uint64) : uint64 = │
00:03:14 #1721 [Verbose] > │ match v1 with │
00:03:14 #1722 [Verbose] > │ | UH2_0(v3, v4) -> (* Cons *) │
00:03:14 #1723 [Verbose] > │ v0.[int v2] <- v3 │
00:03:14 #1724 [Verbose] > │ let v5 : uint64 = v2 + 1UL │
00:03:14 #1725 [Verbose] > │ method27(v0, v4, v5) │
00:03:14 #1726 [Verbose] > │ | UH2_1 -> (* Nil *) │
00:03:14 #1727 [Verbose] > │ v2 │
00:03:14 #1728 [Verbose] > │ and method25 (v0 : UH2) : (string []) = │
00:03:14 #1729 [Verbose] > │ let v1 : uint64 = 0UL │
00:03:14 #1730 [Verbose] > │ let v2 : uint64 = method26(v0, v1) │
00:03:14 #1731 [Verbose] > │ let v3 : (string []) = Array.zeroCreate<string> │
00:03:14 #1732 [Verbose] > │ (System.Convert.ToInt32(v2)) │
00:03:14 #1733 [Verbose] > │ let v4 : uint64 = 0UL │
00:03:14 #1734 [Verbose] > │ let v5 : uint64 = method27(v3, v0, v4) │
00:03:14 #1735 [Verbose] > │ v3 │
00:03:14 #1736 [Verbose] > │ and closure5 () (v0 : int64) : US1 = │
00:03:14 #1737 [Verbose] > │ US1_1(v0) │
00:03:14 #1738 [Verbose] > │ and method28 (v0 : uint64, v1 : Mut3) : bool = │
00:03:14 #1739 [Verbose] > │ let v2 : uint64 = v1.l0 │
00:03:14 #1740 [Verbose] > │ let v3 : bool = v2 < v0 │
00:03:14 #1741 [Verbose] > │ v3 │
00:03:14 #1742 [Verbose] > │ and method29 (v0 : UH6, v1 : UH6) : UH6 = │
00:03:14 #1743 [Verbose] > │ match v0 with │
00:03:14 #1744 [Verbose] > │ | UH6_0(v2, v3, v4) -> (* Cons *) │
00:03:14 #1745 [Verbose] > │ let v5 : UH6 = UH6_0(v2, v3, v1) │
00:03:14 #1746 [Verbose] > │ method29(v4, v5) │
00:03:14 #1747 [Verbose] > │ | UH6_1 -> (* Nil *) │
00:03:14 #1748 [Verbose] > │ v1 │
00:03:14 #1749 [Verbose] > │ and method31 (v0 : UH6, v1 : int32) : int32 = │
00:03:14 #1750 [Verbose] > │ match v0 with │
00:03:14 #1751 [Verbose] > │ | UH6_0(v2, v3, v4) -> (* Cons *) │
00:03:14 #1752 [Verbose] > │ let v5 : int32 = v1 + 1 │
00:03:14 #1753 [Verbose] > │ method31(v4, v5) │
00:03:14 #1754 [Verbose] > │ | UH6_1 -> (* Nil *) │
00:03:14 #1755 [Verbose] > │ v1 │
00:03:14 #1756 [Verbose] > │ and method32 (v0 : (struct (int32 * int64) []), v1 : UH6, v2 : int32) : │
00:03:14 #1757 [Verbose] > │ int32 = │
00:03:14 #1758 [Verbose] > │ match v1 with │
00:03:14 #1759 [Verbose] > │ | UH6_0(v3, v4, v5) -> (* Cons *) │
00:03:14 #1760 [Verbose] > │ v0.[int v2] <- struct (v3, v4) │
00:03:14 #1761 [Verbose] > │ let v6 : int32 = v2 + 1 │
00:03:14 #1762 [Verbose] > │ method32(v0, v5, v6) │
00:03:14 #1763 [Verbose] > │ | UH6_1 -> (* Nil *) │
00:03:14 #1764 [Verbose] > │ v2 │
00:03:14 #1765 [Verbose] > │ and method30 (v0 : UH6) : (struct (int32 * int64) []) = │
00:03:14 #1766 [Verbose] > │ let v1 : int32 = 0 │
00:03:14 #1767 [Verbose] > │ let v2 : int32 = method31(v0, v1) │
00:03:14 #1768 [Verbose] > │ let v3 : (struct (int32 * int64) []) = Array.zeroCreate<struct (int32 * │
00:03:14 #1769 [Verbose] > │ int64)> (v2) │
00:03:14 #1770 [Verbose] > │ let v4 : int32 = 0 │
00:03:14 #1771 [Verbose] > │ let v5 : int32 = method32(v3, v0, v4) │
00:03:14 #1772 [Verbose] > │ v3 │
00:03:14 #1773 [Verbose] > │ and method33 (v0 : UH2, v1 : UH7, v2 : int32) : struct (UH7 * int32) = │
00:03:14 #1774 [Verbose] > │ match v0 with │
00:03:14 #1775 [Verbose] > │ | UH2_0(v3, v4) -> (* Cons *) │
00:03:14 #1776 [Verbose] > │ let v5 : int32 = v2 + 1 │
00:03:14 #1777 [Verbose] > │ let v6 : UH7 = UH7_0(v2, v3, v1) │
00:03:14 #1778 [Verbose] > │ method33(v4, v6, v5) │
00:03:14 #1779 [Verbose] > │ | UH2_1 -> (* Nil *) │
00:03:14 #1780 [Verbose] > │ struct (v1, v2) │
00:03:14 #1781 [Verbose] > │ and method34 (v0 : UH7, v1 : UH7) : UH7 = │
00:03:14 #1782 [Verbose] > │ match v0 with │
00:03:14 #1783 [Verbose] > │ | UH7_0(v2, v3, v4) -> (* Cons *) │
00:03:14 #1784 [Verbose] > │ let v5 : UH7 = UH7_0(v2, v3, v1) │
00:03:14 #1785 [Verbose] > │ method34(v4, v5) │
00:03:14 #1786 [Verbose] > │ | UH7_1 -> (* Nil *) │
00:03:14 #1787 [Verbose] > │ v1 │
00:03:14 #1788 [Verbose] > │ and method35 (v0 : Map<int32, int64>, v1 : UH7, v2 : UH2) : UH2 = │
00:03:14 #1789 [Verbose] > │ match v1 with │
00:03:14 #1790 [Verbose] > │ | UH7_0(v3, v4, v5) -> (* Cons *) │
00:03:14 #1791 [Verbose] > │ let v6 : UH2 = method35(v0, v5, v2) │
00:03:14 #1792 [Verbose] > │ let v7 : int64 = v0.[v3] │
00:03:14 #1793 [Verbose] > │ let v8 : int32 = int32 v7 │
00:03:14 #1794 [Verbose] > │ let v9 : string = v4.PadRight v8 │
00:03:14 #1795 [Verbose] > │ UH2_0(v9, v6) │
00:03:14 #1796 [Verbose] > │ | UH7_1 -> (* Nil *) │
00:03:14 #1797 [Verbose] > │ v2 │
00:03:14 #1798 [Verbose] > │ and method37 (v0 : UH6, v1 : uint64) : uint64 = │
00:03:14 #1799 [Verbose] > │ match v0 with │
00:03:14 #1800 [Verbose] > │ | UH6_0(v2, v3, v4) -> (* Cons *) │
00:03:14 #1801 [Verbose] > │ let v5 : uint64 = v1 + 1UL │
00:03:14 #1802 [Verbose] > │ method37(v4, v5) │
00:03:14 #1803 [Verbose] > │ | UH6_1 -> (* Nil *) │
00:03:14 #1804 [Verbose] > │ v1 │
00:03:14 #1805 [Verbose] > │ and method38 (v0 : (struct (int32 * int64) []), v1 : UH6, v2 : uint64) : │
00:03:14 #1806 [Verbose] > │ uint64 = │
00:03:14 #1807 [Verbose] > │ match v1 with │
00:03:14 #1808 [Verbose] > │ | UH6_0(v3, v4, v5) -> (* Cons *) │
00:03:14 #1809 [Verbose] > │ v0.[int v2] <- struct (v3, v4) │
00:03:14 #1810 [Verbose] > │ let v6 : uint64 = v2 + 1UL │
00:03:14 #1811 [Verbose] > │ method38(v0, v5, v6) │
00:03:14 #1812 [Verbose] > │ | UH6_1 -> (* Nil *) │
00:03:14 #1813 [Verbose] > │ v2 │
00:03:14 #1814 [Verbose] > │ and method36 (v0 : UH6) : (struct (int32 * int64) []) = │
00:03:14 #1815 [Verbose] > │ let v1 : uint64 = 0UL │
00:03:14 #1816 [Verbose] > │ let v2 : uint64 = method37(v0, v1) │
00:03:14 #1817 [Verbose] > │ let v3 : (struct (int32 * int64) []) = Array.zeroCreate<struct (int32 * │
00:03:14 #1818 [Verbose] > │ int64)> (System.Convert.ToInt32(v2)) │
00:03:14 #1819 [Verbose] > │ let v4 : uint64 = 0UL │
00:03:14 #1820 [Verbose] > │ let v5 : uint64 = method38(v3, v0, v4) │
00:03:14 #1821 [Verbose] > │ v3 │
00:03:14 #1822 [Verbose] > │ and closure6 () struct (v0 : int32, v1 : int64) : int64 = │
00:03:14 #1823 [Verbose] > │ v1 │
00:03:14 #1824 [Verbose] > │ and closure0 () () : unit = │
00:03:14 #1825 [Verbose] > │ let v0 : (unit -> unit) = closure0() │
00:03:14 #1826 [Verbose] > │ let v1 : string = nameof v0 │
00:03:14 #1827 [Verbose] > │ let v2 : string = "" │
00:03:14 #1828 [Verbose] > │ System.Console.WriteLine v2 │
00:03:14 #1829 [Verbose] > │ System.Console.WriteLine v2 │
00:03:14 #1830 [Verbose] > │ let v3 : string = $"Test: {v1}" │
00:03:14 #1831 [Verbose] > │ System.Console.WriteLine v3 │
00:03:14 #1832 [Verbose] > │ let v4 : string = "abc" │
00:03:14 #1833 [Verbose] > │ let v5 : string = "bca cab abc" │
00:03:14 #1834 [Verbose] > │ let v6 : string = "abcde" │
00:03:14 #1835 [Verbose] > │ let v7 : string = "bcdea cdeab deabc eabcd abcde" │
00:03:14 #1836 [Verbose] > │ let v8 : string = "abcdefghi" │
00:03:14 #1837 [Verbose] > │ let v9 : string = "bcdefghia cdefghiab defghiabc efghiabcd fghiabcde │
00:03:14 #1838 [Verbose] > │ ghiabcdef hiabcdefg iabcdefgh abcdefghi" │
00:03:14 #1839 [Verbose] > │ let v10 : string = "abab" │
00:03:14 #1840 [Verbose] > │ let v11 : string = "baba abab baba abab" │
00:03:14 #1841 [Verbose] > │ let v12 : string = "aa" │
00:03:14 #1842 [Verbose] > │ let v13 : string = "aa aa" │
00:03:14 #1843 [Verbose] > │ let v14 : string = "z" │
00:03:14 #1844 [Verbose] > │ let v15 : UH0 = UH0_1 │
00:03:14 #1845 [Verbose] > │ let v16 : UH0 = UH0_0(v14, v14, v15) │
00:03:14 #1846 [Verbose] > │ let v17 : UH0 = UH0_0(v12, v13, v16) │
00:03:14 #1847 [Verbose] > │ let v18 : UH0 = UH0_0(v10, v11, v17) │
00:03:14 #1848 [Verbose] > │ let v19 : UH0 = UH0_0(v8, v9, v18) │
00:03:14 #1849 [Verbose] > │ let v20 : UH0 = UH0_0(v6, v7, v19) │
00:03:14 #1850 [Verbose] > │ let v21 : UH0 = UH0_0(v4, v5, v20) │
00:03:14 #1851 [Verbose] > │ let v22 : (struct (string * string) []) = method1(v21) │
00:03:14 #1852 [Verbose] > │ let v23 : uint64 = System.Convert.ToUInt64 v22.Length │
00:03:14 #1853 [Verbose] > │ let v24 : (struct (string * string * string * (int64 [])) []) = │
00:03:14 #1854 [Verbose] > │ Array.zeroCreate<struct (string * string * string * (int64 []))> │
00:03:14 #1855 [Verbose] > │ (System.Convert.ToInt32(v23)) │
00:03:14 #1856 [Verbose] > │ let v25 : Mut0 = {l0 = 0UL} : Mut0 │
00:03:14 #1857 [Verbose] > │ while method4(v23, v25) do │
00:03:14 #1858 [Verbose] > │ let v27 : uint64 = v25.l0 │
00:03:14 #1859 [Verbose] > │ let struct (v28 : string, v29 : string) = v22.[int v27] │
00:03:14 #1860 [Verbose] > │ let v30 : string = $"%A{v28}" │
00:03:14 #1861 [Verbose] > │ System.Console.WriteLine v2 │
00:03:14 #1862 [Verbose] > │ let v31 : string = $"Solution: {v30} " │
00:03:14 #1863 [Verbose] > │ System.Console.WriteLine v31 │
00:03:14 #1864 [Verbose] > │ let v32 : int32 = 0 │
00:03:14 #1865 [Verbose] > │ let v33 : string = "F" │
00:03:14 #1866 [Verbose] > │ let v34 : (string -> string) = closure1() │
00:03:14 #1867 [Verbose] > │ let v35 : int32 = 1 │
00:03:14 #1868 [Verbose] > │ let v36 : string = "FA" │
00:03:14 #1869 [Verbose] > │ let v37 : (string -> string) = closure2() │
00:03:14 #1870 [Verbose] > │ let v38 : UH3 = UH3_1 │
00:03:14 #1871 [Verbose] > │ let v39 : UH3 = UH3_0(v35, v36, v37, v38) │
00:03:14 #1872 [Verbose] > │ let v40 : UH3 = UH3_0(v32, v33, v34, v39) │
00:03:14 #1873 [Verbose] > │ let v41 : (struct (int32 * string * (string -> string)) []) = │
00:03:14 #1874 [Verbose] > │ method12(v40) │
00:03:14 #1875 [Verbose] > │ let v42 : uint64 = System.Convert.ToUInt64 v41.Length │
00:03:14 #1876 [Verbose] > │ let v43 : (struct (string * int64) []) = Array.zeroCreate<struct │
00:03:14 #1877 [Verbose] > │ (string * int64)> (System.Convert.ToInt32(v42)) │
00:03:14 #1878 [Verbose] > │ let v44 : Mut0 = {l0 = 0UL} : Mut0 │
00:03:14 #1879 [Verbose] > │ while method4(v42, v44) do │
00:03:14 #1880 [Verbose] > │ let v46 : uint64 = v44.l0 │
00:03:14 #1881 [Verbose] > │ let struct (v47 : int32, v48 : string, v49 : (string -> string)) │
00:03:14 #1882 [Verbose] > │ = v41.[int v46] │
00:03:14 #1883 [Verbose] > │ let mutable result = None │
00:03:14 #1884 [Verbose] > │ #if FABLE_COMPILER_RUST │
00:03:14 #1885 [Verbose] > │ #if !WASM │
00:03:14 #1886 [Verbose] > │ () │
00:03:14 #1887 [Verbose] > │ #else │
00:03:14 #1888 [Verbose] > │ () │
00:03:14 #1889 [Verbose] > │ #endif │
00:03:14 #1890 [Verbose] > │ #else │
00:03:14 #1891 [Verbose] > │ System.GC.Collect () │
00:03:14 #1892 [Verbose] > │ () │
00:03:14 #1893 [Verbose] > │ #endif │
00:03:14 #1894 [Verbose] > │ |> fun x -> result <- Some x │
00:03:14 #1895 [Verbose] > │ result |> Option.get │
00:03:14 #1896 [Verbose] > │ let v50 : (unit -> System.Diagnostics.Stopwatch) = │
00:03:14 #1897 [Verbose] > │ System.Diagnostics.Stopwatch │
00:03:14 #1898 [Verbose] > │ let v51 : System.Diagnostics.Stopwatch = v50 () │
00:03:14 #1899 [Verbose] > │ v51.Start () │
00:03:14 #1900 [Verbose] > │ let v52 : int64 = v51.ElapsedMilliseconds │
00:03:14 #1901 [Verbose] > │ let v53 : (int32 []) = Array.zeroCreate<int32> (2000001) │
00:03:14 #1902 [Verbose] > │ let v54 : Mut1 = {l0 = 0} : Mut1 │
00:03:14 #1903 [Verbose] > │ while method15(v54) do │
00:03:14 #1904 [Verbose] > │ let v56 : int32 = v54.l0 │
00:03:14 #1905 [Verbose] > │ v53.[int v56] <- v56 │
00:03:14 #1906 [Verbose] > │ let v57 : int32 = v56 + 1 │
00:03:14 #1907 [Verbose] > │ v54.l0 <- v57 │
00:03:14 #1908 [Verbose] > │ () │
00:03:14 #1909 [Verbose] > │ let v58 : (int32 -> string) = closure3(v28, v49) │
00:03:14 #1910 [Verbose] > │ let v59 : (string []) = v53 |> Array.Parallel.map v58 │
00:03:14 #1911 [Verbose] > │ let v60 : int32 = v59.Length │
00:03:14 #1912 [Verbose] > │ let v61 : int32 = v60 - 1 │
00:03:14 #1913 [Verbose] > │ let v62 : string = v59.[int v61] │
00:03:14 #1914 [Verbose] > │ let v63 : int64 = v51.ElapsedMilliseconds │
00:03:14 #1915 [Verbose] > │ let v64 : int64 = v63 - v52 │
00:03:14 #1916 [Verbose] > │ let v65 : string = $"Test case {v47 + 1}. {v48}. Time: {v64} " │
00:03:14 #1917 [Verbose] > │ System.Console.WriteLine v65 │
00:03:14 #1918 [Verbose] > │ v43.[int v46] <- struct (v62, v64) │
00:03:14 #1919 [Verbose] > │ let v66 : uint64 = v46 + 1UL │
00:03:14 #1920 [Verbose] > │ v44.l0 <- v66 │
00:03:14 #1921 [Verbose] > │ () │
00:03:14 #1922 [Verbose] > │ let v67 : uint64 = System.Convert.ToUInt64 v43.Length │
00:03:14 #1923 [Verbose] > │ let v68 : (string []) = Array.zeroCreate<string> │
00:03:14 #1924 [Verbose] > │ (System.Convert.ToInt32(v67)) │
00:03:14 #1925 [Verbose] > │ let v69 : Mut0 = {l0 = 0UL} : Mut0 │
00:03:14 #1926 [Verbose] > │ while method4(v67, v69) do │
00:03:14 #1927 [Verbose] > │ let v71 : uint64 = v69.l0 │
00:03:14 #1928 [Verbose] > │ let struct (v72 : string, v73 : int64) = v43.[int v71] │
00:03:14 #1929 [Verbose] > │ v68.[int v71] <- v72 │
00:03:14 #1930 [Verbose] > │ let v74 : uint64 = v71 + 1UL │
00:03:14 #1931 [Verbose] > │ v69.l0 <- v74 │
00:03:14 #1932 [Verbose] > │ () │
00:03:14 #1933 [Verbose] > │ let v75 : uint64 = System.Convert.ToUInt64 v68.Length │
00:03:14 #1934 [Verbose] > │ let v76 : bool = v75 <= 1UL │
00:03:14 #1935 [Verbose] > │ if v76 then │
00:03:14 #1936 [Verbose] > │ () │
00:03:14 #1937 [Verbose] > │ else │
00:03:14 #1938 [Verbose] > │ let v77 : string = v68.[int 0UL] │
00:03:14 #1939 [Verbose] > │ let v78 : uint64 = 0UL │
00:03:14 #1940 [Verbose] > │ let v79 : bool = method16(v77, v68, v78) │
00:03:14 #1941 [Verbose] > │ if v79 then │
00:03:14 #1942 [Verbose] > │ () │
00:03:14 #1943 [Verbose] > │ else │
00:03:14 #1944 [Verbose] > │ let v80 : string = $"Challenge error: {v68}" │
00:03:14 #1945 [Verbose] > │ failwith<unit> v80 │
00:03:14 #1946 [Verbose] > │ let v81 : string = $"%A{v29}" │
00:03:14 #1947 [Verbose] > │ let v82 : (string []) = Array.zeroCreate<string> │
00:03:14 #1948 [Verbose] > │ (System.Convert.ToInt32(v67)) │
00:03:14 #1949 [Verbose] > │ let v83 : Mut0 = {l0 = 0UL} : Mut0 │
00:03:14 #1950 [Verbose] > │ while method4(v67, v83) do │
00:03:14 #1951 [Verbose] > │ let v85 : uint64 = v83.l0 │
00:03:14 #1952 [Verbose] > │ let struct (v86 : string, v87 : int64) = v43.[int v85] │
00:03:14 #1953 [Verbose] > │ v82.[int v85] <- v86 │
00:03:14 #1954 [Verbose] > │ let v88 : uint64 = v85 + 1UL │
00:03:14 #1955 [Verbose] > │ v83.l0 <- v88 │
00:03:14 #1956 [Verbose] > │ () │
00:03:14 #1957 [Verbose] > │ let v89 : string = v82.[int 0UL] │
00:03:14 #1958 [Verbose] > │ let v90 : string = $"%A{v89}" │
00:03:14 #1959 [Verbose] > │ let v91 : (int64 []) = Array.zeroCreate<int64> │
00:03:14 #1960 [Verbose] > │ (System.Convert.ToInt32(v67)) │
00:03:14 #1961 [Verbose] > │ let v92 : Mut0 = {l0 = 0UL} : Mut0 │
00:03:14 #1962 [Verbose] > │ while method4(v67, v92) do │
00:03:14 #1963 [Verbose] > │ let v94 : uint64 = v92.l0 │
00:03:14 #1964 [Verbose] > │ let struct (v95 : string, v96 : int64) = v43.[int v94] │
00:03:14 #1965 [Verbose] > │ v91.[int v94] <- v96 │
00:03:14 #1966 [Verbose] > │ let v97 : uint64 = v94 + 1UL │
00:03:14 #1967 [Verbose] > │ v92.l0 <- v97 │
00:03:14 #1968 [Verbose] > │ () │
00:03:14 #1969 [Verbose] > │ v24.[int v27] <- struct (v81, v30, v90, v91) │
00:03:14 #1970 [Verbose] > │ let v98 : uint64 = v27 + 1UL │
00:03:14 #1971 [Verbose] > │ v25.l0 <- v98 │
00:03:14 #1972 [Verbose] > │ () │
00:03:14 #1973 [Verbose] > │ let v99 : uint64 = System.Convert.ToUInt64 v24.Length │
00:03:14 #1974 [Verbose] > │ let v100 : (struct (UH2 * US0) []) = Array.zeroCreate<struct (UH2 * │
00:03:14 #1975 [Verbose] > │ US0)> (System.Convert.ToInt32(v99)) │
00:03:14 #1976 [Verbose] > │ let v101 : Mut0 = {l0 = 0UL} : Mut0 │
00:03:14 #1977 [Verbose] > │ while method4(v99, v101) do │
00:03:14 #1978 [Verbose] > │ let v103 : uint64 = v101.l0 │
00:03:14 #1979 [Verbose] > │ let struct (v104 : string, v105 : string, v106 : string, v107 : │
00:03:14 #1980 [Verbose] > │ (int64 [])) = v24.[int v103] │
00:03:14 #1981 [Verbose] > │ let v108 : uint64 = System.Convert.ToUInt64 v107.Length │
00:03:14 #1982 [Verbose] > │ let v109 : UH4 = UH4_1 │
00:03:14 #1983 [Verbose] > │ let v110 : Mut2 = {l0 = 0UL; l1 = v109; l2 = 0L} : Mut2 │
00:03:14 #1984 [Verbose] > │ while method17(v108, v110) do │
00:03:14 #1985 [Verbose] > │ let v112 : uint64 = v110.l0 │
00:03:14 #1986 [Verbose] > │ let struct (v113 : UH4, v114 : int64) = v110.l1, v110.l2 │
00:03:14 #1987 [Verbose] > │ let v115 : int64 = v107.[int v112] │
00:03:14 #1988 [Verbose] > │ let v116 : int64 = v114 + 1L │
00:03:14 #1989 [Verbose] > │ let v117 : uint64 = v112 + 1UL │
00:03:14 #1990 [Verbose] > │ let v118 : UH4 = UH4_0(v114, v115, v113) │
00:03:14 #1991 [Verbose] > │ v110.l0 <- v117 │
00:03:14 #1992 [Verbose] > │ v110.l1 <- v118 │
00:03:14 #1993 [Verbose] > │ v110.l2 <- v116 │
00:03:14 #1994 [Verbose] > │ () │
00:03:14 #1995 [Verbose] > │ let struct (v119 : UH4, v120 : int64) = v110.l1, v110.l2 │
00:03:14 #1996 [Verbose] > │ let v121 : UH4 = UH4_1 │
00:03:14 #1997 [Verbose] > │ let v122 : UH4 = method18(v119, v121) │
00:03:14 #1998 [Verbose] > │ let v123 : (struct (int64 * int64) []) = method19(v122) │
00:03:14 #1999 [Verbose] > │ let v124 : int32 = v123.Length │
00:03:14 #2000 [Verbose] > │ let v125 : (struct (int64 * int64) []) = Array.zeroCreate<struct │
00:03:14 #2001 [Verbose] > │ (int64 * int64)> (v124) │
00:03:14 #2002 [Verbose] > │ let v126 : Mut1 = {l0 = 0} : Mut1 │
00:03:14 #2003 [Verbose] > │ while method5(v124, v126) do │
00:03:14 #2004 [Verbose] > │ let v128 : int32 = v126.l0 │
00:03:14 #2005 [Verbose] > │ let struct (v129 : int64, v130 : int64) = v123.[int v128] │
00:03:14 #2006 [Verbose] > │ let v131 : int64 = v129 + 1L │
00:03:14 #2007 [Verbose] > │ v125.[int v128] <- struct (v131, v130) │
00:03:14 #2008 [Verbose] > │ let v132 : int32 = v128 + 1 │
00:03:14 #2009 [Verbose] > │ v126.l0 <- v132 │
00:03:14 #2010 [Verbose] > │ () │
00:03:14 #2011 [Verbose] > │ let v133 : (struct (int64 * int64) -> int64) = closure4() │
00:03:14 #2012 [Verbose] > │ let v134 : (struct (int64 * int64) []) = v125 |> Array.sortBy v133 │
00:03:14 #2013 [Verbose] > │ let struct (v135 : int64, v136 : int64) = v134.[int 0] │
00:03:14 #2014 [Verbose] > │ let v137 : string = $"%A{struct (v135, v136)}" │
00:03:14 #2015 [Verbose] > │ let v138 : bool = v104 = v106 │
00:03:14 #2016 [Verbose] > │ let v143 : US0 = │
00:03:14 #2017 [Verbose] > │ if v138 then │
00:03:14 #2018 [Verbose] > │ let v139 : System.ConsoleColor = │
00:03:14 #2019 [Verbose] > │ System.ConsoleColor.DarkGreen │
00:03:14 #2020 [Verbose] > │ US0_1(v139) │
00:03:14 #2021 [Verbose] > │ else │
00:03:14 #2022 [Verbose] > │ let v141 : System.ConsoleColor = System.ConsoleColor.DarkRed │
00:03:14 #2023 [Verbose] > │ US0_1(v141) │
00:03:14 #2024 [Verbose] > │ let v144 : UH2 = UH2_1 │
00:03:14 #2025 [Verbose] > │ let v145 : UH2 = UH2_0(v137, v144) │
00:03:14 #2026 [Verbose] > │ let v146 : UH2 = UH2_0(v106, v145) │
00:03:14 #2027 [Verbose] > │ let v147 : UH2 = UH2_0(v104, v146) │
00:03:14 #2028 [Verbose] > │ let v148 : UH2 = UH2_0(v105, v147) │
00:03:14 #2029 [Verbose] > │ v100.[int v103] <- struct (v148, v143) │
00:03:14 #2030 [Verbose] > │ let v149 : uint64 = v103 + 1UL │
00:03:14 #2031 [Verbose] > │ v101.l0 <- v149 │
00:03:14 #2032 [Verbose] > │ () │
00:03:14 #2033 [Verbose] > │ let v150 : string = "Input" │
00:03:14 #2034 [Verbose] > │ let v151 : string = "Expected" │
00:03:14 #2035 [Verbose] > │ let v152 : string = "Result" │
00:03:14 #2036 [Verbose] > │ let v153 : string = "Best" │
00:03:14 #2037 [Verbose] > │ let v154 : UH2 = UH2_1 │
00:03:14 #2038 [Verbose] > │ let v155 : UH2 = UH2_0(v153, v154) │
00:03:14 #2039 [Verbose] > │ let v156 : UH2 = UH2_0(v152, v155) │
00:03:14 #2040 [Verbose] > │ let v157 : UH2 = UH2_0(v151, v156) │
00:03:14 #2041 [Verbose] > │ let v158 : UH2 = UH2_0(v150, v157) │
00:03:14 #2042 [Verbose] > │ let v159 : US0 = US0_0 │
00:03:14 #2043 [Verbose] > │ let v160 : string = "---" │
00:03:14 #2044 [Verbose] > │ let v161 : UH2 = UH2_1 │
00:03:14 #2045 [Verbose] > │ let v162 : UH2 = UH2_0(v160, v161) │
00:03:14 #2046 [Verbose] > │ let v163 : UH2 = UH2_0(v160, v162) │
00:03:14 #2047 [Verbose] > │ let v164 : UH2 = UH2_0(v160, v163) │
00:03:14 #2048 [Verbose] > │ let v165 : UH2 = UH2_0(v160, v164) │
00:03:14 #2049 [Verbose] > │ let v166 : US0 = US0_0 │
00:03:14 #2050 [Verbose] > │ let v167 : UH5 = UH5_1 │
00:03:14 #2051 [Verbose] > │ let v168 : UH5 = UH5_0(v165, v166, v167) │
00:03:14 #2052 [Verbose] > │ let v169 : UH5 = UH5_0(v158, v159, v168) │
00:03:14 #2053 [Verbose] > │ let v170 : (struct (UH2 * US0) []) = method22(v169) │
00:03:14 #2054 [Verbose] > │ let v171 : uint64 = System.Convert.ToUInt64 v170.Length │
00:03:14 #2055 [Verbose] > │ let v172 : uint64 = System.Convert.ToUInt64 v100.Length │
00:03:14 #2056 [Verbose] > │ let v173 : uint64 = v171 + v172 │
00:03:14 #2057 [Verbose] > │ let v174 : (struct (UH2 * US0) []) = Array.zeroCreate<struct (UH2 * │
00:03:14 #2058 [Verbose] > │ US0)> (System.Convert.ToInt32(v173)) │
00:03:14 #2059 [Verbose] > │ let v175 : Mut0 = {l0 = 0UL} : Mut0 │
00:03:14 #2060 [Verbose] > │ while method4(v173, v175) do │
00:03:14 #2061 [Verbose] > │ let v177 : uint64 = v175.l0 │
00:03:14 #2062 [Verbose] > │ let v178 : bool = v177 < v171 │
00:03:14 #2063 [Verbose] > │ let struct (v184 : UH2, v185 : US0) = │
00:03:14 #2064 [Verbose] > │ if v178 then │
00:03:14 #2065 [Verbose] > │ let struct (v179 : UH2, v180 : US0) = v170.[int v177] │
00:03:14 #2066 [Verbose] > │ struct (v179, v180) │
00:03:14 #2067 [Verbose] > │ else │
00:03:14 #2068 [Verbose] > │ let v181 : uint64 = v177 - v171 │
00:03:14 #2069 [Verbose] > │ let struct (v182 : UH2, v183 : US0) = v100.[int v181] │
00:03:14 #2070 [Verbose] > │ struct (v182, v183) │
00:03:14 #2071 [Verbose] > │ v174.[int v177] <- struct (v184, v185) │
00:03:14 #2072 [Verbose] > │ let v186 : uint64 = v177 + 1UL │
00:03:14 #2073 [Verbose] > │ v175.l0 <- v186 │
00:03:14 #2074 [Verbose] > │ () │
00:03:14 #2075 [Verbose] > │ let v187 : uint64 = System.Convert.ToUInt64 v174.Length │
00:03:14 #2076 [Verbose] > │ let v188 : ((string []) []) = Array.zeroCreate<(string [])> │
00:03:14 #2077 [Verbose] > │ (System.Convert.ToInt32(v187)) │
00:03:14 #2078 [Verbose] > │ let v189 : Mut0 = {l0 = 0UL} : Mut0 │
00:03:14 #2079 [Verbose] > │ while method4(v187, v189) do │
00:03:14 #2080 [Verbose] > │ let v191 : uint64 = v189.l0 │
00:03:14 #2081 [Verbose] > │ let struct (v192 : UH2, v193 : US0) = v174.[int v191] │
00:03:14 #2082 [Verbose] > │ let v194 : (string []) = method25(v192) │
00:03:14 #2083 [Verbose] > │ v188.[int v191] <- v194 │
00:03:14 #2084 [Verbose] > │ let v195 : uint64 = v191 + 1UL │
00:03:14 #2085 [Verbose] > │ v189.l0 <- v195 │
00:03:14 #2086 [Verbose] > │ () │
00:03:14 #2087 [Verbose] > │ let v196 : ((string []) []) = v188 |> Array.transpose │
00:03:14 #2088 [Verbose] > │ let v197 : uint64 = System.Convert.ToUInt64 v196.Length │
00:03:14 #2089 [Verbose] > │ let v198 : (int64 []) = Array.zeroCreate<int64> │
00:03:14 #2090 [Verbose] > │ (System.Convert.ToInt32(v197)) │
00:03:14 #2091 [Verbose] > │ let v199 : Mut0 = {l0 = 0UL} : Mut0 │
00:03:14 #2092 [Verbose] > │ while method4(v197, v199) do │
00:03:14 #2093 [Verbose] > │ let v201 : uint64 = v199.l0 │
00:03:14 #2094 [Verbose] > │ let v202 : (string []) = v196.[int v201] │
00:03:14 #2095 [Verbose] > │ let v203 : uint64 = System.Convert.ToUInt64 v202.Length │
00:03:14 #2096 [Verbose] > │ let v204 : (int64 []) = Array.zeroCreate<int64> │
00:03:14 #2097 [Verbose] > │ (System.Convert.ToInt32(v203)) │
00:03:14 #2098 [Verbose] > │ let v205 : Mut0 = {l0 = 0UL} : Mut0 │
00:03:14 #2099 [Verbose] > │ while method4(v203, v205) do │
00:03:14 #2100 [Verbose] > │ let v207 : uint64 = v205.l0 │
00:03:14 #2101 [Verbose] > │ let v208 : string = v202.[int v207] │
00:03:14 #2102 [Verbose] > │ let v209 : int64 = System.Convert.ToInt64 v208.Length │
00:03:14 #2103 [Verbose] > │ v204.[int v207] <- v209 │
00:03:14 #2104 [Verbose] > │ let v210 : uint64 = v207 + 1UL │
00:03:14 #2105 [Verbose] > │ v205.l0 <- v210 │
00:03:14 #2106 [Verbose] > │ () │
00:03:14 #2107 [Verbose] > │ let v211 : (int64 []) = v204 |> Array.sortDescending │
00:03:14 #2108 [Verbose] > │ let v212 : int64 option = v211 |> Array.tryItem 0 │
00:03:14 #2109 [Verbose] > │ let v213 : (int64 -> US1) = closure5() │
00:03:14 #2110 [Verbose] > │ let v214 : US1 = US1_0 │
00:03:14 #2111 [Verbose] > │ let v215 : US1 = v212 |> Option.map v213 |> Option.defaultValue v214 │
00:03:14 #2112 [Verbose] > │ let v218 : int64 = │
00:03:14 #2113 [Verbose] > │ match v215 with │
00:03:14 #2114 [Verbose] > │ | US1_0 -> (* None *) │
00:03:14 #2115 [Verbose] > │ 0L │
00:03:14 #2116 [Verbose] > │ | US1_1(v216) -> (* Some *) │
00:03:14 #2117 [Verbose] > │ v216 │
00:03:14 #2118 [Verbose] > │ v198.[int v201] <- v218 │
00:03:14 #2119 [Verbose] > │ let v219 : uint64 = v201 + 1UL │
00:03:14 #2120 [Verbose] > │ v199.l0 <- v219 │
00:03:14 #2121 [Verbose] > │ () │
00:03:14 #2122 [Verbose] > │ let v220 : uint64 = System.Convert.ToUInt64 v198.Length │
00:03:14 #2123 [Verbose] > │ let v221 : UH6 = UH6_1 │
00:03:14 #2124 [Verbose] > │ let v222 : Mut3 = {l0 = 0UL; l1 = v221; l2 = 0} : Mut3 │
00:03:14 #2125 [Verbose] > │ while method28(v220, v222) do │
00:03:14 #2126 [Verbose] > │ let v224 : uint64 = v222.l0 │
00:03:14 #2127 [Verbose] > │ let struct (v225 : UH6, v226 : int32) = v222.l1, v222.l2 │
00:03:14 #2128 [Verbose] > │ let v227 : int64 = v198.[int v224] │
00:03:14 #2129 [Verbose] > │ let v228 : int32 = v226 + 1 │
00:03:14 #2130 [Verbose] > │ let v229 : uint64 = v224 + 1UL │
00:03:14 #2131 [Verbose] > │ let v230 : UH6 = UH6_0(v226, v227, v225) │
00:03:14 #2132 [Verbose] > │ v222.l0 <- v229 │
00:03:14 #2133 [Verbose] > │ v222.l1 <- v230 │
00:03:14 #2134 [Verbose] > │ v222.l2 <- v228 │
00:03:14 #2135 [Verbose] > │ () │
00:03:14 #2136 [Verbose] > │ let struct (v231 : UH6, v232 : int32) = v222.l1, v222.l2 │
00:03:14 #2137 [Verbose] > │ let v233 : UH6 = UH6_1 │
00:03:14 #2138 [Verbose] > │ let v234 : UH6 = method29(v231, v233) │
00:03:14 #2139 [Verbose] > │ let v235 : (struct (int32 * int64) []) = method30(v234) │
00:03:14 #2140 [Verbose] > │ let v236 : Map<int32, int64> = v235 |> Array.map (fun (struct (a, b)) -> │
00:03:14 #2141 [Verbose] > │ a, b) |> Map.ofArray │
00:03:14 #2142 [Verbose] > │ let v237 : (struct ((string []) * US0) []) = Array.zeroCreate<struct │
00:03:14 #2143 [Verbose] > │ ((string []) * US0)> (System.Convert.ToInt32(v187)) │
00:03:14 #2144 [Verbose] > │ let v238 : Mut0 = {l0 = 0UL} : Mut0 │
00:03:14 #2145 [Verbose] > │ while method4(v187, v238) do │
00:03:14 #2146 [Verbose] > │ let v240 : uint64 = v238.l0 │
00:03:14 #2147 [Verbose] > │ let struct (v241 : UH2, v242 : US0) = v174.[int v240] │
00:03:14 #2148 [Verbose] > │ let v243 : UH7 = UH7_1 │
00:03:14 #2149 [Verbose] > │ let v244 : int32 = 0 │
00:03:14 #2150 [Verbose] > │ let struct (v245 : UH7, v246 : int32) = method33(v241, v243, v244) │
00:03:14 #2151 [Verbose] > │ let v247 : UH7 = UH7_1 │
00:03:14 #2152 [Verbose] > │ let v248 : UH7 = method34(v245, v247) │
00:03:14 #2153 [Verbose] > │ let v249 : UH2 = UH2_1 │
00:03:14 #2154 [Verbose] > │ let v250 : UH2 = method35(v236, v248, v249) │
00:03:14 #2155 [Verbose] > │ let v251 : (string []) = method9(v250) │
00:03:14 #2156 [Verbose] > │ v237.[int v240] <- struct (v251, v242) │
00:03:14 #2157 [Verbose] > │ let v252 : uint64 = v240 + 1UL │
00:03:14 #2158 [Verbose] > │ v238.l0 <- v252 │
00:03:14 #2159 [Verbose] > │ () │
00:03:14 #2160 [Verbose] > │ System.Console.WriteLine v2 │
00:03:14 #2161 [Verbose] > │ let v253 : uint64 = System.Convert.ToUInt64 v237.Length │
00:03:14 #2162 [Verbose] > │ let v254 : Mut0 = {l0 = 0UL} : Mut0 │
00:03:14 #2163 [Verbose] > │ while method4(v253, v254) do │
00:03:14 #2164 [Verbose] > │ let v256 : uint64 = v254.l0 │
00:03:14 #2165 [Verbose] > │ let struct (v257 : (string []), v258 : US0) = v237.[int v256] │
00:03:14 #2166 [Verbose] > │ match v258 with │
00:03:14 #2167 [Verbose] > │ | US0_0 -> (* None *) │
00:03:14 #2168 [Verbose] > │ let mutable result = None │
00:03:14 #2169 [Verbose] > │ #if FABLE_COMPILER_RUST │
00:03:14 #2170 [Verbose] > │ #if !WASM │
00:03:14 #2171 [Verbose] > │ () │
00:03:14 #2172 [Verbose] > │ #else │
00:03:14 #2173 [Verbose] > │ () │
00:03:14 #2174 [Verbose] > │ #endif │
00:03:14 #2175 [Verbose] > │ #else │
00:03:14 #2176 [Verbose] > │ System.Console.ResetColor () │
00:03:14 #2177 [Verbose] > │ () │
00:03:14 #2178 [Verbose] > │ #endif │
00:03:14 #2179 [Verbose] > │ |> fun x -> result <- Some x │
00:03:14 #2180 [Verbose] > │ result |> Option.get │
00:03:14 #2181 [Verbose] > │ () │
00:03:14 #2182 [Verbose] > │ | US0_1(v259) -> (* Some *) │
00:03:14 #2183 [Verbose] > │ let mutable result = None │
00:03:14 #2184 [Verbose] > │ #if FABLE_COMPILER_RUST │
00:03:14 #2185 [Verbose] > │ #if !WASM │
00:03:14 #2186 [Verbose] > │ () │
00:03:14 #2187 [Verbose] > │ #else │
00:03:14 #2188 [Verbose] > │ () │
00:03:14 #2189 [Verbose] > │ #endif │
00:03:14 #2190 [Verbose] > │ #else │
00:03:14 #2191 [Verbose] > │ System.Console.ForegroundColor <- v259 │
00:03:14 #2192 [Verbose] > │ () │
00:03:14 #2193 [Verbose] > │ #endif │
00:03:14 #2194 [Verbose] > │ |> fun x -> result <- Some x │
00:03:14 #2195 [Verbose] > │ result |> Option.get │
00:03:14 #2196 [Verbose] > │ () │
00:03:14 #2197 [Verbose] > │ let v260 : string = "\t| " │
00:03:14 #2198 [Verbose] > │ let v261 : string = System.String.Join (v260, v257) │
00:03:14 #2199 [Verbose] > │ System.Console.WriteLine v261 │
00:03:14 #2200 [Verbose] > │ let mutable result = None │
00:03:14 #2201 [Verbose] > │ #if FABLE_COMPILER_RUST │
00:03:14 #2202 [Verbose] > │ #if !WASM │
00:03:14 #2203 [Verbose] > │ () │
00:03:14 #2204 [Verbose] > │ #else │
00:03:14 #2205 [Verbose] > │ () │
00:03:14 #2206 [Verbose] > │ #endif │
00:03:14 #2207 [Verbose] > │ #else │
00:03:14 #2208 [Verbose] > │ System.Console.ResetColor () │
00:03:14 #2209 [Verbose] > │ () │
00:03:14 #2210 [Verbose] > │ #endif │
00:03:14 #2211 [Verbose] > │ |> fun x -> result <- Some x │
00:03:14 #2212 [Verbose] > │ result |> Option.get │
00:03:14 #2213 [Verbose] > │ let v262 : uint64 = v256 + 1UL │
00:03:14 #2214 [Verbose] > │ v254.l0 <- v262 │
00:03:14 #2215 [Verbose] > │ () │
00:03:14 #2216 [Verbose] > │ let v263 : ((float []) []) = Array.zeroCreate<(float [])> │
00:03:14 #2217 [Verbose] > │ (System.Convert.ToInt32(v99)) │
00:03:14 #2218 [Verbose] > │ let v264 : Mut0 = {l0 = 0UL} : Mut0 │
00:03:14 #2219 [Verbose] > │ while method4(v99, v264) do │
00:03:14 #2220 [Verbose] > │ let v266 : uint64 = v264.l0 │
00:03:14 #2221 [Verbose] > │ let struct (v267 : string, v268 : string, v269 : string, v270 : │
00:03:14 #2222 [Verbose] > │ (int64 [])) = v24.[int v266] │
00:03:14 #2223 [Verbose] > │ let v271 : (int64 -> float) = float │
00:03:14 #2224 [Verbose] > │ let v272 : uint64 = System.Convert.ToUInt64 v270.Length │
00:03:14 #2225 [Verbose] > │ let v273 : (float []) = Array.zeroCreate<float> │
00:03:14 #2226 [Verbose] > │ (System.Convert.ToInt32(v272)) │
00:03:14 #2227 [Verbose] > │ let v274 : Mut0 = {l0 = 0UL} : Mut0 │
00:03:14 #2228 [Verbose] > │ while method4(v272, v274) do │
00:03:14 #2229 [Verbose] > │ let v276 : uint64 = v274.l0 │
00:03:14 #2230 [Verbose] > │ let v277 : int64 = v270.[int v276] │
00:03:14 #2231 [Verbose] > │ let v278 : float = v271 v277 │
00:03:14 #2232 [Verbose] > │ v273.[int v276] <- v278 │
00:03:14 #2233 [Verbose] > │ let v279 : uint64 = v276 + 1UL │
00:03:14 #2234 [Verbose] > │ v274.l0 <- v279 │
00:03:14 #2235 [Verbose] > │ () │
00:03:14 #2236 [Verbose] > │ v263.[int v266] <- v273 │
00:03:14 #2237 [Verbose] > │ let v280 : uint64 = v266 + 1UL │
00:03:14 #2238 [Verbose] > │ v264.l0 <- v280 │
00:03:14 #2239 [Verbose] > │ () │
00:03:14 #2240 [Verbose] > │ let v281 : ((float []) []) = v263 |> Array.transpose │
00:03:14 #2241 [Verbose] > │ let v282 : uint64 = System.Convert.ToUInt64 v281.Length │
00:03:14 #2242 [Verbose] > │ let v283 : (float []) = Array.zeroCreate<float> │
00:03:14 #2243 [Verbose] > │ (System.Convert.ToInt32(v282)) │
00:03:14 #2244 [Verbose] > │ let v284 : Mut0 = {l0 = 0UL} : Mut0 │
00:03:14 #2245 [Verbose] > │ while method4(v282, v284) do │
00:03:14 #2246 [Verbose] > │ let v286 : uint64 = v284.l0 │
00:03:14 #2247 [Verbose] > │ let v287 : (float []) = v281.[int v286] │
00:03:14 #2248 [Verbose] > │ let v288 : float = v287 |> Array.average │
00:03:14 #2249 [Verbose] > │ v283.[int v286] <- v288 │
00:03:14 #2250 [Verbose] > │ let v289 : uint64 = v286 + 1UL │
00:03:14 #2251 [Verbose] > │ v284.l0 <- v289 │
00:03:14 #2252 [Verbose] > │ () │
00:03:14 #2253 [Verbose] > │ let v290 : (float -> int64) = int64 │
00:03:14 #2254 [Verbose] > │ let v291 : uint64 = System.Convert.ToUInt64 v283.Length │
00:03:14 #2255 [Verbose] > │ let v292 : (int64 []) = Array.zeroCreate<int64> │
00:03:14 #2256 [Verbose] > │ (System.Convert.ToInt32(v291)) │
00:03:14 #2257 [Verbose] > │ let v293 : Mut0 = {l0 = 0UL} : Mut0 │
00:03:14 #2258 [Verbose] > │ while method4(v291, v293) do │
00:03:14 #2259 [Verbose] > │ let v295 : uint64 = v293.l0 │
00:03:14 #2260 [Verbose] > │ let v296 : float = v283.[int v295] │
00:03:14 #2261 [Verbose] > │ let v297 : int64 = v290 v296 │
00:03:14 #2262 [Verbose] > │ v292.[int v295] <- v297 │
00:03:14 #2263 [Verbose] > │ let v298 : uint64 = v295 + 1UL │
00:03:14 #2264 [Verbose] > │ v293.l0 <- v298 │
00:03:14 #2265 [Verbose] > │ () │
00:03:14 #2266 [Verbose] > │ let v299 : uint64 = System.Convert.ToUInt64 v292.Length │
00:03:14 #2267 [Verbose] > │ let v300 : UH6 = UH6_1 │
00:03:14 #2268 [Verbose] > │ let v301 : Mut3 = {l0 = 0UL; l1 = v300; l2 = 0} : Mut3 │
00:03:14 #2269 [Verbose] > │ while method28(v299, v301) do │
00:03:14 #2270 [Verbose] > │ let v303 : uint64 = v301.l0 │
00:03:14 #2271 [Verbose] > │ let struct (v304 : UH6, v305 : int32) = v301.l1, v301.l2 │
00:03:14 #2272 [Verbose] > │ let v306 : int64 = v292.[int v303] │
00:03:14 #2273 [Verbose] > │ let v307 : int32 = v305 + 1 │
00:03:14 #2274 [Verbose] > │ let v308 : uint64 = v303 + 1UL │
00:03:14 #2275 [Verbose] > │ let v309 : UH6 = UH6_0(v305, v306, v304) │
00:03:14 #2276 [Verbose] > │ v301.l0 <- v308 │
00:03:14 #2277 [Verbose] > │ v301.l1 <- v309 │
00:03:14 #2278 [Verbose] > │ v301.l2 <- v307 │
00:03:14 #2279 [Verbose] > │ () │
00:03:14 #2280 [Verbose] > │ let struct (v310 : UH6, v311 : int32) = v301.l1, v301.l2 │
00:03:14 #2281 [Verbose] > │ let v312 : UH6 = UH6_1 │
00:03:14 #2282 [Verbose] > │ let v313 : UH6 = method29(v310, v312) │
00:03:14 #2283 [Verbose] > │ let v314 : (struct (int32 * int64) []) = method36(v313) │
00:03:14 #2284 [Verbose] > │ System.Console.WriteLine v2 │
00:03:14 #2285 [Verbose] > │ let v315 : string = "Average Ranking " │
00:03:14 #2286 [Verbose] > │ System.Console.WriteLine v315 │
00:03:14 #2287 [Verbose] > │ let v316 : (struct (int32 * int64) -> int64) = closure6() │
00:03:14 #2288 [Verbose] > │ let v317 : (struct (int32 * int64) []) = v314 |> Array.sortBy v316 │
00:03:14 #2289 [Verbose] > │ let v318 : uint64 = System.Convert.ToUInt64 v317.Length │
00:03:14 #2290 [Verbose] > │ let v319 : Mut0 = {l0 = 0UL} : Mut0 │
00:03:14 #2291 [Verbose] > │ while method4(v318, v319) do │
00:03:14 #2292 [Verbose] > │ let v321 : uint64 = v319.l0 │
00:03:14 #2293 [Verbose] > │ let struct (v322 : int32, v323 : int64) = v317.[int v321] │
00:03:14 #2294 [Verbose] > │ let v324 : string = $"Test case %d{v322 + 1}. Average Time: %A{v323} │
00:03:14 #2295 [Verbose] > │ " │
00:03:14 #2296 [Verbose] > │ System.Console.WriteLine v324 │
00:03:14 #2297 [Verbose] > │ let v325 : uint64 = v321 + 1UL │
00:03:14 #2298 [Verbose] > │ v319.l0 <- v325 │
00:03:14 #2299 [Verbose] > │ () │
00:03:14 #2300 [Verbose] > │ () │
00:03:14 #2301 [Verbose] > │ and method0 () : unit = │
00:03:14 #2302 [Verbose] > │ let v0 : (unit -> unit) = closure0() │
00:03:14 #2303 [Verbose] > │ let v1 : string = nameof v0 │
00:03:14 #2304 [Verbose] > │ let v2 : string = "" │
00:03:14 #2305 [Verbose] > │ System.Console.WriteLine v2 │
00:03:14 #2306 [Verbose] > │ System.Console.WriteLine v2 │
00:03:14 #2307 [Verbose] > │ let v3 : string = $"Test: {v1}" │
00:03:14 #2308 [Verbose] > │ System.Console.WriteLine v3 │
00:03:14 #2309 [Verbose] > │ let v4 : string = "abc" │
00:03:14 #2310 [Verbose] > │ let v5 : string = "bca cab abc" │
00:03:14 #2311 [Verbose] > │ let v6 : string = "abcde" │
00:03:14 #2312 [Verbose] > │ let v7 : string = "bcdea cdeab deabc eabcd abcde" │
00:03:14 #2313 [Verbose] > │ let v8 : string = "abcdefghi" │
00:03:14 #2314 [Verbose] > │ let v9 : string = "bcdefghia cdefghiab defghiabc efghiabcd fghiabcde │
00:03:14 #2315 [Verbose] > │ ghiabcdef hiabcdefg iabcdefgh abcdefghi" │
00:03:14 #2316 [Verbose] > │ let v10 : string = "abab" │
00:03:14 #2317 [Verbose] > │ let v11 : string = "baba abab baba abab" │
00:03:14 #2318 [Verbose] > │ let v12 : string = "aa" │
00:03:14 #2319 [Verbose] > │ let v13 : string = "aa aa" │
00:03:14 #2320 [Verbose] > │ let v14 : string = "z" │
00:03:14 #2321 [Verbose] > │ let v15 : UH0 = UH0_1 │
00:03:14 #2322 [Verbose] > │ let v16 : UH0 = UH0_0(v14, v14, v15) │
00:03:14 #2323 [Verbose] > │ let v17 : UH0 = UH0_0(v12, v13, v16) │
00:03:14 #2324 [Verbose] > │ let v18 : UH0 = UH0_0(v10, v11, v17) │
00:03:14 #2325 [Verbose] > │ let v19 : UH0 = UH0_0(v8, v9, v18) │
00:03:14 #2326 [Verbose] > │ let v20 : UH0 = UH0_0(v6, v7, v19) │
00:03:14 #2327 [Verbose] > │ let v21 : UH0 = UH0_0(v4, v5, v20) │
00:03:14 #2328 [Verbose] > │ let v22 : (struct (string * string) []) = method1(v21) │
00:03:14 #2329 [Verbose] > │ let v23 : uint64 = System.Convert.ToUInt64 v22.Length │
00:03:14 #2330 [Verbose] > │ let v24 : (struct (string * string * string * (int64 [])) []) = │
00:03:14 #2331 [Verbose] > │ Array.zeroCreate<struct (string * string * string * (int64 []))> │
00:03:14 #2332 [Verbose] > │ (System.Convert.ToInt32(v23)) │
00:03:14 #2333 [Verbose] > │ let v25 : Mut0 = {l0 = 0UL} : Mut0 │
00:03:14 #2334 [Verbose] > │ while method4(v23, v25) do │
00:03:14 #2335 [Verbose] > │ let v27 : uint64 = v25.l0 │
00:03:14 #2336 [Verbose] > │ let struct (v28 : string, v29 : string) = v22.[int v27] │
00:03:14 #2337 [Verbose] > │ let v30 : string = $"%A{v28}" │
00:03:14 #2338 [Verbose] > │ System.Console.WriteLine v2 │
00:03:14 #2339 [Verbose] > │ let v31 : string = $"Solution: {v30} " │
00:03:14 #2340 [Verbose] > │ System.Console.WriteLine v31 │
00:03:14 #2341 [Verbose] > │ let v32 : int32 = 0 │
00:03:14 #2342 [Verbose] > │ let v33 : string = "F" │
00:03:14 #2343 [Verbose] > │ let v34 : (string -> string) = closure1() │
00:03:14 #2344 [Verbose] > │ let v35 : int32 = 1 │
00:03:14 #2345 [Verbose] > │ let v36 : string = "FA" │
00:03:14 #2346 [Verbose] > │ let v37 : (string -> string) = closure2() │
00:03:14 #2347 [Verbose] > │ let v38 : UH3 = UH3_1 │
00:03:14 #2348 [Verbose] > │ let v39 : UH3 = UH3_0(v35, v36, v37, v38) │
00:03:14 #2349 [Verbose] > │ let v40 : UH3 = UH3_0(v32, v33, v34, v39) │
00:03:14 #2350 [Verbose] > │ let v41 : (struct (int32 * string * (string -> string)) []) = │
00:03:14 #2351 [Verbose] > │ method12(v40) │
00:03:14 #2352 [Verbose] > │ let v42 : uint64 = System.Convert.ToUInt64 v41.Length │
00:03:14 #2353 [Verbose] > │ let v43 : (struct (string * int64) []) = Array.zeroCreate<struct │
00:03:14 #2354 [Verbose] > │ (string * int64)> (System.Convert.ToInt32(v42)) │
00:03:14 #2355 [Verbose] > │ let v44 : Mut0 = {l0 = 0UL} : Mut0 │
00:03:14 #2356 [Verbose] > │ while method4(v42, v44) do │
00:03:14 #2357 [Verbose] > │ let v46 : uint64 = v44.l0 │
00:03:14 #2358 [Verbose] > │ let struct (v47 : int32, v48 : string, v49 : (string -> string)) │
00:03:14 #2359 [Verbose] > │ = v41.[int v46] │
00:03:14 #2360 [Verbose] > │ let mutable result = None │
00:03:14 #2361 [Verbose] > │ #if FABLE_COMPILER_RUST │
00:03:14 #2362 [Verbose] > │ #if !WASM │
00:03:14 #2363 [Verbose] > │ () │
00:03:14 #2364 [Verbose] > │ #else │
00:03:14 #2365 [Verbose] > │ () │
00:03:14 #2366 [Verbose] > │ #endif │
00:03:14 #2367 [Verbose] > │ #else │
00:03:14 #2368 [Verbose] > │ System.GC.Collect () │
00:03:14 #2369 [Verbose] > │ () │
00:03:14 #2370 [Verbose] > │ #endif │
00:03:14 #2371 [Verbose] > │ |> fun x -> result <- Some x │
00:03:14 #2372 [Verbose] > │ result |> Option.get │
00:03:14 #2373 [Verbose] > │ let v50 : (unit -> System.Diagnostics.Stopwatch) = │
00:03:14 #2374 [Verbose] > │ System.Diagnostics.Stopwatch │
00:03:14 #2375 [Verbose] > │ let v51 : System.Diagnostics.Stopwatch = v50 () │
00:03:14 #2376 [Verbose] > │ v51.Start () │
00:03:14 #2377 [Verbose] > │ let v52 : int64 = v51.ElapsedMilliseconds │
00:03:14 #2378 [Verbose] > │ let v53 : (int32 []) = Array.zeroCreate<int32> (2000001) │
00:03:14 #2379 [Verbose] > │ let v54 : Mut1 = {l0 = 0} : Mut1 │
00:03:14 #2380 [Verbose] > │ while method15(v54) do │
00:03:14 #2381 [Verbose] > │ let v56 : int32 = v54.l0 │
00:03:14 #2382 [Verbose] > │ v53.[int v56] <- v56 │
00:03:14 #2383 [Verbose] > │ let v57 : int32 = v56 + 1 │
00:03:14 #2384 [Verbose] > │ v54.l0 <- v57 │
00:03:14 #2385 [Verbose] > │ () │
00:03:14 #2386 [Verbose] > │ let v58 : (int32 -> string) = closure3(v28, v49) │
00:03:14 #2387 [Verbose] > │ let v59 : (string []) = v53 |> Array.Parallel.map v58 │
00:03:14 #2388 [Verbose] > │ let v60 : int32 = v59.Length │
00:03:14 #2389 [Verbose] > │ let v61 : int32 = v60 - 1 │
00:03:14 #2390 [Verbose] > │ let v62 : string = v59.[int v61] │
00:03:14 #2391 [Verbose] > │ let v63 : int64 = v51.ElapsedMilliseconds │
00:03:14 #2392 [Verbose] > │ let v64 : int64 = v63 - v52 │
00:03:14 #2393 [Verbose] > │ let v65 : string = $"Test case {v47 + 1}. {v48}. Time: {v64} " │
00:03:14 #2394 [Verbose] > │ System.Console.WriteLine v65 │
00:03:14 #2395 [Verbose] > │ v43.[int v46] <- struct (v62, v64) │
00:03:14 #2396 [Verbose] > │ let v66 : uint64 = v46 + 1UL │
00:03:14 #2397 [Verbose] > │ v44.l0 <- v66 │
00:03:14 #2398 [Verbose] > │ () │
00:03:14 #2399 [Verbose] > │ let v67 : uint64 = System.Convert.ToUInt64 v43.Length │
00:03:14 #2400 [Verbose] > │ let v68 : (string []) = Array.zeroCreate<string> │
00:03:14 #2401 [Verbose] > │ (System.Convert.ToInt32(v67)) │
00:03:14 #2402 [Verbose] > │ let v69 : Mut0 = {l0 = 0UL} : Mut0 │
00:03:14 #2403 [Verbose] > │ while method4(v67, v69) do │
00:03:14 #2404 [Verbose] > │ let v71 : uint64 = v69.l0 │
00:03:14 #2405 [Verbose] > │ let struct (v72 : string, v73 : int64) = v43.[int v71] │
00:03:14 #2406 [Verbose] > │ v68.[int v71] <- v72 │
00:03:14 #2407 [Verbose] > │ let v74 : uint64 = v71 + 1UL │
00:03:14 #2408 [Verbose] > │ v69.l0 <- v74 │
00:03:14 #2409 [Verbose] > │ () │
00:03:14 #2410 [Verbose] > │ let v75 : uint64 = System.Convert.ToUInt64 v68.Length │
00:03:14 #2411 [Verbose] > │ let v76 : bool = v75 <= 1UL │
00:03:14 #2412 [Verbose] > │ if v76 then │
00:03:14 #2413 [Verbose] > │ () │
00:03:14 #2414 [Verbose] > │ else │
00:03:14 #2415 [Verbose] > │ let v77 : string = v68.[int 0UL] │
00:03:14 #2416 [Verbose] > │ let v78 : uint64 = 0UL │
00:03:14 #2417 [Verbose] > │ let v79 : bool = method16(v77, v68, v78) │
00:03:14 #2418 [Verbose] > │ if v79 then │
00:03:14 #2419 [Verbose] > │ () │
00:03:14 #2420 [Verbose] > │ else │
00:03:14 #2421 [Verbose] > │ let v80 : string = $"Challenge error: {v68}" │
00:03:14 #2422 [Verbose] > │ failwith<unit> v80 │
00:03:14 #2423 [Verbose] > │ let v81 : string = $"%A{v29}" │
00:03:14 #2424 [Verbose] > │ let v82 : (string []) = Array.zeroCreate<string> │
00:03:14 #2425 [Verbose] > │ (System.Convert.ToInt32(v67)) │
00:03:14 #2426 [Verbose] > │ let v83 : Mut0 = {l0 = 0UL} : Mut0 │
00:03:14 #2427 [Verbose] > │ while method4(v67, v83) do │
00:03:14 #2428 [Verbose] > │ let v85 : uint64 = v83.l0 │
00:03:14 #2429 [Verbose] > │ let struct (v86 : string, v87 : int64) = v43.[int v85] │
00:03:14 #2430 [Verbose] > │ v82.[int v85] <- v86 │
00:03:14 #2431 [Verbose] > │ let v88 : uint64 = v85 + 1UL │
00:03:14 #2432 [Verbose] > │ v83.l0 <- v88 │
00:03:14 #2433 [Verbose] > │ () │
00:03:14 #2434 [Verbose] > │ let v89 : string = v82.[int 0UL] │
00:03:14 #2435 [Verbose] > │ let v90 : string = $"%A{v89}" │
00:03:14 #2436 [Verbose] > │ let v91 : (int64 []) = Array.zeroCreate<int64> │
00:03:14 #2437 [Verbose] > │ (System.Convert.ToInt32(v67)) │
00:03:14 #2438 [Verbose] > │ let v92 : Mut0 = {l0 = 0UL} : Mut0 │
00:03:14 #2439 [Verbose] > │ while method4(v67, v92) do │
00:03:14 #2440 [Verbose] > │ let v94 : uint64 = v92.l0 │
00:03:14 #2441 [Verbose] > │ let struct (v95 : string, v96 : int64) = v43.[int v94] │
00:03:14 #2442 [Verbose] > │ v91.[int v94] <- v96 │
00:03:14 #2443 [Verbose] > │ let v97 : uint64 = v94 + 1UL │
00:03:14 #2444 [Verbose] > │ v92.l0 <- v97 │
00:03:14 #2445 [Verbose] > │ () │
00:03:14 #2446 [Verbose] > │ v24.[int v27] <- struct (v81, v30, v90, v91) │
00:03:14 #2447 [Verbose] > │ let v98 : uint64 = v27 + 1UL │
00:03:14 #2448 [Verbose] > │ v25.l0 <- v98 │
00:03:14 #2449 [Verbose] > │ () │
00:03:14 #2450 [Verbose] > │ let v99 : uint64 = System.Convert.ToUInt64 v24.Length │
00:03:14 #2451 [Verbose] > │ let v100 : (struct (UH2 * US0) []) = Array.zeroCreate<struct (UH2 * │
00:03:14 #2452 [Verbose] > │ US0)> (System.Convert.ToInt32(v99)) │
00:03:14 #2453 [Verbose] > │ let v101 : Mut0 = {l0 = 0UL} : Mut0 │
00:03:14 #2454 [Verbose] > │ while method4(v99, v101) do │
00:03:14 #2455 [Verbose] > │ let v103 : uint64 = v101.l0 │
00:03:14 #2456 [Verbose] > │ let struct (v104 : string, v105 : string, v106 : string, v107 : │
00:03:14 #2457 [Verbose] > │ (int64 [])) = v24.[int v103] │
00:03:14 #2458 [Verbose] > │ let v108 : uint64 = System.Convert.ToUInt64 v107.Length │
00:03:14 #2459 [Verbose] > │ let v109 : UH4 = UH4_1 │
00:03:14 #2460 [Verbose] > │ let v110 : Mut2 = {l0 = 0UL; l1 = v109; l2 = 0L} : Mut2 │
00:03:14 #2461 [Verbose] > │ while method17(v108, v110) do │
00:03:14 #2462 [Verbose] > │ let v112 : uint64 = v110.l0 │
00:03:14 #2463 [Verbose] > │ let struct (v113 : UH4, v114 : int64) = v110.l1, v110.l2 │
00:03:14 #2464 [Verbose] > │ let v115 : int64 = v107.[int v112] │
00:03:14 #2465 [Verbose] > │ let v116 : int64 = v114 + 1L │
00:03:14 #2466 [Verbose] > │ let v117 : uint64 = v112 + 1UL │
00:03:14 #2467 [Verbose] > │ let v118 : UH4 = UH4_0(v114, v115, v113) │
00:03:14 #2468 [Verbose] > │ v110.l0 <- v117 │
00:03:14 #2469 [Verbose] > │ v110.l1 <- v118 │
00:03:14 #2470 [Verbose] > │ v110.l2 <- v116 │
00:03:14 #2471 [Verbose] > │ () │
00:03:14 #2472 [Verbose] > │ let struct (v119 : UH4, v120 : int64) = v110.l1, v110.l2 │
00:03:14 #2473 [Verbose] > │ let v121 : UH4 = UH4_1 │
00:03:14 #2474 [Verbose] > │ let v122 : UH4 = method18(v119, v121) │
00:03:14 #2475 [Verbose] > │ let v123 : (struct (int64 * int64) []) = method19(v122) │
00:03:14 #2476 [Verbose] > │ let v124 : int32 = v123.Length │
00:03:14 #2477 [Verbose] > │ let v125 : (struct (int64 * int64) []) = Array.zeroCreate<struct │
00:03:14 #2478 [Verbose] > │ (int64 * int64)> (v124) │
00:03:14 #2479 [Verbose] > │ let v126 : Mut1 = {l0 = 0} : Mut1 │
00:03:14 #2480 [Verbose] > │ while method5(v124, v126) do │
00:03:14 #2481 [Verbose] > │ let v128 : int32 = v126.l0 │
00:03:14 #2482 [Verbose] > │ let struct (v129 : int64, v130 : int64) = v123.[int v128] │
00:03:14 #2483 [Verbose] > │ let v131 : int64 = v129 + 1L │
00:03:14 #2484 [Verbose] > │ v125.[int v128] <- struct (v131, v130) │
00:03:14 #2485 [Verbose] > │ let v132 : int32 = v128 + 1 │
00:03:14 #2486 [Verbose] > │ v126.l0 <- v132 │
00:03:14 #2487 [Verbose] > │ () │
00:03:14 #2488 [Verbose] > │ let v133 : (struct (int64 * int64) -> int64) = closure4() │
00:03:14 #2489 [Verbose] > │ let v134 : (struct (int64 * int64) []) = v125 |> Array.sortBy v133 │
00:03:14 #2490 [Verbose] > │ let struct (v135 : int64, v136 : int64) = v134.[int 0] │
00:03:14 #2491 [Verbose] > │ let v137 : string = $"%A{struct (v135, v136)}" │
00:03:14 #2492 [Verbose] > │ let v138 : bool = v104 = v106 │
00:03:14 #2493 [Verbose] > │ let v143 : US0 = │
00:03:14 #2494 [Verbose] > │ if v138 then │
00:03:14 #2495 [Verbose] > │ let v139 : System.ConsoleColor = │
00:03:14 #2496 [Verbose] > │ System.ConsoleColor.DarkGreen │
00:03:14 #2497 [Verbose] > │ US0_1(v139) │
00:03:14 #2498 [Verbose] > │ else │
00:03:14 #2499 [Verbose] > │ let v141 : System.ConsoleColor = System.ConsoleColor.DarkRed │
00:03:14 #2500 [Verbose] > │ US0_1(v141) │
00:03:14 #2501 [Verbose] > │ let v144 : UH2 = UH2_1 │
00:03:14 #2502 [Verbose] > │ let v145 : UH2 = UH2_0(v137, v144) │
00:03:14 #2503 [Verbose] > │ let v146 : UH2 = UH2_0(v106, v145) │
00:03:14 #2504 [Verbose] > │ let v147 : UH2 = UH2_0(v104, v146) │
00:03:14 #2505 [Verbose] > │ let v148 : UH2 = UH2_0(v105, v147) │
00:03:14 #2506 [Verbose] > │ v100.[int v103] <- struct (v148, v143) │
00:03:14 #2507 [Verbose] > │ let v149 : uint64 = v103 + 1UL │
00:03:14 #2508 [Verbose] > │ v101.l0 <- v149 │
00:03:14 #2509 [Verbose] > │ () │
00:03:14 #2510 [Verbose] > │ let v150 : string = "Input" │
00:03:14 #2511 [Verbose] > │ let v151 : string = "Expected" │
00:03:14 #2512 [Verbose] > │ let v152 : string = "Result" │
00:03:14 #2513 [Verbose] > │ let v153 : string = "Best" │
00:03:14 #2514 [Verbose] > │ let v154 : UH2 = UH2_1 │
00:03:14 #2515 [Verbose] > │ let v155 : UH2 = UH2_0(v153, v154) │
00:03:14 #2516 [Verbose] > │ let v156 : UH2 = UH2_0(v152, v155) │
00:03:14 #2517 [Verbose] > │ let v157 : UH2 = UH2_0(v151, v156) │
00:03:14 #2518 [Verbose] > │ let v158 : UH2 = UH2_0(v150, v157) │
00:03:14 #2519 [Verbose] > │ let v159 : US0 = US0_0 │
00:03:14 #2520 [Verbose] > │ let v160 : string = "---" │
00:03:14 #2521 [Verbose] > │ let v161 : UH2 = UH2_1 │
00:03:14 #2522 [Verbose] > │ let v162 : UH2 = UH2_0(v160, v161) │
00:03:14 #2523 [Verbose] > │ let v163 : UH2 = UH2_0(v160, v162) │
00:03:14 #2524 [Verbose] > │ let v164 : UH2 = UH2_0(v160, v163) │
00:03:14 #2525 [Verbose] > │ let v165 : UH2 = UH2_0(v160, v164) │
00:03:14 #2526 [Verbose] > │ let v166 : US0 = US0_0 │
00:03:14 #2527 [Verbose] > │ let v167 : UH5 = UH5_1 │
00:03:14 #2528 [Verbose] > │ let v168 : UH5 = UH5_0(v165, v166, v167) │
00:03:14 #2529 [Verbose] > │ let v169 : UH5 = UH5_0(v158, v159, v168) │
00:03:14 #2530 [Verbose] > │ let v170 : (struct (UH2 * US0) []) = method22(v169) │
00:03:14 #2531 [Verbose] > │ let v171 : uint64 = System.Convert.ToUInt64 v170.Length │
00:03:14 #2532 [Verbose] > │ let v172 : uint64 = System.Convert.ToUInt64 v100.Length │
00:03:14 #2533 [Verbose] > │ let v173 : uint64 = v171 + v172 │
00:03:14 #2534 [Verbose] > │ let v174 : (struct (UH2 * US0) []) = Array.zeroCreate<struct (UH2 * │
00:03:14 #2535 [Verbose] > │ US0)> (System.Convert.ToInt32(v173)) │
00:03:14 #2536 [Verbose] > │ let v175 : Mut0 = {l0 = 0UL} : Mut0 │
00:03:14 #2537 [Verbose] > │ while method4(v173, v175) do │
00:03:14 #2538 [Verbose] > │ let v177 : uint64 = v175.l0 │
00:03:14 #2539 [Verbose] > │ let v178 : bool = v177 < v171 │
00:03:14 #2540 [Verbose] > │ let struct (v184 : UH2, v185 : US0) = │
00:03:14 #2541 [Verbose] > │ if v178 then │
00:03:14 #2542 [Verbose] > │ let struct (v179 : UH2, v180 : US0) = v170.[int v177] │
00:03:14 #2543 [Verbose] > │ struct (v179, v180) │
00:03:14 #2544 [Verbose] > │ else │
00:03:14 #2545 [Verbose] > │ let v181 : uint64 = v177 - v171 │
00:03:14 #2546 [Verbose] > │ let struct (v182 : UH2, v183 : US0) = v100.[int v181] │
00:03:14 #2547 [Verbose] > │ struct (v182, v183) │
00:03:14 #2548 [Verbose] > │ v174.[int v177] <- struct (v184, v185) │
00:03:14 #2549 [Verbose] > │ let v186 : uint64 = v177 + 1UL │
00:03:14 #2550 [Verbose] > │ v175.l0 <- v186 │
00:03:14 #2551 [Verbose] > │ () │
00:03:14 #2552 [Verbose] > │ let v187 : uint64 = System.Convert.ToUInt64 v174.Length │
00:03:14 #2553 [Verbose] > │ let v188 : ((string []) []) = Array.zeroCreate<(string [])> │
00:03:14 #2554 [Verbose] > │ (System.Convert.ToInt32(v187)) │
00:03:14 #2555 [Verbose] > │ let v189 : Mut0 = {l0 = 0UL} : Mut0 │
00:03:14 #2556 [Verbose] > │ while method4(v187, v189) do │
00:03:14 #2557 [Verbose] > │ let v191 : uint64 = v189.l0 │
00:03:14 #2558 [Verbose] > │ let struct (v192 : UH2, v193 : US0) = v174.[int v191] │
00:03:14 #2559 [Verbose] > │ let v194 : (string []) = method25(v192) │
00:03:14 #2560 [Verbose] > │ v188.[int v191] <- v194 │
00:03:14 #2561 [Verbose] > │ let v195 : uint64 = v191 + 1UL │
00:03:14 #2562 [Verbose] > │ v189.l0 <- v195 │
00:03:14 #2563 [Verbose] > │ () │
00:03:14 #2564 [Verbose] > │ let v196 : ((string []) []) = v188 |> Array.transpose │
00:03:14 #2565 [Verbose] > │ let v197 : uint64 = System.Convert.ToUInt64 v196.Length │
00:03:14 #2566 [Verbose] > │ let v198 : (int64 []) = Array.zeroCreate<int64> │
00:03:14 #2567 [Verbose] > │ (System.Convert.ToInt32(v197)) │
00:03:14 #2568 [Verbose] > │ let v199 : Mut0 = {l0 = 0UL} : Mut0 │
00:03:14 #2569 [Verbose] > │ while method4(v197, v199) do │
00:03:14 #2570 [Verbose] > │ let v201 : uint64 = v199.l0 │
00:03:14 #2571 [Verbose] > │ let v202 : (string []) = v196.[int v201] │
00:03:14 #2572 [Verbose] > │ let v203 : uint64 = System.Convert.ToUInt64 v202.Length │
00:03:14 #2573 [Verbose] > │ let v204 : (int64 []) = Array.zeroCreate<int64> │
00:03:14 #2574 [Verbose] > │ (System.Convert.ToInt32(v203)) │
00:03:14 #2575 [Verbose] > │ let v205 : Mut0 = {l0 = 0UL} : Mut0 │
00:03:14 #2576 [Verbose] > │ while method4(v203, v205) do │
00:03:14 #2577 [Verbose] > │ let v207 : uint64 = v205.l0 │
00:03:14 #2578 [Verbose] > │ let v208 : string = v202.[int v207] │
00:03:14 #2579 [Verbose] > │ let v209 : int64 = System.Convert.ToInt64 v208.Length │
00:03:14 #2580 [Verbose] > │ v204.[int v207] <- v209 │
00:03:14 #2581 [Verbose] > │ let v210 : uint64 = v207 + 1UL │
00:03:14 #2582 [Verbose] > │ v205.l0 <- v210 │
00:03:14 #2583 [Verbose] > │ () │
00:03:14 #2584 [Verbose] > │ let v211 : (int64 []) = v204 |> Array.sortDescending │
00:03:14 #2585 [Verbose] > │ let v212 : int64 option = v211 |> Array.tryItem 0 │
00:03:14 #2586 [Verbose] > │ let v213 : (int64 -> US1) = closure5() │
00:03:14 #2587 [Verbose] > │ let v214 : US1 = US1_0 │
00:03:14 #2588 [Verbose] > │ let v215 : US1 = v212 |> Option.map v213 |> Option.defaultValue v214 │
00:03:14 #2589 [Verbose] > │ let v218 : int64 = │
00:03:14 #2590 [Verbose] > │ match v215 with │
00:03:14 #2591 [Verbose] > │ | US1_0 -> (* None *) │
00:03:14 #2592 [Verbose] > │ 0L │
00:03:14 #2593 [Verbose] > │ | US1_1(v216) -> (* Some *) │
00:03:14 #2594 [Verbose] > │ v216 │
00:03:14 #2595 [Verbose] > │ v198.[int v201] <- v218 │
00:03:14 #2596 [Verbose] > │ let v219 : uint64 = v201 + 1UL │
00:03:14 #2597 [Verbose] > │ v199.l0 <- v219 │
00:03:14 #2598 [Verbose] > │ () │
00:03:14 #2599 [Verbose] > │ let v220 : uint64 = System.Convert.ToUInt64 v198.Length │
00:03:14 #2600 [Verbose] > │ let v221 : UH6 = UH6_1 │
00:03:14 #2601 [Verbose] > │ let v222 : Mut3 = {l0 = 0UL; l1 = v221; l2 = 0} : Mut3 │
00:03:14 #2602 [Verbose] > │ while method28(v220, v222) do │
00:03:14 #2603 [Verbose] > │ let v224 : uint64 = v222.l0 │
00:03:14 #2604 [Verbose] > │ let struct (v225 : UH6, v226 : int32) = v222.l1, v222.l2 │
00:03:14 #2605 [Verbose] > │ let v227 : int64 = v198.[int v224] │
00:03:14 #2606 [Verbose] > │ let v228 : int32 = v226 + 1 │
00:03:14 #2607 [Verbose] > │ let v229 : uint64 = v224 + 1UL │
00:03:14 #2608 [Verbose] > │ let v230 : UH6 = UH6_0(v226, v227, v225) │
00:03:14 #2609 [Verbose] > │ v222.l0 <- v229 │
00:03:14 #2610 [Verbose] > │ v222.l1 <- v230 │
00:03:14 #2611 [Verbose] > │ v222.l2 <- v228 │
00:03:14 #2612 [Verbose] > │ () │
00:03:14 #2613 [Verbose] > │ let struct (v231 : UH6, v232 : int32) = v222.l1, v222.l2 │
00:03:14 #2614 [Verbose] > │ let v233 : UH6 = UH6_1 │
00:03:14 #2615 [Verbose] > │ let v234 : UH6 = method29(v231, v233) │
00:03:14 #2616 [Verbose] > │ let v235 : (struct (int32 * int64) []) = method30(v234) │
00:03:14 #2617 [Verbose] > │ let v236 : Map<int32, int64> = v235 |> Array.map (fun (struct (a, b)) -> │
00:03:14 #2618 [Verbose] > │ a, b) |> Map.ofArray │
00:03:14 #2619 [Verbose] > │ let v237 : (struct ((string []) * US0) []) = Array.zeroCreate<struct │
00:03:14 #2620 [Verbose] > │ ((string []) * US0)> (System.Convert.ToInt32(v187)) │
00:03:14 #2621 [Verbose] > │ let v238 : Mut0 = {l0 = 0UL} : Mut0 │
00:03:14 #2622 [Verbose] > │ while method4(v187, v238) do │
00:03:14 #2623 [Verbose] > │ let v240 : uint64 = v238.l0 │
00:03:14 #2624 [Verbose] > │ let struct (v241 : UH2, v242 : US0) = v174.[int v240] │
00:03:14 #2625 [Verbose] > │ let v243 : UH7 = UH7_1 │
00:03:14 #2626 [Verbose] > │ let v244 : int32 = 0 │
00:03:14 #2627 [Verbose] > │ let struct (v245 : UH7, v246 : int32) = method33(v241, v243, v244) │
00:03:14 #2628 [Verbose] > │ let v247 : UH7 = UH7_1 │
00:03:14 #2629 [Verbose] > │ let v248 : UH7 = method34(v245, v247) │
00:03:14 #2630 [Verbose] > │ let v249 : UH2 = UH2_1 │
00:03:14 #2631 [Verbose] > │ let v250 : UH2 = method35(v236, v248, v249) │
00:03:14 #2632 [Verbose] > │ let v251 : (string []) = method9(v250) │
00:03:14 #2633 [Verbose] > │ v237.[int v240] <- struct (v251, v242) │
00:03:14 #2634 [Verbose] > │ let v252 : uint64 = v240 + 1UL │
00:03:14 #2635 [Verbose] > │ v238.l0 <- v252 │
00:03:14 #2636 [Verbose] > │ () │
00:03:14 #2637 [Verbose] > │ System.Console.WriteLine v2 │
00:03:14 #2638 [Verbose] > │ let v253 : uint64 = System.Convert.ToUInt64 v237.Length │
00:03:14 #2639 [Verbose] > │ let v254 : Mut0 = {l0 = 0UL} : Mut0 │
00:03:14 #2640 [Verbose] > │ while method4(v253, v254) do │
00:03:14 #2641 [Verbose] > │ let v256 : uint64 = v254.l0 │
00:03:14 #2642 [Verbose] > │ let struct (v257 : (string []), v258 : US0) = v237.[int v256] │
00:03:14 #2643 [Verbose] > │ match v258 with │
00:03:14 #2644 [Verbose] > │ | US0_0 -> (* None *) │
00:03:14 #2645 [Verbose] > │ let mutable result = None │
00:03:14 #2646 [Verbose] > │ #if FABLE_COMPILER_RUST │
00:03:14 #2647 [Verbose] > │ #if !WASM │
00:03:14 #2648 [Verbose] > │ () │
00:03:14 #2649 [Verbose] > │ #else │
00:03:14 #2650 [Verbose] > │ () │
00:03:14 #2651 [Verbose] > │ #endif │
00:03:14 #2652 [Verbose] > │ #else │
00:03:14 #2653 [Verbose] > │ System.Console.ResetColor () │
00:03:14 #2654 [Verbose] > │ () │
00:03:14 #2655 [Verbose] > │ #endif │
00:03:14 #2656 [Verbose] > │ |> fun x -> result <- Some x │
00:03:14 #2657 [Verbose] > │ result |> Option.get │
00:03:14 #2658 [Verbose] > │ () │
00:03:14 #2659 [Verbose] > │ | US0_1(v259) -> (* Some *) │
00:03:14 #2660 [Verbose] > │ let mutable result = None │
00:03:14 #2661 [Verbose] > │ #if FABLE_COMPILER_RUST │
00:03:14 #2662 [Verbose] > │ #if !WASM │
00:03:14 #2663 [Verbose] > │ () │
00:03:14 #2664 [Verbose] > │ #else │
00:03:14 #2665 [Verbose] > │ () │
00:03:14 #2666 [Verbose] > │ #endif │
00:03:14 #2667 [Verbose] > │ #else │
00:03:14 #2668 [Verbose] > │ System.Console.ForegroundColor <- v259 │
00:03:14 #2669 [Verbose] > │ () │
00:03:14 #2670 [Verbose] > │ #endif │
00:03:14 #2671 [Verbose] > │ |> fun x -> result <- Some x │
00:03:14 #2672 [Verbose] > │ result |> Option.get │
00:03:14 #2673 [Verbose] > │ () │
00:03:14 #2674 [Verbose] > │ let v260 : string = "\t| " │
00:03:14 #2675 [Verbose] > │ let v261 : string = System.String.Join (v260, v257) │
00:03:14 #2676 [Verbose] > │ System.Console.WriteLine v261 │
00:03:14 #2677 [Verbose] > │ let mutable result = None │
00:03:14 #2678 [Verbose] > │ #if FABLE_COMPILER_RUST │
00:03:14 #2679 [Verbose] > │ #if !WASM │
00:03:14 #2680 [Verbose] > │ () │
00:03:14 #2681 [Verbose] > │ #else │
00:03:14 #2682 [Verbose] > │ () │
00:03:14 #2683 [Verbose] > │ #endif │
00:03:14 #2684 [Verbose] > │ #else │
00:03:14 #2685 [Verbose] > │ System.Console.ResetColor () │
00:03:14 #2686 [Verbose] > │ () │
00:03:14 #2687 [Verbose] > │ #endif │
00:03:14 #2688 [Verbose] > │ |> fun x -> result <- Some x │
00:03:14 #2689 [Verbose] > │ result |> Option.get │
00:03:14 #2690 [Verbose] > │ let v262 : uint64 = v256 + 1UL │
00:03:14 #2691 [Verbose] > │ v254.l0 <- v262 │
00:03:14 #2692 [Verbose] > │ () │
00:03:14 #2693 [Verbose] > │ let v263 : ((float []) []) = Array.zeroCreate<(float [])> │
00:03:14 #2694 [Verbose] > │ (System.Convert.ToInt32(v99)) │
00:03:14 #2695 [Verbose] > │ let v264 : Mut0 = {l0 = 0UL} : Mut0 │
00:03:14 #2696 [Verbose] > │ while method4(v99, v264) do │
00:03:14 #2697 [Verbose] > │ let v266 : uint64 = v264.l0 │
00:03:14 #2698 [Verbose] > │ let struct (v267 : string, v268 : string, v269 : string, v270 : │
00:03:14 #2699 [Verbose] > │ (int64 [])) = v24.[int v266] │
00:03:14 #2700 [Verbose] > │ let v271 : (int64 -> float) = float │
00:03:14 #2701 [Verbose] > │ let v272 : uint64 = System.Convert.ToUInt64 v270.Length │
00:03:14 #2702 [Verbose] > │ let v273 : (float []) = Array.zeroCreate<float> │
00:03:14 #2703 [Verbose] > │ (System.Convert.ToInt32(v272)) │
00:03:14 #2704 [Verbose] > │ let v274 : Mut0 = {l0 = 0UL} : Mut0 │
00:03:14 #2705 [Verbose] > │ while method4(v272, v274) do │
00:03:14 #2706 [Verbose] > │ let v276 : uint64 = v274.l0 │
00:03:14 #2707 [Verbose] > │ let v277 : int64 = v270.[int v276] │
00:03:14 #2708 [Verbose] > │ let v278 : float = v271 v277 │
00:03:14 #2709 [Verbose] > │ v273.[int v276] <- v278 │
00:03:14 #2710 [Verbose] > │ let v279 : uint64 = v276 + 1UL │
00:03:14 #2711 [Verbose] > │ v274.l0 <- v279 │
00:03:14 #2712 [Verbose] > │ () │
00:03:14 #2713 [Verbose] > │ v263.[int v266] <- v273 │
00:03:14 #2714 [Verbose] > │ let v280 : uint64 = v266 + 1UL │
00:03:14 #2715 [Verbose] > │ v264.l0 <- v280 │
00:03:14 #2716 [Verbose] > │ () │
00:03:14 #2717 [Verbose] > │ let v281 : ((float []) []) = v263 |> Array.transpose │
00:03:14 #2718 [Verbose] > │ let v282 : uint64 = System.Convert.ToUInt64 v281.Length │
00:03:14 #2719 [Verbose] > │ let v283 : (float []) = Array.zeroCreate<float> │
00:03:14 #2720 [Verbose] > │ (System.Convert.ToInt32(v282)) │
00:03:14 #2721 [Verbose] > │ let v284 : Mut0 = {l0 = 0UL} : Mut0 │
00:03:14 #2722 [Verbose] > │ while method4(v282, v284) do │
00:03:14 #2723 [Verbose] > │ let v286 : uint64 = v284.l0 │
00:03:14 #2724 [Verbose] > │ let v287 : (float []) = v281.[int v286] │
00:03:14 #2725 [Verbose] > │ let v288 : float = v287 |> Array.average │
00:03:14 #2726 [Verbose] > │ v283.[int v286] <- v288 │
00:03:14 #2727 [Verbose] > │ let v289 : uint64 = v286 + 1UL │
00:03:14 #2728 [Verbose] > │ v284.l0 <- v289 │
00:03:14 #2729 [Verbose] > │ () │
00:03:14 #2730 [Verbose] > │ let v290 : (float -> int64) = int64 │
00:03:14 #2731 [Verbose] > │ let v291 : uint64 = System.Convert.ToUInt64 v283.Length │
00:03:14 #2732 [Verbose] > │ let v292 : (int64 []) = Array.zeroCreate<int64> │
00:03:14 #2733 [Verbose] > │ (System.Convert.ToInt32(v291)) │
00:03:14 #2734 [Verbose] > │ let v293 : Mut0 = {l0 = 0UL} : Mut0 │
00:03:14 #2735 [Verbose] > │ while method4(v291, v293) do │
00:03:14 #2736 [Verbose] > │ let v295 : uint64 = v293.l0 │
00:03:14 #2737 [Verbose] > │ let v296 : float = v283.[int v295] │
00:03:14 #2738 [Verbose] > │ let v297 : int64 = v290 v296 │
00:03:14 #2739 [Verbose] > │ v292.[int v295] <- v297 │
00:03:14 #2740 [Verbose] > │ let v298 : uint64 = v295 + 1UL │
00:03:14 #2741 [Verbose] > │ v293.l0 <- v298 │
00:03:14 #2742 [Verbose] > │ () │
00:03:14 #2743 [Verbose] > │ let v299 : uint64 = System.Convert.ToUInt64 v292.Length │
00:03:14 #2744 [Verbose] > │ let v300 : UH6 = UH6_1 │
00:03:14 #2745 [Verbose] > │ let v301 : Mut3 = {l0 = 0UL; l1 = v300; l2 = 0} : Mut3 │
00:03:14 #2746 [Verbose] > │ while method28(v299, v301) do │
00:03:14 #2747 [Verbose] > │ let v303 : uint64 = v301.l0 │
00:03:14 #2748 [Verbose] > │ let struct (v304 : UH6, v305 : int32) = v301.l1, v301.l2 │
00:03:14 #2749 [Verbose] > │ let v306 : int64 = v292.[int v303] │
00:03:14 #2750 [Verbose] > │ let v307 : int32 = v305 + 1 │
00:03:14 #2751 [Verbose] > │ let v308 : uint64 = v303 + 1UL │
00:03:14 #2752 [Verbose] > │ let v309 : UH6 = UH6_0(v305, v306, v304) │
00:03:14 #2753 [Verbose] > │ v301.l0 <- v308 │
00:03:14 #2754 [Verbose] > │ v301.l1 <- v309 │
00:03:14 #2755 [Verbose] > │ v301.l2 <- v307 │
00:03:14 #2756 [Verbose] > │ () │
00:03:14 #2757 [Verbose] > │ let struct (v310 : UH6, v311 : int32) = v301.l1, v301.l2 │
00:03:14 #2758 [Verbose] > │ let v312 : UH6 = UH6_1 │
00:03:14 #2759 [Verbose] > │ let v313 : UH6 = method29(v310, v312) │
00:03:14 #2760 [Verbose] > │ let v314 : (struct (int32 * int64) []) = method36(v313) │
00:03:14 #2761 [Verbose] > │ System.Console.WriteLine v2 │
00:03:14 #2762 [Verbose] > │ let v315 : string = "Average Ranking " │
00:03:14 #2763 [Verbose] > │ System.Console.WriteLine v315 │
00:03:14 #2764 [Verbose] > │ let v316 : (struct (int32 * int64) -> int64) = closure6() │
00:03:14 #2765 [Verbose] > │ let v317 : (struct (int32 * int64) []) = v314 |> Array.sortBy v316 │
00:03:14 #2766 [Verbose] > │ let v318 : uint64 = System.Convert.ToUInt64 v317.Length │
00:03:14 #2767 [Verbose] > │ let v319 : Mut0 = {l0 = 0UL} : Mut0 │
00:03:14 #2768 [Verbose] > │ while method4(v318, v319) do │
00:03:14 #2769 [Verbose] > │ let v321 : uint64 = v319.l0 │
00:03:14 #2770 [Verbose] > │ let struct (v322 : int32, v323 : int64) = v317.[int v321] │
00:03:14 #2771 [Verbose] > │ let v324 : string = $"Test case %d{v322 + 1}. Average Time: %A{v323} │
00:03:14 #2772 [Verbose] > │ " │
00:03:14 #2773 [Verbose] > │ System.Console.WriteLine v324 │
00:03:14 #2774 [Verbose] > │ let v325 : uint64 = v321 + 1UL │
00:03:14 #2775 [Verbose] > │ v319.l0 <- v325 │
00:03:14 #2776 [Verbose] > │ () │
00:03:14 #2777 [Verbose] > │ () │
00:03:14 #2778 [Verbose] > │ method0() │
00:03:14 #2779 [Verbose] > │ │
00:03:14 #2780 [Verbose] > │ │
00:03:14 #2781 [Verbose] > │ │
00:03:14 #2782 [Verbose] > │ Test: v0 │
00:03:14 #2783 [Verbose] > │ │
00:03:14 #2784 [Verbose] > │ Solution: "abc" │
00:03:14 #2785 [Verbose] > │ Test case 1. F. Time: 886 │
00:03:14 #2786 [Verbose] > │ Test case 2. FA. Time: 1159 │
00:03:14 #2787 [Verbose] > │ │
00:03:14 #2788 [Verbose] > │ Solution: "abcde" │
00:03:14 #2789 [Verbose] > │ Test case 1. F. Time: 1033 │
00:03:14 #2790 [Verbose] > │ Test case 2. FA. Time: 1249 │
00:03:14 #2791 [Verbose] > │ │
00:03:14 #2792 [Verbose] > │ Solution: "abcdefghi" │
00:03:14 #2793 [Verbose] > │ Test case 1. F. Time: 1662 │
00:03:14 #2794 [Verbose] > │ Test case 2. FA. Time: 2123 │
00:03:14 #2795 [Verbose] > │ │
00:03:14 #2796 [Verbose] > │ Solution: "abab" │
00:03:14 #2797 [Verbose] > │ Test case 1. F. Time: 898 │
00:03:14 #2798 [Verbose] > │ Test case 2. FA. Time: 994 │
00:03:14 #2799 [Verbose] > │ │
00:03:14 #2800 [Verbose] > │ Solution: "aa" │
00:03:14 #2801 [Verbose] > │ Test case 1. F. Time: 588 │
00:03:14 #2802 [Verbose] > │ Test case 2. FA. Time: 608 │
00:03:14 #2803 [Verbose] > │ │
00:03:14 #2804 [Verbose] > │ Solution: "z" │
00:03:14 #2805 [Verbose] > │ Test case 1. F. Time: 83 │
00:03:14 #2806 [Verbose] > │ Test case 2. FA. Time: 77 │
00:03:14 #2807 [Verbose] > │ │
00:03:14 #2808 [Verbose] > │ Input | Expected │
00:03:14 #2809 [Verbose] > │ │
00:03:14 #2810 [Verbose] > │ | Result │
00:03:14 #2811 [Verbose] > │ │
00:03:14 #2812 [Verbose] > │ | Best │
00:03:14 #2813 [Verbose] > │ --- | --- │
00:03:14 #2814 [Verbose] > │ │
00:03:14 #2815 [Verbose] > │ | --- │
00:03:14 #2816 [Verbose] > │ │
00:03:14 #2817 [Verbose] > │ | --- │
00:03:14 #2818 [Verbose] > │ "abc" | "bca cab abc" │
00:03:14 #2819 [Verbose] > │ │
00:03:14 #2820 [Verbose] > │ | "bca cab abc" │
00:03:14 #2821 [Verbose] > │ │
00:03:14 #2822 [Verbose] > │ | struct (1L, 886L) │
00:03:14 #2823 [Verbose] > │ "abcde" | "bcdea cdeab deabc eabcd abcde" │
00:03:14 #2824 [Verbose] > │ | "bcdea cdeab deabc eabcd abcde" │
00:03:14 #2825 [Verbose] > │ | struct (1L, 1033L) │
00:03:14 #2826 [Verbose] > │ "abcdefghi" | "bcdefghia cdefghiab defghiabc efghiabcd fghiabcde ghiabcdef │
00:03:14 #2827 [Verbose] > │ hiabcdefg iabcdefgh abcdefghi" | "bcdefghia cdefghiab defghiabc efghiabcd │
00:03:14 #2828 [Verbose] > │ fghiabcde ghiabcdef hiabcdefg iabcdefgh abcdefghi" | struct (1L, 1662L) │
00:03:14 #2829 [Verbose] > │ "abab" | "baba abab baba abab" │
00:03:14 #2830 [Verbose] > │ | "baba abab baba abab" │
00:03:14 #2831 [Verbose] > │ | struct (1L, 898L) │
00:03:14 #2832 [Verbose] > │ "aa" | "aa aa" │
00:03:14 #2833 [Verbose] > │ │
00:03:14 #2834 [Verbose] > │ | "aa aa" │
00:03:14 #2835 [Verbose] > │ │
00:03:14 #2836 [Verbose] > │ | struct (1L, 588L) │
00:03:14 #2837 [Verbose] > │ "z" | "z" │
00:03:14 #2838 [Verbose] > │ │
00:03:14 #2839 [Verbose] > │ | "z" │
00:03:14 #2840 [Verbose] > │ │
00:03:14 #2841 [Verbose] > │ | struct (2L, 77L) │
00:03:14 #2842 [Verbose] > │ │
00:03:14 #2843 [Verbose] > │ Average Ranking │
00:03:14 #2844 [Verbose] > │ Test case 1. Average Time: 858L │
00:03:14 #2845 [Verbose] > │ Test case 2. Average Time: 1035L │
00:03:14 #2846 [Verbose] > │ │
00:03:14 #2847 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:14 #2848 [Verbose] >
00:03:14 #2849 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:14 #2850 [Verbose] > // // test
00:03:14 #2851 [Verbose] > // // rust=
00:03:14 #2852 [Verbose] > // // print_code=false
00:03:14 #2853 [Verbose] >
00:03:14 #2854 [Verbose] > // rotate_strings_tests ()
00:03:14 #2855 [Verbose] > Building /tmp/!dotnet-repl/20240325-2032-1957-5792-5ef450df74bd/main.spi
00:03:14 #2856 [Verbose] >
00:03:14 #2857 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:03:14 #2858 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:14 #2859 [Verbose] > │ ## binary_search_tests │
00:03:14 #2860 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:14 #2861 [Verbose] >
00:03:14 #2862 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:14 #2863 [Verbose] > // // test
00:03:14 #2864 [Verbose] > // // timeout=90000
00:03:14 #2865 [Verbose] > // // print_code=true
00:03:14 #2866 [Verbose] >
00:03:14 #2867 [Verbose] > inl binary_search_semi_open_1 arr target left right =
00:03:14 #2868 [Verbose] > inl rec body left right =
00:03:14 #2869 [Verbose] > if left >= right
00:03:14 #2870 [Verbose] > then None
00:03:14 #2871 [Verbose] > else
00:03:14 #2872 [Verbose] > inl mid = (left + right) / 2
00:03:14 #2873 [Verbose] > inl item = index arr mid
00:03:14 #2874 [Verbose] > if item = target
00:03:14 #2875 [Verbose] > then Some mid
00:03:14 #2876 [Verbose] > elif item < target
00:03:14 #2877 [Verbose] > then loop (mid + 1) right
00:03:14 #2878 [Verbose] > else loop left mid
00:03:14 #2879 [Verbose] > and inl loop left right =
00:03:14 #2880 [Verbose] > if var_is right |> not
00:03:14 #2881 [Verbose] > then body left right
00:03:14 #2882 [Verbose] > else
00:03:14 #2883 [Verbose] > inl left = dyn left
00:03:14 #2884 [Verbose] > join body left right
00:03:14 #2885 [Verbose] > loop left right
00:03:14 #2886 [Verbose] >
00:03:14 #2887 [Verbose] > inl binary_search_closed_1 arr target left right =
00:03:14 #2888 [Verbose] > inl rec body left right =
00:03:14 #2889 [Verbose] > if left > right
00:03:14 #2890 [Verbose] > then None
00:03:14 #2891 [Verbose] > else
00:03:14 #2892 [Verbose] > inl mid = (left + right) / 2
00:03:14 #2893 [Verbose] > inl item = index arr mid
00:03:14 #2894 [Verbose] > if item = target
00:03:14 #2895 [Verbose] > then Some mid
00:03:14 #2896 [Verbose] > elif item < target
00:03:14 #2897 [Verbose] > then loop (mid + 1) right
00:03:14 #2898 [Verbose] > else loop left (mid - 1)
00:03:14 #2899 [Verbose] > and inl loop left right =
00:03:14 #2900 [Verbose] > if var_is right |> not
00:03:14 #2901 [Verbose] > then body left right
00:03:14 #2902 [Verbose] > else
00:03:14 #2903 [Verbose] > inl left = dyn left
00:03:14 #2904 [Verbose] > join body left right
00:03:14 #2905 [Verbose] > loop left right
00:03:14 #2906 [Verbose] >
00:03:14 #2907 [Verbose] > inl binary_search_semi_open_2 arr target left right =
00:03:14 #2908 [Verbose] > let rec body left right =
00:03:14 #2909 [Verbose] > if left >= right
00:03:14 #2910 [Verbose] > then None
00:03:14 #2911 [Verbose] > else
00:03:14 #2912 [Verbose] > inl mid = (left + right) / 2
00:03:14 #2913 [Verbose] > inl item = index arr mid
00:03:14 #2914 [Verbose] > if item = target
00:03:14 #2915 [Verbose] > then Some mid
00:03:14 #2916 [Verbose] > elif item < target
00:03:14 #2917 [Verbose] > then loop (mid + 1) right
00:03:14 #2918 [Verbose] > else loop left mid
00:03:14 #2919 [Verbose] > and inl loop left right = body left right
00:03:14 #2920 [Verbose] > loop left right
00:03:14 #2921 [Verbose] >
00:03:14 #2922 [Verbose] > inl binary_search_closed_2 arr target left right =
00:03:14 #2923 [Verbose] > let rec body left right =
00:03:14 #2924 [Verbose] > if left > right
00:03:14 #2925 [Verbose] > then None
00:03:14 #2926 [Verbose] > else
00:03:14 #2927 [Verbose] > inl mid = (left + right) / 2
00:03:14 #2928 [Verbose] > inl item = index arr mid
00:03:14 #2929 [Verbose] > if item = target
00:03:14 #2930 [Verbose] > then Some mid
00:03:14 #2931 [Verbose] > elif item < target
00:03:14 #2932 [Verbose] > then loop (mid + 1) right
00:03:14 #2933 [Verbose] > else loop left (mid - 1)
00:03:14 #2934 [Verbose] > and inl loop left right = body left right
00:03:14 #2935 [Verbose] > loop left right
00:03:14 #2936 [Verbose] >
00:03:14 #2937 [Verbose] > inl get_solutions () =
00:03:14 #2938 [Verbose] > [[
00:03:14 #2939 [Verbose] > "semi_open_1",
00:03:14 #2940 [Verbose] > fun (arr, (target, len)) =>
00:03:14 #2941 [Verbose] > binary_search_semi_open_1 arr target 0 len
00:03:14 #2942 [Verbose] >
00:03:14 #2943 [Verbose] > "closed_1",
00:03:14 #2944 [Verbose] > fun (arr, (target, len)) =>
00:03:14 #2945 [Verbose] > binary_search_closed_1 arr target 0 (len - 1)
00:03:14 #2946 [Verbose] >
00:03:14 #2947 [Verbose] > "semi_open_2",
00:03:14 #2948 [Verbose] > fun (arr, (target, len)) =>
00:03:14 #2949 [Verbose] > binary_search_semi_open_2 arr target 0 len
00:03:14 #2950 [Verbose] >
00:03:14 #2951 [Verbose] > "closed_2",
00:03:14 #2952 [Verbose] > fun (arr, (target, len)) =>
00:03:14 #2953 [Verbose] > binary_search_closed_2 arr target 0 (len - 1)
00:03:14 #2954 [Verbose] > ]]
00:03:14 #2955 [Verbose] >
00:03:14 #2956 [Verbose] > inl rec binary_search_tests () =
00:03:14 #2957 [Verbose] > inl arr_with_len target len arr =
00:03:14 #2958 [Verbose] > arr, (target, (len |> optionm'.default_with fun () => length arr))
00:03:14 #2959 [Verbose] >
00:03:14 #2960 [Verbose] > inl test_cases = [[
00:03:14 #2961 [Verbose] > (a ;[[ 1i32; 3; 4; 6; 8; 9; 11 ]] |> arr_with_len 6 None), (Some 3i32)
00:03:14 #2962 [Verbose] > (a ;[[ 1i32; 3; 4; 6; 8; 9; 11 ]] |> arr_with_len 1 None), (Some 0i32)
00:03:14 #2963 [Verbose] > (a ;[[ 1i32; 3; 4; 6; 8; 9; 11 ]] |> arr_with_len 11 None), (Some 6i32)
00:03:14 #2964 [Verbose] > (a ;[[ 1i32; 3; 4; 6; 8; 9; 11 ]] |> arr_with_len 12 None), None
00:03:14 #2965 [Verbose] > ((am'.init_series 1i32 100 1) |> arr_with_len 60 None), (Some 59)
00:03:14 #2966 [Verbose] >
00:03:14 #2967 [Verbose] > (a ;[[ 1i32; 3; 4; 6; 8; 9; 11 ]] |> arr_with_len 6 (Some 7)), (Some
00:03:14 #2968 [Verbose] > 3i32)
00:03:14 #2969 [Verbose] > (a ;[[ 1i32; 3; 4; 6; 8; 9; 11 ]] |> arr_with_len 1 (Some 7)), (Some
00:03:14 #2970 [Verbose] > 0i32)
00:03:14 #2971 [Verbose] > (a ;[[ 1i32; 3; 4; 6; 8; 9; 11 ]] |> arr_with_len 11 (Some 7)), (Some
00:03:14 #2972 [Verbose] > 6i32)
00:03:14 #2973 [Verbose] > (a ;[[ 1i32; 3; 4; 6; 8; 9; 11 ]] |> arr_with_len 12 (Some 7)), None
00:03:14 #2974 [Verbose] > ((am'.init_series 1i32 100 1) |> arr_with_len 60 (Some 100)), (Some 59)
00:03:14 #2975 [Verbose] > ]]
00:03:14 #2976 [Verbose] >
00:03:14 #2977 [Verbose] > inl solutions = get_solutions ()
00:03:14 #2978 [Verbose] >
00:03:14 #2979 [Verbose] > // inl is_fast () = true
00:03:14 #2980 [Verbose] >
00:03:14 #2981 [Verbose] > inl count =
00:03:14 #2982 [Verbose] > if is_fast ()
00:03:14 #2983 [Verbose] > then 1000i32
00:03:14 #2984 [Verbose] > else 8000000i32
00:03:14 #2985 [Verbose] >
00:03:14 #2986 [Verbose] > run_all (nameof binary_search_tests) count solutions test_cases
00:03:14 #2987 [Verbose] > |> sort_result_list
00:03:14 #2988 [Verbose] >
00:03:14 #2989 [Verbose] >
00:03:14 #2990 [Verbose] > let main () =
00:03:14 #2991 [Verbose] > binary_search_tests ()
00:03:14 #2992 [Verbose] > Building /tmp/!dotnet-repl/20240325-2032-1971-7155-7ca68562022a/main.spi
00:03:24 #2993 [Verbose] >
00:03:24 #2994 [Verbose] > ╭─[ 9.96s - stdout ]───────────────────────────────────────────────────────────╮
00:03:24 #2995 [Verbose] > │ type Mut0 = {mutable l0 : int32} │
00:03:24 #2996 [Verbose] > │ and [<Struct>] US0 = │
00:03:24 #2997 [Verbose] > │ | US0_0 │
00:03:24 #2998 [Verbose] > │ | US0_1 of f1_0 : int32 │
00:03:24 #2999 [Verbose] > │ and UH0 = │
00:03:24 #3000 [Verbose] > │ | UH0_0 of (int32 []) * int32 * int32 * US0 * UH0 │
00:03:24 #3001 [Verbose] > │ | UH0_1 │
00:03:24 #3002 [Verbose] > │ and Mut1 = {mutable l0 : uint64} │
00:03:24 #3003 [Verbose] > │ and UH1 = │
00:03:24 #3004 [Verbose] > │ | UH1_0 of int32 * string * (struct ((int32 []) * int32 * int32) -> US0) │
00:03:24 #3005 [Verbose] > │ * UH1 │
00:03:24 #3006 [Verbose] > │ | UH1_1 │
00:03:24 #3007 [Verbose] > │ and UH2 = │
00:03:24 #3008 [Verbose] > │ | UH2_0 of string * UH2 │
00:03:24 #3009 [Verbose] > │ | UH2_1 │
00:03:24 #3010 [Verbose] > │ and [<Struct>] US1 = │
00:03:24 #3011 [Verbose] > │ | US1_0 │
00:03:24 #3012 [Verbose] > │ | US1_1 of f1_0 : System.ConsoleColor │
00:03:24 #3013 [Verbose] > │ and UH3 = │
00:03:24 #3014 [Verbose] > │ | UH3_0 of int64 * int64 * UH3 │
00:03:24 #3015 [Verbose] > │ | UH3_1 │
00:03:24 #3016 [Verbose] > │ and Mut2 = {mutable l0 : uint64; mutable l1 : UH3; mutable l2 : int64} │
00:03:24 #3017 [Verbose] > │ and UH4 = │
00:03:24 #3018 [Verbose] > │ | UH4_0 of UH2 * US1 * UH4 │
00:03:24 #3019 [Verbose] > │ | UH4_1 │
00:03:24 #3020 [Verbose] > │ and [<Struct>] US2 = │
00:03:24 #3021 [Verbose] > │ | US2_0 │
00:03:24 #3022 [Verbose] > │ | US2_1 of f1_0 : int64 │
00:03:24 #3023 [Verbose] > │ and UH5 = │
00:03:24 #3024 [Verbose] > │ | UH5_0 of int32 * int64 * UH5 │
00:03:24 #3025 [Verbose] > │ | UH5_1 │
00:03:24 #3026 [Verbose] > │ and Mut3 = {mutable l0 : uint64; mutable l1 : UH5; mutable l2 : int32} │
00:03:24 #3027 [Verbose] > │ and UH6 = │
00:03:24 #3028 [Verbose] > │ | UH6_0 of int32 * string * UH6 │
00:03:24 #3029 [Verbose] > │ | UH6_1 │
00:03:24 #3030 [Verbose] > │ let rec method1 (v0 : (int32 [])) : (int32 []) = │
00:03:24 #3031 [Verbose] > │ v0 │
00:03:24 #3032 [Verbose] > │ and method2 (v0 : Mut0) : bool = │
00:03:24 #3033 [Verbose] > │ let v1 : int32 = v0.l0 │
00:03:24 #3034 [Verbose] > │ let v2 : bool = v1 < 100 │
00:03:24 #3035 [Verbose] > │ v2 │
00:03:24 #3036 [Verbose] > │ and method4 (v0 : UH0, v1 : uint64) : uint64 = │
00:03:24 #3037 [Verbose] > │ match v0 with │
00:03:24 #3038 [Verbose] > │ | UH0_0(v2, v3, v4, v5, v6) -> (* Cons *) │
00:03:24 #3039 [Verbose] > │ let v7 : uint64 = v1 + 1UL │
00:03:24 #3040 [Verbose] > │ method4(v6, v7) │
00:03:24 #3041 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:03:24 #3042 [Verbose] > │ v1 │
00:03:24 #3043 [Verbose] > │ and method5 (v0 : (struct ((int32 []) * int32 * int32 * US0) []), v1 : UH0, │
00:03:24 #3044 [Verbose] > │ v2 : uint64) : uint64 = │
00:03:24 #3045 [Verbose] > │ match v1 with │
00:03:24 #3046 [Verbose] > │ | UH0_0(v3, v4, v5, v6, v7) -> (* Cons *) │
00:03:24 #3047 [Verbose] > │ v0.[int v2] <- struct (v3, v4, v5, v6) │
00:03:24 #3048 [Verbose] > │ let v8 : uint64 = v2 + 1UL │
00:03:24 #3049 [Verbose] > │ method5(v0, v7, v8) │
00:03:24 #3050 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:03:24 #3051 [Verbose] > │ v2 │
00:03:24 #3052 [Verbose] > │ and method3 (v0 : UH0) : (struct ((int32 []) * int32 * int32 * US0) []) = │
00:03:24 #3053 [Verbose] > │ let v1 : uint64 = 0UL │
00:03:24 #3054 [Verbose] > │ let v2 : uint64 = method4(v0, v1) │
00:03:24 #3055 [Verbose] > │ let v3 : (struct ((int32 []) * int32 * int32 * US0) []) = │
00:03:24 #3056 [Verbose] > │ Array.zeroCreate<struct ((int32 []) * int32 * int32 * US0)> │
00:03:24 #3057 [Verbose] > │ (System.Convert.ToInt32(v2)) │
00:03:24 #3058 [Verbose] > │ let v4 : uint64 = 0UL │
00:03:24 #3059 [Verbose] > │ let v5 : uint64 = method5(v3, v0, v4) │
00:03:24 #3060 [Verbose] > │ v3 │
00:03:24 #3061 [Verbose] > │ and method6 (v0 : uint64, v1 : Mut1) : bool = │
00:03:24 #3062 [Verbose] > │ let v2 : uint64 = v1.l0 │
00:03:24 #3063 [Verbose] > │ let v3 : bool = v2 < v0 │
00:03:24 #3064 [Verbose] > │ v3 │
00:03:24 #3065 [Verbose] > │ and method7 (v0 : (int32 []), v1 : int32, v2 : int32, v3 : int32) : US0 = │
00:03:24 #3066 [Verbose] > │ let v4 : bool = v3 >= v2 │
00:03:24 #3067 [Verbose] > │ if v4 then │
00:03:24 #3068 [Verbose] > │ US0_0 │
00:03:24 #3069 [Verbose] > │ else │
00:03:24 #3070 [Verbose] > │ let v6 : int32 = v3 + v2 │
00:03:24 #3071 [Verbose] > │ let v7 : int32 = v6 / 2 │
00:03:24 #3072 [Verbose] > │ let v8 : int32 = v0.[int v7] │
00:03:24 #3073 [Verbose] > │ let v9 : bool = v8 = v1 │
00:03:24 #3074 [Verbose] > │ if v9 then │
00:03:24 #3075 [Verbose] > │ US0_1(v7) │
00:03:24 #3076 [Verbose] > │ else │
00:03:24 #3077 [Verbose] > │ let v11 : bool = v8 < v1 │
00:03:24 #3078 [Verbose] > │ if v11 then │
00:03:24 #3079 [Verbose] > │ let v12 : int32 = v7 + 1 │
00:03:24 #3080 [Verbose] > │ method7(v0, v1, v2, v12) │
00:03:24 #3081 [Verbose] > │ else │
00:03:24 #3082 [Verbose] > │ method7(v0, v1, v7, v3) │
00:03:24 #3083 [Verbose] > │ and closure1 () struct (v0 : (int32 []), v1 : int32, v2 : int32) : US0 = │
00:03:24 #3084 [Verbose] > │ let v3 : int32 = 0 │
00:03:24 #3085 [Verbose] > │ method7(v0, v1, v2, v3) │
00:03:24 #3086 [Verbose] > │ and method8 (v0 : (int32 []), v1 : int32, v2 : int32, v3 : int32) : US0 = │
00:03:24 #3087 [Verbose] > │ let v4 : bool = v3 > v2 │
00:03:24 #3088 [Verbose] > │ if v4 then │
00:03:24 #3089 [Verbose] > │ US0_0 │
00:03:24 #3090 [Verbose] > │ else │
00:03:24 #3091 [Verbose] > │ let v6 : int32 = v3 + v2 │
00:03:24 #3092 [Verbose] > │ let v7 : int32 = v6 / 2 │
00:03:24 #3093 [Verbose] > │ let v8 : int32 = v0.[int v7] │
00:03:24 #3094 [Verbose] > │ let v9 : bool = v8 = v1 │
00:03:24 #3095 [Verbose] > │ if v9 then │
00:03:24 #3096 [Verbose] > │ US0_1(v7) │
00:03:24 #3097 [Verbose] > │ else │
00:03:24 #3098 [Verbose] > │ let v11 : bool = v8 < v1 │
00:03:24 #3099 [Verbose] > │ if v11 then │
00:03:24 #3100 [Verbose] > │ let v12 : int32 = v7 + 1 │
00:03:24 #3101 [Verbose] > │ method8(v0, v1, v2, v12) │
00:03:24 #3102 [Verbose] > │ else │
00:03:24 #3103 [Verbose] > │ let v14 : int32 = v7 - 1 │
00:03:24 #3104 [Verbose] > │ method8(v0, v1, v14, v3) │
00:03:24 #3105 [Verbose] > │ and closure2 () struct (v0 : (int32 []), v1 : int32, v2 : int32) : US0 = │
00:03:24 #3106 [Verbose] > │ let v3 : int32 = v2 - 1 │
00:03:24 #3107 [Verbose] > │ let v4 : int32 = 0 │
00:03:24 #3108 [Verbose] > │ method8(v0, v1, v3, v4) │
00:03:24 #3109 [Verbose] > │ and method9 (v0 : (int32 []), v1 : int32, v2 : int32, v3 : int32) : US0 = │
00:03:24 #3110 [Verbose] > │ let v4 : bool = v2 >= v3 │
00:03:24 #3111 [Verbose] > │ if v4 then │
00:03:24 #3112 [Verbose] > │ US0_0 │
00:03:24 #3113 [Verbose] > │ else │
00:03:24 #3114 [Verbose] > │ let v6 : int32 = v2 + v3 │
00:03:24 #3115 [Verbose] > │ let v7 : int32 = v6 / 2 │
00:03:24 #3116 [Verbose] > │ let v8 : int32 = v0.[int v7] │
00:03:24 #3117 [Verbose] > │ let v9 : bool = v8 = v1 │
00:03:24 #3118 [Verbose] > │ if v9 then │
00:03:24 #3119 [Verbose] > │ US0_1(v7) │
00:03:24 #3120 [Verbose] > │ else │
00:03:24 #3121 [Verbose] > │ let v11 : bool = v8 < v1 │
00:03:24 #3122 [Verbose] > │ if v11 then │
00:03:24 #3123 [Verbose] > │ let v12 : int32 = v7 + 1 │
00:03:24 #3124 [Verbose] > │ method9(v0, v1, v12, v3) │
00:03:24 #3125 [Verbose] > │ else │
00:03:24 #3126 [Verbose] > │ method9(v0, v1, v2, v7) │
00:03:24 #3127 [Verbose] > │ and closure3 () struct (v0 : (int32 []), v1 : int32, v2 : int32) : US0 = │
00:03:24 #3128 [Verbose] > │ let v3 : int32 = 0 │
00:03:24 #3129 [Verbose] > │ method9(v0, v1, v3, v2) │
00:03:24 #3130 [Verbose] > │ and method10 (v0 : (int32 []), v1 : int32, v2 : int32, v3 : int32) : US0 = │
00:03:24 #3131 [Verbose] > │ let v4 : bool = v2 > v3 │
00:03:24 #3132 [Verbose] > │ if v4 then │
00:03:24 #3133 [Verbose] > │ US0_0 │
00:03:24 #3134 [Verbose] > │ else │
00:03:24 #3135 [Verbose] > │ let v6 : int32 = v2 + v3 │
00:03:24 #3136 [Verbose] > │ let v7 : int32 = v6 / 2 │
00:03:24 #3137 [Verbose] > │ let v8 : int32 = v0.[int v7] │
00:03:24 #3138 [Verbose] > │ let v9 : bool = v8 = v1 │
00:03:24 #3139 [Verbose] > │ if v9 then │
00:03:24 #3140 [Verbose] > │ US0_1(v7) │
00:03:24 #3141 [Verbose] > │ else │
00:03:24 #3142 [Verbose] > │ let v11 : bool = v8 < v1 │
00:03:24 #3143 [Verbose] > │ if v11 then │
00:03:24 #3144 [Verbose] > │ let v12 : int32 = v7 + 1 │
00:03:24 #3145 [Verbose] > │ method10(v0, v1, v12, v3) │
00:03:24 #3146 [Verbose] > │ else │
00:03:24 #3147 [Verbose] > │ let v14 : int32 = v7 - 1 │
00:03:24 #3148 [Verbose] > │ method10(v0, v1, v2, v14) │
00:03:24 #3149 [Verbose] > │ and closure4 () struct (v0 : (int32 []), v1 : int32, v2 : int32) : US0 = │
00:03:24 #3150 [Verbose] > │ let v3 : int32 = v2 - 1 │
00:03:24 #3151 [Verbose] > │ let v4 : int32 = 0 │
00:03:24 #3152 [Verbose] > │ method10(v0, v1, v4, v3) │
00:03:24 #3153 [Verbose] > │ and method12 (v0 : UH1, v1 : uint64) : uint64 = │
00:03:24 #3154 [Verbose] > │ match v0 with │
00:03:24 #3155 [Verbose] > │ | UH1_0(v2, v3, v4, v5) -> (* Cons *) │
00:03:24 #3156 [Verbose] > │ let v6 : uint64 = v1 + 1UL │
00:03:24 #3157 [Verbose] > │ method12(v5, v6) │
00:03:24 #3158 [Verbose] > │ | UH1_1 -> (* Nil *) │
00:03:24 #3159 [Verbose] > │ v1 │
00:03:24 #3160 [Verbose] > │ and method13 (v0 : (struct (int32 * string * (struct ((int32 []) * int32 * │
00:03:24 #3161 [Verbose] > │ int32) -> US0)) []), v1 : UH1, v2 : uint64) : uint64 = │
00:03:24 #3162 [Verbose] > │ match v1 with │
00:03:24 #3163 [Verbose] > │ | UH1_0(v3, v4, v5, v6) -> (* Cons *) │
00:03:24 #3164 [Verbose] > │ v0.[int v2] <- struct (v3, v4, v5) │
00:03:24 #3165 [Verbose] > │ let v7 : uint64 = v2 + 1UL │
00:03:24 #3166 [Verbose] > │ method13(v0, v6, v7) │
00:03:24 #3167 [Verbose] > │ | UH1_1 -> (* Nil *) │
00:03:24 #3168 [Verbose] > │ v2 │
00:03:24 #3169 [Verbose] > │ and method11 (v0 : UH1) : (struct (int32 * string * (struct ((int32 []) * │
00:03:24 #3170 [Verbose] > │ int32 * int32) -> US0)) []) = │
00:03:24 #3171 [Verbose] > │ let v1 : uint64 = 0UL │
00:03:24 #3172 [Verbose] > │ let v2 : uint64 = method12(v0, v1) │
00:03:24 #3173 [Verbose] > │ let v3 : (struct (int32 * string * (struct ((int32 []) * int32 * int32) │
00:03:24 #3174 [Verbose] > │ -> US0)) []) = Array.zeroCreate<struct (int32 * string * (struct ((int32 []) │
00:03:24 #3175 [Verbose] > │ * int32 * int32) -> US0))> (System.Convert.ToInt32(v2)) │
00:03:24 #3176 [Verbose] > │ let v4 : uint64 = 0UL │
00:03:24 #3177 [Verbose] > │ let v5 : uint64 = method13(v3, v0, v4) │
00:03:24 #3178 [Verbose] > │ v3 │
00:03:24 #3179 [Verbose] > │ and method14 (v0 : Mut0) : bool = │
00:03:24 #3180 [Verbose] > │ let v1 : int32 = v0.l0 │
00:03:24 #3181 [Verbose] > │ let v2 : bool = v1 < 8000001 │
00:03:24 #3182 [Verbose] > │ v2 │
00:03:24 #3183 [Verbose] > │ and closure5 (v0 : (int32 []), v1 : int32, v2 : int32, v3 : (struct ((int32 │
00:03:24 #3184 [Verbose] > │ []) * int32 * int32) -> US0)) (v4 : int32) : US0 = │
00:03:24 #3185 [Verbose] > │ v3 struct (v0, v1, v2) │
00:03:24 #3186 [Verbose] > │ and method15 (v0 : US0, v1 : (US0 []), v2 : uint64) : bool = │
00:03:24 #3187 [Verbose] > │ let v3 : uint64 = System.Convert.ToUInt64 v1.Length │
00:03:24 #3188 [Verbose] > │ let v4 : bool = v2 < v3 │
00:03:24 #3189 [Verbose] > │ if v4 then │
00:03:24 #3190 [Verbose] > │ let v5 : US0 = v1.[int v2] │
00:03:24 #3191 [Verbose] > │ let v9 : bool = │
00:03:24 #3192 [Verbose] > │ match v0, v5 with │
00:03:24 #3193 [Verbose] > │ | US0_0, US0_0 -> (* None *) │
00:03:24 #3194 [Verbose] > │ true │
00:03:24 #3195 [Verbose] > │ | US0_1(v6), US0_1(v7) -> (* Some *) │
00:03:24 #3196 [Verbose] > │ let v8 : bool = v6 = v7 │
00:03:24 #3197 [Verbose] > │ v8 │
00:03:24 #3198 [Verbose] > │ | _ -> │
00:03:24 #3199 [Verbose] > │ false │
00:03:24 #3200 [Verbose] > │ if v9 then │
00:03:24 #3201 [Verbose] > │ let v10 : uint64 = v2 + 1UL │
00:03:24 #3202 [Verbose] > │ method15(v0, v1, v10) │
00:03:24 #3203 [Verbose] > │ else │
00:03:24 #3204 [Verbose] > │ false │
00:03:24 #3205 [Verbose] > │ else │
00:03:24 #3206 [Verbose] > │ true │
00:03:24 #3207 [Verbose] > │ and method16 (v0 : uint64, v1 : Mut2) : bool = │
00:03:24 #3208 [Verbose] > │ let v2 : uint64 = v1.l0 │
00:03:24 #3209 [Verbose] > │ let v3 : bool = v2 < v0 │
00:03:24 #3210 [Verbose] > │ v3 │
00:03:24 #3211 [Verbose] > │ and method17 (v0 : UH3, v1 : UH3) : UH3 = │
00:03:24 #3212 [Verbose] > │ match v0 with │
00:03:24 #3213 [Verbose] > │ | UH3_0(v2, v3, v4) -> (* Cons *) │
00:03:24 #3214 [Verbose] > │ let v5 : UH3 = UH3_0(v2, v3, v1) │
00:03:24 #3215 [Verbose] > │ method17(v4, v5) │
00:03:24 #3216 [Verbose] > │ | UH3_1 -> (* Nil *) │
00:03:24 #3217 [Verbose] > │ v1 │
00:03:24 #3218 [Verbose] > │ and method19 (v0 : UH3, v1 : int32) : int32 = │
00:03:24 #3219 [Verbose] > │ match v0 with │
00:03:24 #3220 [Verbose] > │ | UH3_0(v2, v3, v4) -> (* Cons *) │
00:03:24 #3221 [Verbose] > │ let v5 : int32 = v1 + 1 │
00:03:24 #3222 [Verbose] > │ method19(v4, v5) │
00:03:24 #3223 [Verbose] > │ | UH3_1 -> (* Nil *) │
00:03:24 #3224 [Verbose] > │ v1 │
00:03:24 #3225 [Verbose] > │ and method20 (v0 : (struct (int64 * int64) []), v1 : UH3, v2 : int32) : │
00:03:24 #3226 [Verbose] > │ int32 = │
00:03:24 #3227 [Verbose] > │ match v1 with │
00:03:24 #3228 [Verbose] > │ | UH3_0(v3, v4, v5) -> (* Cons *) │
00:03:24 #3229 [Verbose] > │ v0.[int v2] <- struct (v3, v4) │
00:03:24 #3230 [Verbose] > │ let v6 : int32 = v2 + 1 │
00:03:24 #3231 [Verbose] > │ method20(v0, v5, v6) │
00:03:24 #3232 [Verbose] > │ | UH3_1 -> (* Nil *) │
00:03:24 #3233 [Verbose] > │ v2 │
00:03:24 #3234 [Verbose] > │ and method18 (v0 : UH3) : (struct (int64 * int64) []) = │
00:03:24 #3235 [Verbose] > │ let v1 : int32 = 0 │
00:03:24 #3236 [Verbose] > │ let v2 : int32 = method19(v0, v1) │
00:03:24 #3237 [Verbose] > │ let v3 : (struct (int64 * int64) []) = Array.zeroCreate<struct (int64 * │
00:03:24 #3238 [Verbose] > │ int64)> (v2) │
00:03:24 #3239 [Verbose] > │ let v4 : int32 = 0 │
00:03:24 #3240 [Verbose] > │ let v5 : int32 = method20(v3, v0, v4) │
00:03:24 #3241 [Verbose] > │ v3 │
00:03:24 #3242 [Verbose] > │ and method21 (v0 : int32, v1 : Mut0) : bool = │
00:03:24 #3243 [Verbose] > │ let v2 : int32 = v1.l0 │
00:03:24 #3244 [Verbose] > │ let v3 : bool = v2 < v0 │
00:03:24 #3245 [Verbose] > │ v3 │
00:03:24 #3246 [Verbose] > │ and closure6 () struct (v0 : int64, v1 : int64) : int64 = │
00:03:24 #3247 [Verbose] > │ v1 │
00:03:24 #3248 [Verbose] > │ and method23 (v0 : UH4, v1 : uint64) : uint64 = │
00:03:24 #3249 [Verbose] > │ match v0 with │
00:03:24 #3250 [Verbose] > │ | UH4_0(v2, v3, v4) -> (* Cons *) │
00:03:24 #3251 [Verbose] > │ let v5 : uint64 = v1 + 1UL │
00:03:24 #3252 [Verbose] > │ method23(v4, v5) │
00:03:24 #3253 [Verbose] > │ | UH4_1 -> (* Nil *) │
00:03:24 #3254 [Verbose] > │ v1 │
00:03:24 #3255 [Verbose] > │ and method24 (v0 : (struct (UH2 * US1) []), v1 : UH4, v2 : uint64) : uint64 │
00:03:24 #3256 [Verbose] > │ = │
00:03:24 #3257 [Verbose] > │ match v1 with │
00:03:24 #3258 [Verbose] > │ | UH4_0(v3, v4, v5) -> (* Cons *) │
00:03:24 #3259 [Verbose] > │ v0.[int v2] <- struct (v3, v4) │
00:03:24 #3260 [Verbose] > │ let v6 : uint64 = v2 + 1UL │
00:03:24 #3261 [Verbose] > │ method24(v0, v5, v6) │
00:03:24 #3262 [Verbose] > │ | UH4_1 -> (* Nil *) │
00:03:24 #3263 [Verbose] > │ v2 │
00:03:24 #3264 [Verbose] > │ and method22 (v0 : UH4) : (struct (UH2 * US1) []) = │
00:03:24 #3265 [Verbose] > │ let v1 : uint64 = 0UL │
00:03:24 #3266 [Verbose] > │ let v2 : uint64 = method23(v0, v1) │
00:03:24 #3267 [Verbose] > │ let v3 : (struct (UH2 * US1) []) = Array.zeroCreate<struct (UH2 * US1)> │
00:03:24 #3268 [Verbose] > │ (System.Convert.ToInt32(v2)) │
00:03:24 #3269 [Verbose] > │ let v4 : uint64 = 0UL │
00:03:24 #3270 [Verbose] > │ let v5 : uint64 = method24(v3, v0, v4) │
00:03:24 #3271 [Verbose] > │ v3 │
00:03:24 #3272 [Verbose] > │ and method26 (v0 : UH2, v1 : uint64) : uint64 = │
00:03:24 #3273 [Verbose] > │ match v0 with │
00:03:24 #3274 [Verbose] > │ | UH2_0(v2, v3) -> (* Cons *) │
00:03:24 #3275 [Verbose] > │ let v4 : uint64 = v1 + 1UL │
00:03:24 #3276 [Verbose] > │ method26(v3, v4) │
00:03:24 #3277 [Verbose] > │ | UH2_1 -> (* Nil *) │
00:03:24 #3278 [Verbose] > │ v1 │
00:03:24 #3279 [Verbose] > │ and method27 (v0 : (string []), v1 : UH2, v2 : uint64) : uint64 = │
00:03:24 #3280 [Verbose] > │ match v1 with │
00:03:24 #3281 [Verbose] > │ | UH2_0(v3, v4) -> (* Cons *) │
00:03:24 #3282 [Verbose] > │ v0.[int v2] <- v3 │
00:03:24 #3283 [Verbose] > │ let v5 : uint64 = v2 + 1UL │
00:03:24 #3284 [Verbose] > │ method27(v0, v4, v5) │
00:03:24 #3285 [Verbose] > │ | UH2_1 -> (* Nil *) │
00:03:24 #3286 [Verbose] > │ v2 │
00:03:24 #3287 [Verbose] > │ and method25 (v0 : UH2) : (string []) = │
00:03:24 #3288 [Verbose] > │ let v1 : uint64 = 0UL │
00:03:24 #3289 [Verbose] > │ let v2 : uint64 = method26(v0, v1) │
00:03:24 #3290 [Verbose] > │ let v3 : (string []) = Array.zeroCreate<string> │
00:03:24 #3291 [Verbose] > │ (System.Convert.ToInt32(v2)) │
00:03:24 #3292 [Verbose] > │ let v4 : uint64 = 0UL │
00:03:24 #3293 [Verbose] > │ let v5 : uint64 = method27(v3, v0, v4) │
00:03:24 #3294 [Verbose] > │ v3 │
00:03:24 #3295 [Verbose] > │ and closure7 () (v0 : int64) : US2 = │
00:03:24 #3296 [Verbose] > │ US2_1(v0) │
00:03:24 #3297 [Verbose] > │ and method28 (v0 : uint64, v1 : Mut3) : bool = │
00:03:24 #3298 [Verbose] > │ let v2 : uint64 = v1.l0 │
00:03:24 #3299 [Verbose] > │ let v3 : bool = v2 < v0 │
00:03:24 #3300 [Verbose] > │ v3 │
00:03:24 #3301 [Verbose] > │ and method29 (v0 : UH5, v1 : UH5) : UH5 = │
00:03:24 #3302 [Verbose] > │ match v0 with │
00:03:24 #3303 [Verbose] > │ | UH5_0(v2, v3, v4) -> (* Cons *) │
00:03:24 #3304 [Verbose] > │ let v5 : UH5 = UH5_0(v2, v3, v1) │
00:03:24 #3305 [Verbose] > │ method29(v4, v5) │
00:03:24 #3306 [Verbose] > │ | UH5_1 -> (* Nil *) │
00:03:24 #3307 [Verbose] > │ v1 │
00:03:24 #3308 [Verbose] > │ and method31 (v0 : UH5, v1 : int32) : int32 = │
00:03:24 #3309 [Verbose] > │ match v0 with │
00:03:24 #3310 [Verbose] > │ | UH5_0(v2, v3, v4) -> (* Cons *) │
00:03:24 #3311 [Verbose] > │ let v5 : int32 = v1 + 1 │
00:03:24 #3312 [Verbose] > │ method31(v4, v5) │
00:03:24 #3313 [Verbose] > │ | UH5_1 -> (* Nil *) │
00:03:24 #3314 [Verbose] > │ v1 │
00:03:24 #3315 [Verbose] > │ and method32 (v0 : (struct (int32 * int64) []), v1 : UH5, v2 : int32) : │
00:03:24 #3316 [Verbose] > │ int32 = │
00:03:24 #3317 [Verbose] > │ match v1 with │
00:03:24 #3318 [Verbose] > │ | UH5_0(v3, v4, v5) -> (* Cons *) │
00:03:24 #3319 [Verbose] > │ v0.[int v2] <- struct (v3, v4) │
00:03:24 #3320 [Verbose] > │ let v6 : int32 = v2 + 1 │
00:03:24 #3321 [Verbose] > │ method32(v0, v5, v6) │
00:03:24 #3322 [Verbose] > │ | UH5_1 -> (* Nil *) │
00:03:24 #3323 [Verbose] > │ v2 │
00:03:24 #3324 [Verbose] > │ and method30 (v0 : UH5) : (struct (int32 * int64) []) = │
00:03:24 #3325 [Verbose] > │ let v1 : int32 = 0 │
00:03:24 #3326 [Verbose] > │ let v2 : int32 = method31(v0, v1) │
00:03:24 #3327 [Verbose] > │ let v3 : (struct (int32 * int64) []) = Array.zeroCreate<struct (int32 * │
00:03:24 #3328 [Verbose] > │ int64)> (v2) │
00:03:24 #3329 [Verbose] > │ let v4 : int32 = 0 │
00:03:24 #3330 [Verbose] > │ let v5 : int32 = method32(v3, v0, v4) │
00:03:24 #3331 [Verbose] > │ v3 │
00:03:24 #3332 [Verbose] > │ and method33 (v0 : UH2, v1 : UH6, v2 : int32) : struct (UH6 * int32) = │
00:03:24 #3333 [Verbose] > │ match v0 with │
00:03:24 #3334 [Verbose] > │ | UH2_0(v3, v4) -> (* Cons *) │
00:03:24 #3335 [Verbose] > │ let v5 : int32 = v2 + 1 │
00:03:24 #3336 [Verbose] > │ let v6 : UH6 = UH6_0(v2, v3, v1) │
00:03:24 #3337 [Verbose] > │ method33(v4, v6, v5) │
00:03:24 #3338 [Verbose] > │ | UH2_1 -> (* Nil *) │
00:03:24 #3339 [Verbose] > │ struct (v1, v2) │
00:03:24 #3340 [Verbose] > │ and method34 (v0 : UH6, v1 : UH6) : UH6 = │
00:03:24 #3341 [Verbose] > │ match v0 with │
00:03:24 #3342 [Verbose] > │ | UH6_0(v2, v3, v4) -> (* Cons *) │
00:03:24 #3343 [Verbose] > │ let v5 : UH6 = UH6_0(v2, v3, v1) │
00:03:24 #3344 [Verbose] > │ method34(v4, v5) │
00:03:24 #3345 [Verbose] > │ | UH6_1 -> (* Nil *) │
00:03:24 #3346 [Verbose] > │ v1 │
00:03:24 #3347 [Verbose] > │ and method35 (v0 : Map<int32, int64>, v1 : UH6, v2 : UH2) : UH2 = │
00:03:24 #3348 [Verbose] > │ match v1 with │
00:03:24 #3349 [Verbose] > │ | UH6_0(v3, v4, v5) -> (* Cons *) │
00:03:24 #3350 [Verbose] > │ let v6 : UH2 = method35(v0, v5, v2) │
00:03:24 #3351 [Verbose] > │ let v7 : int64 = v0.[v3] │
00:03:24 #3352 [Verbose] > │ let v8 : int32 = int32 v7 │
00:03:24 #3353 [Verbose] > │ let v9 : string = v4.PadRight v8 │
00:03:24 #3354 [Verbose] > │ UH2_0(v9, v6) │
00:03:24 #3355 [Verbose] > │ | UH6_1 -> (* Nil *) │
00:03:24 #3356 [Verbose] > │ v2 │
00:03:24 #3357 [Verbose] > │ and method37 (v0 : UH2, v1 : int32) : int32 = │
00:03:24 #3358 [Verbose] > │ match v0 with │
00:03:24 #3359 [Verbose] > │ | UH2_0(v2, v3) -> (* Cons *) │
00:03:24 #3360 [Verbose] > │ let v4 : int32 = v1 + 1 │
00:03:24 #3361 [Verbose] > │ method37(v3, v4) │
00:03:24 #3362 [Verbose] > │ | UH2_1 -> (* Nil *) │
00:03:24 #3363 [Verbose] > │ v1 │
00:03:24 #3364 [Verbose] > │ and method38 (v0 : (string []), v1 : UH2, v2 : int32) : int32 = │
00:03:24 #3365 [Verbose] > │ match v1 with │
00:03:24 #3366 [Verbose] > │ | UH2_0(v3, v4) -> (* Cons *) │
00:03:24 #3367 [Verbose] > │ v0.[int v2] <- v3 │
00:03:24 #3368 [Verbose] > │ let v5 : int32 = v2 + 1 │
00:03:24 #3369 [Verbose] > │ method38(v0, v4, v5) │
00:03:24 #3370 [Verbose] > │ | UH2_1 -> (* Nil *) │
00:03:24 #3371 [Verbose] > │ v2 │
00:03:24 #3372 [Verbose] > │ and method36 (v0 : UH2) : (string []) = │
00:03:24 #3373 [Verbose] > │ let v1 : int32 = 0 │
00:03:24 #3374 [Verbose] > │ let v2 : int32 = method37(v0, v1) │
00:03:24 #3375 [Verbose] > │ let v3 : (string []) = Array.zeroCreate<string> (v2) │
00:03:24 #3376 [Verbose] > │ let v4 : int32 = 0 │
00:03:24 #3377 [Verbose] > │ let v5 : int32 = method38(v3, v0, v4) │
00:03:24 #3378 [Verbose] > │ v3 │
00:03:24 #3379 [Verbose] > │ and method40 (v0 : UH5, v1 : uint64) : uint64 = │
00:03:24 #3380 [Verbose] > │ match v0 with │
00:03:24 #3381 [Verbose] > │ | UH5_0(v2, v3, v4) -> (* Cons *) │
00:03:24 #3382 [Verbose] > │ let v5 : uint64 = v1 + 1UL │
00:03:24 #3383 [Verbose] > │ method40(v4, v5) │
00:03:24 #3384 [Verbose] > │ | UH5_1 -> (* Nil *) │
00:03:24 #3385 [Verbose] > │ v1 │
00:03:24 #3386 [Verbose] > │ and method41 (v0 : (struct (int32 * int64) []), v1 : UH5, v2 : uint64) : │
00:03:24 #3387 [Verbose] > │ uint64 = │
00:03:24 #3388 [Verbose] > │ match v1 with │
00:03:24 #3389 [Verbose] > │ | UH5_0(v3, v4, v5) -> (* Cons *) │
00:03:24 #3390 [Verbose] > │ v0.[int v2] <- struct (v3, v4) │
00:03:24 #3391 [Verbose] > │ let v6 : uint64 = v2 + 1UL │
00:03:24 #3392 [Verbose] > │ method41(v0, v5, v6) │
00:03:24 #3393 [Verbose] > │ | UH5_1 -> (* Nil *) │
00:03:24 #3394 [Verbose] > │ v2 │
00:03:24 #3395 [Verbose] > │ and method39 (v0 : UH5) : (struct (int32 * int64) []) = │
00:03:24 #3396 [Verbose] > │ let v1 : uint64 = 0UL │
00:03:24 #3397 [Verbose] > │ let v2 : uint64 = method40(v0, v1) │
00:03:24 #3398 [Verbose] > │ let v3 : (struct (int32 * int64) []) = Array.zeroCreate<struct (int32 * │
00:03:24 #3399 [Verbose] > │ int64)> (System.Convert.ToInt32(v2)) │
00:03:24 #3400 [Verbose] > │ let v4 : uint64 = 0UL │
00:03:24 #3401 [Verbose] > │ let v5 : uint64 = method41(v3, v0, v4) │
00:03:24 #3402 [Verbose] > │ v3 │
00:03:24 #3403 [Verbose] > │ and closure8 () struct (v0 : int32, v1 : int64) : int64 = │
00:03:24 #3404 [Verbose] > │ v1 │
00:03:24 #3405 [Verbose] > │ and closure0 () () : unit = │
00:03:24 #3406 [Verbose] > │ let v0 : (int32 []) = [|1; 3; 4; 6; 8; 9; 11|] │
00:03:24 #3407 [Verbose] > │ let v1 : (int32 []) = method1(v0) │
00:03:24 #3408 [Verbose] > │ let v2 : int32 = v1.Length │
00:03:24 #3409 [Verbose] > │ let v3 : (int32 []) = [|1; 3; 4; 6; 8; 9; 11|] │
00:03:24 #3410 [Verbose] > │ let v4 : (int32 []) = method1(v3) │
00:03:24 #3411 [Verbose] > │ let v5 : int32 = v4.Length │
00:03:24 #3412 [Verbose] > │ let v6 : (int32 []) = [|1; 3; 4; 6; 8; 9; 11|] │
00:03:24 #3413 [Verbose] > │ let v7 : (int32 []) = method1(v6) │
00:03:24 #3414 [Verbose] > │ let v8 : int32 = v7.Length │
00:03:24 #3415 [Verbose] > │ let v9 : (int32 []) = [|1; 3; 4; 6; 8; 9; 11|] │
00:03:24 #3416 [Verbose] > │ let v10 : (int32 []) = method1(v9) │
00:03:24 #3417 [Verbose] > │ let v11 : int32 = v10.Length │
00:03:24 #3418 [Verbose] > │ let v12 : (int32 []) = Array.zeroCreate<int32> (100) │
00:03:24 #3419 [Verbose] > │ let v13 : Mut0 = {l0 = 0} : Mut0 │
00:03:24 #3420 [Verbose] > │ while method2(v13) do │
00:03:24 #3421 [Verbose] > │ let v15 : int32 = v13.l0 │
00:03:24 #3422 [Verbose] > │ let v16 : int32 = 1 + v15 │
00:03:24 #3423 [Verbose] > │ v12.[int v15] <- v16 │
00:03:24 #3424 [Verbose] > │ let v17 : int32 = v15 + 1 │
00:03:24 #3425 [Verbose] > │ v13.l0 <- v17 │
00:03:24 #3426 [Verbose] > │ () │
00:03:24 #3427 [Verbose] > │ let v18 : int32 = v12.Length │
00:03:24 #3428 [Verbose] > │ let v19 : (int32 []) = [|1; 3; 4; 6; 8; 9; 11|] │
00:03:24 #3429 [Verbose] > │ let v20 : (int32 []) = method1(v19) │
00:03:24 #3430 [Verbose] > │ let v21 : (int32 []) = [|1; 3; 4; 6; 8; 9; 11|] │
00:03:24 #3431 [Verbose] > │ let v22 : (int32 []) = method1(v21) │
00:03:24 #3432 [Verbose] > │ let v23 : (int32 []) = [|1; 3; 4; 6; 8; 9; 11|] │
00:03:24 #3433 [Verbose] > │ let v24 : (int32 []) = method1(v23) │
00:03:24 #3434 [Verbose] > │ let v25 : (int32 []) = [|1; 3; 4; 6; 8; 9; 11|] │
00:03:24 #3435 [Verbose] > │ let v26 : (int32 []) = method1(v25) │
00:03:24 #3436 [Verbose] > │ let v27 : (int32 []) = Array.zeroCreate<int32> (100) │
00:03:24 #3437 [Verbose] > │ let v28 : Mut0 = {l0 = 0} : Mut0 │
00:03:24 #3438 [Verbose] > │ while method2(v28) do │
00:03:24 #3439 [Verbose] > │ let v30 : int32 = v28.l0 │
00:03:24 #3440 [Verbose] > │ let v31 : int32 = 1 + v30 │
00:03:24 #3441 [Verbose] > │ v27.[int v30] <- v31 │
00:03:24 #3442 [Verbose] > │ let v32 : int32 = v30 + 1 │
00:03:24 #3443 [Verbose] > │ v28.l0 <- v32 │
00:03:24 #3444 [Verbose] > │ () │
00:03:24 #3445 [Verbose] > │ let v33 : (unit -> unit) = closure0() │
00:03:24 #3446 [Verbose] > │ let v34 : string = nameof v33 │
00:03:24 #3447 [Verbose] > │ let v35 : string = "" │
00:03:24 #3448 [Verbose] > │ System.Console.WriteLine v35 │
00:03:24 #3449 [Verbose] > │ System.Console.WriteLine v35 │
00:03:24 #3450 [Verbose] > │ let v36 : string = $"Test: {v34}" │
00:03:24 #3451 [Verbose] > │ System.Console.WriteLine v36 │
00:03:24 #3452 [Verbose] > │ let v37 : int32 = 6 │
00:03:24 #3453 [Verbose] > │ let v38 : int32 = 3 │
00:03:24 #3454 [Verbose] > │ let v39 : US0 = US0_1(v38) │
00:03:24 #3455 [Verbose] > │ let v40 : int32 = 1 │
00:03:24 #3456 [Verbose] > │ let v41 : int32 = 0 │
00:03:24 #3457 [Verbose] > │ let v42 : US0 = US0_1(v41) │
00:03:24 #3458 [Verbose] > │ let v43 : int32 = 11 │
00:03:24 #3459 [Verbose] > │ let v44 : int32 = 6 │
00:03:24 #3460 [Verbose] > │ let v45 : US0 = US0_1(v44) │
00:03:24 #3461 [Verbose] > │ let v46 : int32 = 12 │
00:03:24 #3462 [Verbose] > │ let v47 : US0 = US0_0 │
00:03:24 #3463 [Verbose] > │ let v48 : int32 = 60 │
00:03:24 #3464 [Verbose] > │ let v49 : int32 = 59 │
00:03:24 #3465 [Verbose] > │ let v50 : US0 = US0_1(v49) │
00:03:24 #3466 [Verbose] > │ let v51 : int32 = 6 │
00:03:24 #3467 [Verbose] > │ let v52 : int32 = 7 │
00:03:24 #3468 [Verbose] > │ let v53 : int32 = 3 │
00:03:24 #3469 [Verbose] > │ let v54 : US0 = US0_1(v53) │
00:03:24 #3470 [Verbose] > │ let v55 : int32 = 1 │
00:03:24 #3471 [Verbose] > │ let v56 : int32 = 7 │
00:03:24 #3472 [Verbose] > │ let v57 : int32 = 0 │
00:03:24 #3473 [Verbose] > │ let v58 : US0 = US0_1(v57) │
00:03:24 #3474 [Verbose] > │ let v59 : int32 = 11 │
00:03:24 #3475 [Verbose] > │ let v60 : int32 = 7 │
00:03:24 #3476 [Verbose] > │ let v61 : int32 = 6 │
00:03:24 #3477 [Verbose] > │ let v62 : US0 = US0_1(v61) │
00:03:24 #3478 [Verbose] > │ let v63 : int32 = 12 │
00:03:24 #3479 [Verbose] > │ let v64 : int32 = 7 │
00:03:24 #3480 [Verbose] > │ let v65 : US0 = US0_0 │
00:03:24 #3481 [Verbose] > │ let v66 : int32 = 60 │
00:03:24 #3482 [Verbose] > │ let v67 : int32 = 100 │
00:03:24 #3483 [Verbose] > │ let v68 : int32 = 59 │
00:03:24 #3484 [Verbose] > │ let v69 : US0 = US0_1(v68) │
00:03:24 #3485 [Verbose] > │ let v70 : UH0 = UH0_1 │
00:03:24 #3486 [Verbose] > │ let v71 : UH0 = UH0_0(v27, v66, v67, v69, v70) │
00:03:24 #3487 [Verbose] > │ let v72 : UH0 = UH0_0(v26, v63, v64, v65, v71) │
00:03:24 #3488 [Verbose] > │ let v73 : UH0 = UH0_0(v24, v59, v60, v62, v72) │
00:03:24 #3489 [Verbose] > │ let v74 : UH0 = UH0_0(v22, v55, v56, v58, v73) │
00:03:24 #3490 [Verbose] > │ let v75 : UH0 = UH0_0(v20, v51, v52, v54, v74) │
00:03:24 #3491 [Verbose] > │ let v76 : UH0 = UH0_0(v12, v48, v18, v50, v75) │
00:03:24 #3492 [Verbose] > │ let v77 : UH0 = UH0_0(v10, v46, v11, v47, v76) │
00:03:24 #3493 [Verbose] > │ let v78 : UH0 = UH0_0(v7, v43, v8, v45, v77) │
00:03:24 #3494 [Verbose] > │ let v79 : UH0 = UH0_0(v4, v40, v5, v42, v78) │
00:03:24 #3495 [Verbose] > │ let v80 : UH0 = UH0_0(v1, v37, v2, v39, v79) │
00:03:24 #3496 [Verbose] > │ let v81 : (struct ((int32 []) * int32 * int32 * US0) []) = method3(v80) │
00:03:24 #3497 [Verbose] > │ let v82 : uint64 = System.Convert.ToUInt64 v81.Length │
00:03:24 #3498 [Verbose] > │ let v83 : (struct (string * string * string * (int64 [])) []) = │
00:03:24 #3499 [Verbose] > │ Array.zeroCreate<struct (string * string * string * (int64 []))> │
00:03:24 #3500 [Verbose] > │ (System.Convert.ToInt32(v82)) │
00:03:24 #3501 [Verbose] > │ let v84 : Mut1 = {l0 = 0UL} : Mut1 │
00:03:24 #3502 [Verbose] > │ while method6(v82, v84) do │
00:03:24 #3503 [Verbose] > │ let v86 : uint64 = v84.l0 │
00:03:24 #3504 [Verbose] > │ let struct (v87 : (int32 []), v88 : int32, v89 : int32, v90 : US0) = │
00:03:24 #3505 [Verbose] > │ v81.[int v86] │
00:03:24 #3506 [Verbose] > │ let v91 : string = $"%A{struct (v87, v88, v89)}" │
00:03:24 #3507 [Verbose] > │ System.Console.WriteLine v35 │
00:03:24 #3508 [Verbose] > │ let v92 : string = $"Solution: {v91} " │
00:03:24 #3509 [Verbose] > │ System.Console.WriteLine v92 │
00:03:24 #3510 [Verbose] > │ let v93 : int32 = 0 │
00:03:24 #3511 [Verbose] > │ let v94 : string = "semi_open_1" │
00:03:24 #3512 [Verbose] > │ let v95 : (struct ((int32 []) * int32 * int32) -> US0) = closure1() │
00:03:24 #3513 [Verbose] > │ let v96 : int32 = 1 │
00:03:24 #3514 [Verbose] > │ let v97 : string = "closed_1" │
00:03:24 #3515 [Verbose] > │ let v98 : (struct ((int32 []) * int32 * int32) -> US0) = closure2() │
00:03:24 #3516 [Verbose] > │ let v99 : int32 = 2 │
00:03:24 #3517 [Verbose] > │ let v100 : string = "semi_open_2" │
00:03:24 #3518 [Verbose] > │ let v101 : (struct ((int32 []) * int32 * int32) -> US0) = closure3() │
00:03:24 #3519 [Verbose] > │ let v102 : int32 = 3 │
00:03:24 #3520 [Verbose] > │ let v103 : string = "closed_2" │
00:03:24 #3521 [Verbose] > │ let v104 : (struct ((int32 []) * int32 * int32) -> US0) = closure4() │
00:03:24 #3522 [Verbose] > │ let v105 : UH1 = UH1_1 │
00:03:24 #3523 [Verbose] > │ let v106 : UH1 = UH1_0(v102, v103, v104, v105) │
00:03:24 #3524 [Verbose] > │ let v107 : UH1 = UH1_0(v99, v100, v101, v106) │
00:03:24 #3525 [Verbose] > │ let v108 : UH1 = UH1_0(v96, v97, v98, v107) │
00:03:24 #3526 [Verbose] > │ let v109 : UH1 = UH1_0(v93, v94, v95, v108) │
00:03:24 #3527 [Verbose] > │ let v110 : (struct (int32 * string * (struct ((int32 []) * int32 * │
00:03:24 #3528 [Verbose] > │ int32) -> US0)) []) = method11(v109) │
00:03:24 #3529 [Verbose] > │ let v111 : uint64 = System.Convert.ToUInt64 v110.Length │
00:03:24 #3530 [Verbose] > │ let v112 : (struct (US0 * int64) []) = Array.zeroCreate<struct (US0 │
00:03:24 #3531 [Verbose] > │ * int64)> (System.Convert.ToInt32(v111)) │
00:03:24 #3532 [Verbose] > │ let v113 : Mut1 = {l0 = 0UL} : Mut1 │
00:03:24 #3533 [Verbose] > │ while method6(v111, v113) do │
00:03:24 #3534 [Verbose] > │ let v115 : uint64 = v113.l0 │
00:03:24 #3535 [Verbose] > │ let struct (v116 : int32, v117 : string, v118 : (struct ((int32 │
00:03:24 #3536 [Verbose] > │ []) * int32 * int32) -> US0)) = v110.[int v115] │
00:03:24 #3537 [Verbose] > │ let mutable result = None │
00:03:24 #3538 [Verbose] > │ #if FABLE_COMPILER_RUST │
00:03:24 #3539 [Verbose] > │ #if !WASM │
00:03:24 #3540 [Verbose] > │ () │
00:03:24 #3541 [Verbose] > │ #else │
00:03:24 #3542 [Verbose] > │ () │
00:03:24 #3543 [Verbose] > │ #endif │
00:03:24 #3544 [Verbose] > │ #else │
00:03:24 #3545 [Verbose] > │ System.GC.Collect () │
00:03:24 #3546 [Verbose] > │ () │
00:03:24 #3547 [Verbose] > │ #endif │
00:03:24 #3548 [Verbose] > │ |> fun x -> result <- Some x │
00:03:24 #3549 [Verbose] > │ result |> Option.get │
00:03:24 #3550 [Verbose] > │ let v119 : (unit -> System.Diagnostics.Stopwatch) = │
00:03:24 #3551 [Verbose] > │ System.Diagnostics.Stopwatch │
00:03:24 #3552 [Verbose] > │ let v120 : System.Diagnostics.Stopwatch = v119 () │
00:03:24 #3553 [Verbose] > │ v120.Start () │
00:03:24 #3554 [Verbose] > │ let v121 : int64 = v120.ElapsedMilliseconds │
00:03:24 #3555 [Verbose] > │ let v122 : (int32 []) = Array.zeroCreate<int32> (8000001) │
00:03:24 #3556 [Verbose] > │ let v123 : Mut0 = {l0 = 0} : Mut0 │
00:03:24 #3557 [Verbose] > │ while method14(v123) do │
00:03:24 #3558 [Verbose] > │ let v125 : int32 = v123.l0 │
00:03:24 #3559 [Verbose] > │ v122.[int v125] <- v125 │
00:03:24 #3560 [Verbose] > │ let v126 : int32 = v125 + 1 │
00:03:24 #3561 [Verbose] > │ v123.l0 <- v126 │
00:03:24 #3562 [Verbose] > │ () │
00:03:24 #3563 [Verbose] > │ let v127 : (int32 -> US0) = closure5(v87, v88, v89, v118) │
00:03:24 #3564 [Verbose] > │ let v128 : (US0 []) = v122 |> Array.Parallel.map v127 │
00:03:24 #3565 [Verbose] > │ let v129 : int32 = v128.Length │
00:03:24 #3566 [Verbose] > │ let v130 : int32 = v129 - 1 │
00:03:24 #3567 [Verbose] > │ let v131 : US0 = v128.[int v130] │
00:03:24 #3568 [Verbose] > │ let v132 : int64 = v120.ElapsedMilliseconds │
00:03:24 #3569 [Verbose] > │ let v133 : int64 = v132 - v121 │
00:03:24 #3570 [Verbose] > │ let v134 : string = $"Test case {v116 + 1}. {v117}. Time: {v133} │
00:03:24 #3571 [Verbose] > │ " │
00:03:24 #3572 [Verbose] > │ System.Console.WriteLine v134 │
00:03:24 #3573 [Verbose] > │ v112.[int v115] <- struct (v131, v133) │
00:03:24 #3574 [Verbose] > │ let v135 : uint64 = v115 + 1UL │
00:03:24 #3575 [Verbose] > │ v113.l0 <- v135 │
00:03:24 #3576 [Verbose] > │ () │
00:03:24 #3577 [Verbose] > │ let v136 : uint64 = System.Convert.ToUInt64 v112.Length │
00:03:24 #3578 [Verbose] > │ let v137 : (US0 []) = Array.zeroCreate<US0> │
00:03:24 #3579 [Verbose] > │ (System.Convert.ToInt32(v136)) │
00:03:24 #3580 [Verbose] > │ let v138 : Mut1 = {l0 = 0UL} : Mut1 │
00:03:24 #3581 [Verbose] > │ while method6(v136, v138) do │
00:03:24 #3582 [Verbose] > │ let v140 : uint64 = v138.l0 │
00:03:24 #3583 [Verbose] > │ let struct (v141 : US0, v142 : int64) = v112.[int v140] │
00:03:24 #3584 [Verbose] > │ v137.[int v140] <- v141 │
00:03:24 #3585 [Verbose] > │ let v143 : uint64 = v140 + 1UL │
00:03:24 #3586 [Verbose] > │ v138.l0 <- v143 │
00:03:24 #3587 [Verbose] > │ () │
00:03:24 #3588 [Verbose] > │ let v144 : uint64 = System.Convert.ToUInt64 v137.Length │
00:03:24 #3589 [Verbose] > │ let v145 : bool = v144 <= 1UL │
00:03:24 #3590 [Verbose] > │ if v145 then │
00:03:24 #3591 [Verbose] > │ () │
00:03:24 #3592 [Verbose] > │ else │
00:03:24 #3593 [Verbose] > │ let v146 : US0 = v137.[int 0UL] │
00:03:24 #3594 [Verbose] > │ let v147 : uint64 = 0UL │
00:03:24 #3595 [Verbose] > │ let v148 : bool = method15(v146, v137, v147) │
00:03:24 #3596 [Verbose] > │ if v148 then │
00:03:24 #3597 [Verbose] > │ () │
00:03:24 #3598 [Verbose] > │ else │
00:03:24 #3599 [Verbose] > │ let v149 : string = $"Challenge error: {v137}" │
00:03:24 #3600 [Verbose] > │ failwith<unit> v149 │
00:03:24 #3601 [Verbose] > │ let v150 : string = $"%A{v90}" │
00:03:24 #3602 [Verbose] > │ let v151 : (US0 []) = Array.zeroCreate<US0> │
00:03:24 #3603 [Verbose] > │ (System.Convert.ToInt32(v136)) │
00:03:24 #3604 [Verbose] > │ let v152 : Mut1 = {l0 = 0UL} : Mut1 │
00:03:24 #3605 [Verbose] > │ while method6(v136, v152) do │
00:03:24 #3606 [Verbose] > │ let v154 : uint64 = v152.l0 │
00:03:24 #3607 [Verbose] > │ let struct (v155 : US0, v156 : int64) = v112.[int v154] │
00:03:24 #3608 [Verbose] > │ v151.[int v154] <- v155 │
00:03:24 #3609 [Verbose] > │ let v157 : uint64 = v154 + 1UL │
00:03:24 #3610 [Verbose] > │ v152.l0 <- v157 │
00:03:24 #3611 [Verbose] > │ () │
00:03:24 #3612 [Verbose] > │ let v158 : US0 = v151.[int 0UL] │
00:03:24 #3613 [Verbose] > │ let v159 : string = $"%A{v158}" │
00:03:24 #3614 [Verbose] > │ let v160 : (int64 []) = Array.zeroCreate<int64> │
00:03:24 #3615 [Verbose] > │ (System.Convert.ToInt32(v136)) │
00:03:24 #3616 [Verbose] > │ let v161 : Mut1 = {l0 = 0UL} : Mut1 │
00:03:24 #3617 [Verbose] > │ while method6(v136, v161) do │
00:03:24 #3618 [Verbose] > │ let v163 : uint64 = v161.l0 │
00:03:24 #3619 [Verbose] > │ let struct (v164 : US0, v165 : int64) = v112.[int v163] │
00:03:24 #3620 [Verbose] > │ v160.[int v163] <- v165 │
00:03:24 #3621 [Verbose] > │ let v166 : uint64 = v163 + 1UL │
00:03:24 #3622 [Verbose] > │ v161.l0 <- v166 │
00:03:24 #3623 [Verbose] > │ () │
00:03:24 #3624 [Verbose] > │ v83.[int v86] <- struct (v150, v91, v159, v160) │
00:03:24 #3625 [Verbose] > │ let v167 : uint64 = v86 + 1UL │
00:03:24 #3626 [Verbose] > │ v84.l0 <- v167 │
00:03:24 #3627 [Verbose] > │ () │
00:03:24 #3628 [Verbose] > │ let v168 : uint64 = System.Convert.ToUInt64 v83.Length │
00:03:24 #3629 [Verbose] > │ let v169 : (struct (UH2 * US1) []) = Array.zeroCreate<struct (UH2 * │
00:03:24 #3630 [Verbose] > │ US1)> (System.Convert.ToInt32(v168)) │
00:03:24 #3631 [Verbose] > │ let v170 : Mut1 = {l0 = 0UL} : Mut1 │
00:03:24 #3632 [Verbose] > │ while method6(v168, v170) do │
00:03:24 #3633 [Verbose] > │ let v172 : uint64 = v170.l0 │
00:03:24 #3634 [Verbose] > │ let struct (v173 : string, v174 : string, v175 : string, v176 : │
00:03:24 #3635 [Verbose] > │ (int64 [])) = v83.[int v172] │
00:03:24 #3636 [Verbose] > │ let v177 : uint64 = System.Convert.ToUInt64 v176.Length │
00:03:24 #3637 [Verbose] > │ let v178 : UH3 = UH3_1 │
00:03:24 #3638 [Verbose] > │ let v179 : Mut2 = {l0 = 0UL; l1 = v178; l2 = 0L} : Mut2 │
00:03:24 #3639 [Verbose] > │ while method16(v177, v179) do │
00:03:24 #3640 [Verbose] > │ let v181 : uint64 = v179.l0 │
00:03:24 #3641 [Verbose] > │ let struct (v182 : UH3, v183 : int64) = v179.l1, v179.l2 │
00:03:24 #3642 [Verbose] > │ let v184 : int64 = v176.[int v181] │
00:03:24 #3643 [Verbose] > │ let v185 : int64 = v183 + 1L │
00:03:24 #3644 [Verbose] > │ let v186 : uint64 = v181 + 1UL │
00:03:24 #3645 [Verbose] > │ let v187 : UH3 = UH3_0(v183, v184, v182) │
00:03:24 #3646 [Verbose] > │ v179.l0 <- v186 │
00:03:24 #3647 [Verbose] > │ v179.l1 <- v187 │
00:03:24 #3648 [Verbose] > │ v179.l2 <- v185 │
00:03:24 #3649 [Verbose] > │ () │
00:03:24 #3650 [Verbose] > │ let struct (v188 : UH3, v189 : int64) = v179.l1, v179.l2 │
00:03:24 #3651 [Verbose] > │ let v190 : UH3 = UH3_1 │
00:03:24 #3652 [Verbose] > │ let v191 : UH3 = method17(v188, v190) │
00:03:24 #3653 [Verbose] > │ let v192 : (struct (int64 * int64) []) = method18(v191) │
00:03:24 #3654 [Verbose] > │ let v193 : int32 = v192.Length │
00:03:24 #3655 [Verbose] > │ let v194 : (struct (int64 * int64) []) = Array.zeroCreate<struct │
00:03:24 #3656 [Verbose] > │ (int64 * int64)> (v193) │
00:03:24 #3657 [Verbose] > │ let v195 : Mut0 = {l0 = 0} : Mut0 │
00:03:24 #3658 [Verbose] > │ while method21(v193, v195) do │
00:03:24 #3659 [Verbose] > │ let v197 : int32 = v195.l0 │
00:03:24 #3660 [Verbose] > │ let struct (v198 : int64, v199 : int64) = v192.[int v197] │
00:03:24 #3661 [Verbose] > │ let v200 : int64 = v198 + 1L │
00:03:24 #3662 [Verbose] > │ v194.[int v197] <- struct (v200, v199) │
00:03:24 #3663 [Verbose] > │ let v201 : int32 = v197 + 1 │
00:03:24 #3664 [Verbose] > │ v195.l0 <- v201 │
00:03:24 #3665 [Verbose] > │ () │
00:03:24 #3666 [Verbose] > │ let v202 : (struct (int64 * int64) -> int64) = closure6() │
00:03:24 #3667 [Verbose] > │ let v203 : (struct (int64 * int64) []) = v194 |> Array.sortBy v202 │
00:03:24 #3668 [Verbose] > │ let struct (v204 : int64, v205 : int64) = v203.[int 0] │
00:03:24 #3669 [Verbose] > │ let v206 : string = $"%A{struct (v204, v205)}" │
00:03:24 #3670 [Verbose] > │ let v207 : bool = v173 = v175 │
00:03:24 #3671 [Verbose] > │ let v212 : US1 = │
00:03:24 #3672 [Verbose] > │ if v207 then │
00:03:24 #3673 [Verbose] > │ let v208 : System.ConsoleColor = │
00:03:24 #3674 [Verbose] > │ System.ConsoleColor.DarkGreen │
00:03:24 #3675 [Verbose] > │ US1_1(v208) │
00:03:24 #3676 [Verbose] > │ else │
00:03:24 #3677 [Verbose] > │ let v210 : System.ConsoleColor = System.ConsoleColor.DarkRed │
00:03:24 #3678 [Verbose] > │ US1_1(v210) │
00:03:24 #3679 [Verbose] > │ let v213 : UH2 = UH2_1 │
00:03:24 #3680 [Verbose] > │ let v214 : UH2 = UH2_0(v206, v213) │
00:03:24 #3681 [Verbose] > │ let v215 : UH2 = UH2_0(v175, v214) │
00:03:24 #3682 [Verbose] > │ let v216 : UH2 = UH2_0(v173, v215) │
00:03:24 #3683 [Verbose] > │ let v217 : UH2 = UH2_0(v174, v216) │
00:03:24 #3684 [Verbose] > │ v169.[int v172] <- struct (v217, v212) │
00:03:24 #3685 [Verbose] > │ let v218 : uint64 = v172 + 1UL │
00:03:24 #3686 [Verbose] > │ v170.l0 <- v218 │
00:03:24 #3687 [Verbose] > │ () │
00:03:24 #3688 [Verbose] > │ let v219 : string = "Input" │
00:03:24 #3689 [Verbose] > │ let v220 : string = "Expected" │
00:03:24 #3690 [Verbose] > │ let v221 : string = "Result" │
00:03:24 #3691 [Verbose] > │ let v222 : string = "Best" │
00:03:24 #3692 [Verbose] > │ let v223 : UH2 = UH2_1 │
00:03:24 #3693 [Verbose] > │ let v224 : UH2 = UH2_0(v222, v223) │
00:03:24 #3694 [Verbose] > │ let v225 : UH2 = UH2_0(v221, v224) │
00:03:24 #3695 [Verbose] > │ let v226 : UH2 = UH2_0(v220, v225) │
00:03:24 #3696 [Verbose] > │ let v227 : UH2 = UH2_0(v219, v226) │
00:03:24 #3697 [Verbose] > │ let v228 : US1 = US1_0 │
00:03:24 #3698 [Verbose] > │ let v229 : string = "---" │
00:03:24 #3699 [Verbose] > │ let v230 : UH2 = UH2_1 │
00:03:24 #3700 [Verbose] > │ let v231 : UH2 = UH2_0(v229, v230) │
00:03:24 #3701 [Verbose] > │ let v232 : UH2 = UH2_0(v229, v231) │
00:03:24 #3702 [Verbose] > │ let v233 : UH2 = UH2_0(v229, v232) │
00:03:24 #3703 [Verbose] > │ let v234 : UH2 = UH2_0(v229, v233) │
00:03:24 #3704 [Verbose] > │ let v235 : US1 = US1_0 │
00:03:24 #3705 [Verbose] > │ let v236 : UH4 = UH4_1 │
00:03:24 #3706 [Verbose] > │ let v237 : UH4 = UH4_0(v234, v235, v236) │
00:03:24 #3707 [Verbose] > │ let v238 : UH4 = UH4_0(v227, v228, v237) │
00:03:24 #3708 [Verbose] > │ let v239 : (struct (UH2 * US1) []) = method22(v238) │
00:03:24 #3709 [Verbose] > │ let v240 : uint64 = System.Convert.ToUInt64 v239.Length │
00:03:24 #3710 [Verbose] > │ let v241 : uint64 = System.Convert.ToUInt64 v169.Length │
00:03:24 #3711 [Verbose] > │ let v242 : uint64 = v240 + v241 │
00:03:24 #3712 [Verbose] > │ let v243 : (struct (UH2 * US1) []) = Array.zeroCreate<struct (UH2 * │
00:03:24 #3713 [Verbose] > │ US1)> (System.Convert.ToInt32(v242)) │
00:03:24 #3714 [Verbose] > │ let v244 : Mut1 = {l0 = 0UL} : Mut1 │
00:03:24 #3715 [Verbose] > │ while method6(v242, v244) do │
00:03:24 #3716 [Verbose] > │ let v246 : uint64 = v244.l0 │
00:03:24 #3717 [Verbose] > │ let v247 : bool = v246 < v240 │
00:03:24 #3718 [Verbose] > │ let struct (v253 : UH2, v254 : US1) = │
00:03:24 #3719 [Verbose] > │ if v247 then │
00:03:24 #3720 [Verbose] > │ let struct (v248 : UH2, v249 : US1) = v239.[int v246] │
00:03:24 #3721 [Verbose] > │ struct (v248, v249) │
00:03:24 #3722 [Verbose] > │ else │
00:03:24 #3723 [Verbose] > │ let v250 : uint64 = v246 - v240 │
00:03:24 #3724 [Verbose] > │ let struct (v251 : UH2, v252 : US1) = v169.[int v250] │
00:03:24 #3725 [Verbose] > │ struct (v251, v252) │
00:03:24 #3726 [Verbose] > │ v243.[int v246] <- struct (v253, v254) │
00:03:24 #3727 [Verbose] > │ let v255 : uint64 = v246 + 1UL │
00:03:24 #3728 [Verbose] > │ v244.l0 <- v255 │
00:03:24 #3729 [Verbose] > │ () │
00:03:24 #3730 [Verbose] > │ let v256 : uint64 = System.Convert.ToUInt64 v243.Length │
00:03:24 #3731 [Verbose] > │ let v257 : ((string []) []) = Array.zeroCreate<(string [])> │
00:03:24 #3732 [Verbose] > │ (System.Convert.ToInt32(v256)) │
00:03:24 #3733 [Verbose] > │ let v258 : Mut1 = {l0 = 0UL} : Mut1 │
00:03:24 #3734 [Verbose] > │ while method6(v256, v258) do │
00:03:24 #3735 [Verbose] > │ let v260 : uint64 = v258.l0 │
00:03:24 #3736 [Verbose] > │ let struct (v261 : UH2, v262 : US1) = v243.[int v260] │
00:03:24 #3737 [Verbose] > │ let v263 : (string []) = method25(v261) │
00:03:24 #3738 [Verbose] > │ v257.[int v260] <- v263 │
00:03:24 #3739 [Verbose] > │ let v264 : uint64 = v260 + 1UL │
00:03:24 #3740 [Verbose] > │ v258.l0 <- v264 │
00:03:24 #3741 [Verbose] > │ () │
00:03:24 #3742 [Verbose] > │ let v265 : ((string []) []) = v257 |> Array.transpose │
00:03:24 #3743 [Verbose] > │ let v266 : uint64 = System.Convert.ToUInt64 v265.Length │
00:03:24 #3744 [Verbose] > │ let v267 : (int64 []) = Array.zeroCreate<int64> │
00:03:24 #3745 [Verbose] > │ (System.Convert.ToInt32(v266)) │
00:03:24 #3746 [Verbose] > │ let v268 : Mut1 = {l0 = 0UL} : Mut1 │
00:03:24 #3747 [Verbose] > │ while method6(v266, v268) do │
00:03:24 #3748 [Verbose] > │ let v270 : uint64 = v268.l0 │
00:03:24 #3749 [Verbose] > │ let v271 : (string []) = v265.[int v270] │
00:03:24 #3750 [Verbose] > │ let v272 : uint64 = System.Convert.ToUInt64 v271.Length │
00:03:24 #3751 [Verbose] > │ let v273 : (int64 []) = Array.zeroCreate<int64> │
00:03:24 #3752 [Verbose] > │ (System.Convert.ToInt32(v272)) │
00:03:24 #3753 [Verbose] > │ let v274 : Mut1 = {l0 = 0UL} : Mut1 │
00:03:24 #3754 [Verbose] > │ while method6(v272, v274) do │
00:03:24 #3755 [Verbose] > │ let v276 : uint64 = v274.l0 │
00:03:24 #3756 [Verbose] > │ let v277 : string = v271.[int v276] │
00:03:24 #3757 [Verbose] > │ let v278 : int64 = System.Convert.ToInt64 v277.Length │
00:03:24 #3758 [Verbose] > │ v273.[int v276] <- v278 │
00:03:24 #3759 [Verbose] > │ let v279 : uint64 = v276 + 1UL │
00:03:24 #3760 [Verbose] > │ v274.l0 <- v279 │
00:03:24 #3761 [Verbose] > │ () │
00:03:24 #3762 [Verbose] > │ let v280 : (int64 []) = v273 |> Array.sortDescending │
00:03:24 #3763 [Verbose] > │ let v281 : int64 option = v280 |> Array.tryItem 0 │
00:03:24 #3764 [Verbose] > │ let v282 : (int64 -> US2) = closure7() │
00:03:24 #3765 [Verbose] > │ let v283 : US2 = US2_0 │
00:03:24 #3766 [Verbose] > │ let v284 : US2 = v281 |> Option.map v282 |> Option.defaultValue v283 │
00:03:24 #3767 [Verbose] > │ let v287 : int64 = │
00:03:24 #3768 [Verbose] > │ match v284 with │
00:03:24 #3769 [Verbose] > │ | US2_0 -> (* None *) │
00:03:24 #3770 [Verbose] > │ 0L │
00:03:24 #3771 [Verbose] > │ | US2_1(v285) -> (* Some *) │
00:03:24 #3772 [Verbose] > │ v285 │
00:03:24 #3773 [Verbose] > │ v267.[int v270] <- v287 │
00:03:24 #3774 [Verbose] > │ let v288 : uint64 = v270 + 1UL │
00:03:24 #3775 [Verbose] > │ v268.l0 <- v288 │
00:03:24 #3776 [Verbose] > │ () │
00:03:24 #3777 [Verbose] > │ let v289 : uint64 = System.Convert.ToUInt64 v267.Length │
00:03:24 #3778 [Verbose] > │ let v290 : UH5 = UH5_1 │
00:03:24 #3779 [Verbose] > │ let v291 : Mut3 = {l0 = 0UL; l1 = v290; l2 = 0} : Mut3 │
00:03:24 #3780 [Verbose] > │ while method28(v289, v291) do │
00:03:24 #3781 [Verbose] > │ let v293 : uint64 = v291.l0 │
00:03:24 #3782 [Verbose] > │ let struct (v294 : UH5, v295 : int32) = v291.l1, v291.l2 │
00:03:24 #3783 [Verbose] > │ let v296 : int64 = v267.[int v293] │
00:03:24 #3784 [Verbose] > │ let v297 : int32 = v295 + 1 │
00:03:24 #3785 [Verbose] > │ let v298 : uint64 = v293 + 1UL │
00:03:24 #3786 [Verbose] > │ let v299 : UH5 = UH5_0(v295, v296, v294) │
00:03:24 #3787 [Verbose] > │ v291.l0 <- v298 │
00:03:24 #3788 [Verbose] > │ v291.l1 <- v299 │
00:03:24 #3789 [Verbose] > │ v291.l2 <- v297 │
00:03:24 #3790 [Verbose] > │ () │
00:03:24 #3791 [Verbose] > │ let struct (v300 : UH5, v301 : int32) = v291.l1, v291.l2 │
00:03:24 #3792 [Verbose] > │ let v302 : UH5 = UH5_1 │
00:03:24 #3793 [Verbose] > │ let v303 : UH5 = method29(v300, v302) │
00:03:24 #3794 [Verbose] > │ let v304 : (struct (int32 * int64) []) = method30(v303) │
00:03:24 #3795 [Verbose] > │ let v305 : Map<int32, int64> = v304 |> Array.map (fun (struct (a, b)) -> │
00:03:24 #3796 [Verbose] > │ a, b) |> Map.ofArray │
00:03:24 #3797 [Verbose] > │ let v306 : (struct ((string []) * US1) []) = Array.zeroCreate<struct │
00:03:24 #3798 [Verbose] > │ ((string []) * US1)> (System.Convert.ToInt32(v256)) │
00:03:24 #3799 [Verbose] > │ let v307 : Mut1 = {l0 = 0UL} : Mut1 │
00:03:24 #3800 [Verbose] > │ while method6(v256, v307) do │
00:03:24 #3801 [Verbose] > │ let v309 : uint64 = v307.l0 │
00:03:24 #3802 [Verbose] > │ let struct (v310 : UH2, v311 : US1) = v243.[int v309] │
00:03:24 #3803 [Verbose] > │ let v312 : UH6 = UH6_1 │
00:03:24 #3804 [Verbose] > │ let v313 : int32 = 0 │
00:03:24 #3805 [Verbose] > │ let struct (v314 : UH6, v315 : int32) = method33(v310, v312, v313) │
00:03:24 #3806 [Verbose] > │ let v316 : UH6 = UH6_1 │
00:03:24 #3807 [Verbose] > │ let v317 : UH6 = method34(v314, v316) │
00:03:24 #3808 [Verbose] > │ let v318 : UH2 = UH2_1 │
00:03:24 #3809 [Verbose] > │ let v319 : UH2 = method35(v305, v317, v318) │
00:03:24 #3810 [Verbose] > │ let v320 : (string []) = method36(v319) │
00:03:24 #3811 [Verbose] > │ v306.[int v309] <- struct (v320, v311) │
00:03:24 #3812 [Verbose] > │ let v321 : uint64 = v309 + 1UL │
00:03:24 #3813 [Verbose] > │ v307.l0 <- v321 │
00:03:24 #3814 [Verbose] > │ () │
00:03:24 #3815 [Verbose] > │ System.Console.WriteLine v35 │
00:03:24 #3816 [Verbose] > │ let v322 : uint64 = System.Convert.ToUInt64 v306.Length │
00:03:24 #3817 [Verbose] > │ let v323 : Mut1 = {l0 = 0UL} : Mut1 │
00:03:24 #3818 [Verbose] > │ while method6(v322, v323) do │
00:03:24 #3819 [Verbose] > │ let v325 : uint64 = v323.l0 │
00:03:24 #3820 [Verbose] > │ let struct (v326 : (string []), v327 : US1) = v306.[int v325] │
00:03:24 #3821 [Verbose] > │ match v327 with │
00:03:24 #3822 [Verbose] > │ | US1_0 -> (* None *) │
00:03:24 #3823 [Verbose] > │ let mutable result = None │
00:03:24 #3824 [Verbose] > │ #if FABLE_COMPILER_RUST │
00:03:24 #3825 [Verbose] > │ #if !WASM │
00:03:24 #3826 [Verbose] > │ () │
00:03:24 #3827 [Verbose] > │ #else │
00:03:24 #3828 [Verbose] > │ () │
00:03:24 #3829 [Verbose] > │ #endif │
00:03:24 #3830 [Verbose] > │ #else │
00:03:24 #3831 [Verbose] > │ System.Console.ResetColor () │
00:03:24 #3832 [Verbose] > │ () │
00:03:24 #3833 [Verbose] > │ #endif │
00:03:24 #3834 [Verbose] > │ |> fun x -> result <- Some x │
00:03:24 #3835 [Verbose] > │ result |> Option.get │
00:03:24 #3836 [Verbose] > │ () │
00:03:24 #3837 [Verbose] > │ | US1_1(v328) -> (* Some *) │
00:03:24 #3838 [Verbose] > │ let mutable result = None │
00:03:24 #3839 [Verbose] > │ #if FABLE_COMPILER_RUST │
00:03:24 #3840 [Verbose] > │ #if !WASM │
00:03:24 #3841 [Verbose] > │ () │
00:03:24 #3842 [Verbose] > │ #else │
00:03:24 #3843 [Verbose] > │ () │
00:03:24 #3844 [Verbose] > │ #endif │
00:03:24 #3845 [Verbose] > │ #else │
00:03:24 #3846 [Verbose] > │ System.Console.ForegroundColor <- v328 │
00:03:24 #3847 [Verbose] > │ () │
00:03:24 #3848 [Verbose] > │ #endif │
00:03:24 #3849 [Verbose] > │ |> fun x -> result <- Some x │
00:03:24 #3850 [Verbose] > │ result |> Option.get │
00:03:24 #3851 [Verbose] > │ () │
00:03:24 #3852 [Verbose] > │ let v329 : string = "\t| " │
00:03:24 #3853 [Verbose] > │ let v330 : string = System.String.Join (v329, v326) │
00:03:24 #3854 [Verbose] > │ System.Console.WriteLine v330 │
00:03:24 #3855 [Verbose] > │ let mutable result = None │
00:03:24 #3856 [Verbose] > │ #if FABLE_COMPILER_RUST │
00:03:24 #3857 [Verbose] > │ #if !WASM │
00:03:24 #3858 [Verbose] > │ () │
00:03:24 #3859 [Verbose] > │ #else │
00:03:24 #3860 [Verbose] > │ () │
00:03:24 #3861 [Verbose] > │ #endif │
00:03:24 #3862 [Verbose] > │ #else │
00:03:24 #3863 [Verbose] > │ System.Console.ResetColor () │
00:03:24 #3864 [Verbose] > │ () │
00:03:24 #3865 [Verbose] > │ #endif │
00:03:24 #3866 [Verbose] > │ |> fun x -> result <- Some x │
00:03:24 #3867 [Verbose] > │ result |> Option.get │
00:03:24 #3868 [Verbose] > │ let v331 : uint64 = v325 + 1UL │
00:03:24 #3869 [Verbose] > │ v323.l0 <- v331 │
00:03:24 #3870 [Verbose] > │ () │
00:03:24 #3871 [Verbose] > │ let v332 : ((float []) []) = Array.zeroCreate<(float [])> │
00:03:24 #3872 [Verbose] > │ (System.Convert.ToInt32(v168)) │
00:03:24 #3873 [Verbose] > │ let v333 : Mut1 = {l0 = 0UL} : Mut1 │
00:03:24 #3874 [Verbose] > │ while method6(v168, v333) do │
00:03:24 #3875 [Verbose] > │ let v335 : uint64 = v333.l0 │
00:03:24 #3876 [Verbose] > │ let struct (v336 : string, v337 : string, v338 : string, v339 : │
00:03:24 #3877 [Verbose] > │ (int64 [])) = v83.[int v335] │
00:03:24 #3878 [Verbose] > │ let v340 : (int64 -> float) = float │
00:03:24 #3879 [Verbose] > │ let v341 : uint64 = System.Convert.ToUInt64 v339.Length │
00:03:24 #3880 [Verbose] > │ let v342 : (float []) = Array.zeroCreate<float> │
00:03:24 #3881 [Verbose] > │ (System.Convert.ToInt32(v341)) │
00:03:24 #3882 [Verbose] > │ let v343 : Mut1 = {l0 = 0UL} : Mut1 │
00:03:24 #3883 [Verbose] > │ while method6(v341, v343) do │
00:03:24 #3884 [Verbose] > │ let v345 : uint64 = v343.l0 │
00:03:24 #3885 [Verbose] > │ let v346 : int64 = v339.[int v345] │
00:03:24 #3886 [Verbose] > │ let v347 : float = v340 v346 │
00:03:24 #3887 [Verbose] > │ v342.[int v345] <- v347 │
00:03:24 #3888 [Verbose] > │ let v348 : uint64 = v345 + 1UL │
00:03:24 #3889 [Verbose] > │ v343.l0 <- v348 │
00:03:24 #3890 [Verbose] > │ () │
00:03:24 #3891 [Verbose] > │ v332.[int v335] <- v342 │
00:03:24 #3892 [Verbose] > │ let v349 : uint64 = v335 + 1UL │
00:03:24 #3893 [Verbose] > │ v333.l0 <- v349 │
00:03:24 #3894 [Verbose] > │ () │
00:03:24 #3895 [Verbose] > │ let v350 : ((float []) []) = v332 |> Array.transpose │
00:03:24 #3896 [Verbose] > │ let v351 : uint64 = System.Convert.ToUInt64 v350.Length │
00:03:24 #3897 [Verbose] > │ let v352 : (float []) = Array.zeroCreate<float> │
00:03:24 #3898 [Verbose] > │ (System.Convert.ToInt32(v351)) │
00:03:24 #3899 [Verbose] > │ let v353 : Mut1 = {l0 = 0UL} : Mut1 │
00:03:24 #3900 [Verbose] > │ while method6(v351, v353) do │
00:03:24 #3901 [Verbose] > │ let v355 : uint64 = v353.l0 │
00:03:24 #3902 [Verbose] > │ let v356 : (float []) = v350.[int v355] │
00:03:24 #3903 [Verbose] > │ let v357 : float = v356 |> Array.average │
00:03:24 #3904 [Verbose] > │ v352.[int v355] <- v357 │
00:03:24 #3905 [Verbose] > │ let v358 : uint64 = v355 + 1UL │
00:03:24 #3906 [Verbose] > │ v353.l0 <- v358 │
00:03:24 #3907 [Verbose] > │ () │
00:03:24 #3908 [Verbose] > │ let v359 : (float -> int64) = int64 │
00:03:24 #3909 [Verbose] > │ let v360 : uint64 = System.Convert.ToUInt64 v352.Length │
00:03:24 #3910 [Verbose] > │ let v361 : (int64 []) = Array.zeroCreate<int64> │
00:03:24 #3911 [Verbose] > │ (System.Convert.ToInt32(v360)) │
00:03:24 #3912 [Verbose] > │ let v362 : Mut1 = {l0 = 0UL} : Mut1 │
00:03:24 #3913 [Verbose] > │ while method6(v360, v362) do │
00:03:24 #3914 [Verbose] > │ let v364 : uint64 = v362.l0 │
00:03:24 #3915 [Verbose] > │ let v365 : float = v352.[int v364] │
00:03:24 #3916 [Verbose] > │ let v366 : int64 = v359 v365 │
00:03:24 #3917 [Verbose] > │ v361.[int v364] <- v366 │
00:03:24 #3918 [Verbose] > │ let v367 : uint64 = v364 + 1UL │
00:03:24 #3919 [Verbose] > │ v362.l0 <- v367 │
00:03:24 #3920 [Verbose] > │ () │
00:03:24 #3921 [Verbose] > │ let v368 : uint64 = System.Convert.ToUInt64 v361.Length │
00:03:24 #3922 [Verbose] > │ let v369 : UH5 = UH5_1 │
00:03:24 #3923 [Verbose] > │ let v370 : Mut3 = {l0 = 0UL; l1 = v369; l2 = 0} : Mut3 │
00:03:24 #3924 [Verbose] > │ while method28(v368, v370) do │
00:03:24 #3925 [Verbose] > │ let v372 : uint64 = v370.l0 │
00:03:24 #3926 [Verbose] > │ let struct (v373 : UH5, v374 : int32) = v370.l1, v370.l2 │
00:03:24 #3927 [Verbose] > │ let v375 : int64 = v361.[int v372] │
00:03:24 #3928 [Verbose] > │ let v376 : int32 = v374 + 1 │
00:03:24 #3929 [Verbose] > │ let v377 : uint64 = v372 + 1UL │
00:03:24 #3930 [Verbose] > │ let v378 : UH5 = UH5_0(v374, v375, v373) │
00:03:24 #3931 [Verbose] > │ v370.l0 <- v377 │
00:03:24 #3932 [Verbose] > │ v370.l1 <- v378 │
00:03:24 #3933 [Verbose] > │ v370.l2 <- v376 │
00:03:24 #3934 [Verbose] > │ () │
00:03:24 #3935 [Verbose] > │ let struct (v379 : UH5, v380 : int32) = v370.l1, v370.l2 │
00:03:24 #3936 [Verbose] > │ let v381 : UH5 = UH5_1 │
00:03:24 #3937 [Verbose] > │ let v382 : UH5 = method29(v379, v381) │
00:03:24 #3938 [Verbose] > │ let v383 : (struct (int32 * int64) []) = method39(v382) │
00:03:24 #3939 [Verbose] > │ System.Console.WriteLine v35 │
00:03:24 #3940 [Verbose] > │ let v384 : string = "Average Ranking " │
00:03:24 #3941 [Verbose] > │ System.Console.WriteLine v384 │
00:03:24 #3942 [Verbose] > │ let v385 : (struct (int32 * int64) -> int64) = closure8() │
00:03:24 #3943 [Verbose] > │ let v386 : (struct (int32 * int64) []) = v383 |> Array.sortBy v385 │
00:03:24 #3944 [Verbose] > │ let v387 : uint64 = System.Convert.ToUInt64 v386.Length │
00:03:24 #3945 [Verbose] > │ let v388 : Mut1 = {l0 = 0UL} : Mut1 │
00:03:24 #3946 [Verbose] > │ while method6(v387, v388) do │
00:03:24 #3947 [Verbose] > │ let v390 : uint64 = v388.l0 │
00:03:24 #3948 [Verbose] > │ let struct (v391 : int32, v392 : int64) = v386.[int v390] │
00:03:24 #3949 [Verbose] > │ let v393 : string = $"Test case %d{v391 + 1}. Average Time: %A{v392} │
00:03:24 #3950 [Verbose] > │ " │
00:03:24 #3951 [Verbose] > │ System.Console.WriteLine v393 │
00:03:24 #3952 [Verbose] > │ let v394 : uint64 = v390 + 1UL │
00:03:24 #3953 [Verbose] > │ v388.l0 <- v394 │
00:03:24 #3954 [Verbose] > │ () │
00:03:24 #3955 [Verbose] > │ () │
00:03:24 #3956 [Verbose] > │ and method0 () : unit = │
00:03:24 #3957 [Verbose] > │ let v0 : (int32 []) = [|1; 3; 4; 6; 8; 9; 11|] │
00:03:24 #3958 [Verbose] > │ let v1 : (int32 []) = method1(v0) │
00:03:24 #3959 [Verbose] > │ let v2 : int32 = v1.Length │
00:03:24 #3960 [Verbose] > │ let v3 : (int32 []) = [|1; 3; 4; 6; 8; 9; 11|] │
00:03:24 #3961 [Verbose] > │ let v4 : (int32 []) = method1(v3) │
00:03:24 #3962 [Verbose] > │ let v5 : int32 = v4.Length │
00:03:24 #3963 [Verbose] > │ let v6 : (int32 []) = [|1; 3; 4; 6; 8; 9; 11|] │
00:03:24 #3964 [Verbose] > │ let v7 : (int32 []) = method1(v6) │
00:03:24 #3965 [Verbose] > │ let v8 : int32 = v7.Length │
00:03:24 #3966 [Verbose] > │ let v9 : (int32 []) = [|1; 3; 4; 6; 8; 9; 11|] │
00:03:24 #3967 [Verbose] > │ let v10 : (int32 []) = method1(v9) │
00:03:24 #3968 [Verbose] > │ let v11 : int32 = v10.Length │
00:03:24 #3969 [Verbose] > │ let v12 : (int32 []) = Array.zeroCreate<int32> (100) │
00:03:24 #3970 [Verbose] > │ let v13 : Mut0 = {l0 = 0} : Mut0 │
00:03:24 #3971 [Verbose] > │ while method2(v13) do │
00:03:24 #3972 [Verbose] > │ let v15 : int32 = v13.l0 │
00:03:24 #3973 [Verbose] > │ let v16 : int32 = 1 + v15 │
00:03:24 #3974 [Verbose] > │ v12.[int v15] <- v16 │
00:03:24 #3975 [Verbose] > │ let v17 : int32 = v15 + 1 │
00:03:24 #3976 [Verbose] > │ v13.l0 <- v17 │
00:03:24 #3977 [Verbose] > │ () │
00:03:24 #3978 [Verbose] > │ let v18 : int32 = v12.Length │
00:03:24 #3979 [Verbose] > │ let v19 : (int32 []) = [|1; 3; 4; 6; 8; 9; 11|] │
00:03:24 #3980 [Verbose] > │ let v20 : (int32 []) = method1(v19) │
00:03:24 #3981 [Verbose] > │ let v21 : (int32 []) = [|1; 3; 4; 6; 8; 9; 11|] │
00:03:24 #3982 [Verbose] > │ let v22 : (int32 []) = method1(v21) │
00:03:24 #3983 [Verbose] > │ let v23 : (int32 []) = [|1; 3; 4; 6; 8; 9; 11|] │
00:03:24 #3984 [Verbose] > │ let v24 : (int32 []) = method1(v23) │
00:03:24 #3985 [Verbose] > │ let v25 : (int32 []) = [|1; 3; 4; 6; 8; 9; 11|] │
00:03:24 #3986 [Verbose] > │ let v26 : (int32 []) = method1(v25) │
00:03:24 #3987 [Verbose] > │ let v27 : (int32 []) = Array.zeroCreate<int32> (100) │
00:03:24 #3988 [Verbose] > │ let v28 : Mut0 = {l0 = 0} : Mut0 │
00:03:24 #3989 [Verbose] > │ while method2(v28) do │
00:03:24 #3990 [Verbose] > │ let v30 : int32 = v28.l0 │
00:03:24 #3991 [Verbose] > │ let v31 : int32 = 1 + v30 │
00:03:24 #3992 [Verbose] > │ v27.[int v30] <- v31 │
00:03:24 #3993 [Verbose] > │ let v32 : int32 = v30 + 1 │
00:03:24 #3994 [Verbose] > │ v28.l0 <- v32 │
00:03:24 #3995 [Verbose] > │ () │
00:03:24 #3996 [Verbose] > │ let v33 : (unit -> unit) = closure0() │
00:03:24 #3997 [Verbose] > │ let v34 : string = nameof v33 │
00:03:24 #3998 [Verbose] > │ let v35 : string = "" │
00:03:24 #3999 [Verbose] > │ System.Console.WriteLine v35 │
00:03:24 #4000 [Verbose] > │ System.Console.WriteLine v35 │
00:03:24 #4001 [Verbose] > │ let v36 : string = $"Test: {v34}" │
00:03:24 #4002 [Verbose] > │ System.Console.WriteLine v36 │
00:03:24 #4003 [Verbose] > │ let v37 : int32 = 6 │
00:03:24 #4004 [Verbose] > │ let v38 : int32 = 3 │
00:03:24 #4005 [Verbose] > │ let v39 : US0 = US0_1(v38) │
00:03:24 #4006 [Verbose] > │ let v40 : int32 = 1 │
00:03:24 #4007 [Verbose] > │ let v41 : int32 = 0 │
00:03:24 #4008 [Verbose] > │ let v42 : US0 = US0_1(v41) │
00:03:24 #4009 [Verbose] > │ let v43 : int32 = 11 │
00:03:24 #4010 [Verbose] > │ let v44 : int32 = 6 │
00:03:24 #4011 [Verbose] > │ let v45 : US0 = US0_1(v44) │
00:03:24 #4012 [Verbose] > │ let v46 : int32 = 12 │
00:03:24 #4013 [Verbose] > │ let v47 : US0 = US0_0 │
00:03:24 #4014 [Verbose] > │ let v48 : int32 = 60 │
00:03:24 #4015 [Verbose] > │ let v49 : int32 = 59 │
00:03:24 #4016 [Verbose] > │ let v50 : US0 = US0_1(v49) │
00:03:24 #4017 [Verbose] > │ let v51 : int32 = 6 │
00:03:24 #4018 [Verbose] > │ let v52 : int32 = 7 │
00:03:24 #4019 [Verbose] > │ let v53 : int32 = 3 │
00:03:24 #4020 [Verbose] > │ let v54 : US0 = US0_1(v53) │
00:03:24 #4021 [Verbose] > │ let v55 : int32 = 1 │
00:03:24 #4022 [Verbose] > │ let v56 : int32 = 7 │
00:03:24 #4023 [Verbose] > │ let v57 : int32 = 0 │
00:03:24 #4024 [Verbose] > │ let v58 : US0 = US0_1(v57) │
00:03:24 #4025 [Verbose] > │ let v59 : int32 = 11 │
00:03:24 #4026 [Verbose] > │ let v60 : int32 = 7 │
00:03:24 #4027 [Verbose] > │ let v61 : int32 = 6 │
00:03:24 #4028 [Verbose] > │ let v62 : US0 = US0_1(v61) │
00:03:24 #4029 [Verbose] > │ let v63 : int32 = 12 │
00:03:24 #4030 [Verbose] > │ let v64 : int32 = 7 │
00:03:24 #4031 [Verbose] > │ let v65 : US0 = US0_0 │
00:03:24 #4032 [Verbose] > │ let v66 : int32 = 60 │
00:03:24 #4033 [Verbose] > │ let v67 : int32 = 100 │
00:03:24 #4034 [Verbose] > │ let v68 : int32 = 59 │
00:03:24 #4035 [Verbose] > │ let v69 : US0 = US0_1(v68) │
00:03:24 #4036 [Verbose] > │ let v70 : UH0 = UH0_1 │
00:03:24 #4037 [Verbose] > │ let v71 : UH0 = UH0_0(v27, v66, v67, v69, v70) │
00:03:24 #4038 [Verbose] > │ let v72 : UH0 = UH0_0(v26, v63, v64, v65, v71) │
00:03:24 #4039 [Verbose] > │ let v73 : UH0 = UH0_0(v24, v59, v60, v62, v72) │
00:03:24 #4040 [Verbose] > │ let v74 : UH0 = UH0_0(v22, v55, v56, v58, v73) │
00:03:24 #4041 [Verbose] > │ let v75 : UH0 = UH0_0(v20, v51, v52, v54, v74) │
00:03:24 #4042 [Verbose] > │ let v76 : UH0 = UH0_0(v12, v48, v18, v50, v75) │
00:03:24 #4043 [Verbose] > │ let v77 : UH0 = UH0_0(v10, v46, v11, v47, v76) │
00:03:24 #4044 [Verbose] > │ let v78 : UH0 = UH0_0(v7, v43, v8, v45, v77) │
00:03:24 #4045 [Verbose] > │ let v79 : UH0 = UH0_0(v4, v40, v5, v42, v78) │
00:03:24 #4046 [Verbose] > │ let v80 : UH0 = UH0_0(v1, v37, v2, v39, v79) │
00:03:24 #4047 [Verbose] > │ let v81 : (struct ((int32 []) * int32 * int32 * US0) []) = method3(v80) │
00:03:24 #4048 [Verbose] > │ let v82 : uint64 = System.Convert.ToUInt64 v81.Length │
00:03:24 #4049 [Verbose] > │ let v83 : (struct (string * string * string * (int64 [])) []) = │
00:03:24 #4050 [Verbose] > │ Array.zeroCreate<struct (string * string * string * (int64 []))> │
00:03:24 #4051 [Verbose] > │ (System.Convert.ToInt32(v82)) │
00:03:24 #4052 [Verbose] > │ let v84 : Mut1 = {l0 = 0UL} : Mut1 │
00:03:24 #4053 [Verbose] > │ while method6(v82, v84) do │
00:03:24 #4054 [Verbose] > │ let v86 : uint64 = v84.l0 │
00:03:24 #4055 [Verbose] > │ let struct (v87 : (int32 []), v88 : int32, v89 : int32, v90 : US0) = │
00:03:24 #4056 [Verbose] > │ v81.[int v86] │
00:03:24 #4057 [Verbose] > │ let v91 : string = $"%A{struct (v87, v88, v89)}" │
00:03:24 #4058 [Verbose] > │ System.Console.WriteLine v35 │
00:03:24 #4059 [Verbose] > │ let v92 : string = $"Solution: {v91} " │
00:03:24 #4060 [Verbose] > │ System.Console.WriteLine v92 │
00:03:24 #4061 [Verbose] > │ let v93 : int32 = 0 │
00:03:24 #4062 [Verbose] > │ let v94 : string = "semi_open_1" │
00:03:24 #4063 [Verbose] > │ let v95 : (struct ((int32 []) * int32 * int32) -> US0) = closure1() │
00:03:24 #4064 [Verbose] > │ let v96 : int32 = 1 │
00:03:24 #4065 [Verbose] > │ let v97 : string = "closed_1" │
00:03:24 #4066 [Verbose] > │ let v98 : (struct ((int32 []) * int32 * int32) -> US0) = closure2() │
00:03:24 #4067 [Verbose] > │ let v99 : int32 = 2 │
00:03:24 #4068 [Verbose] > │ let v100 : string = "semi_open_2" │
00:03:24 #4069 [Verbose] > │ let v101 : (struct ((int32 []) * int32 * int32) -> US0) = closure3() │
00:03:24 #4070 [Verbose] > │ let v102 : int32 = 3 │
00:03:24 #4071 [Verbose] > │ let v103 : string = "closed_2" │
00:03:24 #4072 [Verbose] > │ let v104 : (struct ((int32 []) * int32 * int32) -> US0) = closure4() │
00:03:24 #4073 [Verbose] > │ let v105 : UH1 = UH1_1 │
00:03:24 #4074 [Verbose] > │ let v106 : UH1 = UH1_0(v102, v103, v104, v105) │
00:03:24 #4075 [Verbose] > │ let v107 : UH1 = UH1_0(v99, v100, v101, v106) │
00:03:24 #4076 [Verbose] > │ let v108 : UH1 = UH1_0(v96, v97, v98, v107) │
00:03:24 #4077 [Verbose] > │ let v109 : UH1 = UH1_0(v93, v94, v95, v108) │
00:03:24 #4078 [Verbose] > │ let v110 : (struct (int32 * string * (struct ((int32 []) * int32 * │
00:03:24 #4079 [Verbose] > │ int32) -> US0)) []) = method11(v109) │
00:03:24 #4080 [Verbose] > │ let v111 : uint64 = System.Convert.ToUInt64 v110.Length │
00:03:24 #4081 [Verbose] > │ let v112 : (struct (US0 * int64) []) = Array.zeroCreate<struct (US0 │
00:03:24 #4082 [Verbose] > │ * int64)> (System.Convert.ToInt32(v111)) │
00:03:24 #4083 [Verbose] > │ let v113 : Mut1 = {l0 = 0UL} : Mut1 │
00:03:24 #4084 [Verbose] > │ while method6(v111, v113) do │
00:03:24 #4085 [Verbose] > │ let v115 : uint64 = v113.l0 │
00:03:24 #4086 [Verbose] > │ let struct (v116 : int32, v117 : string, v118 : (struct ((int32 │
00:03:24 #4087 [Verbose] > │ []) * int32 * int32) -> US0)) = v110.[int v115] │
00:03:24 #4088 [Verbose] > │ let mutable result = None │
00:03:24 #4089 [Verbose] > │ #if FABLE_COMPILER_RUST │
00:03:24 #4090 [Verbose] > │ #if !WASM │
00:03:24 #4091 [Verbose] > │ () │
00:03:24 #4092 [Verbose] > │ #else │
00:03:24 #4093 [Verbose] > │ () │
00:03:24 #4094 [Verbose] > │ #endif │
00:03:24 #4095 [Verbose] > │ #else │
00:03:24 #4096 [Verbose] > │ System.GC.Collect () │
00:03:24 #4097 [Verbose] > │ () │
00:03:24 #4098 [Verbose] > │ #endif │
00:03:24 #4099 [Verbose] > │ |> fun x -> result <- Some x │
00:03:24 #4100 [Verbose] > │ result |> Option.get │
00:03:24 #4101 [Verbose] > │ let v119 : (unit -> System.Diagnostics.Stopwatch) = │
00:03:24 #4102 [Verbose] > │ System.Diagnostics.Stopwatch │
00:03:24 #4103 [Verbose] > │ let v120 : System.Diagnostics.Stopwatch = v119 () │
00:03:24 #4104 [Verbose] > │ v120.Start () │
00:03:24 #4105 [Verbose] > │ let v121 : int64 = v120.ElapsedMilliseconds │
00:03:24 #4106 [Verbose] > │ let v122 : (int32 []) = Array.zeroCreate<int32> (8000001) │
00:03:24 #4107 [Verbose] > │ let v123 : Mut0 = {l0 = 0} : Mut0 │
00:03:24 #4108 [Verbose] > │ while method14(v123) do │
00:03:24 #4109 [Verbose] > │ let v125 : int32 = v123.l0 │
00:03:24 #4110 [Verbose] > │ v122.[int v125] <- v125 │
00:03:24 #4111 [Verbose] > │ let v126 : int32 = v125 + 1 │
00:03:24 #4112 [Verbose] > │ v123.l0 <- v126 │
00:03:24 #4113 [Verbose] > │ () │
00:03:24 #4114 [Verbose] > │ let v127 : (int32 -> US0) = closure5(v87, v88, v89, v118) │
00:03:24 #4115 [Verbose] > │ let v128 : (US0 []) = v122 |> Array.Parallel.map v127 │
00:03:24 #4116 [Verbose] > │ let v129 : int32 = v128.Length │
00:03:24 #4117 [Verbose] > │ let v130 : int32 = v129 - 1 │
00:03:24 #4118 [Verbose] > │ let v131 : US0 = v128.[int v130] │
00:03:24 #4119 [Verbose] > │ let v132 : int64 = v120.ElapsedMilliseconds │
00:03:24 #4120 [Verbose] > │ let v133 : int64 = v132 - v121 │
00:03:24 #4121 [Verbose] > │ let v134 : string = $"Test case {v116 + 1}. {v117}. Time: {v133} │
00:03:24 #4122 [Verbose] > │ " │
00:03:24 #4123 [Verbose] > │ System.Console.WriteLine v134 │
00:03:24 #4124 [Verbose] > │ v112.[int v115] <- struct (v131, v133) │
00:03:24 #4125 [Verbose] > │ let v135 : uint64 = v115 + 1UL │
00:03:24 #4126 [Verbose] > │ v113.l0 <- v135 │
00:03:24 #4127 [Verbose] > │ () │
00:03:24 #4128 [Verbose] > │ let v136 : uint64 = System.Convert.ToUInt64 v112.Length │
00:03:24 #4129 [Verbose] > │ let v137 : (US0 []) = Array.zeroCreate<US0> │
00:03:24 #4130 [Verbose] > │ (System.Convert.ToInt32(v136)) │
00:03:24 #4131 [Verbose] > │ let v138 : Mut1 = {l0 = 0UL} : Mut1 │
00:03:24 #4132 [Verbose] > │ while method6(v136, v138) do │
00:03:24 #4133 [Verbose] > │ let v140 : uint64 = v138.l0 │
00:03:24 #4134 [Verbose] > │ let struct (v141 : US0, v142 : int64) = v112.[int v140] │
00:03:24 #4135 [Verbose] > │ v137.[int v140] <- v141 │
00:03:24 #4136 [Verbose] > │ let v143 : uint64 = v140 + 1UL │
00:03:24 #4137 [Verbose] > │ v138.l0 <- v143 │
00:03:24 #4138 [Verbose] > │ () │
00:03:24 #4139 [Verbose] > │ let v144 : uint64 = System.Convert.ToUInt64 v137.Length │
00:03:24 #4140 [Verbose] > │ let v145 : bool = v144 <= 1UL │
00:03:24 #4141 [Verbose] > │ if v145 then │
00:03:24 #4142 [Verbose] > │ () │
00:03:24 #4143 [Verbose] > │ else │
00:03:24 #4144 [Verbose] > │ let v146 : US0 = v137.[int 0UL] │
00:03:24 #4145 [Verbose] > │ let v147 : uint64 = 0UL │
00:03:24 #4146 [Verbose] > │ let v148 : bool = method15(v146, v137, v147) │
00:03:24 #4147 [Verbose] > │ if v148 then │
00:03:24 #4148 [Verbose] > │ () │
00:03:24 #4149 [Verbose] > │ else │
00:03:24 #4150 [Verbose] > │ let v149 : string = $"Challenge error: {v137}" │
00:03:24 #4151 [Verbose] > │ failwith<unit> v149 │
00:03:24 #4152 [Verbose] > │ let v150 : string = $"%A{v90}" │
00:03:24 #4153 [Verbose] > │ let v151 : (US0 []) = Array.zeroCreate<US0> │
00:03:24 #4154 [Verbose] > │ (System.Convert.ToInt32(v136)) │
00:03:24 #4155 [Verbose] > │ let v152 : Mut1 = {l0 = 0UL} : Mut1 │
00:03:24 #4156 [Verbose] > │ while method6(v136, v152) do │
00:03:24 #4157 [Verbose] > │ let v154 : uint64 = v152.l0 │
00:03:24 #4158 [Verbose] > │ let struct (v155 : US0, v156 : int64) = v112.[int v154] │
00:03:24 #4159 [Verbose] > │ v151.[int v154] <- v155 │
00:03:24 #4160 [Verbose] > │ let v157 : uint64 = v154 + 1UL │
00:03:24 #4161 [Verbose] > │ v152.l0 <- v157 │
00:03:24 #4162 [Verbose] > │ () │
00:03:24 #4163 [Verbose] > │ let v158 : US0 = v151.[int 0UL] │
00:03:24 #4164 [Verbose] > │ let v159 : string = $"%A{v158}" │
00:03:24 #4165 [Verbose] > │ let v160 : (int64 []) = Array.zeroCreate<int64> │
00:03:24 #4166 [Verbose] > │ (System.Convert.ToInt32(v136)) │
00:03:24 #4167 [Verbose] > │ let v161 : Mut1 = {l0 = 0UL} : Mut1 │
00:03:24 #4168 [Verbose] > │ while method6(v136, v161) do │
00:03:24 #4169 [Verbose] > │ let v163 : uint64 = v161.l0 │
00:03:24 #4170 [Verbose] > │ let struct (v164 : US0, v165 : int64) = v112.[int v163] │
00:03:24 #4171 [Verbose] > │ v160.[int v163] <- v165 │
00:03:24 #4172 [Verbose] > │ let v166 : uint64 = v163 + 1UL │
00:03:24 #4173 [Verbose] > │ v161.l0 <- v166 │
00:03:24 #4174 [Verbose] > │ () │
00:03:24 #4175 [Verbose] > │ v83.[int v86] <- struct (v150, v91, v159, v160) │
00:03:24 #4176 [Verbose] > │ let v167 : uint64 = v86 + 1UL │
00:03:24 #4177 [Verbose] > │ v84.l0 <- v167 │
00:03:24 #4178 [Verbose] > │ () │
00:03:24 #4179 [Verbose] > │ let v168 : uint64 = System.Convert.ToUInt64 v83.Length │
00:03:24 #4180 [Verbose] > │ let v169 : (struct (UH2 * US1) []) = Array.zeroCreate<struct (UH2 * │
00:03:24 #4181 [Verbose] > │ US1)> (System.Convert.ToInt32(v168)) │
00:03:24 #4182 [Verbose] > │ let v170 : Mut1 = {l0 = 0UL} : Mut1 │
00:03:24 #4183 [Verbose] > │ while method6(v168, v170) do │
00:03:24 #4184 [Verbose] > │ let v172 : uint64 = v170.l0 │
00:03:24 #4185 [Verbose] > │ let struct (v173 : string, v174 : string, v175 : string, v176 : │
00:03:24 #4186 [Verbose] > │ (int64 [])) = v83.[int v172] │
00:03:24 #4187 [Verbose] > │ let v177 : uint64 = System.Convert.ToUInt64 v176.Length │
00:03:24 #4188 [Verbose] > │ let v178 : UH3 = UH3_1 │
00:03:24 #4189 [Verbose] > │ let v179 : Mut2 = {l0 = 0UL; l1 = v178; l2 = 0L} : Mut2 │
00:03:24 #4190 [Verbose] > │ while method16(v177, v179) do │
00:03:24 #4191 [Verbose] > │ let v181 : uint64 = v179.l0 │
00:03:24 #4192 [Verbose] > │ let struct (v182 : UH3, v183 : int64) = v179.l1, v179.l2 │
00:03:24 #4193 [Verbose] > │ let v184 : int64 = v176.[int v181] │
00:03:24 #4194 [Verbose] > │ let v185 : int64 = v183 + 1L │
00:03:24 #4195 [Verbose] > │ let v186 : uint64 = v181 + 1UL │
00:03:24 #4196 [Verbose] > │ let v187 : UH3 = UH3_0(v183, v184, v182) │
00:03:24 #4197 [Verbose] > │ v179.l0 <- v186 │
00:03:24 #4198 [Verbose] > │ v179.l1 <- v187 │
00:03:24 #4199 [Verbose] > │ v179.l2 <- v185 │
00:03:24 #4200 [Verbose] > │ () │
00:03:24 #4201 [Verbose] > │ let struct (v188 : UH3, v189 : int64) = v179.l1, v179.l2 │
00:03:24 #4202 [Verbose] > │ let v190 : UH3 = UH3_1 │
00:03:24 #4203 [Verbose] > │ let v191 : UH3 = method17(v188, v190) │
00:03:24 #4204 [Verbose] > │ let v192 : (struct (int64 * int64) []) = method18(v191) │
00:03:24 #4205 [Verbose] > │ let v193 : int32 = v192.Length │
00:03:24 #4206 [Verbose] > │ let v194 : (struct (int64 * int64) []) = Array.zeroCreate<struct │
00:03:24 #4207 [Verbose] > │ (int64 * int64)> (v193) │
00:03:24 #4208 [Verbose] > │ let v195 : Mut0 = {l0 = 0} : Mut0 │
00:03:24 #4209 [Verbose] > │ while method21(v193, v195) do │
00:03:24 #4210 [Verbose] > │ let v197 : int32 = v195.l0 │
00:03:24 #4211 [Verbose] > │ let struct (v198 : int64, v199 : int64) = v192.[int v197] │
00:03:24 #4212 [Verbose] > │ let v200 : int64 = v198 + 1L │
00:03:24 #4213 [Verbose] > │ v194.[int v197] <- struct (v200, v199) │
00:03:24 #4214 [Verbose] > │ let v201 : int32 = v197 + 1 │
00:03:24 #4215 [Verbose] > │ v195.l0 <- v201 │
00:03:24 #4216 [Verbose] > │ () │
00:03:24 #4217 [Verbose] > │ let v202 : (struct (int64 * int64) -> int64) = closure6() │
00:03:24 #4218 [Verbose] > │ let v203 : (struct (int64 * int64) []) = v194 |> Array.sortBy v202 │
00:03:24 #4219 [Verbose] > │ let struct (v204 : int64, v205 : int64) = v203.[int 0] │
00:03:24 #4220 [Verbose] > │ let v206 : string = $"%A{struct (v204, v205)}" │
00:03:24 #4221 [Verbose] > │ let v207 : bool = v173 = v175 │
00:03:24 #4222 [Verbose] > │ let v212 : US1 = │
00:03:24 #4223 [Verbose] > │ if v207 then │
00:03:24 #4224 [Verbose] > │ let v208 : System.ConsoleColor = │
00:03:24 #4225 [Verbose] > │ System.ConsoleColor.DarkGreen │
00:03:24 #4226 [Verbose] > │ US1_1(v208) │
00:03:24 #4227 [Verbose] > │ else │
00:03:24 #4228 [Verbose] > │ let v210 : System.ConsoleColor = System.ConsoleColor.DarkRed │
00:03:24 #4229 [Verbose] > │ US1_1(v210) │
00:03:24 #4230 [Verbose] > │ let v213 : UH2 = UH2_1 │
00:03:24 #4231 [Verbose] > │ let v214 : UH2 = UH2_0(v206, v213) │
00:03:24 #4232 [Verbose] > │ let v215 : UH2 = UH2_0(v175, v214) │
00:03:24 #4233 [Verbose] > │ let v216 : UH2 = UH2_0(v173, v215) │
00:03:24 #4234 [Verbose] > │ let v217 : UH2 = UH2_0(v174, v216) │
00:03:24 #4235 [Verbose] > │ v169.[int v172] <- struct (v217, v212) │
00:03:24 #4236 [Verbose] > │ let v218 : uint64 = v172 + 1UL │
00:03:24 #4237 [Verbose] > │ v170.l0 <- v218 │
00:03:24 #4238 [Verbose] > │ () │
00:03:24 #4239 [Verbose] > │ let v219 : string = "Input" │
00:03:24 #4240 [Verbose] > │ let v220 : string = "Expected" │
00:03:24 #4241 [Verbose] > │ let v221 : string = "Result" │
00:03:24 #4242 [Verbose] > │ let v222 : string = "Best" │
00:03:24 #4243 [Verbose] > │ let v223 : UH2 = UH2_1 │
00:03:24 #4244 [Verbose] > │ let v224 : UH2 = UH2_0(v222, v223) │
00:03:24 #4245 [Verbose] > │ let v225 : UH2 = UH2_0(v221, v224) │
00:03:24 #4246 [Verbose] > │ let v226 : UH2 = UH2_0(v220, v225) │
00:03:24 #4247 [Verbose] > │ let v227 : UH2 = UH2_0(v219, v226) │
00:03:24 #4248 [Verbose] > │ let v228 : US1 = US1_0 │
00:03:24 #4249 [Verbose] > │ let v229 : string = "---" │
00:03:24 #4250 [Verbose] > │ let v230 : UH2 = UH2_1 │
00:03:24 #4251 [Verbose] > │ let v231 : UH2 = UH2_0(v229, v230) │
00:03:24 #4252 [Verbose] > │ let v232 : UH2 = UH2_0(v229, v231) │
00:03:24 #4253 [Verbose] > │ let v233 : UH2 = UH2_0(v229, v232) │
00:03:24 #4254 [Verbose] > │ let v234 : UH2 = UH2_0(v229, v233) │
00:03:24 #4255 [Verbose] > │ let v235 : US1 = US1_0 │
00:03:24 #4256 [Verbose] > │ let v236 : UH4 = UH4_1 │
00:03:24 #4257 [Verbose] > │ let v237 : UH4 = UH4_0(v234, v235, v236) │
00:03:24 #4258 [Verbose] > │ let v238 : UH4 = UH4_0(v227, v228, v237) │
00:03:24 #4259 [Verbose] > │ let v239 : (struct (UH2 * US1) []) = method22(v238) │
00:03:24 #4260 [Verbose] > │ let v240 : uint64 = System.Convert.ToUInt64 v239.Length │
00:03:24 #4261 [Verbose] > │ let v241 : uint64 = System.Convert.ToUInt64 v169.Length │
00:03:24 #4262 [Verbose] > │ let v242 : uint64 = v240 + v241 │
00:03:24 #4263 [Verbose] > │ let v243 : (struct (UH2 * US1) []) = Array.zeroCreate<struct (UH2 * │
00:03:24 #4264 [Verbose] > │ US1)> (System.Convert.ToInt32(v242)) │
00:03:24 #4265 [Verbose] > │ let v244 : Mut1 = {l0 = 0UL} : Mut1 │
00:03:24 #4266 [Verbose] > │ while method6(v242, v244) do │
00:03:24 #4267 [Verbose] > │ let v246 : uint64 = v244.l0 │
00:03:24 #4268 [Verbose] > │ let v247 : bool = v246 < v240 │
00:03:24 #4269 [Verbose] > │ let struct (v253 : UH2, v254 : US1) = │
00:03:24 #4270 [Verbose] > │ if v247 then │
00:03:24 #4271 [Verbose] > │ let struct (v248 : UH2, v249 : US1) = v239.[int v246] │
00:03:24 #4272 [Verbose] > │ struct (v248, v249) │
00:03:24 #4273 [Verbose] > │ else │
00:03:24 #4274 [Verbose] > │ let v250 : uint64 = v246 - v240 │
00:03:24 #4275 [Verbose] > │ let struct (v251 : UH2, v252 : US1) = v169.[int v250] │
00:03:24 #4276 [Verbose] > │ struct (v251, v252) │
00:03:24 #4277 [Verbose] > │ v243.[int v246] <- struct (v253, v254) │
00:03:24 #4278 [Verbose] > │ let v255 : uint64 = v246 + 1UL │
00:03:24 #4279 [Verbose] > │ v244.l0 <- v255 │
00:03:24 #4280 [Verbose] > │ () │
00:03:24 #4281 [Verbose] > │ let v256 : uint64 = System.Convert.ToUInt64 v243.Length │
00:03:24 #4282 [Verbose] > │ let v257 : ((string []) []) = Array.zeroCreate<(string [])> │
00:03:24 #4283 [Verbose] > │ (System.Convert.ToInt32(v256)) │
00:03:24 #4284 [Verbose] > │ let v258 : Mut1 = {l0 = 0UL} : Mut1 │
00:03:24 #4285 [Verbose] > │ while method6(v256, v258) do │
00:03:24 #4286 [Verbose] > │ let v260 : uint64 = v258.l0 │
00:03:24 #4287 [Verbose] > │ let struct (v261 : UH2, v262 : US1) = v243.[int v260] │
00:03:24 #4288 [Verbose] > │ let v263 : (string []) = method25(v261) │
00:03:24 #4289 [Verbose] > │ v257.[int v260] <- v263 │
00:03:24 #4290 [Verbose] > │ let v264 : uint64 = v260 + 1UL │
00:03:24 #4291 [Verbose] > │ v258.l0 <- v264 │
00:03:24 #4292 [Verbose] > │ () │
00:03:24 #4293 [Verbose] > │ let v265 : ((string []) []) = v257 |> Array.transpose │
00:03:24 #4294 [Verbose] > │ let v266 : uint64 = System.Convert.ToUInt64 v265.Length │
00:03:24 #4295 [Verbose] > │ let v267 : (int64 []) = Array.zeroCreate<int64> │
00:03:24 #4296 [Verbose] > │ (System.Convert.ToInt32(v266)) │
00:03:24 #4297 [Verbose] > │ let v268 : Mut1 = {l0 = 0UL} : Mut1 │
00:03:24 #4298 [Verbose] > │ while method6(v266, v268) do │
00:03:24 #4299 [Verbose] > │ let v270 : uint64 = v268.l0 │
00:03:24 #4300 [Verbose] > │ let v271 : (string []) = v265.[int v270] │
00:03:24 #4301 [Verbose] > │ let v272 : uint64 = System.Convert.ToUInt64 v271.Length │
00:03:24 #4302 [Verbose] > │ let v273 : (int64 []) = Array.zeroCreate<int64> │
00:03:24 #4303 [Verbose] > │ (System.Convert.ToInt32(v272)) │
00:03:24 #4304 [Verbose] > │ let v274 : Mut1 = {l0 = 0UL} : Mut1 │
00:03:24 #4305 [Verbose] > │ while method6(v272, v274) do │
00:03:24 #4306 [Verbose] > │ let v276 : uint64 = v274.l0 │
00:03:24 #4307 [Verbose] > │ let v277 : string = v271.[int v276] │
00:03:24 #4308 [Verbose] > │ let v278 : int64 = System.Convert.ToInt64 v277.Length │
00:03:24 #4309 [Verbose] > │ v273.[int v276] <- v278 │
00:03:24 #4310 [Verbose] > │ let v279 : uint64 = v276 + 1UL │
00:03:24 #4311 [Verbose] > │ v274.l0 <- v279 │
00:03:24 #4312 [Verbose] > │ () │
00:03:24 #4313 [Verbose] > │ let v280 : (int64 []) = v273 |> Array.sortDescending │
00:03:24 #4314 [Verbose] > │ let v281 : int64 option = v280 |> Array.tryItem 0 │
00:03:24 #4315 [Verbose] > │ let v282 : (int64 -> US2) = closure7() │
00:03:24 #4316 [Verbose] > │ let v283 : US2 = US2_0 │
00:03:24 #4317 [Verbose] > │ let v284 : US2 = v281 |> Option.map v282 |> Option.defaultValue v283 │
00:03:24 #4318 [Verbose] > │ let v287 : int64 = │
00:03:24 #4319 [Verbose] > │ match v284 with │
00:03:24 #4320 [Verbose] > │ | US2_0 -> (* None *) │
00:03:24 #4321 [Verbose] > │ 0L │
00:03:24 #4322 [Verbose] > │ | US2_1(v285) -> (* Some *) │
00:03:24 #4323 [Verbose] > │ v285 │
00:03:24 #4324 [Verbose] > │ v267.[int v270] <- v287 │
00:03:24 #4325 [Verbose] > │ let v288 : uint64 = v270 + 1UL │
00:03:24 #4326 [Verbose] > │ v268.l0 <- v288 │
00:03:24 #4327 [Verbose] > │ () │
00:03:24 #4328 [Verbose] > │ let v289 : uint64 = System.Convert.ToUInt64 v267.Length │
00:03:24 #4329 [Verbose] > │ let v290 : UH5 = UH5_1 │
00:03:24 #4330 [Verbose] > │ let v291 : Mut3 = {l0 = 0UL; l1 = v290; l2 = 0} : Mut3 │
00:03:24 #4331 [Verbose] > │ while method28(v289, v291) do │
00:03:24 #4332 [Verbose] > │ let v293 : uint64 = v291.l0 │
00:03:24 #4333 [Verbose] > │ let struct (v294 : UH5, v295 : int32) = v291.l1, v291.l2 │
00:03:24 #4334 [Verbose] > │ let v296 : int64 = v267.[int v293] │
00:03:24 #4335 [Verbose] > │ let v297 : int32 = v295 + 1 │
00:03:24 #4336 [Verbose] > │ let v298 : uint64 = v293 + 1UL │
00:03:24 #4337 [Verbose] > │ let v299 : UH5 = UH5_0(v295, v296, v294) │
00:03:24 #4338 [Verbose] > │ v291.l0 <- v298 │
00:03:24 #4339 [Verbose] > │ v291.l1 <- v299 │
00:03:24 #4340 [Verbose] > │ v291.l2 <- v297 │
00:03:24 #4341 [Verbose] > │ () │
00:03:24 #4342 [Verbose] > │ let struct (v300 : UH5, v301 : int32) = v291.l1, v291.l2 │
00:03:24 #4343 [Verbose] > │ let v302 : UH5 = UH5_1 │
00:03:24 #4344 [Verbose] > │ let v303 : UH5 = method29(v300, v302) │
00:03:24 #4345 [Verbose] > │ let v304 : (struct (int32 * int64) []) = method30(v303) │
00:03:24 #4346 [Verbose] > │ let v305 : Map<int32, int64> = v304 |> Array.map (fun (struct (a, b)) -> │
00:03:24 #4347 [Verbose] > │ a, b) |> Map.ofArray │
00:03:24 #4348 [Verbose] > │ let v306 : (struct ((string []) * US1) []) = Array.zeroCreate<struct │
00:03:24 #4349 [Verbose] > │ ((string []) * US1)> (System.Convert.ToInt32(v256)) │
00:03:24 #4350 [Verbose] > │ let v307 : Mut1 = {l0 = 0UL} : Mut1 │
00:03:24 #4351 [Verbose] > │ while method6(v256, v307) do │
00:03:24 #4352 [Verbose] > │ let v309 : uint64 = v307.l0 │
00:03:24 #4353 [Verbose] > │ let struct (v310 : UH2, v311 : US1) = v243.[int v309] │
00:03:24 #4354 [Verbose] > │ let v312 : UH6 = UH6_1 │
00:03:24 #4355 [Verbose] > │ let v313 : int32 = 0 │
00:03:24 #4356 [Verbose] > │ let struct (v314 : UH6, v315 : int32) = method33(v310, v312, v313) │
00:03:24 #4357 [Verbose] > │ let v316 : UH6 = UH6_1 │
00:03:24 #4358 [Verbose] > │ let v317 : UH6 = method34(v314, v316) │
00:03:24 #4359 [Verbose] > │ let v318 : UH2 = UH2_1 │
00:03:24 #4360 [Verbose] > │ let v319 : UH2 = method35(v305, v317, v318) │
00:03:24 #4361 [Verbose] > │ let v320 : (string []) = method36(v319) │
00:03:24 #4362 [Verbose] > │ v306.[int v309] <- struct (v320, v311) │
00:03:24 #4363 [Verbose] > │ let v321 : uint64 = v309 + 1UL │
00:03:24 #4364 [Verbose] > │ v307.l0 <- v321 │
00:03:24 #4365 [Verbose] > │ () │
00:03:24 #4366 [Verbose] > │ System.Console.WriteLine v35 │
00:03:24 #4367 [Verbose] > │ let v322 : uint64 = System.Convert.ToUInt64 v306.Length │
00:03:24 #4368 [Verbose] > │ let v323 : Mut1 = {l0 = 0UL} : Mut1 │
00:03:24 #4369 [Verbose] > │ while method6(v322, v323) do │
00:03:24 #4370 [Verbose] > │ let v325 : uint64 = v323.l0 │
00:03:24 #4371 [Verbose] > │ let struct (v326 : (string []), v327 : US1) = v306.[int v325] │
00:03:24 #4372 [Verbose] > │ match v327 with │
00:03:24 #4373 [Verbose] > │ | US1_0 -> (* None *) │
00:03:24 #4374 [Verbose] > │ let mutable result = None │
00:03:24 #4375 [Verbose] > │ #if FABLE_COMPILER_RUST │
00:03:24 #4376 [Verbose] > │ #if !WASM │
00:03:24 #4377 [Verbose] > │ () │
00:03:24 #4378 [Verbose] > │ #else │
00:03:24 #4379 [Verbose] > │ () │
00:03:24 #4380 [Verbose] > │ #endif │
00:03:24 #4381 [Verbose] > │ #else │
00:03:24 #4382 [Verbose] > │ System.Console.ResetColor () │
00:03:24 #4383 [Verbose] > │ () │
00:03:24 #4384 [Verbose] > │ #endif │
00:03:24 #4385 [Verbose] > │ |> fun x -> result <- Some x │
00:03:24 #4386 [Verbose] > │ result |> Option.get │
00:03:24 #4387 [Verbose] > │ () │
00:03:24 #4388 [Verbose] > │ | US1_1(v328) -> (* Some *) │
00:03:24 #4389 [Verbose] > │ let mutable result = None │
00:03:24 #4390 [Verbose] > │ #if FABLE_COMPILER_RUST │
00:03:24 #4391 [Verbose] > │ #if !WASM │
00:03:24 #4392 [Verbose] > │ () │
00:03:24 #4393 [Verbose] > │ #else │
00:03:24 #4394 [Verbose] > │ () │
00:03:24 #4395 [Verbose] > │ #endif │
00:03:24 #4396 [Verbose] > │ #else │
00:03:24 #4397 [Verbose] > │ System.Console.ForegroundColor <- v328 │
00:03:24 #4398 [Verbose] > │ () │
00:03:24 #4399 [Verbose] > │ #endif │
00:03:24 #4400 [Verbose] > │ |> fun x -> result <- Some x │
00:03:24 #4401 [Verbose] > │ result |> Option.get │
00:03:24 #4402 [Verbose] > │ () │
00:03:24 #4403 [Verbose] > │ let v329 : string = "\t| " │
00:03:24 #4404 [Verbose] > │ let v330 : string = System.String.Join (v329, v326) │
00:03:24 #4405 [Verbose] > │ System.Console.WriteLine v330 │
00:03:24 #4406 [Verbose] > │ let mutable result = None │
00:03:24 #4407 [Verbose] > │ #if FABLE_COMPILER_RUST │
00:03:24 #4408 [Verbose] > │ #if !WASM │
00:03:24 #4409 [Verbose] > │ () │
00:03:24 #4410 [Verbose] > │ #else │
00:03:24 #4411 [Verbose] > │ () │
00:03:24 #4412 [Verbose] > │ #endif │
00:03:24 #4413 [Verbose] > │ #else │
00:03:24 #4414 [Verbose] > │ System.Console.ResetColor () │
00:03:24 #4415 [Verbose] > │ () │
00:03:24 #4416 [Verbose] > │ #endif │
00:03:24 #4417 [Verbose] > │ |> fun x -> result <- Some x │
00:03:24 #4418 [Verbose] > │ result |> Option.get │
00:03:24 #4419 [Verbose] > │ let v331 : uint64 = v325 + 1UL │
00:03:24 #4420 [Verbose] > │ v323.l0 <- v331 │
00:03:24 #4421 [Verbose] > │ () │
00:03:24 #4422 [Verbose] > │ let v332 : ((float []) []) = Array.zeroCreate<(float [])> │
00:03:24 #4423 [Verbose] > │ (System.Convert.ToInt32(v168)) │
00:03:24 #4424 [Verbose] > │ let v333 : Mut1 = {l0 = 0UL} : Mut1 │
00:03:24 #4425 [Verbose] > │ while method6(v168, v333) do │
00:03:24 #4426 [Verbose] > │ let v335 : uint64 = v333.l0 │
00:03:24 #4427 [Verbose] > │ let struct (v336 : string, v337 : string, v338 : string, v339 : │
00:03:24 #4428 [Verbose] > │ (int64 [])) = v83.[int v335] │
00:03:24 #4429 [Verbose] > │ let v340 : (int64 -> float) = float │
00:03:24 #4430 [Verbose] > │ let v341 : uint64 = System.Convert.ToUInt64 v339.Length │
00:03:24 #4431 [Verbose] > │ let v342 : (float []) = Array.zeroCreate<float> │
00:03:24 #4432 [Verbose] > │ (System.Convert.ToInt32(v341)) │
00:03:24 #4433 [Verbose] > │ let v343 : Mut1 = {l0 = 0UL} : Mut1 │
00:03:24 #4434 [Verbose] > │ while method6(v341, v343) do │
00:03:24 #4435 [Verbose] > │ let v345 : uint64 = v343.l0 │
00:03:24 #4436 [Verbose] > │ let v346 : int64 = v339.[int v345] │
00:03:24 #4437 [Verbose] > │ let v347 : float = v340 v346 │
00:03:24 #4438 [Verbose] > │ v342.[int v345] <- v347 │
00:03:24 #4439 [Verbose] > │ let v348 : uint64 = v345 + 1UL │
00:03:24 #4440 [Verbose] > │ v343.l0 <- v348 │
00:03:24 #4441 [Verbose] > │ () │
00:03:24 #4442 [Verbose] > │ v332.[int v335] <- v342 │
00:03:24 #4443 [Verbose] > │ let v349 : uint64 = v335 + 1UL │
00:03:24 #4444 [Verbose] > │ v333.l0 <- v349 │
00:03:24 #4445 [Verbose] > │ () │
00:03:24 #4446 [Verbose] > │ let v350 : ((float []) []) = v332 |> Array.transpose │
00:03:24 #4447 [Verbose] > │ let v351 : uint64 = System.Convert.ToUInt64 v350.Length │
00:03:24 #4448 [Verbose] > │ let v352 : (float []) = Array.zeroCreate<float> │
00:03:24 #4449 [Verbose] > │ (System.Convert.ToInt32(v351)) │
00:03:24 #4450 [Verbose] > │ let v353 : Mut1 = {l0 = 0UL} : Mut1 │
00:03:24 #4451 [Verbose] > │ while method6(v351, v353) do │
00:03:24 #4452 [Verbose] > │ let v355 : uint64 = v353.l0 │
00:03:24 #4453 [Verbose] > │ let v356 : (float []) = v350.[int v355] │
00:03:24 #4454 [Verbose] > │ let v357 : float = v356 |> Array.average │
00:03:24 #4455 [Verbose] > │ v352.[int v355] <- v357 │
00:03:24 #4456 [Verbose] > │ let v358 : uint64 = v355 + 1UL │
00:03:24 #4457 [Verbose] > │ v353.l0 <- v358 │
00:03:24 #4458 [Verbose] > │ () │
00:03:24 #4459 [Verbose] > │ let v359 : (float -> int64) = int64 │
00:03:24 #4460 [Verbose] > │ let v360 : uint64 = System.Convert.ToUInt64 v352.Length │
00:03:24 #4461 [Verbose] > │ let v361 : (int64 []) = Array.zeroCreate<int64> │
00:03:24 #4462 [Verbose] > │ (System.Convert.ToInt32(v360)) │
00:03:24 #4463 [Verbose] > │ let v362 : Mut1 = {l0 = 0UL} : Mut1 │
00:03:24 #4464 [Verbose] > │ while method6(v360, v362) do │
00:03:24 #4465 [Verbose] > │ let v364 : uint64 = v362.l0 │
00:03:24 #4466 [Verbose] > │ let v365 : float = v352.[int v364] │
00:03:24 #4467 [Verbose] > │ let v366 : int64 = v359 v365 │
00:03:24 #4468 [Verbose] > │ v361.[int v364] <- v366 │
00:03:24 #4469 [Verbose] > │ let v367 : uint64 = v364 + 1UL │
00:03:24 #4470 [Verbose] > │ v362.l0 <- v367 │
00:03:24 #4471 [Verbose] > │ () │
00:03:24 #4472 [Verbose] > │ let v368 : uint64 = System.Convert.ToUInt64 v361.Length │
00:03:24 #4473 [Verbose] > │ let v369 : UH5 = UH5_1 │
00:03:24 #4474 [Verbose] > │ let v370 : Mut3 = {l0 = 0UL; l1 = v369; l2 = 0} : Mut3 │
00:03:24 #4475 [Verbose] > │ while method28(v368, v370) do │
00:03:24 #4476 [Verbose] > │ let v372 : uint64 = v370.l0 │
00:03:24 #4477 [Verbose] > │ let struct (v373 : UH5, v374 : int32) = v370.l1, v370.l2 │
00:03:24 #4478 [Verbose] > │ let v375 : int64 = v361.[int v372] │
00:03:24 #4479 [Verbose] > │ let v376 : int32 = v374 + 1 │
00:03:24 #4480 [Verbose] > │ let v377 : uint64 = v372 + 1UL │
00:03:24 #4481 [Verbose] > │ let v378 : UH5 = UH5_0(v374, v375, v373) │
00:03:24 #4482 [Verbose] > │ v370.l0 <- v377 │
00:03:24 #4483 [Verbose] > │ v370.l1 <- v378 │
00:03:24 #4484 [Verbose] > │ v370.l2 <- v376 │
00:03:24 #4485 [Verbose] > │ () │
00:03:24 #4486 [Verbose] > │ let struct (v379 : UH5, v380 : int32) = v370.l1, v370.l2 │
00:03:24 #4487 [Verbose] > │ let v381 : UH5 = UH5_1 │
00:03:24 #4488 [Verbose] > │ let v382 : UH5 = method29(v379, v381) │
00:03:24 #4489 [Verbose] > │ let v383 : (struct (int32 * int64) []) = method39(v382) │
00:03:24 #4490 [Verbose] > │ System.Console.WriteLine v35 │
00:03:24 #4491 [Verbose] > │ let v384 : string = "Average Ranking " │
00:03:24 #4492 [Verbose] > │ System.Console.WriteLine v384 │
00:03:24 #4493 [Verbose] > │ let v385 : (struct (int32 * int64) -> int64) = closure8() │
00:03:24 #4494 [Verbose] > │ let v386 : (struct (int32 * int64) []) = v383 |> Array.sortBy v385 │
00:03:24 #4495 [Verbose] > │ let v387 : uint64 = System.Convert.ToUInt64 v386.Length │
00:03:24 #4496 [Verbose] > │ let v388 : Mut1 = {l0 = 0UL} : Mut1 │
00:03:24 #4497 [Verbose] > │ while method6(v387, v388) do │
00:03:24 #4498 [Verbose] > │ let v390 : uint64 = v388.l0 │
00:03:24 #4499 [Verbose] > │ let struct (v391 : int32, v392 : int64) = v386.[int v390] │
00:03:24 #4500 [Verbose] > │ let v393 : string = $"Test case %d{v391 + 1}. Average Time: %A{v392} │
00:03:24 #4501 [Verbose] > │ " │
00:03:24 #4502 [Verbose] > │ System.Console.WriteLine v393 │
00:03:24 #4503 [Verbose] > │ let v394 : uint64 = v390 + 1UL │
00:03:24 #4504 [Verbose] > │ v388.l0 <- v394 │
00:03:24 #4505 [Verbose] > │ () │
00:03:24 #4506 [Verbose] > │ () │
00:03:24 #4507 [Verbose] > │ method0() │
00:03:24 #4508 [Verbose] > │ │
00:03:24 #4509 [Verbose] > │ │
00:03:24 #4510 [Verbose] > │ │
00:03:24 #4511 [Verbose] > │ Test: v33 │
00:03:24 #4512 [Verbose] > │ │
00:03:24 #4513 [Verbose] > │ Solution: struct ([|1; 3; 4; 6; 8; 9; 11|], 6, 7) │
00:03:24 #4514 [Verbose] > │ Test case 1. semi_open_1. Time: 220 │
00:03:24 #4515 [Verbose] > │ Test case 2. closed_1. Time: 194 │
00:03:24 #4516 [Verbose] > │ Test case 3. semi_open_2. Time: 123 │
00:03:24 #4517 [Verbose] > │ Test case 4. closed_2. Time: 124 │
00:03:24 #4518 [Verbose] > │ │
00:03:24 #4519 [Verbose] > │ Solution: struct ([|1; 3; 4; 6; 8; 9; 11|], 1, 7) │
00:03:24 #4520 [Verbose] > │ Test case 1. semi_open_1. Time: 187 │
00:03:24 #4521 [Verbose] > │ Test case 2. closed_1. Time: 68 │
00:03:24 #4522 [Verbose] > │ Test case 3. semi_open_2. Time: 69 │
00:03:24 #4523 [Verbose] > │ Test case 4. closed_2. Time: 71 │
00:03:24 #4524 [Verbose] > │ │
00:03:24 #4525 [Verbose] > │ Solution: struct ([|1; 3; 4; 6; 8; 9; 11|], 11, 7) │
00:03:24 #4526 [Verbose] > │ Test case 1. semi_open_1. Time: 67 │
00:03:24 #4527 [Verbose] > │ Test case 2. closed_1. Time: 69 │
00:03:24 #4528 [Verbose] > │ Test case 3. semi_open_2. Time: 69 │
00:03:24 #4529 [Verbose] > │ Test case 4. closed_2. Time: 68 │
00:03:24 #4530 [Verbose] > │ │
00:03:24 #4531 [Verbose] > │ Solution: struct ([|1; 3; 4; 6; 8; 9; 11|], 12, 7) │
00:03:24 #4532 [Verbose] > │ Test case 1. semi_open_1. Time: 64 │
00:03:24 #4533 [Verbose] > │ Test case 2. closed_1. Time: 68 │
00:03:24 #4534 [Verbose] > │ Test case 3. semi_open_2. Time: 66 │
00:03:24 #4535 [Verbose] > │ Test case 4. closed_2. Time: 68 │
00:03:24 #4536 [Verbose] > │ │
00:03:24 #4537 [Verbose] > │ Solution: struct ([|1; 2; 3; 4; 5; 6; 7; 8; 9; 10; 11; 12; 13; 14; 15; 16; │
00:03:24 #4538 [Verbose] > │ 17; 18; 19; 20; │
00:03:24 #4539 [Verbose] > │ 21; 22; 23; 24; 25; 26; 27; 28; 29; 30; 31; 32; 33; 34; 35; 36; │
00:03:24 #4540 [Verbose] > │ 37; 38; │
00:03:24 #4541 [Verbose] > │ 39; 40; 41; 42; 43; 44; 45; 46; 47; 48; 49; 50; 51; 52; 53; 54; │
00:03:24 #4542 [Verbose] > │ 55; 56; │
00:03:24 #4543 [Verbose] > │ 57; 58; 59; 60; 61; 62; 63; 64; 65; 66; 67; 68; 69; 70; 71; 72; │
00:03:24 #4544 [Verbose] > │ 73; 74; │
00:03:24 #4545 [Verbose] > │ 75; 76; 77; 78; 79; 80; 81; 82; 83; 84; 85; 86; 87; 88; 89; 90; │
00:03:24 #4546 [Verbose] > │ 91; 92; │
00:03:24 #4547 [Verbose] > │ 93; 94; 95; 96; 97; 98; 99; 100|], 60, 100) │
00:03:24 #4548 [Verbose] > │ Test case 1. semi_open_1. Time: 84 │
00:03:24 #4549 [Verbose] > │ Test case 2. closed_1. Time: 85 │
00:03:24 #4550 [Verbose] > │ Test case 3. semi_open_2. Time: 81 │
00:03:24 #4551 [Verbose] > │ Test case 4. closed_2. Time: 84 │
00:03:24 #4552 [Verbose] > │ │
00:03:24 #4553 [Verbose] > │ Solution: struct ([|1; 3; 4; 6; 8; 9; 11|], 6, 7) │
00:03:24 #4554 [Verbose] > │ Test case 1. semi_open_1. Time: 61 │
00:03:24 #4555 [Verbose] > │ Test case 2. closed_1. Time: 60 │
00:03:24 #4556 [Verbose] > │ Test case 3. semi_open_2. Time: 60 │
00:03:24 #4557 [Verbose] > │ Test case 4. closed_2. Time: 60 │
00:03:24 #4558 [Verbose] > │ │
00:03:24 #4559 [Verbose] > │ Solution: struct ([|1; 3; 4; 6; 8; 9; 11|], 1, 7) │
00:03:24 #4560 [Verbose] > │ Test case 1. semi_open_1. Time: 65 │
00:03:24 #4561 [Verbose] > │ Test case 2. closed_1. Time: 68 │
00:03:24 #4562 [Verbose] > │ Test case 3. semi_open_2. Time: 69 │
00:03:24 #4563 [Verbose] > │ Test case 4. closed_2. Time: 66 │
00:03:24 #4564 [Verbose] > │ │
00:03:24 #4565 [Verbose] > │ Solution: struct ([|1; 3; 4; 6; 8; 9; 11|], 11, 7) │
00:03:24 #4566 [Verbose] > │ Test case 1. semi_open_1. Time: 68 │
00:03:24 #4567 [Verbose] > │ Test case 2. closed_1. Time: 69 │
00:03:24 #4568 [Verbose] > │ Test case 3. semi_open_2. Time: 68 │
00:03:24 #4569 [Verbose] > │ Test case 4. closed_2. Time: 77 │
00:03:24 #4570 [Verbose] > │ │
00:03:24 #4571 [Verbose] > │ Solution: struct ([|1; 3; 4; 6; 8; 9; 11|], 12, 7) │
00:03:24 #4572 [Verbose] > │ Test case 1. semi_open_1. Time: 64 │
00:03:24 #4573 [Verbose] > │ Test case 2. closed_1. Time: 67 │
00:03:24 #4574 [Verbose] > │ Test case 3. semi_open_2. Time: 67 │
00:03:24 #4575 [Verbose] > │ Test case 4. closed_2. Time: 68 │
00:03:24 #4576 [Verbose] > │ │
00:03:24 #4577 [Verbose] > │ Solution: struct ([|1; 2; 3; 4; 5; 6; 7; 8; 9; 10; 11; 12; 13; 14; 15; 16; │
00:03:24 #4578 [Verbose] > │ 17; 18; 19; 20; │
00:03:24 #4579 [Verbose] > │ 21; 22; 23; 24; 25; 26; 27; 28; 29; 30; 31; 32; 33; 34; 35; 36; │
00:03:24 #4580 [Verbose] > │ 37; 38; │
00:03:24 #4581 [Verbose] > │ 39; 40; 41; 42; 43; 44; 45; 46; 47; 48; 49; 50; 51; 52; 53; 54; │
00:03:24 #4582 [Verbose] > │ 55; 56; │
00:03:24 #4583 [Verbose] > │ 57; 58; 59; 60; 61; 62; 63; 64; 65; 66; 67; 68; 69; 70; 71; 72; │
00:03:24 #4584 [Verbose] > │ 73; 74; │
00:03:24 #4585 [Verbose] > │ 75; 76; 77; 78; 79; 80; 81; 82; 83; 84; 85; 86; 87; 88; 89; 90; │
00:03:24 #4586 [Verbose] > │ 91; 92; │
00:03:24 #4587 [Verbose] > │ 93; 94; 95; 96; 97; 98; 99; 100|], 60, 100) │
00:03:24 #4588 [Verbose] > │ Test case 1. semi_open_1. Time: 83 │
00:03:24 #4589 [Verbose] > │ Test case 2. closed_1. Time: 85 │
00:03:24 #4590 [Verbose] > │ Test case 3. semi_open_2. Time: 81 │
00:03:24 #4591 [Verbose] > │ Test case 4. closed_2. Time: 84 │
00:03:24 #4592 [Verbose] > │ │
00:03:24 #4593 [Verbose] > │ Input │
00:03:24 #4594 [Verbose] > │ │
00:03:24 #4595 [Verbose] > │ │
00:03:24 #4596 [Verbose] > │ │
00:03:24 #4597 [Verbose] > │ | Expected | Result | Best │
00:03:24 #4598 [Verbose] > │ --- │
00:03:24 #4599 [Verbose] > │ │
00:03:24 #4600 [Verbose] > │ │
00:03:24 #4601 [Verbose] > │ │
00:03:24 #4602 [Verbose] > │ | --- | --- | --- │
00:03:24 #4603 [Verbose] > │ struct ([|1; 3; 4; 6; 8; 9; 11|], 6, 7) │
00:03:24 #4604 [Verbose] > │ │
00:03:24 #4605 [Verbose] > │ │
00:03:24 #4606 [Verbose] > │ │
00:03:24 #4607 [Verbose] > │ | US0_1 3 | US0_1 3 | struct (3L, 123L) │
00:03:24 #4608 [Verbose] > │ struct ([|1; 3; 4; 6; 8; 9; 11|], 1, 7) │
00:03:24 #4609 [Verbose] > │ │
00:03:24 #4610 [Verbose] > │ │
00:03:24 #4611 [Verbose] > │ │
00:03:24 #4612 [Verbose] > │ | US0_1 0 | US0_1 0 | struct (2L, 68L) │
00:03:24 #4613 [Verbose] > │ struct ([|1; 3; 4; 6; 8; 9; 11|], 11, 7) │
00:03:24 #4614 [Verbose] > │ │
00:03:24 #4615 [Verbose] > │ │
00:03:24 #4616 [Verbose] > │ │
00:03:24 #4617 [Verbose] > │ | US0_1 6 | US0_1 6 | struct (1L, 67L) │
00:03:24 #4618 [Verbose] > │ struct ([|1; 3; 4; 6; 8; 9; 11|], 12, 7) │
00:03:24 #4619 [Verbose] > │ │
00:03:24 #4620 [Verbose] > │ │
00:03:24 #4621 [Verbose] > │ │
00:03:24 #4622 [Verbose] > │ | US0_0 | US0_0 | struct (1L, 64L) │
00:03:24 #4623 [Verbose] > │ struct ([|1; 2; 3; 4; 5; 6; 7; 8; 9; 10; 11; 12; 13; 14; 15; 16; 17; 18; 19; │
00:03:24 #4624 [Verbose] > │ 20; │
00:03:24 #4625 [Verbose] > │ 21; 22; 23; 24; 25; 26; 27; 28; 29; 30; 31; 32; 33; 34; 35; 36; │
00:03:24 #4626 [Verbose] > │ 37; 38; │
00:03:24 #4627 [Verbose] > │ 39; 40; 41; 42; 43; 44; 45; 46; 47; 48; 49; 50; 51; 52; 53; 54; │
00:03:24 #4628 [Verbose] > │ 55; 56; │
00:03:24 #4629 [Verbose] > │ 57; 58; 59; 60; 61; 62; 63; 64; 65; 66; 67; 68; 69; 70; 71; 72; │
00:03:24 #4630 [Verbose] > │ 73; 74; │
00:03:24 #4631 [Verbose] > │ 75; 76; 77; 78; 79; 80; 81; 82; 83; 84; 85; 86; 87; 88; 89; 90; │
00:03:24 #4632 [Verbose] > │ 91; 92; │
00:03:24 #4633 [Verbose] > │ 93; 94; 95; 96; 97; 98; 99; 100|], 60, 100) | US0_1 59 | US0_1 59 | │
00:03:24 #4634 [Verbose] > │ struct (3L, 81L) │
00:03:24 #4635 [Verbose] > │ struct ([|1; 3; 4; 6; 8; 9; 11|], 6, 7) │
00:03:24 #4636 [Verbose] > │ │
00:03:24 #4637 [Verbose] > │ │
00:03:24 #4638 [Verbose] > │ │
00:03:24 #4639 [Verbose] > │ | US0_1 3 | US0_1 3 | struct (2L, 60L) │
00:03:24 #4640 [Verbose] > │ struct ([|1; 3; 4; 6; 8; 9; 11|], 1, 7) │
00:03:24 #4641 [Verbose] > │ │
00:03:24 #4642 [Verbose] > │ │
00:03:24 #4643 [Verbose] > │ │
00:03:24 #4644 [Verbose] > │ | US0_1 0 | US0_1 0 | struct (1L, 65L) │
00:03:24 #4645 [Verbose] > │ struct ([|1; 3; 4; 6; 8; 9; 11|], 11, 7) │
00:03:24 #4646 [Verbose] > │ │
00:03:24 #4647 [Verbose] > │ │
00:03:24 #4648 [Verbose] > │ │
00:03:24 #4649 [Verbose] > │ | US0_1 6 | US0_1 6 | struct (1L, 68L) │
00:03:24 #4650 [Verbose] > │ struct ([|1; 3; 4; 6; 8; 9; 11|], 12, 7) │
00:03:24 #4651 [Verbose] > │ │
00:03:24 #4652 [Verbose] > │ │
00:03:24 #4653 [Verbose] > │ │
00:03:24 #4654 [Verbose] > │ | US0_0 | US0_0 | struct (1L, 64L) │
00:03:24 #4655 [Verbose] > │ struct ([|1; 2; 3; 4; 5; 6; 7; 8; 9; 10; 11; 12; 13; 14; 15; 16; 17; 18; 19; │
00:03:24 #4656 [Verbose] > │ 20; │
00:03:24 #4657 [Verbose] > │ 21; 22; 23; 24; 25; 26; 27; 28; 29; 30; 31; 32; 33; 34; 35; 36; │
00:03:24 #4658 [Verbose] > │ 37; 38; │
00:03:24 #4659 [Verbose] > │ 39; 40; 41; 42; 43; 44; 45; 46; 47; 48; 49; 50; 51; 52; 53; 54; │
00:03:24 #4660 [Verbose] > │ 55; 56; │
00:03:24 #4661 [Verbose] > │ 57; 58; 59; 60; 61; 62; 63; 64; 65; 66; 67; 68; 69; 70; 71; 72; │
00:03:24 #4662 [Verbose] > │ 73; 74; │
00:03:24 #4663 [Verbose] > │ 75; 76; 77; 78; 79; 80; 81; 82; 83; 84; 85; 86; 87; 88; 89; 90; │
00:03:24 #4664 [Verbose] > │ 91; 92; │
00:03:24 #4665 [Verbose] > │ 93; 94; 95; 96; 97; 98; 99; 100|], 60, 100) | US0_1 59 | US0_1 59 | │
00:03:24 #4666 [Verbose] > │ struct (3L, 81L) │
00:03:24 #4667 [Verbose] > │ │
00:03:24 #4668 [Verbose] > │ Average Ranking │
00:03:24 #4669 [Verbose] > │ Test case 3. Average Time: 75L │
00:03:24 #4670 [Verbose] > │ Test case 4. Average Time: 77L │
00:03:24 #4671 [Verbose] > │ Test case 2. Average Time: 83L │
00:03:24 #4672 [Verbose] > │ Test case 1. Average Time: 96L │
00:03:24 #4673 [Verbose] > │ │
00:03:24 #4674 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:24 #4675 [Verbose] >
00:03:24 #4676 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:03:24 #4677 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:24 #4678 [Verbose] > │ ## returnLettersWithOddCountTests │
00:03:24 #4679 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:24 #4680 [Verbose] >
00:03:24 #4681 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:03:24 #4682 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:24 #4683 [Verbose] > │ Test: ReturnLettersWithOddCount │
00:03:24 #4684 [Verbose] > │ │
00:03:24 #4685 [Verbose] > │ Solution: 1 │
00:03:24 #4686 [Verbose] > │ Test case 1. A. Time: 645L │
00:03:24 #4687 [Verbose] > │ │
00:03:24 #4688 [Verbose] > │ Solution: 2 │
00:03:24 #4689 [Verbose] > │ Test case 1. A. Time: 663L │
00:03:24 #4690 [Verbose] > │ │
00:03:24 #4691 [Verbose] > │ Solution: 3 │
00:03:24 #4692 [Verbose] > │ Test case 1. A. Time: 680L │
00:03:24 #4693 [Verbose] > │ │
00:03:24 #4694 [Verbose] > │ Solution: 9 │
00:03:24 #4695 [Verbose] > │ Test case 1. A. Time: 730L │
00:03:24 #4696 [Verbose] > │ │
00:03:24 #4697 [Verbose] > │ Solution: 10 │
00:03:24 #4698 [Verbose] > │ Test case 1. A. Time: 815L │
00:03:24 #4699 [Verbose] > │ │
00:03:24 #4700 [Verbose] > │ Input | Expected | Result | Best │
00:03:24 #4701 [Verbose] > │ --- | --- | --- | --- │
00:03:24 #4702 [Verbose] > │ 1 | a | a | (1, 645) │
00:03:24 #4703 [Verbose] > │ 2 | ba | ba | (1, 663) │
00:03:24 #4704 [Verbose] > │ 3 | aaa | aaa | (1, 680) │
00:03:24 #4705 [Verbose] > │ 9 | aaaaaaaaa | aaaaaaaaa | (1, 730) │
00:03:24 #4706 [Verbose] > │ 10 | baaaaaaaaa | baaaaaaaaa | (1, 815) │
00:03:24 #4707 [Verbose] > │ │
00:03:24 #4708 [Verbose] > │ Averages │
00:03:24 #4709 [Verbose] > │ Test case 1. Average Time: 706L │
00:03:24 #4710 [Verbose] > │ │
00:03:24 #4711 [Verbose] > │ Ranking │
00:03:24 #4712 [Verbose] > │ Test case 1. Average Time: 706L │
00:03:24 #4713 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:24 #4714 [Verbose] >
00:03:24 #4715 [Verbose] > ── fsharp ──────────────────────────────────────────────────────────────────────
00:03:24 #4716 [Verbose] > //// test
00:03:24 #4717 [Verbose] >
00:03:24 #4718 [Verbose] > let solutions = [[
00:03:24 #4719 [Verbose] > "A",
00:03:24 #4720 [Verbose] > fun n ->
00:03:24 #4721 [Verbose] > let mutable _builder = StringBuilder (new string('a', n))
00:03:24 #4722 [Verbose] > if n % 2 = 0 then
00:03:24 #4723 [Verbose] > _builder.[[0]] <- 'b'
00:03:24 #4724 [Verbose] >
00:03:24 #4725 [Verbose] > _builder.ToString ()
00:03:24 #4726 [Verbose] > ]]
00:03:24 #4727 [Verbose] > let testCases = seq {
00:03:24 #4728 [Verbose] > 1, "a"
00:03:24 #4729 [Verbose] > 2, "ba"
00:03:24 #4730 [Verbose] > 3, "aaa"
00:03:24 #4731 [Verbose] > 9, "aaaaaaaaa"
00:03:24 #4732 [Verbose] > 10, "baaaaaaaaa"
00:03:24 #4733 [Verbose] > }
00:03:24 #4734 [Verbose] > let rec returnLettersWithOddCountTests =
00:03:24 #4735 [Verbose] > runAll (nameof returnLettersWithOddCountTests) _count solutions testCases
00:03:24 #4736 [Verbose] > returnLettersWithOddCountTests
00:03:24 #4737 [Verbose] > |> sortResultList
00:03:27 #4738 [Verbose] >
00:03:27 #4739 [Verbose] > ╭─[ 2.62s - stdout ]───────────────────────────────────────────────────────────╮
00:03:27 #4740 [Verbose] > │ │
00:03:27 #4741 [Verbose] > │ │
00:03:27 #4742 [Verbose] > │ Test: returnLettersWithOddCountTests │
00:03:27 #4743 [Verbose] > │ │
00:03:27 #4744 [Verbose] > │ Solution: 1 │
00:03:27 #4745 [Verbose] > │ Test case 1. A. Time: 345L │
00:03:27 #4746 [Verbose] > │ │
00:03:27 #4747 [Verbose] > │ Solution: 2 │
00:03:27 #4748 [Verbose] > │ Test case 1. A. Time: 418L │
00:03:27 #4749 [Verbose] > │ │
00:03:27 #4750 [Verbose] > │ Solution: 3 │
00:03:27 #4751 [Verbose] > │ Test case 1. A. Time: 395L │
00:03:27 #4752 [Verbose] > │ │
00:03:27 #4753 [Verbose] > │ Solution: 9 │
00:03:27 #4754 [Verbose] > │ Test case 1. A. Time: 384L │
00:03:27 #4755 [Verbose] > │ │
00:03:27 #4756 [Verbose] > │ Solution: 10 │
00:03:27 #4757 [Verbose] > │ Test case 1. A. Time: 374L │
00:03:27 #4758 [Verbose] > │ │
00:03:27 #4759 [Verbose] > │ Input | Expected | Result | Best │
00:03:27 #4760 [Verbose] > │ --- | --- | --- | --- │
00:03:27 #4761 [Verbose] > │ 1 | a | a | (1, 345) │
00:03:27 #4762 [Verbose] > │ 2 | ba | ba | (1, 418) │
00:03:27 #4763 [Verbose] > │ 3 | aaa | aaa | (1, 395) │
00:03:27 #4764 [Verbose] > │ 9 | aaaaaaaaa | aaaaaaaaa | (1, 384) │
00:03:27 #4765 [Verbose] > │ 10 | baaaaaaaaa | baaaaaaaaa | (1, 374) │
00:03:27 #4766 [Verbose] > │ │
00:03:27 #4767 [Verbose] > │ Average Ranking │
00:03:27 #4768 [Verbose] > │ Test case 1. Average Time: 383L │
00:03:27 #4769 [Verbose] > │ │
00:03:27 #4770 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:27 #4771 [Verbose] >
00:03:27 #4772 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:03:27 #4773 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:27 #4774 [Verbose] > │ ## hasAnyPairCloseToEachotherTests │
00:03:27 #4775 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:27 #4776 [Verbose] >
00:03:27 #4777 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:03:27 #4778 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:27 #4779 [Verbose] > │ Test: HasAnyPairCloseToEachother │
00:03:27 #4780 [Verbose] > │ │
00:03:27 #4781 [Verbose] > │ Solution: 0 │
00:03:27 #4782 [Verbose] > │ Test case 1. A. Time: 137L │
00:03:27 #4783 [Verbose] > │ │
00:03:27 #4784 [Verbose] > │ Solution: 1,2 │
00:03:27 #4785 [Verbose] > │ Test case 1. A. Time: 186L │
00:03:27 #4786 [Verbose] > │ │
00:03:27 #4787 [Verbose] > │ Solution: 3,5 │
00:03:27 #4788 [Verbose] > │ Test case 1. A. Time: 206L │
00:03:27 #4789 [Verbose] > │ │
00:03:27 #4790 [Verbose] > │ Solution: 3,4,6 │
00:03:27 #4791 [Verbose] > │ Test case 1. A. Time: 149L │
00:03:27 #4792 [Verbose] > │ │
00:03:27 #4793 [Verbose] > │ Solution: 2,4,6 │
00:03:27 #4794 [Verbose] > │ Test case 1. A. Time: 150L │
00:03:27 #4795 [Verbose] > │ │
00:03:27 #4796 [Verbose] > │ Input | Expected | Result | Best │
00:03:27 #4797 [Verbose] > │ --- | --- | --- | --- │
00:03:27 #4798 [Verbose] > │ 0 | False | False | (1, 137) │
00:03:27 #4799 [Verbose] > │ 1,2 | True | True | (1, 186) │
00:03:27 #4800 [Verbose] > │ 3,5 | False | False | (1, 206) │
00:03:27 #4801 [Verbose] > │ 3,4,6 | True | True | (1, 149) │
00:03:27 #4802 [Verbose] > │ 2,4,6 | False | False | (1, 150) │
00:03:27 #4803 [Verbose] > │ │
00:03:27 #4804 [Verbose] > │ Averages │
00:03:27 #4805 [Verbose] > │ Test case 1. Average Time: 165L │
00:03:27 #4806 [Verbose] > │ │
00:03:27 #4807 [Verbose] > │ Ranking │
00:03:27 #4808 [Verbose] > │ Test case 1. Average Time: 165L │
00:03:27 #4809 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:27 #4810 [Verbose] >
00:03:27 #4811 [Verbose] > ── fsharp ──────────────────────────────────────────────────────────────────────
00:03:27 #4812 [Verbose] > //// test
00:03:27 #4813 [Verbose] >
00:03:27 #4814 [Verbose] > let solutions = [[
00:03:27 #4815 [Verbose] > "A",
00:03:27 #4816 [Verbose] > fun (a: int[[]]) ->
00:03:27 #4817 [Verbose] > let indices = System.Linq.Enumerable.Range(0, a.Length) |>
00:03:27 #4818 [Verbose] > System.Linq.Enumerable.ToArray
00:03:27 #4819 [Verbose] > System.Array.Sort (a, indices)
00:03:27 #4820 [Verbose] >
00:03:27 #4821 [Verbose] > indices
00:03:27 #4822 [Verbose] > |> Array.take (a.Length - 1)
00:03:27 #4823 [Verbose] > |> Array.exists (fun i -> a.[[i + 1]] - a.[[i]] = 1)
00:03:27 #4824 [Verbose] > ]]
00:03:27 #4825 [Verbose] > let testCases = seq {
00:03:27 #4826 [Verbose] > [[| 0 |]], false
00:03:27 #4827 [Verbose] > [[| 1; 2 |]], true
00:03:27 #4828 [Verbose] > [[| 3; 5 |]], false
00:03:27 #4829 [Verbose] > [[| 3; 4; 6 |]], true
00:03:27 #4830 [Verbose] > [[| 2; 4; 6 |]], false
00:03:27 #4831 [Verbose] > }
00:03:27 #4832 [Verbose] > let rec hasAnyPairCloseToEachotherTests =
00:03:27 #4833 [Verbose] > runAll (nameof hasAnyPairCloseToEachotherTests) _count solutions testCases
00:03:27 #4834 [Verbose] > hasAnyPairCloseToEachotherTests
00:03:27 #4835 [Verbose] > |> sortResultList
00:03:28 #4836 [Verbose] >
00:03:28 #4837 [Verbose] > ╭─[ 1.08s - stdout ]───────────────────────────────────────────────────────────╮
00:03:28 #4838 [Verbose] > │ │
00:03:28 #4839 [Verbose] > │ │
00:03:28 #4840 [Verbose] > │ Test: hasAnyPairCloseToEachotherTests │
00:03:28 #4841 [Verbose] > │ │
00:03:28 #4842 [Verbose] > │ Solution: 0 │
00:03:28 #4843 [Verbose] > │ Test case 1. A. Time: 131L │
00:03:28 #4844 [Verbose] > │ │
00:03:28 #4845 [Verbose] > │ Solution: 1,2 │
00:03:28 #4846 [Verbose] > │ Test case 1. A. Time: 147L │
00:03:28 #4847 [Verbose] > │ │
00:03:28 #4848 [Verbose] > │ Solution: 3,5 │
00:03:28 #4849 [Verbose] > │ Test case 1. A. Time: 61L │
00:03:28 #4850 [Verbose] > │ │
00:03:28 #4851 [Verbose] > │ Solution: 3,4,6 │
00:03:28 #4852 [Verbose] > │ Test case 1. A. Time: 66L │
00:03:28 #4853 [Verbose] > │ │
00:03:28 #4854 [Verbose] > │ Solution: 2,4,6 │
00:03:28 #4855 [Verbose] > │ Test case 1. A. Time: 65L │
00:03:28 #4856 [Verbose] > │ │
00:03:28 #4857 [Verbose] > │ Input | Expected | Result | Best │
00:03:28 #4858 [Verbose] > │ --- | --- | --- | --- │
00:03:28 #4859 [Verbose] > │ 0 | False | False | (1, 131) │
00:03:28 #4860 [Verbose] > │ 1,2 | True | True | (1, 147) │
00:03:28 #4861 [Verbose] > │ 3,5 | False | False | (1, 61) │
00:03:28 #4862 [Verbose] > │ 3,4,6 | True | True | (1, 66) │
00:03:28 #4863 [Verbose] > │ 2,4,6 | False | False | (1, 65) │
00:03:28 #4864 [Verbose] > │ │
00:03:28 #4865 [Verbose] > │ Average Ranking │
00:03:28 #4866 [Verbose] > │ Test case 1. Average Time: 94L │
00:03:28 #4867 [Verbose] > │ │
00:03:28 #4868 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:28 #4869 [Verbose] >
00:03:28 #4870 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:28 #4871 [Verbose] > // // test
00:03:28 #4872 [Verbose] >
00:03:28 #4873 [Verbose] > ()
00:03:28 #4874 [Verbose] > Building /tmp/!dotnet-repl/20240325-2032-3353-5314-59481945ef79/main.spi
00:03:28 #4875 [Verbose] >
00:03:28 #4876 [Verbose] > ╭─[ 140.66ms - stdout ]────────────────────────────────────────────────────────╮
00:03:28 #4877 [Verbose] > │ let rec method0 () : unit = │
00:03:28 #4878 [Verbose] > │ () │
00:03:28 #4879 [Verbose] > │ method0() │
00:03:28 #4880 [Verbose] > │ │
00:03:28 #4881 [Verbose] > │ │
00:03:28 #4882 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:29 #4883 [Verbose] > [NbConvertApp] Converting notebook Perf.dib.ipynb to html
00:03:29 #4884 [Verbose] > /opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/nbformat/__init__.py:96: MissingIDFieldWarning: Cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:03:29 #4885 [Verbose] > validate(nb)
00:03:29 #4886 [Verbose] > /opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/nbconvert/filters/highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:03:29 #4887 [Verbose] > return _pygments_highlight(
00:03:30 #4888 [Verbose] > [NbConvertApp] Writing 555875 bytes to Perf.dib.html
00:03:30 #4889 [Debug] executeAsync / exitCode: 0 / output.Length: 447153
00:03:30 #4890 [Debug] main / executeCommand / exitCode: 0
00:00:00 #1 [Debug] writeDibCode / output: Fs / path: Perf.dib
00:00:00 #2 [Debug] parseDibCode / output: Fs / file: Perf.dib
In [ ]:
{ . "$ScriptDir/../apps/dir-tree-html/build.ps1" } | Invoke-Block
── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ # DirTreeHtml (Polyglot) │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── #!import ../../lib/fsharp/Notebooks.dib #!import ../../lib/fsharp/Testing.dib ── fsharp - import ───────────────────────────────────────────────────────────── #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Asp NetCore.Html.Abstractions.dll" #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Dot Net.Interactive.dll" #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Dot Net.Interactive.FSharp.dll" #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Dot Net.Interactive.Formatting.dll" open System open System.IO open System.Text open Microsoft.DotNet.Interactive.Formatting ── fsharp - import ───────────────────────────────────────────────────────────── #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Dot Net.Interactive.FSharp.dll" open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers #r "/home/runner/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.Dot Net.Interactive.dll" open type Microsoft.DotNet.Interactive.Kernel ── fsharp - import ───────────────────────────────────────────────────────────── //// test Formatter.ListExpansionLimit <- 100 ── fsharp - import ───────────────────────────────────────────────────────────── #r @"../../../../../../../.nuget/packages/expecto/10.2.1/lib/net6.0/Expecto.dll" ── fsharp - import ───────────────────────────────────────────────────────────── //// test type AssertExceptionFormatter (ex) = member _.Text = ex.ToString() .Replace("32m", "<span style=\"color: green;\">") .Replace("36m", "</span>") .Replace("31m", "<span style=\"color: red;\">") .Replace("\n", "<br/>\n") Formatter.Register<AssertExceptionFormatter> ((fun (x : AssertExceptionFormatter) -> x.Text), "text/html") ── fsharp - import ───────────────────────────────────────────────────────────── //// test let inline __expect fn log expected actual = if log then printfn $"{actual.ToDisplayString ()}" try "Testing.__expect" |> fn actual expected with :? Expecto.AssertException as ex -> AssertExceptionFormatter(ex).Display () |> ignore failwith (ex.GetType().FullName) let inline __contains log expected actual = __expect Expecto.Expect.contains log expected actual let inline _contains expected actual = __contains true expected actual let inline __assertEqual log expected actual = __expect Expecto.Expect.equal log expected actual let inline _assertEqual expected actual = __assertEqual true expected actual let inline __isGreaterThan log expected actual = __expect Expecto.Expect.isGreaterThan log ex... ── fsharp - import ───────────────────────────────────────────────────────────── //// test let inline __isBetween log a b actual = let inline isBetween actual (a, b) _ = __isGreaterThanOrEqual log a actual __isLessThanOrEqual log b actual __expect isBetween log (a, b) actual let inline _isBetween a b actual = __isBetween true a b actual ── fsharp ────────────────────────────────────────────────────────────────────── #r @"../../../../../../../.nuget/packages/fsharp.control.asyncseq/3.2.1/lib/netstan dard2.1/FSharp.Control.AsyncSeq.dll" #r @"../../../../../../../.nuget/packages/system.reactive/6.0.1-preview.1/lib/net6. 0/System.Reactive.dll" #r @"../../../../../../../.nuget/packages/system.reactive.linq/6.0.1-preview.1/lib/ netstandard2.0/System.Reactive.Linq.dll" #r @"../../../../../../../.nuget/packages/argu/6.2.2/lib/netstandard2.0/Argu.dll" #r @"../../../../../../../.nuget/packages/system.commandline/2.0.0-beta4.22272.1/li b/net6.0/System.CommandLine.dll" #r @"../../../../../../../.nuget/packages/falco.markup/1.0.2/lib/netstandard2.0/Fal co.Markup.dll" ── fsharp ────────────────────────────────────────────────────────────────────── #!import ../../lib/fsharp/Common.fs #!import ../../lib/fsharp/CommonFSharp.fs #!import ../../lib/fsharp/Async.fs #!import ../../lib/fsharp/AsyncSeq.fs #!import ../../lib/fsharp/Networking.fs #!import ../../lib/fsharp/Runtime.fs #!import ../../lib/fsharp/FileSystem.fs ── fsharp - import ───────────────────────────────────────────────────────────── #if !INTERACTIVE namespace Polyglot #endif module Common = let nl = System.Environment.NewLine let q = @"""" let inline cons head tail = head :: tail module String = let inline contains (value : string) (input : string) = input.Contains value let inline endsWith (value : string) (input : string) = input.EndsWith value let inline padLeft totalWidth paddingChar (input : string) = input.PadLeft (totalWidth, paddingChar) let inline replace (oldValue : string) (newValue : string) (input : string) = input.Replace (oldValue, newValue) let inline split separator (input : string) = input.Split separator let inline spli... ── fsharp - import ───────────────────────────────────────────────────────────── #if !INTERACTIVE namespace Polyglot #endif module CommonFSharp = open Common /// ## getUnionCaseName let inline getUnionCaseName<'T> (x: 'T) = match Reflection.FSharpValue.GetUnionFields(x, typeof<'T>) with | case, _ -> case.Name ── fsharp - import ───────────────────────────────────────────────────────────── #if !INTERACTIVE namespace Polyglot #endif module Async = open Common /// ## choice let inline choice asyncs = async { let e = Event<_> () use cts = new System.Threading.CancellationTokenSource () let fn = asyncs |> Seq.map (fun a -> async { let! x = a e.Trigger x }) |> Async.Parallel |> Async.Ignore Async.Start (fn, cts.Token) let! result = Async.AwaitEvent e.Publish cts.Cancel () return result } /// ## map let inline map fn a = async { let! x = a return fn x } /// ## catch let inline catch a = a |> Async.Catch ... ── fsharp - import ───────────────────────────────────────────────────────────── #if !INTERACTIVE namespace Polyglot #endif module AsyncSeq = open Common /// ## subscribeEvent let inline subscribeEvent (event: IEvent<'H, 'A>) map = let observable = System.Reactive.Linq.Observable.FromEventPattern<'H, 'A>(event.AddHandler, event.RemoveHandler) System.Reactive.Linq.Observable.Select (observable, fun event -> map event.EventArgs) |> FSharp.Control.AsyncSeq.ofObservableBuffered let subscribeToken (token : System.Threading.CancellationToken) = let tcs = new System.Threading.Tasks.TaskCompletionSource () System.Action tcs.SetResult |> token.Register |> ignore let start = System.DateTime.Now.Ticks FSharp.Control.AsyncSeq.unfoldAsync (fun (... ── fsharp - import ───────────────────────────────────────────────────────────── #if !INTERACTIVE namespace Polyglot #endif module Networking = open Common /// ## testPortOpen let inline testPortOpen port = async { let! ct = Async.CancellationToken use client = new System.Net.Sockets.TcpClient () try do! client.ConnectAsync ("127.0.0.1", port, ct) |> Async.awaitValueTaskUnit return true with ex -> trace Verbose (fun () -> $"testPortOpen / ex: {ex |> printException}") getLocals return false } let inline testPortOpenTimeout timeout port = async { let! result = testPortOpen port |> Async.runWithTimeoutAsync timeout return match result with | None -> false ... ── fsharp - import ───────────────────────────────────────────────────────────── #if !INTERACTIVE namespace Polyglot #endif module Runtime = open Common /// ## isWindows let isWindows = fun () -> System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform System.Runtime.InteropServices.OSPlatform.Windows |> memoize /// ## getExecutableSuffix let inline getExecutableSuffix () = if isWindows () then ".exe" else "" /// ## splitCommand type private CommandParseStep = | Start | Path of quoted: bool | Arguments let splitCommand (command: string) = let rec loop (path, args) chars step = match chars, step with | ('"' | '\'') :: tail, _ when path = "" -> loop (pat... ── fsharp - import ───────────────────────────────────────────────────────────── #if !INTERACTIVE namespace Polyglot #endif module FileSystem = open Common /// ## Operators module Operators = let inline (</>) a b = System.IO.Path.Combine (a, b) open Operators /// ## createTempDirectoryName let inline createTempDirectoryName () = let root = System.Reflection.Assembly.GetEntryAssembly().GetName().Name System.IO.Path.GetTempPath () </> $"!{root}" </> string (newGuidFromDateTime System.DateTime.Now) /// ## createTempDirectory let inline createTempDirectory () = let tempFolder = createTempDirectoryName () let result = System.IO.Directory.CreateDirectory tempFolder if not result.Exists then let ge... ── fsharp ────────────────────────────────────────────────────────────────────── open FileSystem.Operators open Falco.Markup ── fsharp ────────────────────────────────────────────────────────────────────── type FileSystemNode = | File of string * string * int64 | Folder of string * string * FileSystemNode list | Root of FileSystemNode list let rec scanDirectory isRoot (basePath : string) (path : string) = let relativePath = path.Replace(basePath, "").Replace("\\", "/").Replace("//", "/").TrimStart '/' let directories = path |> System.IO.Directory.GetDirectories |> Array.toList |> List.sort |> List.map (scanDirectory false basePath) let files = path |> System.IO.Directory.GetFiles |> Array.toList |> List.sort |> List.map (fun f -> File (System.IO.Path.GetFileName f, relativePath, System.IO.FileInfo(f).Length)) let children = directories @ files if isRoot then Root children else Folder (path |> System.IO.Path.GetFileName, relativePath, children) let rec generateHtml fsNode = let sizeLabel size = match float size with | size when size > 1024.0 * 1024.0 -> $"%.2f{size / 1024.0 / 1024.0} MB" | size when size > 1024.0 -> $"%.2f{size / 1024.0} KB" | size -> $"%.2f{size} B" match fsNode with | File (fileName, relativePath, size) -> Elem.div [[]] [[ Text.raw "📄 " Elem.a [[ Attr.href $"""{relativePath}{if relativePath = "" then "" else "/"}{fileName}""" ]] [[ Text.raw fileName ]] Elem.span [[]] [[ Text.raw $" ({size |> sizeLabel})" ]] ]] | Folder (folderName, relativePath, children) -> let size = let rec loop children = children |> List.sumBy (function | File (_, _, size) -> size | Folder (_, _, children) | Root children -> loop children ) loop children Elem.details [[ Attr.open' "true" ]] [[ Elem.summary [[]] [[ Text.raw "📂 " Elem.a [[ Attr.href relativePath ]] [[ Text.raw folderName ]] Elem.span [[]] [[ Text.raw $" ({size |> sizeLabel})" ]] ]] Elem.div [[]] [[ yield! children |> List.map generateHtml ]] ]] | Root children -> Elem.div [[]] [[ yield! children |> List.map generateHtml ]] let generateHtmlForFileSystem root = $"""<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <style> body {{ background-color: #222; color: #ccc; }} a {{ color: #777; font-size: 15px; }} span {{ font-size: 11px; }} div > div {{ padding-left: 10px; }} details > div {{ padding-left: 19px; }} </style> </head> <body> {root |> generateHtml |> renderNode} </body> </html> """ ── fsharp ────────────────────────────────────────────────────────────────────── //// test let tempFolder = FileSystem.createTempDirectory () let rec loop d n = async { if n >= 0 then tempFolder </> d |> System.IO.Directory.CreateDirectory |> ignore do! n |> string |> String.replicate (n + 1) |> FileSystem.writeAllTextAsync (tempFolder </> d </> $"file.txt") do! loop $"{d}/{n}" (n - 1) } loop "_.root" 3 |> Async.RunSynchronously let html = scanDirectory true tempFolder tempFolder |> generateHtmlForFileSystem html |> _assertEqual """<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <style> body { background-color: #222; color: #ccc; } a { color: #777; font-size: 15px; } span { font-size: 11px; } div > div { padding-left: 10px; } details > div { padding-left: 19px; } </style> </head> <body> <div><details open="true"><summary>📂 <a href="_.root">_.root</a><span> (10.00 B)</span></summary><div><details open="true"><summary>📂 <a href="_.root/3">3</a><span> (6.00 B)</span></summary><div><details open="true"><summary>📂 <a href="_.root/3/2">2</a><span> (3.00 B)</span></summary><div><details open="true"><summary>📂 <a href="_.root/3/2/1">1</a><span> (1.00 B)</span></summary><div><div>📄 <a href="_.root/3/2/1/file.txt">file.txt</a><span> (1.00 B)</span></div></div></details><div>📄 <a href="_.root/3/2/file.txt">file.txt</a><span> (2.00 B)</span></div></div></details><div>📄 <a href="_.root/3/file.txt">file.txt</a><span> (3.00 B)</span></div></div></details><div>📄 <a href="_.root/file.txt">file.txt</a><span> (4.00 B)</span></div></div></details></div> </body> </html> """ html |> Microsoft.DotNet.Interactive.Formatting.Html.ToHtmlContent ╭─[ 123.82ms - return value ]──────────────────────────────────────────────────╮ │ <!DOCTYPE html> │ │ <html lang="en"> │ │ <head> │ │ <meta charset="UTF-8"> │ │ <style> │ │ body { │ │ background-color: #222; │ │ color: #ccc; │ │ } │ │ a { │ │ color: #777; │ │ font-size: 15px; │ │ } │ │ span { │ │ font-size: 11px; │ │ } │ │ div > div { │ │ padding-left: 10px; │ │ } │ │ details > div { │ │ padding-left: 19px; │ │ } │ │ </style> │ │ </head> │ │ <body> │ │ <div><details open="true"><summary>📂 <a │ │ href="_.root">_.root</a><span> (10.00 B)</span></summary><div><details │ │ open="true"><summary>📂 <a href="_.root/3">3</a><span> (6.00 │ │ B)</span></summary><div><details open="true"><summary>📂 <a │ │ href="_.root/3/2">2</a><span> (3.00 B)</span></summary><div><details │ │ open="true"><summary>📂 <a href="_.root/3/2/1">1</a><span> (1.00 │ │ B)</span></summary><div><div>📄 <a href="_.root... │ ╰──────────────────────────────────────────────────────────────────────────────╯ ╭─[ 127.22ms - stdout ]────────────────────────────────────────────────────────╮ │ <!DOCTYPE html> │ │ <html lang="en"> │ │ <head> │ │ <meta charset="UTF-8"> │ │ <style> │ │ body { │ │ background-color: #222; │ │ color: #ccc; │ │ } │ │ a { │ │ color: #777; │ │ font-size: 15px; │ │ } │ │ span { │ │ font-size: 11px; │ │ } │ │ div > div { │ │ padding-left: 10px; │ │ } │ │ details > div { │ │ padding-left: 19px; │ │ } │ │ </style> │ │ </head> │ │ <body> │ │ <div><details open="true"><summary>📂 <a │ │ href="_.root">_.root</a><span> (10.00 B)</span></summary><div><details │ │ open="true"><summary>📂 <a href="_.root/3">3</a><span> (6.00 │ │ B)</span></summary><div><details open="true"><summary>📂 <a │ │ href="_.root/3/2">2</a><span> (3.00 B)</span></summary><div><details │ │ open="true"><summary>📂 <a href="_.root/3/2/1">1</a><span> (1.00 │ │ B)</span></summary><div><div>📄 <a │ │ href="_.root/3/2/1/file.txt">file.txt</a><span> (1.00 │ │ B)</span></div></div></details><div>📄 <a │ │ href="_.root/3/2/file.txt">file.txt</a><span> (2.00 │ │ B)</span></div></div></details><div>📄 <a │ │ href="_.root/3/file.txt">file.txt</a><span> (3.00 │ │ B)</span></div></div></details><div>📄 <a │ │ href="_.root/file.txt">file.txt</a><span> (4.00 │ │ B)</span></div></div></details></div> │ │ </body> │ │ </html> │ │ │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## Arguments │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── [[<RequireQualifiedAccess>]] type Arguments = | [[<Argu.ArguAttributes.ExactlyOnce>]] Dir of string | [[<Argu.ArguAttributes.ExactlyOnce>]] Html of string interface Argu.IArgParserTemplate with member s.Usage = match s with | Dir _ -> nameof Dir | Html _ -> nameof Html ── fsharp ────────────────────────────────────────────────────────────────────── //// test Argu.ArgumentParser.Create<Arguments>().PrintUsage () ╭─[ 75.89ms - return value ]───────────────────────────────────────────────────╮ │ USAGE: dotnet-repl [--help] --dir <string> --html <string> │ │ │ │ OPTIONS: │ │ │ │ --dir <string> Dir │ │ --html <string> Html │ │ --help display this list of options. │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── markdown ──────────────────────────────────────────────────────────────────── ╭──────────────────────────────────────────────────────────────────────────────╮ │ ## main │ ╰──────────────────────────────────────────────────────────────────────────────╯ ── fsharp ────────────────────────────────────────────────────────────────────── let main args = let argsMap = args |> Runtime.parseArgsMap<Arguments> let dir = match argsMap.[[nameof Arguments.Dir]] with | [[ Arguments.Dir dir ]] -> Some dir | _ -> None |> Option.get let htmlPath = match argsMap.[[nameof Arguments.Html]] with | [[ Arguments.Html html ]] -> Some html | _ -> None |> Option.get let fileSystem = scanDirectory true dir dir let html = generateHtmlForFileSystem fileSystem html |> FileSystem.writeAllTextAsync htmlPath |> Async.runWithTimeout 30000 |> function | Some () -> 0 | None -> 1 ── fsharp ────────────────────────────────────────────────────────────────────── //// test let args = System.Environment.GetEnvironmentVariable "ARGS" |> Runtime.splitArgs |> Seq.toArray match args with | [[||]] -> 0 | args -> if main args = 0 then 0 else failwith "main failed" ╭─[ 47.36ms - return value ]───────────────────────────────────────────────────╮ │ <div class="dni-plaintext"><pre>0</pre></div><style> │ │ .dni-code-hint { │ │ font-style: italic; │ │ overflow: hidden; │ │ white-space: nowrap; │ │ } │ │ .dni-treeview { │ │ white-space: nowrap; │ │ } │ │ .dni-treeview td { │ │ vertical-align: top; │ │ text-align: start; │ │ } │ │ details.dni-treeview { │ │ padding-left: 1em; │ │ } │ │ table td { │ │ text-align: start; │ │ } │ │ table tr { │ │ vertical-align: top; │ │ margin: 0em 0px; │ │ } │ │ table tr td pre │ │ { │ │ vertical-align: top !important; │ │ margin: 0em 0px !important; │ │ } │ │ table th { │ │ text-align: start; │ │ } │ │ </style> │ ╰──────────────────────────────────────────────────────────────────────────────╯ [NbConvertApp] Converting notebook DirTreeHtml.dib.ipynb to html /opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/nbformat/__init__.py:96: MissingIDFieldWarning: Cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future. validate(nb) /opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/nbconvert/filters/highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3 return _pygments_highlight( [NbConvertApp] Writing 308648 bytes to DirTreeHtml.dib.html 00:00:00 #1 [Debug] writeDibCode / output: Fs / path: DirTreeHtml.dib 00:00:00 #2 [Debug] parseDibCode / output: Fs / file: DirTreeHtml.dib 00:00:00 #1 [Debug] persistCodeProject / packages: [Argu; Falco.Markup; FSharp.Control.AsyncSeq; ... ] / modules: [lib/fsharp/Common.fs; lib/fsharp/CommonFSharp.fs; lib/fsharp/Async.fs; ... ] / name: DirTreeHtml / code.Length: 4478 00:00:00 #2 [Debug] buildProject / fullPath: /home/runner/work/polyglot/polyglot/target/polyglot/builder/DirTreeHtml/DirTreeHtml.fsproj 00:00:00 #3 [Debug] executeAsync / options: { Command = "dotnet publish "/home/runner/work/polyglot/polyglot/target/polyglot/builder/DirTreeHtml/DirTreeHtml.fsproj" --configuration Release --output "/home/runner/work/polyglot/polyglot/apps/dir-tree-html/dist" --runtime linux-x64" WorkingDirectory = Some "/home/runner/work/polyglot/polyglot/target/polyglot/builder/DirTreeHtml" CancellationToken = None OnLine = None } 00:00:00 #4 [Verbose] > MSBuild version 17.10.0-preview-24101-01+07fd5d51f for .NET 00:00:00 #5 [Verbose] > Determining projects to restore... 00:00:00 #6 [Verbose] > All projects are up-to-date for restore. 00:00:01 #7 [Verbose] > /usr/share/dotnet/sdk/9.0.100-preview.1.24101.2/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.RuntimeIdentifierInference.targets(313,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [/home/runner/work/polyglot/polyglot/target/polyglot/builder/DirTreeHtml/DirTreeHtml.fsproj] 00:00:04 #8 [Verbose] > DirTreeHtml -> /home/runner/work/polyglot/polyglot/target/polyglot/builder/DirTreeHtml/bin/Release/net9.0/linux-x64/DirTreeHtml.dll 00:00:04 #9 [Verbose] > DirTreeHtml -> /home/runner/work/polyglot/polyglot/apps/dir-tree-html/dist 00:00:05 #10 [Debug] executeAsync / exitCode: 0 / output.Length: 683
In [ ]:
{ . "$ScriptDir/../apps/ipfs/build.ps1" } | Invoke-Block
Lockfile is up to date, resolution step is skipped Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +495 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Progress: resolved 495, reused 304, downloaded 138, added 443 Progress: resolved 495, reused 304, downloaded 190, added 495, done .../node_modules/protobufjs postinstall$ node scripts/postinstall .../node_modules/protobufjs postinstall: Done .../esbuild@0.19.12/node_modules/esbuild postinstall$ node install.js .../esbuild@0.19.12/node_modules/esbuild postinstall: Done dependencies: + nft.storage 7.1.1 devDependencies: + @types/node 20.11.10 + npm-check-updates 16.14.11 + tsx 4.7.0 + typescript 5.4.0-dev.20231129 Done in 2.4s
In [ ]:
{ . "$ScriptDir/outdated.ps1" } | Invoke-Block
Paket version 8.1.0-alpha001+8e77fe66ac27ddecf519e0df5a4d3327ca9250e2
Resolving dependency graph...
Outdated packages found:
Group: Main
* Expecto.FsCheck 10.2.1-fscheck3 -> 10.2.1
* Falco.Markup 1.0.2 -> 1.1.0
* FsCheck 3.0.0-rc3 -> 2.16.6
* FSharp.Core 8.0.300-beta.24080.5 -> 8.0.300-beta.24154.4
* Microsoft.AspNetCore.Connections.Abstractions 7.0 -> 9.0.0-preview.2.24128.4
* Microsoft.AspNetCore.Http.Connections.Client 7.0 -> 9.0.0-preview.2.24128.4
* Microsoft.AspNetCore.Http.Connections.Common 7.0 -> 9.0.0-preview.2.24128.4
* Microsoft.AspNetCore.SignalR.Client 7.0 -> 9.0.0-preview.2.24128.4
* Microsoft.AspNetCore.SignalR.Client.Core 7.0 -> 9.0.0-preview.2.24128.4
* Microsoft.AspNetCore.SignalR.Common 7.0 -> 9.0.0-preview.2.24128.4
* Microsoft.AspNetCore.SignalR.Protocols.Json 7.0 -> 9.0.0-preview.2.24128.4
* Microsoft.Extensions.DependencyInjection 8.0 -> 9.0.0-preview.2.24128.5
* Microsoft.Extensions.DependencyInjection.Abstractions 8.0.1 -> 9.0.0-preview.2.24128.5
* Microsoft.Extensions.Features 7.0 -> 9.0.0-preview.2.24128.4
* Microsoft.Extensions.Logging 8.0 -> 9.0.0-preview.2.24128.5
* Microsoft.Extensions.Logging.Abstractions 8.0.1 -> 9.0.0-preview.2.24128.5
* Microsoft.Extensions.Options 8.0.2 -> 9.0.0-preview.2.24128.5
* Microsoft.Extensions.Primitives 8.0 -> 9.0.0-preview.2.24128.5
* System.IO.Pipelines 8.0 -> 9.0.0-preview.2.24128.5
* System.Threading.Channels 8.0 -> 9.0.0-preview.2.24128.5
Total time taken: 10 seconds
CheckToml / toml: /home/runner/work/polyglot/polyglot/Cargo.toml
chat_contract_tests
================
Name Project Compat Latest Kind Platform
---- ------- ------ ------ ---- --------
ahash 0.7.8 0.8.11 --- Normal ---
ahash 0.8.11 --- 0.7.8 Normal ---
allocator-api2 0.2.16 --- Removed Normal ---
autocfg 1.1.0 Removed --- Build ---
bumpalo 3.15.4 Removed --- Normal ---
cfg-if 1.0.0 --- Removed Normal ---
cfg-if 1.0.0 Removed --- Normal ---
equivalent 1.0.1 --- Removed Normal ---
getrandom 0.2.12 Removed --- Normal cfg(any(target_os = "linux", target_os = "android", target_os = "windows", target_os = "macos", target_os = "ios", target_os = "freebsd", target_os = "openbsd", target_os = "netbsd", target_os = "dragonfly", target_os = "solaris", target_os = "illumos", target_os = "fuchsia", target_os = "redox", target_os = "cloudabi", target_os = "haiku", target_os = "vxworks", target_os = "emscripten", target_os = "wasi"))
hashbrown 0.12.3 0.14.3 --- Normal ---
hashbrown 0.14.3 --- 0.12.3 Normal ---
indexmap 1.9.3 2.2.5 --- Normal ---
indexmap 2.2.5 --- 1.9.3 Normal ---
js-sys 0.3.69 Removed --- Normal cfg(all(any(target_arch = "wasm32", target_arch = "wasm64"), target_os = "unknown"))
libc 0.2.153 Removed --- Normal cfg(unix)
log 0.4.21 Removed --- Normal ---
once_cell 1.19.0 Removed --- Normal ---
proc-macro2 1.0.79 --- Removed Normal ---
proc-macro2 1.0.79 Removed --- Normal ---
quote 1.0.35 --- Removed Normal ---
quote 1.0.35 Removed --- Normal ---
syn 2.0.53 --- Removed Normal ---
syn 2.0.53 Removed --- Normal ---
unicode-ident 1.0.12 --- Removed Normal ---
unicode-ident 1.0.12 Removed --- Normal ---
wasi 0.11.0+wasi-snapshot-preview1 Removed --- Normal cfg(target_os = "wasi")
wasm-bindgen 0.2.92 Removed --- Normal ---
wasm-bindgen 0.2.92 Removed --- Normal cfg(all(any(target_arch = "wasm32", target_arch = "wasm64"), target_os = "unknown"))
wasm-bindgen-backend 0.2.92 Removed --- Normal ---
wasm-bindgen-macro 0.2.92 Removed --- Normal ---
wasm-bindgen-macro-support 0.2.92 Removed --- Normal ---
wasm-bindgen-shared 0.2.92 Removed --- Normal ---
zerocopy 0.7.32 --- Removed Normal ---
zerocopy-derive 0.7.32 --- Removed Normal ---
CheckToml / toml: /home/runner/work/polyglot/polyglot/apps/chat/contract/Cargo.toml
Name Project Compat Latest Kind Platform
---- ------- ------ ------ ---- --------
borsh-derive->syn 2.0.53 2.0.55 2.0.55 Normal ---
darling_core->syn 2.0.53 2.0.55 2.0.55 Normal ---
darling_macro->syn 2.0.53 2.0.55 2.0.55 Normal ---
near-sdk-macros->syn 2.0.53 2.0.55 2.0.55 Normal ---
serde_derive->syn 2.0.53 2.0.55 2.0.55 Normal ---
strum_macros->syn 2.0.53 2.0.55 2.0.55 Normal ---
syn_derive->syn 2.0.53 2.0.55 2.0.55 Normal ---
toml_edit->indexmap 2.2.5 2.2.6 2.2.6 Normal ---
zerocopy-derive->syn 2.0.53 2.0.55 2.0.55 Normal ---
CheckToml / toml: /home/runner/work/polyglot/polyglot/apps/chat/contract/tests/Cargo.toml
Name Project Compat Latest Kind Platform
---- ------- ------ ------ ---- --------
actix->bytes 1.5.0 1.6.0 1.6.0 Normal ---
actix-macros->syn 2.0.53 2.0.55 2.0.55 Normal ---
actix_derive->syn 2.0.53 2.0.55 2.0.55 Normal ---
ahash->cfg-if 1.0.0 Removed Removed Normal ---
ahash->zerocopy 0.7.32 Removed Removed Normal ---
async-stream-impl->syn 2.0.53 2.0.55 2.0.55 Normal ---
async-trait->syn 2.0.53 2.0.55 2.0.55 Normal ---
borsh-derive->syn 2.0.53 2.0.55 2.0.55 Normal ---
cargo_metadata->cargo-platform 0.1.7 0.1.8 0.1.8 Normal ---
clap_derive->syn 2.0.53 2.0.55 2.0.55 Normal ---
curve25519-dalek-derive->syn 2.0.53 2.0.55 2.0.55 Normal ---
darling_core->syn 2.0.53 2.0.55 2.0.55 Normal ---
darling_macro->syn 2.0.53 2.0.55 2.0.55 Normal ---
derive_arbitrary->syn 2.0.53 2.0.55 2.0.55 Normal ---
enum-map-derive->syn 2.0.53 2.0.55 2.0.55 Normal ---
env_logger->regex 1.10.3 1.10.4 1.10.4 Normal ---
futures-macro->syn 2.0.53 2.0.55 2.0.55 Normal ---
h2->bytes 1.5.0 1.6.0 1.6.0 Normal ---
h2->indexmap 2.2.5 2.2.6 2.2.6 Normal ---
hashbrown->ahash 0.8.11 0.7.8 0.7.8 Normal ---
hashbrown->allocator-api2 0.2.16 Removed Removed Normal ---
http->bytes 1.5.0 1.6.0 1.6.0 Normal ---
http-body->bytes 1.5.0 1.6.0 1.6.0 Normal ---
hyper->bytes 1.5.0 1.6.0 1.6.0 Normal ---
hyper-tls->bytes 1.5.0 1.6.0 1.6.0 Normal ---
indexmap->equivalent 1.0.1 Removed Removed Normal ---
indexmap->hashbrown 0.14.3 0.12.3 0.12.3 Normal ---
near-parameters->serde_yaml 0.9.33 0.9.34+deprecated 0.9.34+deprecated Normal ---
near-primitives->serde_yaml 0.9.33 0.9.34+deprecated 0.9.34+deprecated Normal ---
near-rpc-error-core->syn 2.0.53 2.0.55 2.0.55 Normal ---
near-rpc-error-macro->syn 2.0.53 2.0.55 2.0.55 Normal ---
near-workspaces->async-trait 0.1.78 0.1.79 0.1.79 Normal ---
openssl-macros->syn 2.0.53 2.0.55 2.0.55 Normal ---
opentelemetry->async-trait 0.1.78 0.1.79 0.1.79 Normal ---
opentelemetry-otlp->async-trait 0.1.78 0.1.79 0.1.79 Normal ---
petgraph->indexmap 2.2.5 2.2.6 2.2.6 Normal ---
pin-project-internal->syn 2.0.53 2.0.55 2.0.55 Normal ---
proc-macro2->unicode-ident 1.0.12 Removed Removed Normal ---
prost->bytes 1.5.0 1.6.0 1.6.0 Normal ---
prost-build->bytes 1.5.0 1.6.0 1.6.0 Normal ---
prost-build->regex 1.10.3 1.10.4 1.10.4 Normal ---
prost-types->bytes 1.5.0 1.6.0 1.6.0 Normal ---
quote->proc-macro2 1.0.79 Removed Removed Normal ---
reqwest->bytes 1.5.0 1.6.0 1.6.0 Normal ---
rustls->rustls-pki-types 1.3.1 1.4.0 1.4.0 Normal ---
rustls-webpki->rustls-pki-types 1.3.1 1.4.0 1.4.0 Normal ---
scroll_derive->syn 2.0.53 2.0.55 2.0.55 Normal ---
serde_derive->syn 2.0.53 2.0.55 2.0.55 Normal ---
serde_repr->syn 2.0.53 2.0.55 2.0.55 Normal ---
serde_with->indexmap 2.2.5 1.9.3 1.9.3 Normal ---
serde_with_macros->syn 2.0.53 2.0.55 2.0.55 Normal ---
serde_yaml->indexmap 2.2.5 2.2.6 2.2.6 Normal ---
symbolic-debuginfo->regex 1.10.3 1.10.4 1.10.4 Normal ---
syn->proc-macro2 1.0.79 Removed Removed Normal ---
syn->quote 1.0.35 Removed Removed Normal ---
syn->unicode-ident 1.0.12 Removed Removed Normal ---
syn_derive->syn 2.0.53 2.0.55 2.0.55 Normal ---
tempfile->fastrand 2.0.1 2.0.2 2.0.2 Normal ---
thiserror-impl->syn 2.0.53 2.0.55 2.0.55 Normal ---
tokio->backtrace 0.3.69 0.3.71 0.3.71 Normal cfg(tokio_taskdump)
tokio->bytes 1.5.0 1.6.0 1.6.0 Normal ---
tokio-macros->syn 2.0.53 2.0.55 2.0.55 Normal ---
tokio-util->bytes 1.5.0 1.6.0 1.6.0 Normal ---
toml_edit->indexmap 2.2.5 2.2.6 2.2.6 Normal ---
tonic->async-trait 0.1.78 0.1.79 0.1.79 Normal ---
tonic->bytes 1.5.0 1.6.0 1.6.0 Normal ---
tracing-attributes->syn 2.0.53 2.0.55 2.0.55 Normal ---
tracing-subscriber->regex 1.10.3 1.10.4 1.10.4 Normal ---
ureq->rustls 0.22.2 0.22.3 0.22.3 Normal ---
ureq->rustls-pki-types 1.3.1 1.4.0 1.4.0 Normal ---
wasm-bindgen-backend->syn 2.0.53 2.0.55 2.0.55 Normal ---
wasm-bindgen-macro-support->syn 2.0.53 2.0.55 2.0.55 Normal ---
webpki-roots->rustls-pki-types 1.3.1 1.4.0 1.4.0 Normal ---
zerocopy->zerocopy-derive 0.7.32 Removed Removed Normal ---
zerocopy-derive->proc-macro2 1.0.79 Removed Removed Normal ---
zerocopy-derive->quote 1.0.35 Removed Removed Normal ---
zerocopy-derive->syn 2.0.53 2.0.55 2.0.55 Normal ---
zerocopy-derive->syn 2.0.53 Removed Removed Normal ---
CheckToml / toml: /home/runner/work/polyglot/polyglot/apps/plot/Cargo.toml
Name Project Compat Latest Kind Platform
---- ------- ------ ------ ---- --------
serde_derive->syn 2.0.53 2.0.55 2.0.55 Normal ---
wasm-bindgen-backend->syn 2.0.53 2.0.55 2.0.55 Normal ---
wasm-bindgen-macro-support->syn 2.0.53 2.0.55 2.0.55 Normal ---
/home/runner/work/polyglot/polyglot
> polyglot@ outdated-pre /home/runner/work/polyglot/polyglot
> npm-check-updates --target greatest
Using pnpm
Checking /home/runner/work/polyglot/polyglot/package.json
npm-check-updates ~16.14 → ~17.0-2
Run ncu --target greatest -u to upgrade package.json
/home/runner/work/polyglot/polyglot/apps/ipfs
> ipfs@ outdated-pre /home/runner/work/polyglot/polyglot/apps/ipfs
> npm-check-updates --target greatest
Using pnpm
Checking /home/runner/work/polyglot/polyglot/apps/ipfs/package.json
npm-check-updates ~16.14 → ~17.0-2
Run ncu --target greatest -u to upgrade package.json
/home/runner/work/polyglot/polyglot/apps/spiral/temp/extension
> polyglot@ outdated-pre /home/runner/work/polyglot/polyglot/apps/spiral/temp/extension
> npm-check-updates --target greatest
Using pnpm
Checking /home/runner/work/polyglot/polyglot/apps/spiral/temp/extension/package.json
@playwright/test 1.42.1 → 1.43.0-beta-1709675102000
npm-check-updates ~16.14 → ~17.0-2
Run ncu --target greatest -u to upgrade package.json